All of lore.kernel.org
 help / color / mirror / Atom feed
* gcc ICE (gcc 4.1.2, nios2), test program included
@ 2011-03-03 18:48 Frans Meulenbroeks
  2011-03-03 21:44 ` Phil Blundell
  0 siblings, 1 reply; 5+ messages in thread
From: Frans Meulenbroeks @ 2011-03-03 18:48 UTC (permalink / raw)
  To: openembedded-devel

Dear all,

I've bumped onto an issue that I seem unable to resolv.
With gcc 4.1.2, target nios2, I get an ICE when compiling dbus:

I've reduced the failing program to a 16 line test program (using
repeated calls to delta and some hand reduction):

typedef struct DBusCredentials DBusCredentials;
typedef struct { } DBusAuthStateData;
typedef struct
{
  const DBusAuthStateData *state;
  DBusCredentials *authorized_identity;
} DBusAuth;
static const DBusAuthStateData common_state_authenticated = { };
_dbus_auth_set_credentials (DBusAuth *auth)
{
    if (auth->state == &common_state_authenticated)
    {
      return auth->authorized_identity;
    }
    return auth->authorized_identity;
}

This gives (when compiled):

frans@frans-desktop:/tmp$
/home/frans/workspace/tmp/sysroots/x86_64-linux/usr/nios2/bin/nios2-linux-gcc
-fPIC -O2 -o tst.o tst.c
tst.c: In function '_dbus_auth_set_credentials':
tst.c:13: warning: return makes integer from pointer without a cast
tst.c:15: warning: return makes integer from pointer without a cast
tst.c:16: error: Attempt to delete prologue/epilogue insn:
(insn 55 54 56 0 (set:SI (reg:SI 22 r22)
        (mem/c:SI (plus:SI (reg/f:SI 27 sp)
                (const_int 0 [0x0])) [6 S4 A32])) -1 (nil)
    (nil))
tst.c:16: internal compiler error: in propagate_one_insn, at flow.c:1699
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://gcc.gnu.org/bugs.html> for instructions.


Anyone an idea on how to tackle this.

BTW: this applies with the nios code for gcc in OE, I have also tried
it with the latest altera version and I get the same problem.

Best regards, Frans.



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

end of thread, other threads:[~2011-03-07 11:26 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-03-03 18:48 gcc ICE (gcc 4.1.2, nios2), test program included Frans Meulenbroeks
2011-03-03 21:44 ` Phil Blundell
2011-03-07 10:24   ` Frans Meulenbroeks
2011-03-07 10:53     ` Phil Blundell
2011-03-07 11:24       ` Frans Meulenbroeks

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.