public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug lto/45141]  New: lto1 ICEs when linking cns_solve again
@ 2010-07-30 10:42 howarth at nitro dot med dot uc dot edu
  2010-07-30 10:43 ` [Bug lto/45141] " howarth at nitro dot med dot uc dot edu
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: howarth at nitro dot med dot uc dot edu @ 2010-07-30 10:42 UTC (permalink / raw)
  To: gcc-bugs

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain, Size: 1927 bytes --]

Current gcc trunk (but not gcc 4.5.1) ICEs when linking cns_solve using -O2
-fwhopr -fwholeprogram. The reduced test case is attached and crashes as...

[MacPro:~/badlinkdir2] howarth% more README
[MacPro:~/badlinkdir2] howarth% gfortran -c -fdefault-integer-8 -w -O2 -fwhopr
-fwhole-program --save-temps array_reduced.f
[MacPro:~/badlinkdir2] howarth% gfortran -c -fdefault-integer-8 -w -O2 -fwhopr
-fwhole-program --save-temps cns_reduced.f
[MacPro:~/badlinkdir2] howarth% gfortran -c -fdefault-integer-8 -w -O2 -fwhopr
-fwhole-program --save-temps genic_reduced.f
[MacPro:~/badlinkdir2] howarth% gfortran -r -nostdlib -o
cns_solve-1007222053.exe array_reduced.o cns_reduced.o genic_reduced.o
-DINTEGER='long int' -DCNS_ARCH_TYPE_LINUX -fdefault-integer-8 -O2 -fwhopr
-fwhole-program -w
In file included from genic_reduced.f:602:0,
                 from genic_reduced.f:602,
                 from :3:
array_reduced.f: In function ‘find52_.constprop.0’:
array_reduced.f:34:0: internal compiler error: Segmentation fault
Please submit a full bug report,
with preprocessed source if appropriate.
See <http://gcc.gnu.org/bugs.html> for instructions.
lto-wrapper: gfortran returned 1 exit status
collect2: lto-wrapper returned 1 exit status

The lto1 ICE doesn't occur if the optimization is reduced to -O1 or if the
-fwhole-program flag is omitted.

This crash is distinct from the the resolved one from PR45037.


-- 
           Summary: lto1 ICEs when linking cns_solve again
           Product: gcc
           Version: 4.6.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: lto
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: howarth at nitro dot med dot uc dot edu
 GCC build triplet: x86_64-apple-darwin10
  GCC host triplet: x86_64-apple-darwin10
GCC target triplet: x86_64-apple-darwin10


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


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

* [Bug lto/45141] lto1 ICEs when linking cns_solve again
  2010-07-30 10:42 [Bug lto/45141] New: lto1 ICEs when linking cns_solve again howarth at nitro dot med dot uc dot edu
@ 2010-07-30 10:43 ` howarth at nitro dot med dot uc dot edu
  2010-07-30 10:47 ` howarth at nitro dot med dot uc dot edu
                   ` (2 subsequent siblings)
  3 siblings, 0 replies; 5+ messages in thread
From: howarth at nitro dot med dot uc dot edu @ 2010-07-30 10:43 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #1 from howarth at nitro dot med dot uc dot edu  2010-07-30 10:43 -------
Created an attachment (id=21358)
 --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=21358&action=view)
reduced testcase of lto1 crash when linking cns_solve.


-- 


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


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

* [Bug lto/45141] lto1 ICEs when linking cns_solve again
  2010-07-30 10:42 [Bug lto/45141] New: lto1 ICEs when linking cns_solve again howarth at nitro dot med dot uc dot edu
  2010-07-30 10:43 ` [Bug lto/45141] " howarth at nitro dot med dot uc dot edu
@ 2010-07-30 10:47 ` howarth at nitro dot med dot uc dot edu
  2010-07-30 11:01 ` rguenth at gcc dot gnu dot org
  2010-07-30 11:02 ` rguenth at gcc dot gnu dot org
  3 siblings, 0 replies; 5+ messages in thread
From: howarth at nitro dot med dot uc dot edu @ 2010-07-30 10:47 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #2 from howarth at nitro dot med dot uc dot edu  2010-07-30 10:47 -------
The ICE in lto1 backtraces as...

gdb /sw/lib/gcc4.6/libexec/gcc/x86_64-apple-darwin10.4.0/4.6.0/lto1


(gdb) r  -fPIC -feliminate-unused-debug-symbols -quiet -dumpdir ./ -dumpbase
cns_solve-1007222053.exe.ltrans2 -mmacosx-version-min=10.6.4 -mtune=generic
-auxbase-strip cns_solve-1007222053.exe.ltrans2.ltrans.o -g -O2 -w -version
-fdefault-integer-8 -fwhole-program -fltrans cns_solve-1007222053.exe.ltrans2.o
-o cns_solve-1007222053.exe.ltrans2.s
Starting program:
/sw/lib/gcc4.6/libexec/gcc/x86_64-apple-darwin10.4.0/4.6.0/lto1 -fPIC
-feliminate-unused-debug-symbols -quiet -dumpdir ./ -dumpbase
cns_solve-1007222053.exe.ltrans2 -mmacosx-version-min=10.6.4 -mtune=generic
-auxbase-strip cns_solve-1007222053.exe.ltrans2.ltrans.o -g -O2 -w -version
-fdefault-integer-8 -fwhole-program -fltrans cns_solve-1007222053.exe.ltrans2.o
-o cns_solve-1007222053.exe.ltrans2.s
Reading symbols for shared libraries .++++++++++++..... done
GNU GIMPLE (GCC) version 4.6.0 20100729 (experimental)
(x86_64-apple-darwin10.4.0)
        compiled by GNU C version 4.6.0 20100729 (experimental), GMP version
4.3.2, MPFR version 2.4.2-p3, MPC version 0.8.1
GGC heuristics: --param ggc-min-expand=30 --param ggc-min-heapsize=4096
GNU GIMPLE (GCC) version 4.6.0 20100729 (experimental)
(x86_64-apple-darwin10.4.0)
        compiled by GNU C version 4.6.0 20100729 (experimental), GMP version
4.3.2, MPFR version 2.4.2-p3, MPC version 0.8.1
GGC heuristics: --param ggc-min-expand=30 --param ggc-min-heapsize=4096

Program received signal EXC_BAD_ACCESS, Could not access memory.
Reason: KERN_INVALID_ADDRESS at address: 0x0000000000000000
expand_expr_real_1 (exp=0x1425365d8, target=0x0, tmode=VOIDmode,
modifier=EXPAND_NORMAL, alt_rtl=0x0) at ../../gcc-4.6-20100729/gcc/expr.c:8667
8667            if (INDIRECT_REF_P (base)
(gdb) bt
#0  expand_expr_real_1 (exp=0x1425365d8, target=0x0, tmode=VOIDmode,
modifier=EXPAND_NORMAL, alt_rtl=0x0) at ../../gcc-4.6-20100729/gcc/expr.c:8667
#1  0x000000010033c82f in expand_expr_real (exp=0x1425365d8, target=<value
temporarily unavailable, due to optimizations>, tmode=<value temporarily
unavailable, due to optimizations>, modifier=<value temporarily unavailable,
due to optimizations>, alt_rtl=<value temporarily unavailable, due to
optimizations>) at ../../gcc-4.6-20100729/gcc/expr.c:7231
#2  0x0000000100337266 in expand_expr_real_1 (exp=0x142530d68, target=0x0,
tmode=VOIDmode, modifier=EXPAND_NORMAL, alt_rtl=0x0) at expr.h:422
#3  0x00000001002ceb68 in do_jump (exp=0x142530d68, if_false_label=0x0,
if_true_label=0x1425439d8, prob=10000) at expr.h:428
#4  0x000000010025cfc1 in expand_gimple_cond (bb=<value temporarily
unavailable, due to optimizations>, stmt=0x142529960) at
../../gcc-4.6-20100729/gcc/cfgexpand.c:1692
#5  0x000000010025dea1 in expand_gimple_basic_block (bb=0x142516f70) at
../../gcc-4.6-20100729/gcc/cfgexpand.c:3328
#6  0x0000000100262e48 in gimple_expand_cfg () at
../../gcc-4.6-20100729/gcc/cfgexpand.c:3881
#7  0x00000001004f7386 in execute_one_pass (pass=0x100aae920) at
../../gcc-4.6-20100729/gcc/passes.c:1564
#8  0x00000001004f765d in execute_pass_list (pass=0x100aae920) at
../../gcc-4.6-20100729/gcc/passes.c:1619
#9  0x00000001006289ac in tree_rest_of_compilation (fndecl=0x142519b00) at
../../gcc-4.6-20100729/gcc/tree-optimize.c:452
#10 0x00000001007f747d in cgraph_expand_function (node=0x14251f2b0) at
../../gcc-4.6-20100729/gcc/cgraphunit.c:1643
#11 0x00000001007fa6fa in cgraph_optimize () at
../../gcc-4.6-20100729/gcc/cgraphunit.c:1722
#12 0x0000000100019e14 in lto_main (debug_p=<value temporarily unavailable, due
to optimizations>) at ../../gcc-4.6-20100729/gcc/lto/lto.c:2038
#13 0x00000001005ba96a in toplev_main (argc=22, argv=0x7fff5fbfee50) at
../../gcc-4.6-20100729/gcc/toplev.c:945
#14 0x00000001000010b4 in start ()
(gdb) 


-- 


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


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

* [Bug lto/45141] lto1 ICEs when linking cns_solve again
  2010-07-30 10:42 [Bug lto/45141] New: lto1 ICEs when linking cns_solve again howarth at nitro dot med dot uc dot edu
  2010-07-30 10:43 ` [Bug lto/45141] " howarth at nitro dot med dot uc dot edu
  2010-07-30 10:47 ` howarth at nitro dot med dot uc dot edu
@ 2010-07-30 11:01 ` rguenth at gcc dot gnu dot org
  2010-07-30 11:02 ` rguenth at gcc dot gnu dot org
  3 siblings, 0 replies; 5+ messages in thread
From: rguenth at gcc dot gnu dot org @ 2010-07-30 11:01 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #3 from rguenth at gcc dot gnu dot org  2010-07-30 11:01 -------
Fixed.


-- 

rguenth at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
         Resolution|                            |FIXED
   Target Milestone|---                         |4.6.0


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


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

* [Bug lto/45141] lto1 ICEs when linking cns_solve again
  2010-07-30 10:42 [Bug lto/45141] New: lto1 ICEs when linking cns_solve again howarth at nitro dot med dot uc dot edu
                   ` (2 preceding siblings ...)
  2010-07-30 11:01 ` rguenth at gcc dot gnu dot org
@ 2010-07-30 11:02 ` rguenth at gcc dot gnu dot org
  3 siblings, 0 replies; 5+ messages in thread
From: rguenth at gcc dot gnu dot org @ 2010-07-30 11:02 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #4 from rguenth at gcc dot gnu dot org  2010-07-30 11:01 -------
Subject: Bug 45141

Author: rguenth
Date: Fri Jul 30 11:01:22 2010
New Revision: 162709

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=162709
Log:
2010-07-30  Richard Guenther  <rguenther@suse.de>

        PR middle-end/45141
        * expr.c (expand_expr_real_1): Check for not handled base address.

Modified:
    trunk/gcc/ChangeLog
    trunk/gcc/expr.c


-- 


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


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

end of thread, other threads:[~2010-07-30 11:02 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-07-30 10:42 [Bug lto/45141] New: lto1 ICEs when linking cns_solve again howarth at nitro dot med dot uc dot edu
2010-07-30 10:43 ` [Bug lto/45141] " howarth at nitro dot med dot uc dot edu
2010-07-30 10:47 ` howarth at nitro dot med dot uc dot edu
2010-07-30 11:01 ` rguenth at gcc dot gnu dot org
2010-07-30 11:02 ` 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).