Date: Fri, 9 Nov 2007 23:29:24 -0000 (UTC) From: =?iso-8859-1?Q?Bj=F6rn_K=F6nig?= <bkoenig@alpha-tierchen.de> To: "FreeBSD Tinderbox" <tinderbox@freebsd.org> Cc: arm@freebsd.org, current@freebsd.org Subject: Re: [head tinderbox] failure on arm/arm Message-ID: <63059.192.168.1.2.1194650964.squirrel@webmail.alpha-tierchen.de>
next in thread | raw e-mail | index | archive | help
[-- Attachment #1 --] FreeBSD Tinderbox wrote: > [...] > cc -O2 -pipe -DINET6 -c /src/usr.bin/systat/netcmds.c > /src/usr.bin/systat/netcmds.c: In function 'netcmd': > /src/usr.bin/systat/netcmds.c:127: internal compiler error: internal > consistency failure > Please submit a full bug report, > with preprocessed source if appropriate. > See <URL:http://gcc.gnu.org/bugs.html> for instructions. > *** Error code 1 > > Stop in /src/usr.bin/systat. > *** Error code 1 > [...] I noticed that the problem doesn't occur with latest snapshots of gcc 4.3, so I took some time and tracked down the responsible commit in the gcc source tree. I attached a patch. Please test it. Regards Björn [-- Attachment #2 --] --- src/contrib/gcc/tree-flow.h.orig 2007-05-19 01:11:49.000000000 +0000 +++ src/contrib/gcc/tree-flow.h 2007-11-09 23:19:44.000000000 +0000 @@ -713,6 +713,7 @@ void register_new_name_mapping (tree, tree); tree create_new_def_for (tree, tree, def_operand_p); bool need_ssa_update_p (void); +bool name_mappings_registered_p (void); bool name_registered_for_update_p (tree); bitmap ssa_names_to_replace (void); void release_ssa_name_after_update_ssa (tree name); --- src/contrib/gcc/tree-into-ssa.c.orig 2007-05-19 01:02:59.000000000 +0000 +++ src/contrib/gcc/tree-into-ssa.c 2007-11-09 23:20:47.000000000 +0000 @@ -2659,6 +2659,13 @@ return syms_to_rename || old_ssa_names || new_ssa_names; } +/* Return true if SSA name mappings have been registered for SSA updating. */ + +bool +name_mappings_registered_p (void) +{ + return repl_tbl && htab_elements (repl_tbl) > 0; +} /* Return true if name N has been registered in the replacement table. */ --- src/contrib/gcc/tree-cfg.c.orig 2007-05-19 01:12:15.000000000 +0000 +++ src/contrib/gcc/tree-cfg.c 2007-11-09 23:19:28.000000000 +0000 @@ -1214,7 +1214,7 @@ phi = phi_nodes (b); if (phi) { - if (need_ssa_update_p ()) + if (name_mappings_registered_p ()) return false; for (; phi; phi = PHI_CHAIN (phi))
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?63059.192.168.1.2.1194650964.squirrel>
