After seeing -qipa-pta appear, I thought id give it a spin :) Looks like the
test case below fails, but only when using K+R style functions.

$ /home/anton/toolchain/install/bin/gcc -v
Using built-in specs.
Target: powerpc-linux Configured with: /home/anton/toolchain/gcc/gcc/configure
--build=powerpc-linux --host=powerpc-linux --target=powerpc-linux
--enable-targets=powerpc64-linux --enable-languages=c,c++,fortran
--prefix=/home/anton/toolchain/install
Thread model: posix
gcc version 4.2.0 20060220 (experimental)

$ cat foo.c
#if 1
void foo(a)
     void (*a)();
{
        (*a)();
}
#else
void foo(void (*a)())
{
        (*a)();
}
#endif

$ /home/anton/toolchain/install/bin/gcc -c -O3 -fipa-pta foo.c
foo.c: In function 'foo': foo.c:6: internal compiler error: in
find_func_aliases, at tree-ssa-structalias.c:3321
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://gcc.gnu.org/bugs.html> for instructions.


-- 
           Summary: K+R style function compiled with -qipa-pta ICEs
           Product: gcc
           Version: 4.2.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: tree-optimization
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: anton at samba dot org
GCC target triplet: powerpc64-linux


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=26376

Reply via email to