Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] ARM release compiler broken for mpg123.
@ 2009-01-23 15:10 Ulf Samuelsson
  2009-01-23 20:37 ` Peter Korsgaard
  0 siblings, 1 reply; 3+ messages in thread
From: Ulf Samuelsson @ 2009-01-23 15:10 UTC (permalink / raw)
  To: buildroot

?Have been struggling with mpg123 last night.
There seems to be a bug in the release version
(gcc-4.3.2/bu-2-19/uclibc-0.9.30)
of the toolchain which creates a Segment violation.

Anyone else can build mpg123, maybe for another architecture?
I have found an upstream patch, which I will test
and apply if it seems to solve the problem.


Reproduce using:

$ arm-linux-uclibc-gcc -Os -funroll-all-loops layer2.c


layer2.c:
-----------------------------------------------

#define FAIL
//#define WORKAROUND

struct al_table 
{
#if defined(FAIL)
  short bits;
#endif
  short d;
};

int getd_val;
int xd1;



struct al_table *alloc2;


void getd(void)
{
getd_val = alloc2->d;
}

int main(void)
{
int d1;

#if defined(WORKAROUND)
getd();
d1 = getd_val;
#else
d1 = alloc2->d;
#endif

#if defined(FAIL)
if( (d1) < 0)         {
xd1 = d1;
}
#else
xd1 = d1;
#endif
}

---------------------------------------

BR
Ulf Samuelsson

^ permalink raw reply	[flat|nested] 3+ messages in thread

* [Buildroot] ARM release compiler broken for mpg123.
  2009-01-23 15:10 [Buildroot] ARM release compiler broken for mpg123 Ulf Samuelsson
@ 2009-01-23 20:37 ` Peter Korsgaard
  2009-01-23 21:08   ` Ulf Samuelsson
  0 siblings, 1 reply; 3+ messages in thread
From: Peter Korsgaard @ 2009-01-23 20:37 UTC (permalink / raw)
  To: buildroot

>>>>> "Ulf" == Ulf Samuelsson <ulf.samuelsson@atmel.com> writes:

 Ulf> ?Have been struggling with mpg123 last night.
 Ulf> There seems to be a bug in the release version
 Ulf> (gcc-4.3.2/bu-2-19/uclibc-0.9.30)
 Ulf> of the toolchain which creates a Segment violation.

 Ulf> Anyone else can build mpg123, maybe for another architecture?

Yes, it builds on atleast powerpc without problems (afaik also i386,
but that has been a while).

 Ulf> I have found an upstream patch, which I will test
 Ulf> and apply if it seems to solve the problem.

I guess you'll need to patch the compiler instead as it's the compiler
ICE'ing. Any change you do to mpg123 won't make that bug go away.

-- 
Bye, Peter Korsgaard

^ permalink raw reply	[flat|nested] 3+ messages in thread

* [Buildroot] ARM release compiler broken for mpg123.
  2009-01-23 20:37 ` Peter Korsgaard
@ 2009-01-23 21:08   ` Ulf Samuelsson
  0 siblings, 0 replies; 3+ messages in thread
From: Ulf Samuelsson @ 2009-01-23 21:08 UTC (permalink / raw)
  To: buildroot

fre 2009-01-23 klockan 21:37 +0100 skrev Peter Korsgaard:
> >>>>> "Ulf" == Ulf Samuelsson <ulf.samuelsson@atmel.com> writes:
> 
>  Ulf> ?Have been struggling with mpg123 last night.
>  Ulf> There seems to be a bug in the release version
>  Ulf> (gcc-4.3.2/bu-2-19/uclibc-0.9.30)
>  Ulf> of the toolchain which creates a Segment violation.
> 
>  Ulf> Anyone else can build mpg123, maybe for another architecture?
> 
> Yes, it builds on atleast powerpc without problems (afaik also i386,
> but that has been a while).
> 
>  Ulf> I have found an upstream patch, which I will test
>  Ulf> and apply if it seems to solve the problem.
> 
> I guess you'll need to patch the compiler instead as it's the compiler
> ICE'ing. Any change you do to mpg123 won't make that bug go away.
> 

Yes, it is a gcc patch for ARM.

BR
Ulf Samuelsson
> -- 
> Bye, Peter Korsgaard
> _______________________________________________
> buildroot mailing list
> buildroot at busybox.net
> http://lists.busybox.net/mailman/listinfo/buildroot

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2009-01-23 21:08 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-01-23 15:10 [Buildroot] ARM release compiler broken for mpg123 Ulf Samuelsson
2009-01-23 20:37 ` Peter Korsgaard
2009-01-23 21:08   ` Ulf Samuelsson

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox