Encounter ICE while: Re: [parisc-linux] Close to mainline for

John David Anglin dave at hiauly1.hia.nrc.ca
Wed May 31 07:58:38 MDT 2006


> regcomp.c:408: internal compiler error: in gen_reg_rtx, at emit-rtl.c:807
> Please submit a full bug report,
> with preprocessed source if appropriate.
> See <URL:http://gcc.gnu.org/bugs.html> for instructions.
> For Debian GNU/Linux specific bug reporting instructions,
> see <URL:file:///usr/share/doc/gcc-4.1/README.Bugs>.
> Preprocessed source stored into /tmp/ccOU1j8a.out file, please attach this to
> your bugreport.
> make[2]: *** [/CAD/parisc-linux/CVS-20060529/build/posix/regex.o] Error 1
> 
> Dave can you confirm me that I would actualy fill in a pr?

My impression is that this wouldn't be useful without a lot more
investigation.  It's highly likely that the compiler used for this
compilation was itself miscompiled.  On the otherhand, if you are
using the stock debian build of 4.1 for this compilation, then
definitely a bug report should be submitted.

A version of regex is part of GCC in libiberty.  It builds in every
stage.  So, normally a problem compiling regex would be noticed
immediately.  That's what makes me think the problem is somehow
specific to the compiler that you are using.

There error would appear to be at this point:

  /* Don't let anything called after initial flow analysis create new
     registers.  */
  gcc_assert (!no_new_pseudos);

It would be useful to have a stack backtrace at the point of the error.

You can do this by running gcc with -v to determine the cc1 command
for the compilation.  Run cc1 under gdb.  Put a break on the gcc_assert.
Use the 'ignore' command to tell gdb to ignore the break some large
number of times.  Run the program from the start.  Info break will
tell you how many times the break has been hit.  Use ignore again to
set the number of breaks to ignore to the number of hits less one.
Rerun and a break should occur on the assert which calls abort.  You
could also put a break on abort.

Dave
-- 
J. David Anglin                                  dave.anglin at nrc-cnrc.gc.ca
National Research Council of Canada              (613) 990-0752 (FAX: 952-6602)



More information about the parisc-linux mailing list