This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Re: optimization/7507: [3.2/3.3 regression] ICE (segfault) with -O2
- From: "Christian Ehrhardt" <ehrhardt at mathematik dot uni-ulm dot de>
- To: Volker Reichelt <reichelt at igpm dot rwth-aachen dot de>
- Cc: gcc-bugs at gcc dot gnu dot org
- Date: Thu, 28 Nov 2002 10:19:50 +0100
- Subject: Re: optimization/7507: [3.2/3.3 regression] ICE (segfault) with -O2
- References: <200211280023.BAA21899@numa6.igpm.rwth-aachen.de>
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!