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: optimization/7507: [3.2/3.3 regression] ICE (segfault) with -O2


On Wed, Nov 27, 2002 at 11:29:12PM +0000, Volker Reichelt wrote:
> Hi again,
> 
> a distilled testcase is the following:
> 
> ---------------------snip here---------------------
> void foo (int i);
> 
> inline void bar () { return; }
> 
> void baz (int (*p)(), void* q)
> {
>   if (&p==q) foo( (bar(),p) () );
> }
> ---------------------snip here---------------------
> 
> Compilation with gcc 3.1 - 3.2.1 on i686-pc-linu-gnu yields:
> 
> PR7507.i: In function `baz':
> PR7507.i:8: internal error: Segmentation fault
> Please submit a full bug report, [etc.]
> 
> The bug seems to be target specific, since I cannot reproduce it on
> mips-sgi-irix6.5.

I _can_ reproduce this on sparc with 3.2, 3.2.1 and 3.3 (~2 weeks old)
but only if -O2 is specified. i686 doesn't ICE without -O2 for mee, either.

    regards   Christian

-- 
THAT'S ALL FOLKS!


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