public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug ipa/64668] New: internal compiler error: in compare_ssa_name, at ipa-icf-gimple.c:120
@ 2015-01-19 12:07 mpolacek at gcc dot gnu.org
  2015-01-19 12:25 ` [Bug ipa/64668] " mpolacek at gcc dot gnu.org
                   ` (6 more replies)
  0 siblings, 7 replies; 8+ messages in thread
From: mpolacek at gcc dot gnu.org @ 2015-01-19 12:07 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64668

            Bug ID: 64668
           Summary: internal compiler error: in compare_ssa_name, at
                    ipa-icf-gimple.c:120
           Product: gcc
           Version: 5.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: ipa
          Assignee: unassigned at gcc dot gnu.org
          Reporter: mpolacek at gcc dot gnu.org

Created attachment 34483
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=34483&action=edit
preprocessed source

./cc1obj -fpreprocessed ~/cc2vvJ2q.err -quiet -O2
-fconstant-string-class=NSConstantString -o /dev/null 
GormScrollViewAttributesInspector.m:122:1: internal compiler error: in
compare_ssa_name, at ipa-icf-gimple.c:133
0x11b3502 ipa_icf_gimple::func_checker::compare_ssa_name(tree_node*,
tree_node*)
    /home/polacek/src/gcc/gcc/ipa-icf-gimple.c:133
0x11b39c7 ipa_icf_gimple::func_checker::compare_operand(tree_node*, tree_node*)
    /home/polacek/src/gcc/gcc/ipa-icf-gimple.c:459
0x11b39c7 ipa_icf_gimple::func_checker::compare_operand(tree_node*, tree_node*)
    /home/polacek/src/gcc/gcc/ipa-icf-gimple.c:358
0x11b5ef1 ipa_icf_gimple::func_checker::compare_gimple_call(gcall*, gcall*)
    /home/polacek/src/gcc/gcc/ipa-icf-gimple.c:732
0x11b66e6 ipa_icf_gimple::func_checker::compare_bb(ipa_icf_gimple::sem_bb*,
ipa_icf_gimple::sem_bb*)
    /home/polacek/src/gcc/gcc/ipa-icf-gimple.c:658
0x11ab7bd ipa_icf::sem_function::equals_private(ipa_icf::sem_item*,
hash_map<symtab_node*, ipa_icf::sem_item*, default_hashmap_traits>&)
    /home/polacek/src/gcc/gcc/ipa-icf.c:544
0x11ab847 ipa_icf::sem_function::equals(ipa_icf::sem_item*,
hash_map<symtab_node*, ipa_icf::sem_item*, default_hashmap_traits>&)
    /home/polacek/src/gcc/gcc/ipa-icf.c:406
0x11ac922 ipa_icf::sem_item_optimizer::subdivide_classes_by_equality(bool)
    /home/polacek/src/gcc/gcc/ipa-icf.c:1912
0x11b093c ipa_icf::sem_item_optimizer::execute()
    /home/polacek/src/gcc/gcc/ipa-icf.c:1731
0x11b1bc1 ipa_icf_driver
    /home/polacek/src/gcc/gcc/ipa-icf.c:2460
0x11b1bc1 ipa_icf::pass_ipa_icf::execute(function*)
    /home/polacek/src/gcc/gcc/ipa-icf.c:2508
Please submit a full bug report,
with preprocessed source if appropriate.
Please include the complete backtrace with any bug report.
See <http://gcc.gnu.org/bugs.html> for instructions.


Note that this is ObjC so I can't really reduce this.
Started with r219379.


^ permalink raw reply	[flat|nested] 8+ messages in thread

* [Bug ipa/64668] internal compiler error: in compare_ssa_name, at ipa-icf-gimple.c:120
  2015-01-19 12:07 [Bug ipa/64668] New: internal compiler error: in compare_ssa_name, at ipa-icf-gimple.c:120 mpolacek at gcc dot gnu.org
@ 2015-01-19 12:25 ` mpolacek at gcc dot gnu.org
  2015-01-19 12:29 ` ubizjak at gmail dot com
                   ` (5 subsequent siblings)
  6 siblings, 0 replies; 8+ messages in thread
From: mpolacek at gcc dot gnu.org @ 2015-01-19 12:25 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64668

Marek Polacek <mpolacek at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |ASSIGNED
   Last reconfirmed|                            |2015-01-19
   Target Milestone|---                         |5.0
     Ever confirmed|0                           |1


^ permalink raw reply	[flat|nested] 8+ messages in thread

* [Bug ipa/64668] internal compiler error: in compare_ssa_name, at ipa-icf-gimple.c:120
  2015-01-19 12:07 [Bug ipa/64668] New: internal compiler error: in compare_ssa_name, at ipa-icf-gimple.c:120 mpolacek at gcc dot gnu.org
  2015-01-19 12:25 ` [Bug ipa/64668] " mpolacek at gcc dot gnu.org
@ 2015-01-19 12:29 ` ubizjak at gmail dot com
  2015-01-19 12:36 ` [Bug ipa/64668] [5 Regression] " rguenth at gcc dot gnu.org
                   ` (4 subsequent siblings)
  6 siblings, 0 replies; 8+ messages in thread
From: ubizjak at gmail dot com @ 2015-01-19 12:29 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64668

--- Comment #1 from Uroš Bizjak <ubizjak at gmail dot com> ---
Profiledbootstrap also breaks in this area [1].

[1] https://gcc.gnu.org/ml/gcc-regression/2015-01/msg00523.html
>From gcc-bugs-return-473826-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Jan 19 12:34:32 2015
Return-Path: <gcc-bugs-return-473826-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 5821 invoked by alias); 19 Jan 2015 12:34:31 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 5791 invoked by uid 48); 19 Jan 2015 12:34:26 -0000
From: "marxin at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug ipa/64668] internal compiler error: in compare_ssa_name, at ipa-icf-gimple.c:120
Date: Mon, 19 Jan 2015 12:34:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: ipa
X-Bugzilla-Version: 5.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: marxin at gcc dot gnu.org
X-Bugzilla-Status: ASSIGNED
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: marxin at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 5.0
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-64668-4-TVCEAduNwI@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-64668-4@http.gcc.gnu.org/bugzilla/>
References: <bug-64668-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2015-01/txt/msg01820.txt.bz2
Content-length: 250

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64668

--- Comment #2 from Martin Liška <marxin at gcc dot gnu.org> ---
Profiled bootstrap is broken because of PR64664. I've been working on fix, hope
it will be finished within an hour.

Martin
>From gcc-bugs-return-473827-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Jan 19 12:35:59 2015
Return-Path: <gcc-bugs-return-473827-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 6987 invoked by alias); 19 Jan 2015 12:35:59 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 6932 invoked by uid 48); 19 Jan 2015 12:35:55 -0000
From: "jakub at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug ipa/64668] internal compiler error: in compare_ssa_name, at ipa-icf-gimple.c:120
Date: Mon, 19 Jan 2015 12:35:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: ipa
X-Bugzilla-Version: 5.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: jakub at gcc dot gnu.org
X-Bugzilla-Status: ASSIGNED
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: marxin at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 5.0
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: cc
Message-ID: <bug-64668-4-7Mqni9kxNy@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-64668-4@http.gcc.gnu.org/bugzilla/>
References: <bug-64668-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: 7bit
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2015-01/txt/msg01821.txt.bz2
Content-length: 1707

https://gcc.gnu.org/bugzilla/show_bug.cgi?idd668

Jakub Jelinek <jakub at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |jakub at gcc dot gnu.org

--- Comment #3 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Reduced testcase:
./cc1obj -O2 -fgnu-runtime -fconstant-string-class=NSConstantString pr64668.mi
-w -quiet

typedef struct objc_object {} *id;
typedef struct _NSZone NSZone;
@class NSCoder;
@protocol NSObject - (Class) class;
@end @protocol NSCopying - (id) copyWithZone: (NSZone*)zone;
@end @protocol NSMutableCopying - (id) mutableCopyWithZone: (NSZone*)zone;
@end @protocol NSCoding - (void) encodeWithCoder: (NSCoder*)aCoder;
@end  @interface NSObject <NSObject> {}
@end typedef double NSTimeInterval;
@interface NSString :NSObject <NSCoding, NSCopying, NSMutableCopying> + (id)
string;
@end @interface NSConstantString : NSString {}
@end @class NSMutableArray, NSMutableDictionary, NSMutableData, NSData,
NSString;
@interface NSBundle : NSObject {}
enum { NSMixedState = -1, NSOffState = 0, NSOnState = 1 };
@end @class NSWindow;
@interface IBInspector : NSObject { id object; }
@end @interface GormScrollViewAttributesInspector : IBInspector { id
verticalScroll; id horizontalScroll; }
@end @implementation GormScrollViewAttributesInspector - init {}
- (void) verticalSelected: (id)sender { [super ok: sender]; [object
setHasVerticalScroller: ([verticalScroll state] == NSOnState)]; }
- (void) horizontalSelected: (id)sender { [super ok: sender]; [object
setHasHorizontalScroller: ([horizontalScroll state] == NSOnState)]; }


^ permalink raw reply	[flat|nested] 8+ messages in thread

* [Bug ipa/64668] [5 Regression] internal compiler error: in compare_ssa_name, at ipa-icf-gimple.c:120
  2015-01-19 12:07 [Bug ipa/64668] New: internal compiler error: in compare_ssa_name, at ipa-icf-gimple.c:120 mpolacek at gcc dot gnu.org
  2015-01-19 12:25 ` [Bug ipa/64668] " mpolacek at gcc dot gnu.org
  2015-01-19 12:29 ` ubizjak at gmail dot com
@ 2015-01-19 12:36 ` rguenth at gcc dot gnu.org
  2015-01-19 12:36 ` [Bug ipa/64668] " rguenth at gcc dot gnu.org
                   ` (3 subsequent siblings)
  6 siblings, 0 replies; 8+ messages in thread
From: rguenth at gcc dot gnu.org @ 2015-01-19 12:36 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64668

Richard Biener <rguenth at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Priority|P3                          |P1
            Summary|internal compiler error: in |[5 Regression] internal
                   |compare_ssa_name, at        |compiler error: in
                   |ipa-icf-gimple.c:120        |compare_ssa_name, at
                   |                            |ipa-icf-gimple.c:120


^ permalink raw reply	[flat|nested] 8+ messages in thread

* [Bug ipa/64668] internal compiler error: in compare_ssa_name, at ipa-icf-gimple.c:120
  2015-01-19 12:07 [Bug ipa/64668] New: internal compiler error: in compare_ssa_name, at ipa-icf-gimple.c:120 mpolacek at gcc dot gnu.org
                   ` (2 preceding siblings ...)
  2015-01-19 12:36 ` [Bug ipa/64668] [5 Regression] " rguenth at gcc dot gnu.org
@ 2015-01-19 12:36 ` rguenth at gcc dot gnu.org
  2015-01-19 12:37 ` [Bug ipa/64668] [5 Regression] " rguenth at gcc dot gnu.org
                   ` (2 subsequent siblings)
  6 siblings, 0 replies; 8+ messages in thread
From: rguenth at gcc dot gnu.org @ 2015-01-19 12:36 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64668

--- Comment #4 from Richard Biener <rguenth at gcc dot gnu.org> ---
    /* Virtual table call.  */
    case OBJ_TYPE_REF:
      {
        x1 = TREE_OPERAND (t1, 0);
        x2 = TREE_OPERAND (t2, 0);
        y1 = TREE_OPERAND (t1, 1);
        y2 = TREE_OPERAND (t2, 1);
        z1 = TREE_OPERAND (t1, 2);
        z2 = TREE_OPERAND (t2, 2);

        ret = compare_ssa_name (x1, x2)
              && compare_ssa_name (y1, y2)
              && compare_cst_or_decl (z1, z2);

I think neither op0 nor op1 needs to be a SSA name, both might be &x for
example.


^ permalink raw reply	[flat|nested] 8+ messages in thread

* [Bug ipa/64668] [5 Regression] internal compiler error: in compare_ssa_name, at ipa-icf-gimple.c:120
  2015-01-19 12:07 [Bug ipa/64668] New: internal compiler error: in compare_ssa_name, at ipa-icf-gimple.c:120 mpolacek at gcc dot gnu.org
                   ` (3 preceding siblings ...)
  2015-01-19 12:36 ` [Bug ipa/64668] " rguenth at gcc dot gnu.org
@ 2015-01-19 12:37 ` rguenth at gcc dot gnu.org
  2015-01-19 12:39 ` marxin at gcc dot gnu.org
  2015-01-19 22:02 ` marxin at gcc dot gnu.org
  6 siblings, 0 replies; 8+ messages in thread
From: rguenth at gcc dot gnu.org @ 2015-01-19 12:37 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64668

--- Comment #5 from Richard Biener <rguenth at gcc dot gnu.org> ---
Indeed:

(gdb) p debug_generic_expr (t1)
OBJ_TYPE_REF(_7;&objc_super->0)
$1 = void
(gdb) p debug_generic_expr (t2)
OBJ_TYPE_REF(_7;&objc_super->0)
$2 = void

I think dispatching to compare_ssa_name is premature optimization - just use
compare_operand?


^ permalink raw reply	[flat|nested] 8+ messages in thread

* [Bug ipa/64668] [5 Regression] internal compiler error: in compare_ssa_name, at ipa-icf-gimple.c:120
  2015-01-19 12:07 [Bug ipa/64668] New: internal compiler error: in compare_ssa_name, at ipa-icf-gimple.c:120 mpolacek at gcc dot gnu.org
                   ` (4 preceding siblings ...)
  2015-01-19 12:37 ` [Bug ipa/64668] [5 Regression] " rguenth at gcc dot gnu.org
@ 2015-01-19 12:39 ` marxin at gcc dot gnu.org
  2015-01-19 22:02 ` marxin at gcc dot gnu.org
  6 siblings, 0 replies; 8+ messages in thread
From: marxin at gcc dot gnu.org @ 2015-01-19 12:39 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64668

--- Comment #6 from Martin Liška <marxin at gcc dot gnu.org> ---
(In reply to Richard Biener from comment #4)
>     /* Virtual table call.  */
>     case OBJ_TYPE_REF:
>       {
>         x1 = TREE_OPERAND (t1, 0);
>         x2 = TREE_OPERAND (t2, 0);
>         y1 = TREE_OPERAND (t1, 1);
>         y2 = TREE_OPERAND (t2, 1);
>         z1 = TREE_OPERAND (t1, 2);
>         z2 = TREE_OPERAND (t2, 2);
> 
>         ret = compare_ssa_name (x1, x2)
>               && compare_ssa_name (y1, y2)
>               && compare_cst_or_decl (z1, z2);
> 
> I think neither op0 nor op1 needs to be a SSA name, both might be &x for
> example.

Yes, I did a wrong assumption about second argument of OBJ_TYPE_REF, which is
in this case an ADDR_EXPR:

133      gcc_assert (TREE_CODE (t1) == SSA_NAME);
(gdb) call debug_tree(t1)
 <addr_expr 0x7ffff6384ce0
    type <pointer_type 0x7ffff6310888
        type <record_type 0x7ffff6d5a348 _objc_super sizes-gimplified type_0 TI
            size <integer_cst 0x7ffff6c36d08 constant 128>
            unit size <integer_cst 0x7ffff6c36d20 constant 16>
            align 64 symtab 0 alias set 6 canonical type 0x7ffff6d5a348 fields
<field_decl 0x7ffff6d58da8 self> context <block 0x7ffff62fe840>
            pointer_to_this <pointer_type 0x7ffff6310888> chain <type_decl
0x7ffff6d58d10 D.1842>>
        public unsigned DI
        size <integer_cst 0x7ffff6c36cc0 constant 64>
        unit size <integer_cst 0x7ffff6c36cd8 constant 8>
        align 64 symtab 0 alias set 5 canonical type 0x7ffff6310888>

    arg 0 <var_decl 0x7ffff6326090 objc_super type <record_type 0x7ffff6d5a348
_objc_super>
        addressable used TI file GormScrollViewAttributesInspector.m line 110
col 3 size <integer_cst 0x7ffff6c36d08 128> unit size <integer_cst
0x7ffff6c36d20 16>
        align 128 context <function_decl 0x7ffff62db798
_i_GormScrollViewAttributesInspector__horizontalRuler_>>
    GormScrollViewAttributesInspector.m:110:3>

I'm going to write a patch.

Martin
>From gcc-bugs-return-473832-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Jan 19 12:51:55 2015
Return-Path: <gcc-bugs-return-473832-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 16272 invoked by alias); 19 Jan 2015 12:51:54 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 16218 invoked by uid 48); 19 Jan 2015 12:51:47 -0000
From: "jakub at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug target/64669] New: [5 Regression] aarch64-linux profiledbootstrap failure
Date: Mon, 19 Jan 2015 12:51:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: new
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: target
X-Bugzilla-Version: 5.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: jakub at gcc dot gnu.org
X-Bugzilla-Status: UNCONFIRMED
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter
Message-ID: <bug-64669-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2015-01/txt/msg01826.txt.bz2
Content-length: 5530

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64669

            Bug ID: 64669
           Summary: [5 Regression] aarch64-linux profiledbootstrap failure
           Product: gcc
           Version: 5.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: target
          Assignee: unassigned at gcc dot gnu.org
          Reporter: jakub at gcc dot gnu.org

r219833 (but also older revisions, e.g. r219767)
../configure --enable-languages=c,c++,fortran,go --enable-checking=release
--disable-werror
make -j16 profiledbootstrap
fails on aarch64:
/tmp/jakub/gcc/obj/./prev-gcc/cc1plus -quiet -nostdinc++ -I
/tmp/jakub/gcc/obj/prev-aarch64-unknown-linux-gnu/libstdc++-v3/include/aarch64-unknown-linux-gnu
-I /tmp/jakub/gcc/obj/prev-aarch64-unknown-linux-gnu/libstdc++-v3/include -I
/tmp/jakub/gcc/libstdc++-v3/libsupc++ -I . -I go -I ../../gcc -I ../../gcc/go
-I ../../gcc/../include -I ../../gcc/../libcpp/include -I
../../gcc/../libdecnumber -I ../../gcc/../libdecnumber/dpd -I ../libdecnumber
-I ../../gcc/../libbacktrace -I ../../gcc/go -I ../../gcc/go/gofrontend
-iprefix
/tmp/jakub/gcc/obj/prev-gcc/../lib/gcc/aarch64-unknown-linux-gnu/5.0.0/
-isystem /tmp/jakub/gcc/obj/./prev-gcc/include -isystem
/tmp/jakub/gcc/obj/./prev-gcc/include-fixed -MMD go/lex.d -MF go/.deps/lex.TPo
-MP -MT go/lex.o -D_GNU_SOURCE -D IN_GCC_FRONTEND -D IN_GCC -D HAVE_CONFIG_H
../../gcc/go/gofrontend/lex.cc -quiet -dumpbase lex.cc -mlittle-endian
-mabi=lp64 -auxbase-strip go/lex.o -g -O2 -Wextra -Wall -Wno-narrowing
-Wwrite-strings -Wcast-qual -Wsuggest-attribute=format -Woverloaded-virtual
-Wpedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings
-fprofile-use -fno-exceptions -fno-rtti -fasynchronous-unwind-tables -o
/tmp/cclDZwuT.s
../../gcc/go/gofrontend/lex.cc: In member function ‘const char*
Lex::advance_one_char(const char*, bool, unsigned int*, bool*)’:
../../gcc/go/gofrontend/lex.cc:1158:1: internal compiler error: in
convert_move, at expr.c:688
 Lex::advance_one_char(const char* p, bool is_single_quote, unsigned int*
value,
 ^
Please submit a full bug report,
with preprocessed source if appropriate.
See <http://gcc.gnu.org/bugs.html> for instructions.
Fails the same with stage1-gcc/cc1plus instead of prev-gcc/cc1plus, doesn't ICE
without -fprofile-use.

#0  fancy_abort (file=0x14b3cd8 "../../gcc/expr.c", line=688, 
    function=0x14b4700 <convert_move(rtx_def*, rtx_def*, int)::__FUNCTION__>
"convert_move") at ../../gcc/diagnostic.c:1288
#1  0x00000000009f2d90 in convert_move (to=0x3ffacdec060, from=0x3ffacdebf58,
unsignedp=1) at ../../gcc/expr.c:688
#2  0x00000000009f3264 in convert_modes (mode=SImode, oldmode=CC_DEQmode,
x=0x3ffacdebf58, unsignedp=1) at ../../gcc/expr.c:769
#3  0x0000000000c97120 in prepare_operand (icode=CODE_FOR_cbranchsi4,
x=0x3ffacdebf58, opnum=1, mode=QImode, wider_mode=SImode, unsignedp=1)
    at ../../gcc/optabs.c:4293
#4  0x0000000000c96e04 in prepare_cmp_insn (x=0x3ffacdebf58, y=0x3ffaf3e0480,
comparison=LEU, size=0x0, unsignedp=1, methods=OPTAB_LIB_WIDEN, 
    ptest=0x3ffffffe248, pmode=0x3ffffffe228) at ../../gcc/optabs.c:4203
#5  0x0000000000c974a8 in emit_cmp_and_jump_insns (x=0x3ffacdebf58,
y=0x3ffaf3e0480, comparison=LEU, size=0x0, mode=QImode, unsignedp=1, 
    label=0x3fface05e00, prob=0) at ../../gcc/optabs.c:4381
#6  0x000000000095ca80 in do_compare_rtx_and_jump (op0=0x3ffacdebf58,
op1=0x3ffaf3e0480, code=LEU, unsignedp=1, mode=QImode, size=0x0, 
    if_false_label=0x0, if_true_label=0x3fface05e00, prob=0) at
../../gcc/dojump.c:1159
#7  0x000000000095cca4 in do_compare_and_jump (treeop0=0x3ffac41a200,
treeop1=0x3ffaf371038, signed_code=LE, unsigned_code=LEU, 
    if_false_label=0x0, if_true_label=0x3fface05e00, prob=0) at
../../gcc/dojump.c:1241
#8  0x000000000095abb4 in do_jump_1 (code=LE_EXPR, op0=0x3ffac41a200,
op1=0x3ffaf371038, if_false_label=0x0, if_true_label=0x3fface05e00, prob=0)
    at ../../gcc/dojump.c:296
#9  0x000000000095a448 in jumpif_1 (code=LE_EXPR, op0=0x3ffac41a200,
op1=0x3ffaf371038, label=0x3fface05e00, prob=0) at ../../gcc/dojump.c:176
#10 0x00000000008df938 in expand_gimple_cond (bb=0x3ffac329240,
stmt=0x3ffac30a230) at ../../gcc/cfgexpand.c:2231
#11 0x00000000008e7f1c in expand_gimple_basic_block (bb=0x3ffac329240,
disable_tail_calls=false) at ../../gcc/cfgexpand.c:5262
#12 0x00000000008e9af4 in (anonymous namespace)::pass_expand::execute
(this=0x1a0fe20, fun=0x3ffb10feaf0) at ../../gcc/cfgexpand.c:6003
#13 0x0000000000cc092c in execute_one_pass (pass=0x1a0fe20) at
../../gcc/passes.c:2326
#14 0x0000000000cc0bd8 in execute_pass_list_1 (pass=0x1a0fe20) at
../../gcc/passes.c:2378
#15 0x0000000000cc0c54 in execute_pass_list (fn=0x3ffb10feaf0, pass=0x1a0cca0)
at ../../gcc/passes.c:2389
#16 0x0000000000928030 in cgraph_node::expand (this=0x3ffb108e118) at
../../gcc/cgraphunit.c:1804

in prepare_operand x is (reg:CC_DEQ 66 cc [ D.47994 ]) and trying to convert it
to SImode is of course deemed to fail.
In do_compare_and_jump treeop0 is a bool var and looks reasonable, treeop1 is
boolean_false_node.
And the do_compare_rtx_and_jump is already called with that (reg:CC_DEQ 66 cc [
D.47994 ]) and (const_int 0) arguments and QImode.
I'd say expand_normal for a bool SSA_NAME returning reg:CC_DEQ , i.e. not the
desired QImode, looks wrong.
>From gcc-bugs-return-473833-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Jan 19 12:52:13 2015
Return-Path: <gcc-bugs-return-473833-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 16935 invoked by alias); 19 Jan 2015 12:52:12 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 16907 invoked by uid 48); 19 Jan 2015 12:52:07 -0000
From: "jakub at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug target/64669] [5 Regression] aarch64-linux profiledbootstrap failure
Date: Mon, 19 Jan 2015 12:52:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: target
X-Bugzilla-Version: 5.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: jakub at gcc dot gnu.org
X-Bugzilla-Status: NEW
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 5.0
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: cf_gcctarget bug_status cf_reconfirmed_on target_milestone everconfirmed
Message-ID: <bug-64669-4-QT4JtBib04@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-64669-4@http.gcc.gnu.org/bugzilla/>
References: <bug-64669-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: 7bit
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2015-01/txt/msg01827.txt.bz2
Content-length: 516

https://gcc.gnu.org/bugzilla/show_bug.cgi?idd669

Jakub Jelinek <jakub at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Target|                            |aarch64-linux
             Status|UNCONFIRMED                 |NEW
   Last reconfirmed|                            |2015-01-19
   Target Milestone|---                         |5.0
     Ever confirmed|0                           |1


^ permalink raw reply	[flat|nested] 8+ messages in thread

* [Bug ipa/64668] [5 Regression] internal compiler error: in compare_ssa_name, at ipa-icf-gimple.c:120
  2015-01-19 12:07 [Bug ipa/64668] New: internal compiler error: in compare_ssa_name, at ipa-icf-gimple.c:120 mpolacek at gcc dot gnu.org
                   ` (5 preceding siblings ...)
  2015-01-19 12:39 ` marxin at gcc dot gnu.org
@ 2015-01-19 22:02 ` marxin at gcc dot gnu.org
  6 siblings, 0 replies; 8+ messages in thread
From: marxin at gcc dot gnu.org @ 2015-01-19 22:02 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64668

--- Comment #7 from Martin Liška <marxin at gcc dot gnu.org> ---
Author: marxin
Date: Mon Jan 19 22:02:04 2015
New Revision: 219861

URL: https://gcc.gnu.org/viewcvs?rev=219861&root=gcc&view=rev
Log:
Fix PR64668.

    * objc/compile/pr64668.m: New test.
    PR ipa/64668
    * ipa-icf-gimple.c (func_checker::compare_operand): Call proper
    function for second argument of OBJ_TYPE_REF.

Added:
    trunk/gcc/testsuite/objc/compile/pr64668.m
Modified:
    trunk/gcc/ChangeLog
    trunk/gcc/ipa-icf-gimple.c
    trunk/gcc/testsuite/ChangeLog
>From gcc-bugs-return-473915-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Jan 19 22:04:05 2015
Return-Path: <gcc-bugs-return-473915-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 18934 invoked by alias); 19 Jan 2015 22:04:04 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 18886 invoked by uid 48); 19 Jan 2015 22:04:00 -0000
From: "marxin at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug ipa/64668] [5 Regression] internal compiler error: in compare_ssa_name, at ipa-icf-gimple.c:120
Date: Mon, 19 Jan 2015 22:04:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: ipa
X-Bugzilla-Version: 5.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: marxin at gcc dot gnu.org
X-Bugzilla-Status: ASSIGNED
X-Bugzilla-Priority: P1
X-Bugzilla-Assigned-To: marxin at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 5.0
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-64668-4-81iRfsnamz@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-64668-4@http.gcc.gnu.org/bugzilla/>
References: <bug-64668-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2015-01/txt/msg01909.txt.bz2
Content-length: 140

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64668

--- Comment #8 from Martin Liška <marxin at gcc dot gnu.org> ---
Fixed in 5.0.0.
>From gcc-bugs-return-473916-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Jan 19 22:06:17 2015
Return-Path: <gcc-bugs-return-473916-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 20821 invoked by alias); 19 Jan 2015 22:06:16 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 20777 invoked by uid 48); 19 Jan 2015 22:06:11 -0000
From: "janus at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug fortran/64674] [OOP] ICE in ASSOCIATE with allocated class
Date: Mon, 19 Jan 2015 22:06:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: fortran
X-Bugzilla-Version: 5.0
X-Bugzilla-Keywords: ice-on-valid-code
X-Bugzilla-Severity: normal
X-Bugzilla-Who: janus at gcc dot gnu.org
X-Bugzilla-Status: NEW
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: keywords bug_status cf_reconfirmed_on cc version short_desc everconfirmed
Message-ID: <bug-64674-4-f7rt5ApQqM@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-64674-4@http.gcc.gnu.org/bugzilla/>
References: <bug-64674-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: 7bit
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2015-01/txt/msg01910.txt.bz2
Content-length: 1019

https://gcc.gnu.org/bugzilla/show_bug.cgi?idd674

janus at gcc dot gnu.org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |ice-on-valid-code
             Status|UNCONFIRMED                 |NEW
   Last reconfirmed|                            |2015-01-19
                 CC|                            |janus at gcc dot gnu.org
            Version|fortran-dev                 |5.0
            Summary|OOP Internal compiler error |[OOP] ICE in ASSOCIATE with
                   |in associate with allocated |allocated class
                   |class                       |
     Ever confirmed|0                           |1

--- Comment #1 from janus at gcc dot gnu.org ---
Confirmed. Slightly reduced test case:

  Type T
   integer :: map
  end Type T

  class(T), allocatable :: Cls(:)

  allocate(Cls(2))
  associate(CL => Cls(1))
      CL%map = 2
  end associate

end


^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2015-01-19 22:02 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-01-19 12:07 [Bug ipa/64668] New: internal compiler error: in compare_ssa_name, at ipa-icf-gimple.c:120 mpolacek at gcc dot gnu.org
2015-01-19 12:25 ` [Bug ipa/64668] " mpolacek at gcc dot gnu.org
2015-01-19 12:29 ` ubizjak at gmail dot com
2015-01-19 12:36 ` [Bug ipa/64668] [5 Regression] " rguenth at gcc dot gnu.org
2015-01-19 12:36 ` [Bug ipa/64668] " rguenth at gcc dot gnu.org
2015-01-19 12:37 ` [Bug ipa/64668] [5 Regression] " rguenth at gcc dot gnu.org
2015-01-19 12:39 ` marxin at gcc dot gnu.org
2015-01-19 22:02 ` marxin at gcc dot gnu.org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).