public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug tree-optimization/43317]  New: [4.5 Regression] ICE: Segmentation fault with -fipa-struct-reorg -g
@ 2010-03-10  0:00 zsojka at seznam dot cz
  2010-03-10  0:01 ` [Bug tree-optimization/43317] " zsojka at seznam dot cz
                   ` (4 more replies)
  0 siblings, 5 replies; 6+ messages in thread
From: zsojka at seznam dot cz @ 2010-03-10  0:00 UTC (permalink / raw)
  To: gcc-bugs

+++ This bug was initially created as a clone of Bug #43314 +++

Command line:
gcc -O1 -fipa-struct-reorg -fwhole-program -fipa-type-escape -g testcase.c

Tested revisions:
r157326 - crash
r157292 - crash
r156999 - crash
r156745 - OK
r153685 - OK
4.4 r157120 - OK

Output - trunk:
$ /mnt/svn/gcc-trunk/binary-157326-lto/bin/gcc -O1 -fipa-struct-reorg
-fwhole-program -fipa-type-escape -g testcase.c 
testcase.c: In function 'main':
testcase.c:12:1: internal compiler error: Segmentation fault

Valgrind:
==25577== Invalid read of size 2
==25577==    at 0x8062DF: prepare_block_for_update (tree-into-ssa.c:2550)
==25577==    by 0x8063DA: prepare_block_for_update (tree-into-ssa.c:2568)
==25577==    by 0x80B4EA: update_ssa (tree-into-ssa.c:3317)
==25577==    by 0x9BA883: reorg_structs_drive (ipa-struct-reorg.c:3241)
==25577==    by 0x72596A: execute_one_pass (passes.c:1567)
==25577==    by 0x725DE9: execute_ipa_pass_list (passes.c:1801)
==25577==    by 0x9A181E: cgraph_optimize (cgraphunit.c:1795)
==25577==    by 0x9A1FE4: cgraph_finalize_compilation_unit (cgraphunit.c:1093)
==25577==    by 0x4B0572: c_write_global_declarations (c-decl.c:9510)
==25577==    by 0x7CAA9F: toplev_main (toplev.c:1065)
==25577==    by 0x658DBBC: (below main) (in /lib64/libc-2.11.so)
==25577==  Address 0x0 is not stack'd, malloc'd or (recently) free'd

This could be related to pr43084.


-- 
           Summary: [4.5 Regression] ICE: Segmentation fault with -fipa-
                    struct-reorg -g
           Product: gcc
           Version: 4.5.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: tree-optimization
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: zsojka at seznam dot cz


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


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

* [Bug tree-optimization/43317] [4.5 Regression] ICE: Segmentation fault with -fipa-struct-reorg -g
  2010-03-10  0:00 [Bug tree-optimization/43317] New: [4.5 Regression] ICE: Segmentation fault with -fipa-struct-reorg -g zsojka at seznam dot cz
@ 2010-03-10  0:01 ` zsojka at seznam dot cz
  2010-03-10 10:46 ` rguenth at gcc dot gnu dot org
                   ` (3 subsequent siblings)
  4 siblings, 0 replies; 6+ messages in thread
From: zsojka at seznam dot cz @ 2010-03-10  0:01 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #1 from zsojka at seznam dot cz  2010-03-10 00:01 -------
Created an attachment (id=20069)
 --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=20069&action=view)
reduced testcase (originally comment #2 in pr43314)

Command line:
gcc -O1 -fipa-struct-reorg -fwhole-program -fipa-type-escape -g pr43317.c 


-- 


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


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

* [Bug tree-optimization/43317] [4.5 Regression] ICE: Segmentation fault with -fipa-struct-reorg -g
  2010-03-10  0:00 [Bug tree-optimization/43317] New: [4.5 Regression] ICE: Segmentation fault with -fipa-struct-reorg -g zsojka at seznam dot cz
  2010-03-10  0:01 ` [Bug tree-optimization/43317] " zsojka at seznam dot cz
@ 2010-03-10 10:46 ` rguenth at gcc dot gnu dot org
  2010-03-15 13:02 ` rguenth at gcc dot gnu dot org
                   ` (2 subsequent siblings)
  4 siblings, 0 replies; 6+ messages in thread
From: rguenth at gcc dot gnu dot org @ 2010-03-10 10:46 UTC (permalink / raw)
  To: gcc-bugs



-- 

rguenth at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Target Milestone|---                         |4.5.0


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


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

* [Bug tree-optimization/43317] [4.5 Regression] ICE: Segmentation fault with -fipa-struct-reorg -g
  2010-03-10  0:00 [Bug tree-optimization/43317] New: [4.5 Regression] ICE: Segmentation fault with -fipa-struct-reorg -g zsojka at seznam dot cz
  2010-03-10  0:01 ` [Bug tree-optimization/43317] " zsojka at seznam dot cz
  2010-03-10 10:46 ` rguenth at gcc dot gnu dot org
@ 2010-03-15 13:02 ` rguenth at gcc dot gnu dot org
  2010-03-15 13:05 ` rguenth at gcc dot gnu dot org
  2010-03-15 13:17 ` rguenth at gcc dot gnu dot org
  4 siblings, 0 replies; 6+ messages in thread
From: rguenth at gcc dot gnu dot org @ 2010-03-15 13:02 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #2 from rguenth at gcc dot gnu dot org  2010-03-15 13:01 -------
I have a patch.


-- 

rguenth at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         AssignedTo|unassigned at gcc dot gnu   |rguenth at gcc dot gnu dot
                   |dot org                     |org
             Status|UNCONFIRMED                 |ASSIGNED
     Ever Confirmed|0                           |1
   Last reconfirmed|0000-00-00 00:00:00         |2010-03-15 13:01:49
               date|                            |


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


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

* [Bug tree-optimization/43317] [4.5 Regression] ICE: Segmentation fault with -fipa-struct-reorg -g
  2010-03-10  0:00 [Bug tree-optimization/43317] New: [4.5 Regression] ICE: Segmentation fault with -fipa-struct-reorg -g zsojka at seznam dot cz
                   ` (2 preceding siblings ...)
  2010-03-15 13:02 ` rguenth at gcc dot gnu dot org
@ 2010-03-15 13:05 ` rguenth at gcc dot gnu dot org
  2010-03-15 13:17 ` rguenth at gcc dot gnu dot org
  4 siblings, 0 replies; 6+ messages in thread
From: rguenth at gcc dot gnu dot org @ 2010-03-15 13:05 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #3 from rguenth at gcc dot gnu dot org  2010-03-15 13:05 -------
Subject: Bug 43317

Author: rguenth
Date: Mon Mar 15 13:05:05 2010
New Revision: 157457

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

        PR tree-optimization/43317
        * ipa-struct-reorg.c (create_new_general_access): Update stmt.

        * gcc.dg/pr43317.c: New testcase.

Added:
    trunk/gcc/testsuite/gcc.dg/pr43317.c
Modified:
    trunk/gcc/ChangeLog
    trunk/gcc/ipa-struct-reorg.c
    trunk/gcc/testsuite/ChangeLog


-- 


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


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

* [Bug tree-optimization/43317] [4.5 Regression] ICE: Segmentation fault with -fipa-struct-reorg -g
  2010-03-10  0:00 [Bug tree-optimization/43317] New: [4.5 Regression] ICE: Segmentation fault with -fipa-struct-reorg -g zsojka at seznam dot cz
                   ` (3 preceding siblings ...)
  2010-03-15 13:05 ` rguenth at gcc dot gnu dot org
@ 2010-03-15 13:17 ` rguenth at gcc dot gnu dot org
  4 siblings, 0 replies; 6+ messages in thread
From: rguenth at gcc dot gnu dot org @ 2010-03-15 13:17 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #4 from rguenth at gcc dot gnu dot org  2010-03-15 13:17 -------
Fixed.


-- 

rguenth at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|ASSIGNED                    |RESOLVED
         Resolution|                            |FIXED


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


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

end of thread, other threads:[~2010-03-15 13:17 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-03-10  0:00 [Bug tree-optimization/43317] New: [4.5 Regression] ICE: Segmentation fault with -fipa-struct-reorg -g zsojka at seznam dot cz
2010-03-10  0:01 ` [Bug tree-optimization/43317] " zsojka at seznam dot cz
2010-03-10 10:46 ` rguenth at gcc dot gnu dot org
2010-03-15 13:02 ` rguenth at gcc dot gnu dot org
2010-03-15 13:05 ` rguenth at gcc dot gnu dot org
2010-03-15 13:17 ` 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).