public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug target/67349] New: ICE on optimization
@ 2015-08-25  6:27 ysato at users dot sourceforge.jp
  2015-08-25  7:28 ` [Bug target/67349] " miyuki at gcc dot gnu.org
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: ysato at users dot sourceforge.jp @ 2015-08-25  6:27 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 67349
           Summary: ICE on optimization
           Product: gcc
           Version: 6.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: target
          Assignee: unassigned at gcc dot gnu.org
          Reporter: ysato at users dot sourceforge.jp
  Target Milestone: ---

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

I got following error.

$ LANG=C h8300-unknown-linux-gcc -c -O2 -fconserve-stack sync.c
In file included from include/linux/rcupdate.h:429:0,
                 from include/linux/rcusync.h:5,
                 from kernel/rcu/sync.c:1:
include/linux/rcutiny.h: In function 'rcu_barrier_sched':
include/linux/rcutiny.h:55:91: internal compiler error: Segmentation fault
0xb11f6f crash_signal
        ../../gcc/toplev.c:352
0xc1fe56 tree_check
        ../../gcc/tree.h:2857
0xc1fe56 fold_builtin_alloca_with_align
        ../../gcc/tree-ssa-ccp.c:2110
0xc1fe56 ccp_fold_stmt
        ../../gcc/tree-ssa-ccp.c:2215
0xca6cba substitute_and_fold_dom_walker::before_dom_children(basic_block_def*)
        ../../gcc/tree-ssa-propagate.c:1226
0xe6a7f7 dom_walker::walk(basic_block_def*)
        ../../gcc/domwalk.c:177
0xca64a9 substitute_and_fold(tree_node* (*)(tree_node*), bool
(*)(gimple_stmt_iterator*), bool)
        ../../gcc/tree-ssa-propagate.c:1319
0xc17efc ccp_finalize
        ../../gcc/tree-ssa-ccp.c:951
0xc17efc do_ssa_ccp
        ../../gcc/tree-ssa-ccp.c:2410
0xc17efc execute
        ../../gcc/tree-ssa-ccp.c:2442
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.

without -fconserve-stack in no problem.


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

* [Bug target/67349] ICE on optimization
  2015-08-25  6:27 [Bug target/67349] New: ICE on optimization ysato at users dot sourceforge.jp
@ 2015-08-25  7:28 ` miyuki at gcc dot gnu.org
  2015-08-25  7:37 ` [Bug tree-optimization/67349] [5 regression] " trippels at gcc dot gnu.org
  2015-08-25  7:41 ` trippels at gcc dot gnu.org
  2 siblings, 0 replies; 4+ messages in thread
From: miyuki at gcc dot gnu.org @ 2015-08-25  7:28 UTC (permalink / raw)
  To: gcc-bugs

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

Mikhail Maltsev <miyuki at gcc dot gnu.org> changed:

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

--- Comment #1 from Mikhail Maltsev <miyuki at gcc dot gnu.org> ---
I cannot reproduce this with current trunk (h8300 cross), but earlier revisions
(including 5.2 release) do crash even on x86_64. I suppose this is the same
bug: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67055#c9

Please provide the output of "h8300-unknown-linux-gcc -v".


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

* [Bug tree-optimization/67349] [5 regression] ICE on optimization
  2015-08-25  6:27 [Bug target/67349] New: ICE on optimization ysato at users dot sourceforge.jp
  2015-08-25  7:28 ` [Bug target/67349] " miyuki at gcc dot gnu.org
@ 2015-08-25  7:37 ` trippels at gcc dot gnu.org
  2015-08-25  7:41 ` trippels at gcc dot gnu.org
  2 siblings, 0 replies; 4+ messages in thread
From: trippels at gcc dot gnu.org @ 2015-08-25  7:37 UTC (permalink / raw)
  To: gcc-bugs

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

Markus Trippelsdorf <trippels at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Target|h8300                       |
             Status|UNCONFIRMED                 |NEW
   Last reconfirmed|                            |2015-08-25
                 CC|                            |trippels at gcc dot gnu.org
          Component|target                      |tree-optimization
            Summary|ICE on optimization         |[5 regression] ICE on
                   |                            |optimization
     Ever confirmed|0                           |1

--- Comment #2 from Markus Trippelsdorf <trippels at gcc dot gnu.org> ---
Trunk and gcc-4.9 are fine.

trippels@gcc2-power8 ~ % cat syn.i
struct list_head
{
  struct list_head *prev;
};
extern void __wait_rcu_gp (void*);
const int a = sizeof 0;
static inline __attribute__ ((always_inline no_instrument_function)) void
rcu_barrier_sched (void)
{
  struct list_head b[a];
  __wait_rcu_gp (b);
}

static inline __attribute__ ((always_inline no_instrument_function)) void
rcu_barrier (void)
{
  rcu_barrier_sched ();
}

struct
{
  void *wait;
} c[] = { rcu_barrier, rcu_barrier_sched };

trippels@gcc2-power8 ~ % /home/trippels/gcc_5/usr/local/bin/gcc -c -O2 syn.i
syn.i: In function ‘rcu_barrier_sched’:
syn.i:8:1: internal compiler error: Segmentation fault
 rcu_barrier_sched (void)
 ^
0x107e9053 crash_signal
        ../../gcc/gcc/toplev.c:383
0x10937a64 tree_check
        ../../gcc/gcc/tree.h:2850
0x10937a64 fold_builtin_alloca_with_align
        ../../gcc/gcc/tree-ssa-ccp.c:2067
0x10937a64 ccp_fold_stmt
        ../../gcc/gcc/tree-ssa-ccp.c:2172
0x109d85a3
substitute_and_fold_dom_walker::before_dom_children(basic_block_def*)
        ../../gcc/gcc/tree-ssa-propagate.c:1177
0x10dd228b dom_walker::walk(basic_block_def*)
        ../../gcc/gcc/domwalk.c:188
0x109d7993 substitute_and_fold(tree_node* (*)(tree_node*), bool
(*)(gimple_stmt_iterator*), bool)
        ../../gcc/gcc/tree-ssa-propagate.c:1272
0x1092f0eb ccp_finalize
        ../../gcc/gcc/tree-ssa-ccp.c:941
0x1092f0eb do_ssa_ccp
        ../../gcc/gcc/tree-ssa-ccp.c:2382
0x1092f0eb execute
        ../../gcc/gcc/tree-ssa-ccp.c:2414
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.
>From gcc-bugs-return-495574-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Aug 25 07:40:24 2015
Return-Path: <gcc-bugs-return-495574-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 91030 invoked by alias); 25 Aug 2015 07:40:23 -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 90976 invoked by uid 48); 25 Aug 2015 07:40:20 -0000
From: "ysato at users dot sourceforge.jp" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug tree-optimization/67349] [5 regression] ICE on optimization
Date: Tue, 25 Aug 2015 07:40:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: tree-optimization
X-Bugzilla-Version: 6.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: ysato at users dot sourceforge.jp
X-Bugzilla-Status: NEW
X-Bugzilla-Resolution:
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:
Message-ID: <bug-67349-4-C1A7OXEfSH@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-67349-4@http.gcc.gnu.org/bugzilla/>
References: <bug-67349-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-08/txt/msg01716.txt.bz2
Content-length: 221

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

--- Comment #3 from Yoshinori Sato <ysato at users dot sourceforge.jp> ---
I tested
gcc version 6.0.0 20150710 (experimental) (GCC)

I'll trying latest trunk.

Thanks,


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

* [Bug tree-optimization/67349] [5 regression] ICE on optimization
  2015-08-25  6:27 [Bug target/67349] New: ICE on optimization ysato at users dot sourceforge.jp
  2015-08-25  7:28 ` [Bug target/67349] " miyuki at gcc dot gnu.org
  2015-08-25  7:37 ` [Bug tree-optimization/67349] [5 regression] " trippels at gcc dot gnu.org
@ 2015-08-25  7:41 ` trippels at gcc dot gnu.org
  2 siblings, 0 replies; 4+ messages in thread
From: trippels at gcc dot gnu.org @ 2015-08-25  7:41 UTC (permalink / raw)
  To: gcc-bugs

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

Markus Trippelsdorf <trippels at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|---                         |DUPLICATE

--- Comment #4 from Markus Trippelsdorf <trippels at gcc dot gnu.org> ---
dup.

*** This bug has been marked as a duplicate of bug 67055 ***


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

end of thread, other threads:[~2015-08-25  7:41 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-08-25  6:27 [Bug target/67349] New: ICE on optimization ysato at users dot sourceforge.jp
2015-08-25  7:28 ` [Bug target/67349] " miyuki at gcc dot gnu.org
2015-08-25  7:37 ` [Bug tree-optimization/67349] [5 regression] " trippels at gcc dot gnu.org
2015-08-25  7:41 ` trippels 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).