* X server failing on PowerPC
@ 2012-05-16 11:50 Gary Thomas
2012-05-16 11:58 ` Phil Blundell
0 siblings, 1 reply; 2+ messages in thread
From: Gary Thomas @ 2012-05-16 11:50 UTC (permalink / raw)
To: Patches and discussions about the oe-core layer
When built from a recent OE-core using GCC 4.7.x, the X server
fails on PowerPC targets. Filed as Poky/Yocto bug #2460, it boils down
to a sequence of code like this:
void *ptr;
switch(XX) {
case a:
define_some_structure A;
ptr = &A;
break;
case b:
define_some_structure B;
ptr = &B;
break;
}
call_some_function(ptr);
I didn't explore how this messes up, just that it does when compiled
on PowerPC with GCC 4.7.x. Note that it works fine on ARM (and I assume
x86 as well)
Is this even legal C? even if it works [has worked] for 20+ years?
Should I propose my patch? I'm only interested in xserver-kdrive_1.7.99.2,
but I think this probably affects all X server instances.
--
------------------------------------------------------------
Gary Thomas | Consulting for the
MLB Associates | Embedded world
------------------------------------------------------------
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: X server failing on PowerPC
2012-05-16 11:50 X server failing on PowerPC Gary Thomas
@ 2012-05-16 11:58 ` Phil Blundell
0 siblings, 0 replies; 2+ messages in thread
From: Phil Blundell @ 2012-05-16 11:58 UTC (permalink / raw)
To: Patches and discussions about the oe-core layer
On Wed, 2012-05-16 at 05:50 -0600, Gary Thomas wrote:
> void *ptr;
> switch(XX) {
> case a:
> define_some_structure A;
> ptr = &A;
> break;
> case b:
> define_some_structure B;
> ptr = &B;
> break;
> }
> call_some_function(ptr);
>
>[...]
>
> Is this even legal C?
No.
p.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2012-05-16 12:08 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-05-16 11:50 X server failing on PowerPC Gary Thomas
2012-05-16 11:58 ` Phil Blundell
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox