All of lore.kernel.org
 help / color / mirror / Atom feed
From: Gary Thomas <gary@mlbassoc.com>
To: Patches and discussions about the oe-core layer
	<openembedded-core@lists.openembedded.org>
Subject: X server failing on PowerPC
Date: Wed, 16 May 2012 05:50:35 -0600	[thread overview]
Message-ID: <4FB3948B.9090609@mlbassoc.com> (raw)

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
------------------------------------------------------------



             reply	other threads:[~2012-05-16 12:00 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-05-16 11:50 Gary Thomas [this message]
2012-05-16 11:58 ` X server failing on PowerPC Phil Blundell

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4FB3948B.9090609@mlbassoc.com \
    --to=gary@mlbassoc.com \
    --cc=openembedded-core@lists.openembedded.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.