This is the mail archive of the gcc-patches@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: [tree-ssa] c gimplification changes


Andreas Jaeger <aj@suse.de> writes:

> Richard Henderson <rth@redhat.com> writes:
>
>> In the process of working on my statement chaining patch, I discovered
>> that we were failing to gimplify some expressions.  I have no idea how
>> we weren't running into that before.
>
> I'm aware of this PR:
> http://gcc.gnu.org/bugzilla/show_bug.cgi?id=12547
>
> I'll check now on x86_64 whether your change fixes this - or whether
> you worked on something unrelated,

It's still there on x86_64 - note the -m32! - with current CVS:

/abuild/aj/builds/gcc/misc/gcc/gcc/gcj -B/abuild/aj/builds/gcc/misc/gcc/x86_64-s
use-linux-gnu/32/libjava/ -B/abuild/aj/builds/gcc/misc/gcc/gcc/ --encoding=UTF-8
 -Wno-deprecated -fclasspath= -fbootclasspath=/abuild/aj/builds/gcc/misc/gcc/x86
_64-suse-linux-gnu/32/libjava -ffloat-store -fno-omit-frame-pointer -g -O2 -m32 
-MD -MT java/lang/ThreadGroup.lo -MF java/lang/ThreadGroup.d -c /usr/src/aj/cvs/gcc-tree-ssa-20020619-branch/libjava/java/lang/ThreadGroup.java -fPIC -o java/lang/.libs/ThreadGroup.o
gimplification failed:
if (list.542 == 0B)
  {
    _Jv_ThrowNullPointerException ();
  } 
else
  {
    iftmp.541 = list.542;
  } <cond_expr 0x2a95bf44b0
    type <void_type 0x2a9557a9a0 void VOID
        align 1 symtab 0 alias set -1
        pointer_to_this <pointer_type 0x2a9557ab60> chain <type_decl 0x2a9557aa80 void>>
    side-effects
    arg 0 <eq_expr 0x2a95bf4460
        type <boolean_type 0x2a9557c000 boolean unsigned QI
            size <integer_cst 0x2a9557b000 constant invariant 8>
            unit size <integer_cst 0x2a95573c60 constant invariant 1>
            align 8 symtab 0 alias set 3 precision 1 min <integer_cst 0x2a9557b180 0> max <integer_cst 0x2a9557b1b0 1>
            chain <type_decl 0x2a9557c0e0 boolean>>
        invariant
        arg 0 <var_decl 0x2a95cc28c0 list.542 type <pointer_type 0x2a95aa0b60>
            unsigned used ignored SI file /usr/src/aj/cvs/gcc-tree-ssa-20020619-branch/libjava/java/lang/ThreadGroup.java line 634
            size <integer_cst 0x2a95573c90 constant invariant 32>
            unit size <integer_cst 0x2a95573d50 constant invariant 4>
            align 32 context <function_decl 0x2a95a13b60 enumerate> chain <var_decl 0x2a95cc27e0 iftmp.541>>
        arg 1 <integer_cst 0x2a9557b090 constant invariant 0>>
    arg 1 <call_expr 0x2a95bf4410 type <void_type 0x2a9557a9a0 void>
        side-effects
        arg 0 <addr_expr 0x2a95be6c00 type <pointer_type 0x2a95ae07e0>
            constant invariant arg 0 <function_decl 0x2a955b3c40 _Jv_ThrowNullPointerException>>
        /usr/src/aj/cvs/gcc-tree-ssa-20020619-branch/libjava/java/lang/ThreadGroup.java:634>
    arg 2 <modify_expr 0x2a95cc1b40 type <void_type 0x2a9557a9a0 void>
        side-effects
        arg 0 <var_decl 0x2a95cc27e0 iftmp.541 type <pointer_type 0x2a95aa0b60>
            unsigned used ignored SI file /usr/src/aj/cvs/gcc-tree-ssa-20020619-branch/libjava/java/lang/ThreadGroup.java line 634 size <integer_cst 0x2a95573c90 32> unit size <integer_cst 0x2a95573d50 4>
            align 32 context <function_decl 0x2a95a13b60 enumerate> chain <var_decl 0x2a95cc2700 T.540>> arg 1 <var_decl 0x2a95cc28c0 list.542>
        /usr/src/aj/cvs/gcc-tree-ssa-20020619-branch/libjava/java/lang/ThreadGroup.java:634>
    /usr/src/aj/cvs/gcc-tree-ssa-20020619-branch/libjava/java/lang/ThreadGroup.java:634>
/usr/src/aj/cvs/gcc-tree-ssa-20020619-branch/libjava/java/lang/ThreadGroup.java: In class `java.lang.ThreadGroup':
/usr/src/aj/cvs/gcc-tree-ssa-20020619-branch/libjava/java/lang/ThreadGroup.java: In method `java.lang.ThreadGroup.enumerate(java.lang.Thread[],int,boolean)':
/usr/src/aj/cvs/gcc-tree-ssa-20020619-branch/libjava/java/lang/ThreadGroup.java:634: internal compiler error: in gimplify_expr, at gimplify.c:3184
Please submit a full bug report,
with preprocessed source if appropriate.   
See <URL:http://gcc.gnu.org/bugs.html> for instructions.

Andreas
-- 
 Andreas Jaeger, aj@suse.de, http://www.suse.de/~aj
  SuSE Linux AG, Deutschherrnstr. 15-19, 90429 Nürnberg, Germany
   GPG fingerprint = 93A3 365E CE47 B889 DF7F  FED1 389A 563C C272 A126

Attachment: pgp00000.pgp
Description: PGP signature


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