public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug lto/41159] [LTO] ICE in insert_value_copy_on_edge, at tree-outof-ssa.c:225
       [not found] <bug-41159-4@http.gcc.gnu.org/bugzilla/>
@ 2010-12-10 13:10 ` ixt at nm dot ru
  2011-04-14 21:57 ` bpringlemeir at gmail dot com
                   ` (18 subsequent siblings)
  19 siblings, 0 replies; 27+ messages in thread
From: ixt at nm dot ru @ 2010-12-10 13:10 UTC (permalink / raw)
  To: gcc-bugs

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

Sergey Gusarov <ixt at nm dot ru> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |ixt at nm dot ru

--- Comment #8 from Sergey Gusarov <ixt at nm dot ru> 2010-12-10 13:09:33 UTC ---
Reproduced with gcc 4.5.1 arm-eabi crosscompiler


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

* [Bug lto/41159] [LTO] ICE in insert_value_copy_on_edge, at tree-outof-ssa.c:225
       [not found] <bug-41159-4@http.gcc.gnu.org/bugzilla/>
  2010-12-10 13:10 ` [Bug lto/41159] [LTO] ICE in insert_value_copy_on_edge, at tree-outof-ssa.c:225 ixt at nm dot ru
@ 2011-04-14 21:57 ` bpringlemeir at gmail dot com
  2011-04-14 22:00 ` bpringlemeir at gmail dot com
                   ` (17 subsequent siblings)
  19 siblings, 0 replies; 27+ messages in thread
From: bpringlemeir at gmail dot com @ 2011-04-14 21:57 UTC (permalink / raw)
  To: gcc-bugs

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

Bill Pringlemeir <bpringlemeir at gmail dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |bpringlemeir at gmail dot
                   |                            |com

--- Comment #9 from Bill Pringlemeir <bpringlemeir at gmail dot com> 2011-04-14 21:57:23 UTC ---
I believe I also have this occurring with host=x86_64-linux
target=arm-linux-gnueabi.  After reading this ticket, I retried my compiles
with the same link and compile optimization level and it succeeds. 

I understand that you want gcc to support different option levels for both
compile and link.  However, I don't know that most people want this and I am
not use to passing the linker options; a diagnostic for ld/gold plug-in when
there is an optimization mismatch may be helpful?  Is that a possibility for
4.5.x and 4.6.x releases?


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

* [Bug lto/41159] [LTO] ICE in insert_value_copy_on_edge, at tree-outof-ssa.c:225
       [not found] <bug-41159-4@http.gcc.gnu.org/bugzilla/>
  2010-12-10 13:10 ` [Bug lto/41159] [LTO] ICE in insert_value_copy_on_edge, at tree-outof-ssa.c:225 ixt at nm dot ru
  2011-04-14 21:57 ` bpringlemeir at gmail dot com
@ 2011-04-14 22:00 ` bpringlemeir at gmail dot com
  2011-04-15 10:33 ` rguenth at gcc dot gnu.org
                   ` (16 subsequent siblings)
  19 siblings, 0 replies; 27+ messages in thread
From: bpringlemeir at gmail dot com @ 2011-04-14 22:00 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #10 from Bill Pringlemeir <bpringlemeir at gmail dot com> 2011-04-14 22:00:18 UTC ---
(In reply to comment #9)
> .. I am not use to passing the linker options

err ... optimization options.


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

* [Bug lto/41159] [LTO] ICE in insert_value_copy_on_edge, at tree-outof-ssa.c:225
       [not found] <bug-41159-4@http.gcc.gnu.org/bugzilla/>
                   ` (2 preceding siblings ...)
  2011-04-14 22:00 ` bpringlemeir at gmail dot com
@ 2011-04-15 10:33 ` rguenth at gcc dot gnu.org
  2011-08-02 15:23 ` mh+gcc at glandium dot org
                   ` (15 subsequent siblings)
  19 siblings, 0 replies; 27+ messages in thread
From: rguenth at gcc dot gnu.org @ 2011-04-15 10:33 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #11 from Richard Guenther <rguenth at gcc dot gnu.org> 2011-04-15 10:33:03 UTC ---
(In reply to comment #9)
> I believe I also have this occurring with host=x86_64-linux
> target=arm-linux-gnueabi.  After reading this ticket, I retried my compiles
> with the same link and compile optimization level and it succeeds. 
> 
> I understand that you want gcc to support different option levels for both
> compile and link.  However, I don't know that most people want this and I am
> not use to passing the linker options; a diagnostic for ld/gold plug-in when
> there is an optimization mismatch may be helpful?  Is that a possibility for
> 4.5.x and 4.6.x releases?

It's not easy, otherwise we'd have done this already ;)


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

* [Bug lto/41159] [LTO] ICE in insert_value_copy_on_edge, at tree-outof-ssa.c:225
       [not found] <bug-41159-4@http.gcc.gnu.org/bugzilla/>
                   ` (3 preceding siblings ...)
  2011-04-15 10:33 ` rguenth at gcc dot gnu.org
@ 2011-08-02 15:23 ` mh+gcc at glandium dot org
  2011-12-14 23:47 ` pinskia at gcc dot gnu.org
                   ` (14 subsequent siblings)
  19 siblings, 0 replies; 27+ messages in thread
From: mh+gcc at glandium dot org @ 2011-08-02 15:23 UTC (permalink / raw)
  To: gcc-bugs

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

Mike Hommey <mh+gcc at glandium dot org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |mh+gcc at glandium dot org

--- Comment #12 from Mike Hommey <mh+gcc at glandium dot org> 2011-08-02 15:22:20 UTC ---
I get something that might be the same thing with gcc 4.6.1 and gold 2.21.53
with -flto when building the mozilla codebase with a custom android NDK. The
line number is different, though:
internal compiler error: in insert_value_copy_on_edge, at tree-outof-ssa.c:242


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

* [Bug lto/41159] [LTO] ICE in insert_value_copy_on_edge, at tree-outof-ssa.c:225
       [not found] <bug-41159-4@http.gcc.gnu.org/bugzilla/>
                   ` (4 preceding siblings ...)
  2011-08-02 15:23 ` mh+gcc at glandium dot org
@ 2011-12-14 23:47 ` pinskia at gcc dot gnu.org
  2011-12-14 23:47 ` pinskia at gcc dot gnu.org
                   ` (13 subsequent siblings)
  19 siblings, 0 replies; 27+ messages in thread
From: pinskia at gcc dot gnu.org @ 2011-12-14 23:47 UTC (permalink / raw)
  To: gcc-bugs

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

Andrew Pinski <pinskia at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |howarth at nitro dot
                   |                            |med.uc.edu

--- Comment #14 from Andrew Pinski <pinskia at gcc dot gnu.org> 2011-12-14 23:42:54 UTC ---
*** Bug 45448 has been marked as a duplicate of this bug. ***


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

* [Bug lto/41159] [LTO] ICE in insert_value_copy_on_edge, at tree-outof-ssa.c:225
       [not found] <bug-41159-4@http.gcc.gnu.org/bugzilla/>
                   ` (5 preceding siblings ...)
  2011-12-14 23:47 ` pinskia at gcc dot gnu.org
@ 2011-12-14 23:47 ` pinskia at gcc dot gnu.org
  2011-12-14 23:48 ` pinskia at gcc dot gnu.org
                   ` (12 subsequent siblings)
  19 siblings, 0 replies; 27+ messages in thread
From: pinskia at gcc dot gnu.org @ 2011-12-14 23:47 UTC (permalink / raw)
  To: gcc-bugs

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

Andrew Pinski <pinskia at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |tommino at online dot de

--- Comment #13 from Andrew Pinski <pinskia at gcc dot gnu.org> 2011-12-14 23:42:37 UTC ---
*** Bug 48516 has been marked as a duplicate of this bug. ***


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

* [Bug lto/41159] [LTO] ICE in insert_value_copy_on_edge, at tree-outof-ssa.c:225
       [not found] <bug-41159-4@http.gcc.gnu.org/bugzilla/>
                   ` (6 preceding siblings ...)
  2011-12-14 23:47 ` pinskia at gcc dot gnu.org
@ 2011-12-14 23:48 ` pinskia at gcc dot gnu.org
  2011-12-15 10:19 ` rguenth at gcc dot gnu.org
                   ` (11 subsequent siblings)
  19 siblings, 0 replies; 27+ messages in thread
From: pinskia at gcc dot gnu.org @ 2011-12-14 23:48 UTC (permalink / raw)
  To: gcc-bugs

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

Andrew Pinski <pinskia at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |mikulas at artax dot
                   |                            |karlin.mff.cuni.cz

--- Comment #15 from Andrew Pinski <pinskia at gcc dot gnu.org> 2011-12-14 23:43:13 UTC ---
*** Bug 51300 has been marked as a duplicate of this bug. ***


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

* [Bug lto/41159] [LTO] ICE in insert_value_copy_on_edge, at tree-outof-ssa.c:225
       [not found] <bug-41159-4@http.gcc.gnu.org/bugzilla/>
                   ` (7 preceding siblings ...)
  2011-12-14 23:48 ` pinskia at gcc dot gnu.org
@ 2011-12-15 10:19 ` rguenth at gcc dot gnu.org
  2011-12-15 14:06 ` ubizjak at gmail dot com
                   ` (10 subsequent siblings)
  19 siblings, 0 replies; 27+ messages in thread
From: rguenth at gcc dot gnu.org @ 2011-12-15 10:19 UTC (permalink / raw)
  To: gcc-bugs

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

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

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

--- Comment #16 from Richard Guenther <rguenth at gcc dot gnu.org> 2011-12-15 10:10:37 UTC ---
It's tedious to look at this without a testcase that triggers on native
x86_64.  My usual simple crosses do not work with LTO as I need a target
assembler and linker.

So - someone with access to an affected target please debug this.


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

* [Bug lto/41159] [LTO] ICE in insert_value_copy_on_edge, at tree-outof-ssa.c:225
       [not found] <bug-41159-4@http.gcc.gnu.org/bugzilla/>
                   ` (8 preceding siblings ...)
  2011-12-15 10:19 ` rguenth at gcc dot gnu.org
@ 2011-12-15 14:06 ` ubizjak at gmail dot com
  2011-12-15 14:16 ` ubizjak at gmail dot com
                   ` (9 subsequent siblings)
  19 siblings, 0 replies; 27+ messages in thread
From: ubizjak at gmail dot com @ 2011-12-15 14:06 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #17 from Uros Bizjak <ubizjak at gmail dot com> 2011-12-15 14:01:56 UTC ---
(In reply to comment #16)
> It's tedious to look at this without a testcase that triggers on native
> x86_64.  My usual simple crosses do not work with LTO as I need a target
> assembler and linker.
> 
> So - someone with access to an affected target please debug this.

I have managed to trigger this bug on x86_64-linux-gnu cross to
alpha-linux-gnu.

Please follow these steps:

1) compile and install binutils for alpha-linux-gnu.
2) configure crosscompiler with:
~/gcc-svn/trunk/configure --target=alpha-linux-gnu --enable-languages=c
3) make (and wait until the compilation crashes)

4) Go into gcc/testsuite/gcc.dg/lto directory

5) ~/gcc-build-alpha/gcc/xgcc -B ~/gcc-build-alpha/gcc -O1 -flto
-flto-partition=1to1 -fPIC  -c -o c_lto_20090116_0.o 20090116_0.c

6) ~/gcc-build-alpha/gcc/lto1 c_lto_20090116_0.o

In file included from :0:0:
20090116_0.c: In function ‘foo’:
20090116_0.c:6:5: internal compiler error: in insert_value_copy_on_edge, at
tree-outof-ssa.c:242
Please submit a full bug report,
with preprocessed source if appropriate.
See <http://gcc.gnu.org/bugs.html> for instructions.
lto-wrapper: /home/uros/gcc-build-alpha/gcc/xgcc returned 1 exit status
collect2: error: lto-wrapper returned 1 exit status

7) gdb --args ~/gcc-build-alpha/gcc/lto1 c_lto_20090116_0.o

(gdb) break fancy_abort 
Breakpoint 1 at 0xadc540: file /home/uros/gcc-svn/trunk/gcc/diagnostic.c, line
898.
(gdb) r
Starting program: /home/uros/gcc-build-alpha/gcc/lto1 -O0 c_lto_20090116_0.o
warning: no loadable sections found in added symbol-file system-supplied DSO at
0x2aaaaaaab000
Reading object files: c_lto_20090116_0.o
Reading the callgraph
Merging declarations
Reading summaries
Reading function bodies: foo
Performing interprocedural optimizations
 <whole-program>Assembling functions:
 foo
Breakpoint 1, fancy_abort (file=0xb92430
"/home/uros/gcc-svn/trunk/gcc/tree-outof-ssa.c", line=242, 
    function=0xb92920 "insert_value_copy_on_edge") at
/home/uros/gcc-svn/trunk/gcc/diagnostic.c:898
898     {
(gdb) bt
#0  fancy_abort (file=0xb92430 "/home/uros/gcc-svn/trunk/gcc/tree-outof-ssa.c",
line=242, 
    function=0xb92920 "insert_value_copy_on_edge") at
/home/uros/gcc-svn/trunk/gcc/diagnostic.c:898
#1  0x000000000081c3ab in insert_value_copy_on_edge (e=<value optimized out>,
g=0xf94080)
    at /home/uros/gcc-svn/trunk/gcc/tree-outof-ssa.c:242
#2  eliminate_phi (e=<value optimized out>, g=0xf94080) at
/home/uros/gcc-svn/trunk/gcc/tree-outof-ssa.c:705
#3  0x000000000081c7e2 in expand_phi_nodes (sa=<value optimized out>)
    at /home/uros/gcc-svn/trunk/gcc/tree-outof-ssa.c:867
#4  0x00000000004d73f4 in gimple_expand_cfg () at
/home/uros/gcc-svn/trunk/gcc/cfgexpand.c:4518
#5  0x0000000000707459 in execute_one_pass (pass=0xeae160) at
/home/uros/gcc-svn/trunk/gcc/passes.c:2079
#6  0x00000000007077c5 in execute_pass_list (pass=0xeae160) at
/home/uros/gcc-svn/trunk/gcc/passes.c:2134
#7  0x00000000008191c8 in tree_rest_of_compilation (fndecl=0x2aaaae82d800)
    at /home/uros/gcc-svn/trunk/gcc/tree-optimize.c:421
#8  0x00000000004f51ba in cgraph_expand_function (node=0x2aaaae832000)
    at /home/uros/gcc-svn/trunk/gcc/cgraphunit.c:1818
#9  0x00000000004f8b6b in cgraph_output_in_order () at
/home/uros/gcc-svn/trunk/gcc/cgraphunit.c:1983
#10 cgraph_optimize () at /home/uros/gcc-svn/trunk/gcc/cgraphunit.c:2193
#11 0x000000000047f4e9 in lto_main () at
/home/uros/gcc-svn/trunk/gcc/lto/lto.c:2931
#12 0x00000000007a99ec in compile_file (argc=3, argv=0x7fffffffb8e8)
    at /home/uros/gcc-svn/trunk/gcc/toplev.c:557
#13 do_compile (argc=3, argv=0x7fffffffb8e8) at
/home/uros/gcc-svn/trunk/gcc/toplev.c:1928
#14 toplev_main (argc=3, argv=0x7fffffffb8e8) at
/home/uros/gcc-svn/trunk/gcc/toplev.c:2004
#15 0x0000003f90c1d994 in __libc_start_main () from /lib64/libc.so.6
#16 0x000000000045dee9 in _start ()

I will also attach c_lto_20090116_0.o.


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

* [Bug lto/41159] [LTO] ICE in insert_value_copy_on_edge, at tree-outof-ssa.c:225
       [not found] <bug-41159-4@http.gcc.gnu.org/bugzilla/>
                   ` (9 preceding siblings ...)
  2011-12-15 14:06 ` ubizjak at gmail dot com
@ 2011-12-15 14:16 ` ubizjak at gmail dot com
  2011-12-20 11:02 ` rguenth at gcc dot gnu.org
                   ` (8 subsequent siblings)
  19 siblings, 0 replies; 27+ messages in thread
From: ubizjak at gmail dot com @ 2011-12-15 14:16 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #18 from Uros Bizjak <ubizjak at gmail dot com> 2011-12-15 14:04:56 UTC ---
Created attachment 26102
  --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=26102
intermediate object file for alpha-linux-gnu target

Attached object fails with lto crosscompiler to alpha-gnu-linux:

~/gcc-build-alpha/gcc/lto1 -O0 c_lto_20090116_0.o 
Reading object files: c_lto_20090116_0.o
Reading the callgraph
Merging declarations
Reading summaries
Reading function bodies: foo
Performing interprocedural optimizations
 <whole-program>Assembling functions:
 foo
In file included from :0:0:
20090116_0.c: In function ‘foo’:
20090116_0.c:6:5: internal compiler error: in insert_value_copy_on_edge, at
tree-outof-ssa.c:242
Please submit a full bug report,
with preprocessed source if appropriate.
See <http://gcc.gnu.org/bugs.html> for instructions.


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

* [Bug lto/41159] [LTO] ICE in insert_value_copy_on_edge, at tree-outof-ssa.c:225
       [not found] <bug-41159-4@http.gcc.gnu.org/bugzilla/>
                   ` (10 preceding siblings ...)
  2011-12-15 14:16 ` ubizjak at gmail dot com
@ 2011-12-20 11:02 ` rguenth at gcc dot gnu.org
  2011-12-20 11:04 ` rguenth at gcc dot gnu.org
                   ` (7 subsequent siblings)
  19 siblings, 0 replies; 27+ messages in thread
From: rguenth at gcc dot gnu.org @ 2011-12-20 11:02 UTC (permalink / raw)
  To: gcc-bugs

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |ASSIGNED
         AssignedTo|unassigned at gcc dot       |rguenth at gcc dot gnu.org
                   |gnu.org                     |

--- Comment #19 from Richard Guenther <rguenth at gcc dot gnu.org> 2011-12-20 10:58:47 UTC ---
Mine.  The issue is that we are on a PROMOTE_MODE target and with !optimize
expand SSA names to stack slots:

  var = SSA_NAME_VAR (partition_to_var (SA.map, dest));
  src_mode = TYPE_MODE (TREE_TYPE (src));
  dest_mode = promote_decl_mode (var, &unsignedp);
  gcc_assert (src_mode == TYPE_MODE (TREE_TYPE (var)));
  gcc_assert (dest_mode == GET_MODE (SA.partition_to_pseudo[dest]));

(gdb) call debug_tree (var)
 <var_decl 0x7ffff5a2b320 i
    type <integer_type 0x7ffff5a2e5e8 int public SI
...
(gdb) p SA.partition_to_pseudo[dest]
$2 = (rtx) 0x7ffff5ad4c78
(gdb) call debug_rtx ($2)
(mem/c/i:SI (plus:DI (reg/f:DI 65 virtual-stack-vars)
        (const_int 4 [0x4])) [0 i+0 S4 A32])
(gdb) p dest_mode
$1 = DImode

but we cannot deal with stack temporaries.  I have a patch.


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

* [Bug lto/41159] [LTO] ICE in insert_value_copy_on_edge, at tree-outof-ssa.c:225
       [not found] <bug-41159-4@http.gcc.gnu.org/bugzilla/>
                   ` (11 preceding siblings ...)
  2011-12-20 11:02 ` rguenth at gcc dot gnu.org
@ 2011-12-20 11:04 ` rguenth at gcc dot gnu.org
  2011-12-20 12:31 ` rmansfield at qnx dot com
                   ` (6 subsequent siblings)
  19 siblings, 0 replies; 27+ messages in thread
From: rguenth at gcc dot gnu.org @ 2011-12-20 11:04 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #20 from Richard Guenther <rguenth at gcc dot gnu.org> 2011-12-20 11:01:37 UTC ---
Created attachment 26151
  --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=26151
patch

I'm testing this patch on x86_64-linux, but it won't make any difference there.
So can you guys test on arm/alpha please and report back?  Thx.


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

* [Bug lto/41159] [LTO] ICE in insert_value_copy_on_edge, at tree-outof-ssa.c:225
       [not found] <bug-41159-4@http.gcc.gnu.org/bugzilla/>
                   ` (12 preceding siblings ...)
  2011-12-20 11:04 ` rguenth at gcc dot gnu.org
@ 2011-12-20 12:31 ` rmansfield at qnx dot com
  2011-12-21  7:54 ` ubizjak at gmail dot com
                   ` (5 subsequent siblings)
  19 siblings, 0 replies; 27+ messages in thread
From: rmansfield at qnx dot com @ 2011-12-20 12:31 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #21 from Ryan Mansfield <rmansfield at qnx dot com> 2011-12-20 12:27:29 UTC ---
(In reply to comment #20) 
> I'm testing this patch on x86_64-linux, but it won't make any difference there.
> So can you guys test on arm/alpha please and report back?  Thx.

For arm eabi, using rev182526 the ICE still happens on my original testcase but
after applying your patch the ICE no longer happens. Thanks!


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

* [Bug lto/41159] [LTO] ICE in insert_value_copy_on_edge, at tree-outof-ssa.c:225
       [not found] <bug-41159-4@http.gcc.gnu.org/bugzilla/>
                   ` (13 preceding siblings ...)
  2011-12-20 12:31 ` rmansfield at qnx dot com
@ 2011-12-21  7:54 ` ubizjak at gmail dot com
  2011-12-21  9:24 ` rguenth at gcc dot gnu.org
                   ` (4 subsequent siblings)
  19 siblings, 0 replies; 27+ messages in thread
From: ubizjak at gmail dot com @ 2011-12-21  7:54 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #22 from Uros Bizjak <ubizjak at gmail dot com> 2011-12-21 07:21:38 UTC ---
Hardly to believe, but alpha finished --with-build-config=bootstrap-lto build,
with lto crippled by the following patch:

Index: lto-wrapper.c
===================================================================
--- lto-wrapper.c       (revision 182526)
+++ lto-wrapper.c       (working copy)
@@ -581,7 +581,7 @@ run_gcc (unsigned argc, char *argv[])
       switch (option->opt_index)
        {
        case OPT_o:
-         linker_output = option->arg;
+         /* linker_output = option->arg; */
          /* We generate new intermediate output, drop this arg.  */
          continue;

The results of this experiment are at [1].

The failing testcase works as well, so the patch certainly fixes the bug and
doesn't introduce any problems.

(I can take care for backport of the patch to 4.6 and 4.5 branches).

[1] http://gcc.gnu.org/ml/gcc-testresults/2011-12/msg02168.html


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

* [Bug lto/41159] [LTO] ICE in insert_value_copy_on_edge, at tree-outof-ssa.c:225
       [not found] <bug-41159-4@http.gcc.gnu.org/bugzilla/>
                   ` (14 preceding siblings ...)
  2011-12-21  7:54 ` ubizjak at gmail dot com
@ 2011-12-21  9:24 ` rguenth at gcc dot gnu.org
  2011-12-21  9:29 ` rguenth at gcc dot gnu.org
                   ` (3 subsequent siblings)
  19 siblings, 0 replies; 27+ messages in thread
From: rguenth at gcc dot gnu.org @ 2011-12-21  9:24 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #23 from Richard Guenther <rguenth at gcc dot gnu.org> 2011-12-21 09:23:03 UTC ---
Author: rguenth
Date: Wed Dec 21 09:22:58 2011
New Revision: 182570

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=182570
Log:
2011-12-21  Richard Guenther  <rguenther@suse.de>

    PR lto/41159
    * tree-outof-ssa.c (insert_value_copy_on_edge): Use the
    mode of the pseudo as destination mode.  Only assert that
    is equal to the promoted mode of the decl if it is a REG.

Modified:
    trunk/gcc/ChangeLog
    trunk/gcc/tree-outof-ssa.c


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

* [Bug lto/41159] [LTO] ICE in insert_value_copy_on_edge, at tree-outof-ssa.c:225
       [not found] <bug-41159-4@http.gcc.gnu.org/bugzilla/>
                   ` (15 preceding siblings ...)
  2011-12-21  9:24 ` rguenth at gcc dot gnu.org
@ 2011-12-21  9:29 ` rguenth at gcc dot gnu.org
  2011-12-21 12:44 ` uros at gcc dot gnu.org
                   ` (2 subsequent siblings)
  19 siblings, 0 replies; 27+ messages in thread
From: rguenth at gcc dot gnu.org @ 2011-12-21  9:29 UTC (permalink / raw)
  To: gcc-bugs

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
      Known to work|                            |4.7.0

--- Comment #24 from Richard Guenther <rguenth at gcc dot gnu.org> 2011-12-21 09:24:05 UTC ---
Fixed on trunk, probably worth backporting to the 4.6 branch at least (it
should be safe as it only really adjusts an assertion and code if the assert
previously hit).


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

* [Bug lto/41159] [LTO] ICE in insert_value_copy_on_edge, at tree-outof-ssa.c:225
       [not found] <bug-41159-4@http.gcc.gnu.org/bugzilla/>
                   ` (16 preceding siblings ...)
  2011-12-21  9:29 ` rguenth at gcc dot gnu.org
@ 2011-12-21 12:44 ` uros at gcc dot gnu.org
  2011-12-21 17:27 ` uros at gcc dot gnu.org
  2011-12-21 18:31 ` ubizjak at gmail dot com
  19 siblings, 0 replies; 27+ messages in thread
From: uros at gcc dot gnu.org @ 2011-12-21 12:44 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #25 from uros at gcc dot gnu.org 2011-12-21 12:26:17 UTC ---
Author: uros
Date: Wed Dec 21 12:26:04 2011
New Revision: 182580

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=182580
Log:
    Backport from mainline
    2011-12-21  Richard Guenther  <rguenther@suse.de>

    PR lto/41159
    * tree-outof-ssa.c (insert_value_copy_on_edge): Use the
    mode of the pseudo as destination mode.  Only assert that
    is equal to the promoted mode of the decl if it is a REG.


Modified:
    branches/gcc-4_6-branch/gcc/ChangeLog
    branches/gcc-4_6-branch/gcc/tree-outof-ssa.c


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

* [Bug lto/41159] [LTO] ICE in insert_value_copy_on_edge, at tree-outof-ssa.c:225
       [not found] <bug-41159-4@http.gcc.gnu.org/bugzilla/>
                   ` (17 preceding siblings ...)
  2011-12-21 12:44 ` uros at gcc dot gnu.org
@ 2011-12-21 17:27 ` uros at gcc dot gnu.org
  2011-12-21 18:31 ` ubizjak at gmail dot com
  19 siblings, 0 replies; 27+ messages in thread
From: uros at gcc dot gnu.org @ 2011-12-21 17:27 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #26 from uros at gcc dot gnu.org 2011-12-21 17:23:44 UTC ---
Author: uros
Date: Wed Dec 21 17:23:33 2011
New Revision: 182597

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=182597
Log:
    Backport from mainline
    2011-12-21  Richard Guenther  <rguenther@suse.de>

    PR lto/41159
    * tree-outof-ssa.c (insert_value_copy_on_edge): Use the
    mode of the pseudo as destination mode.  Only assert that
    is equal to the promoted mode of the decl if it is a REG.


Modified:
    branches/gcc-4_5-branch/gcc/ChangeLog
    branches/gcc-4_5-branch/gcc/tree-outof-ssa.c


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

* [Bug lto/41159] [LTO] ICE in insert_value_copy_on_edge, at tree-outof-ssa.c:225
       [not found] <bug-41159-4@http.gcc.gnu.org/bugzilla/>
                   ` (18 preceding siblings ...)
  2011-12-21 17:27 ` uros at gcc dot gnu.org
@ 2011-12-21 18:31 ` ubizjak at gmail dot com
  19 siblings, 0 replies; 27+ messages in thread
From: ubizjak at gmail dot com @ 2011-12-21 18:31 UTC (permalink / raw)
  To: gcc-bugs

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

Uros Bizjak <ubizjak at gmail dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|ASSIGNED                    |RESOLVED
                URL|                            |http://gcc.gnu.org/ml/gcc-p
                   |                            |atches/2011-12/msg01504.htm
                   |                            |l
      Known to work|4.7.0                       |
         Resolution|                            |FIXED
   Target Milestone|---                         |4.5.4

--- Comment #27 from Uros Bizjak <ubizjak at gmail dot com> 2011-12-21 18:28:38 UTC ---
Fixed everywhere.


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

* [Bug lto/41159] [LTO] ICE in insert_value_copy_on_edge, at tree-outof-ssa.c:225
  2009-08-24 19:28 [Bug lto/41159] New: " rmansfield at qnx dot com
                   ` (5 preceding siblings ...)
  2009-10-19 23:52 ` pinskia at gcc dot gnu dot org
@ 2010-04-23 15:51 ` rguenth at gcc dot gnu dot org
  6 siblings, 0 replies; 27+ messages in thread
From: rguenth at gcc dot gnu dot org @ 2010-04-23 15:51 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #7 from rguenth at gcc dot gnu dot org  2010-04-23 15:51 -------
*** Bug 42341 has been marked as a duplicate of this bug. ***


-- 

rguenth at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |ubizjak at gmail dot com


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


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

* [Bug lto/41159] [LTO] ICE in insert_value_copy_on_edge, at tree-outof-ssa.c:225
  2009-08-24 19:28 [Bug lto/41159] New: " rmansfield at qnx dot com
                   ` (4 preceding siblings ...)
  2009-10-10 20:55 ` danglin at gcc dot gnu dot org
@ 2009-10-19 23:52 ` pinskia at gcc dot gnu dot org
  2010-04-23 15:51 ` rguenth at gcc dot gnu dot org
  6 siblings, 0 replies; 27+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2009-10-19 23:52 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #6 from pinskia at gcc dot gnu dot org  2009-10-19 23:52 -------
I get a similar issue on powerpc with -O3 used on the object file and then -O0
used for the final link.  Though the simple example does not show the issue on
PPC.


-- 


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


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

* [Bug lto/41159] [LTO] ICE in insert_value_copy_on_edge, at tree-outof-ssa.c:225
  2009-08-24 19:28 [Bug lto/41159] New: " rmansfield at qnx dot com
                   ` (3 preceding siblings ...)
  2009-10-04  8:16 ` ubizjak at gmail dot com
@ 2009-10-10 20:55 ` danglin at gcc dot gnu dot org
  2009-10-19 23:52 ` pinskia at gcc dot gnu dot org
  2010-04-23 15:51 ` rguenth at gcc dot gnu dot org
  6 siblings, 0 replies; 27+ messages in thread
From: danglin at gcc dot gnu dot org @ 2009-10-10 20:55 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #5 from danglin at gcc dot gnu dot org  2009-10-10 20:55 -------
This bug also affects hppa64-hp-hpux11.11.


-- 

danglin at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |danglin at gcc dot gnu dot
                   |                            |org


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


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

* [Bug lto/41159] [LTO] ICE in insert_value_copy_on_edge, at tree-outof-ssa.c:225
  2009-08-24 19:28 [Bug lto/41159] New: " rmansfield at qnx dot com
                   ` (2 preceding siblings ...)
  2009-10-04  8:06 ` ubizjak at gmail dot com
@ 2009-10-04  8:16 ` ubizjak at gmail dot com
  2009-10-10 20:55 ` danglin at gcc dot gnu dot org
                   ` (2 subsequent siblings)
  6 siblings, 0 replies; 27+ messages in thread
From: ubizjak at gmail dot com @ 2009-10-04  8:16 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #4 from ubizjak at gmail dot com  2009-10-04 08:15 -------
Confirmed on alpha with attached testcase:

~/gcc-build/gcc/xgcc -B ~/gcc-build/gcc/  -O1 -fwhopr -fPIC  -c pr41159.i

~/gcc-build/gcc/xgcc -B ~/gcc-build/gcc/ c_lto_20090116_0
.o  -O1 -fwhopr -fPIC -shared -O0 pr41159.o
In file included from :4:0:
pr41159.i: In function 'acos':
pr41159.i:660:9: internal compiler error: in insert_value_copy_on_edge, at
tree-outof-ssa.c:228
Please submit a full bug report,
with preprocessed source if appropriate.
See <http://gcc.gnu.org/bugs.html> for instructions.
lto1: fatal error: /home/uros/gcc-build/gcc/xgcc terminated with status 256
compilation terminated.
lto-wrapper: /home/uros/gcc-build/gcc/xgcc returned 1 exit status
collect2: lto-wrapper returned 1 exit status


-- 

ubizjak at gmail dot com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
     Ever Confirmed|0                           |1
   Last reconfirmed|0000-00-00 00:00:00         |2009-10-04 08:15:44
               date|                            |


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


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

* [Bug lto/41159] [LTO] ICE in insert_value_copy_on_edge, at tree-outof-ssa.c:225
  2009-08-24 19:28 [Bug lto/41159] New: " rmansfield at qnx dot com
  2009-08-24 19:34 ` [Bug lto/41159] " rmansfield at qnx dot com
  2009-10-03 22:14 ` rguenth at gcc dot gnu dot org
@ 2009-10-04  8:06 ` ubizjak at gmail dot com
  2009-10-04  8:16 ` ubizjak at gmail dot com
                   ` (3 subsequent siblings)
  6 siblings, 0 replies; 27+ messages in thread
From: ubizjak at gmail dot com @ 2009-10-04  8:06 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #3 from ubizjak at gmail dot com  2009-10-04 08:06 -------
I have hit what looks as the same problem on alpha for gcc.dg/lto/20090116_0.c:

int foo(void) {
 int ret, i;
 for (i = 0; i < 1; i++)
   ret = 0;
 for (i = 0; i < 1; i++)
   ret = 1;
 return ret;
}

~/gcc-build/gcc/xgcc -B ~/gcc-build/gcc/  -O1 -fwhopr -fPIC  -c  -o
c_lto_20090116_0.o 20090116_0.c

~/gcc-build/gcc/xgcc -B ~/gcc-build/gcc/ c_lto_20090116_0.o  -O1 -fwhopr -fPIC
-shared -O0 -o gcc-dg-lto-20090116-01
In file included from :0:0:
20090116_0.c: In function 'foo':
20090116_0.c:5:5: internal compiler error: in insert_value_copy_on_edge, at
tree-outof-ssa.c:228


-- 


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


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

* [Bug lto/41159] [LTO] ICE in insert_value_copy_on_edge, at tree-outof-ssa.c:225
  2009-08-24 19:28 [Bug lto/41159] New: " rmansfield at qnx dot com
  2009-08-24 19:34 ` [Bug lto/41159] " rmansfield at qnx dot com
@ 2009-10-03 22:14 ` rguenth at gcc dot gnu dot org
  2009-10-04  8:06 ` ubizjak at gmail dot com
                   ` (4 subsequent siblings)
  6 siblings, 0 replies; 27+ messages in thread
From: rguenth at gcc dot gnu dot org @ 2009-10-03 22:14 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #2 from rguenth at gcc dot gnu dot org  2009-10-03 22:14 -------
Needs re-confirming, I think this has been fixed.


-- 


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


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

* [Bug lto/41159] [LTO] ICE in insert_value_copy_on_edge, at tree-outof-ssa.c:225
  2009-08-24 19:28 [Bug lto/41159] New: " rmansfield at qnx dot com
@ 2009-08-24 19:34 ` rmansfield at qnx dot com
  2009-10-03 22:14 ` rguenth at gcc dot gnu dot org
                   ` (5 subsequent siblings)
  6 siblings, 0 replies; 27+ messages in thread
From: rmansfield at qnx dot com @ 2009-08-24 19:34 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #1 from rmansfield at qnx dot com  2009-08-24 19:34 -------
Created an attachment (id=18419)
 --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=18419&action=view)
preprocessed source


-- 


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


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

end of thread, other threads:[~2011-12-21 18:29 UTC | newest]

Thread overview: 27+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <bug-41159-4@http.gcc.gnu.org/bugzilla/>
2010-12-10 13:10 ` [Bug lto/41159] [LTO] ICE in insert_value_copy_on_edge, at tree-outof-ssa.c:225 ixt at nm dot ru
2011-04-14 21:57 ` bpringlemeir at gmail dot com
2011-04-14 22:00 ` bpringlemeir at gmail dot com
2011-04-15 10:33 ` rguenth at gcc dot gnu.org
2011-08-02 15:23 ` mh+gcc at glandium dot org
2011-12-14 23:47 ` pinskia at gcc dot gnu.org
2011-12-14 23:47 ` pinskia at gcc dot gnu.org
2011-12-14 23:48 ` pinskia at gcc dot gnu.org
2011-12-15 10:19 ` rguenth at gcc dot gnu.org
2011-12-15 14:06 ` ubizjak at gmail dot com
2011-12-15 14:16 ` ubizjak at gmail dot com
2011-12-20 11:02 ` rguenth at gcc dot gnu.org
2011-12-20 11:04 ` rguenth at gcc dot gnu.org
2011-12-20 12:31 ` rmansfield at qnx dot com
2011-12-21  7:54 ` ubizjak at gmail dot com
2011-12-21  9:24 ` rguenth at gcc dot gnu.org
2011-12-21  9:29 ` rguenth at gcc dot gnu.org
2011-12-21 12:44 ` uros at gcc dot gnu.org
2011-12-21 17:27 ` uros at gcc dot gnu.org
2011-12-21 18:31 ` ubizjak at gmail dot com
2009-08-24 19:28 [Bug lto/41159] New: " rmansfield at qnx dot com
2009-08-24 19:34 ` [Bug lto/41159] " rmansfield at qnx dot com
2009-10-03 22:14 ` rguenth at gcc dot gnu dot org
2009-10-04  8:06 ` ubizjak at gmail dot com
2009-10-04  8:16 ` ubizjak at gmail dot com
2009-10-10 20:55 ` danglin at gcc dot gnu dot org
2009-10-19 23:52 ` pinskia at gcc dot gnu dot org
2010-04-23 15:51 ` rguenth at gcc dot gnu dot 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).