This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: bootstrap/10472


> about PR/10472, maybe you can give me a hand: I have attacched to this mail
> the precompiled file that triggers the ICE. Can you try compiling this with
> a recent 3.4 (assuming you have one available) and see if you can reproduce
> the ICE? The full command line is written in the PR.

Yes, this triggers it:
----------------------
void * mempcpy (void *, const void *, unsigned);
static char *stpcpy (char *dest, const char *src);

void foo() {
  stpcpy (mempcpy (stpcpy (stpcpy (0,0), 0), 0, 1), 0);
}
----------------------

g/y> ~/bin/gcc-3.4-pre/bin/gcc -O0 -c dcigettext.i
dcigettext.i:2: warning: `stpcpy' used but never defined
g/y> ~/bin/gcc-3.4-pre/bin/gcc -O -c dcigettext.i
dcigettext.i: In function `foo':
dcigettext.i:6: internal compiler error: in 
instantiate_virtual_regs_lossage, at function.c:3782

I'll change the synopsis of the bug report shortly, to indicate that it is 
not a bootstrap problem, but a problem in the middle-end.

W.

-------------------------------------------------------------------------
Wolfgang Bangerth              email:            bangerth at ices dot utexas dot edu
                               www: http://www.ices.utexas.edu/~bangerth/



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]