public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug tree-optimization/45626]  New: Segfault in fold_const_aggregate_ref
@ 2010-09-10  3:02 rmansfield at qnx dot com
  2010-09-10  3:03 ` [Bug tree-optimization/45626] " rmansfield at qnx dot com
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: rmansfield at qnx dot com @ 2010-09-10  3:02 UTC (permalink / raw)
  To: gcc-bugs

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

$ ./xgcc -v
Using built-in specs.
COLLECT_GCC=./xgcc
Target: i686-pc-linux-gnu
Configured with: ../configure --enable-languages=c --disable-bootstrap
--enable-checking=all
Thread model: posix
gcc version 4.6.0 20100909 (experimental) [trunk revision 164131] (GCC) 


$ ./xgcc -B. -O -g ~/t.i
<snip>
/home/ryan/t.i: In function ‘yyparse’:
/home/ryan/t.i:19:5: 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.


#0  fold_const_aggregate_ref (t=0xb7ea47a8) at ../../gcc/tree-ssa-ccp.c:1351
#1  0x08beb6a3 in maybe_fold_reference (expr=0xb7ea47a8, is_lhs=0 '\000')
    at ../../gcc/gimple-fold.c:480
#2  0x08bf203e in fold_stmt_1 (gsi=<value optimized out>, 
    inplace=<value optimized out>) at ../../gcc/gimple-fold.c:1559
#3  0x08791c6e in fold_marked_statements (first=<value optimized out>, 
    statements=0x8f68418) at ../../gcc/tree-inline.c:4114
#4  0x08797943 in optimize_inline_calls (fn=0xb7f18e80)
    at ../../gcc/tree-inline.c:4213
#5  0x087668d8 in inline_transform (node=0xb7ead7a8)
    at ../../gcc/ipa-inline.c:2165
#6  0x084152be in execute_one_ipa_transform_pass () at ../../gcc/passes.c:1473
#7  execute_all_ipa_transforms () at ../../gcc/passes.c:1504
#8  0x08584c30 in tree_rest_of_compilation (fndecl=0xb7f18e80)
    at ../../gcc/tree-optimize.c:445
#9  0x0875a2bc in cgraph_expand_function (node=<value optimized out>)
    at ../../gcc/cgraphunit.c:1469
#10 0x0875d621 in cgraph_expand_all_functions () at ../../gcc/cgraphunit.c:1548
#11 cgraph_optimize () at ../../gcc/cgraphunit.c:1804
#12 0x0875daaa in cgraph_finalize_compilation_unit ()
    at ../../gcc/cgraphunit.c:1012
#13 0x080d5ea6 in c_write_global_declarations () at ../../gcc/c-decl.c:9736
#14 0x08523104 in compile_file (argc=15, argv=0xbffff154)


-- 
           Summary: Segfault in fold_const_aggregate_ref
           Product: gcc
           Version: 4.6.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: tree-optimization
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: rmansfield at qnx dot com
 GCC build triplet: i686-pc-linux-gnu
  GCC host triplet: i686-pc-linux-gnu
GCC target triplet: i686-pc-linux-gnu


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


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

* [Bug tree-optimization/45626] Segfault in fold_const_aggregate_ref
  2010-09-10  3:02 [Bug tree-optimization/45626] New: Segfault in fold_const_aggregate_ref rmansfield at qnx dot com
@ 2010-09-10  3:03 ` rmansfield at qnx dot com
  2010-09-10  4:27 ` hjl dot tools at gmail dot com
                   ` (2 subsequent siblings)
  3 siblings, 0 replies; 5+ messages in thread
From: rmansfield at qnx dot com @ 2010-09-10  3:03 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #1 from rmansfield at qnx dot com  2010-09-10 03:03 -------
Created an attachment (id=21759)
 --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=21759&action=view)
preprocessed source


-- 


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


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

* [Bug tree-optimization/45626] Segfault in fold_const_aggregate_ref
  2010-09-10  3:02 [Bug tree-optimization/45626] New: Segfault in fold_const_aggregate_ref rmansfield at qnx dot com
  2010-09-10  3:03 ` [Bug tree-optimization/45626] " rmansfield at qnx dot com
@ 2010-09-10  4:27 ` hjl dot tools at gmail dot com
  2010-09-10  9:31 ` [Bug tree-optimization/45626] [4.6 Regression] " rguenth at gcc dot gnu dot org
  2010-09-21 13:57 ` rguenth at gcc dot gnu dot org
  3 siblings, 0 replies; 5+ messages in thread
From: hjl dot tools at gmail dot com @ 2010-09-10  4:27 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #2 from hjl dot tools at gmail dot com  2010-09-10 04:27 -------
It is caused by revision 163808:

http://gcc.gnu.org/ml/gcc-cvs/2010-09/msg00099.html


-- 

hjl dot tools at gmail dot com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |hubicka at gcc dot gnu dot
                   |                            |org
             Status|UNCONFIRMED                 |NEW
     Ever Confirmed|0                           |1
   Last reconfirmed|0000-00-00 00:00:00         |2010-09-10 04:27:15
               date|                            |


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


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

* [Bug tree-optimization/45626] [4.6 Regression] Segfault in fold_const_aggregate_ref
  2010-09-10  3:02 [Bug tree-optimization/45626] New: Segfault in fold_const_aggregate_ref rmansfield at qnx dot com
  2010-09-10  3:03 ` [Bug tree-optimization/45626] " rmansfield at qnx dot com
  2010-09-10  4:27 ` hjl dot tools at gmail dot com
@ 2010-09-10  9:31 ` rguenth at gcc dot gnu dot org
  2010-09-21 13:57 ` rguenth at gcc dot gnu dot org
  3 siblings, 0 replies; 5+ messages in thread
From: rguenth at gcc dot gnu dot org @ 2010-09-10  9:31 UTC (permalink / raw)
  To: gcc-bugs



-- 

rguenth at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
            Summary|Segfault in                 |[4.6 Regression] Segfault in
                   |fold_const_aggregate_ref    |fold_const_aggregate_ref
   Target Milestone|---                         |4.6.0


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


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

* [Bug tree-optimization/45626] [4.6 Regression] Segfault in fold_const_aggregate_ref
  2010-09-10  3:02 [Bug tree-optimization/45626] New: Segfault in fold_const_aggregate_ref rmansfield at qnx dot com
                   ` (2 preceding siblings ...)
  2010-09-10  9:31 ` [Bug tree-optimization/45626] [4.6 Regression] " rguenth at gcc dot gnu dot org
@ 2010-09-21 13:57 ` rguenth at gcc dot gnu dot org
  3 siblings, 0 replies; 5+ messages in thread
From: rguenth at gcc dot gnu dot org @ 2010-09-21 13:57 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #3 from rguenth at gcc dot gnu dot org  2010-09-21 13:56 -------
Fixed.


-- 

rguenth at gcc dot gnu dot org changed:

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


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


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

end of thread, other threads:[~2010-09-21 13:57 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-09-10  3:02 [Bug tree-optimization/45626] New: Segfault in fold_const_aggregate_ref rmansfield at qnx dot com
2010-09-10  3:03 ` [Bug tree-optimization/45626] " rmansfield at qnx dot com
2010-09-10  4:27 ` hjl dot tools at gmail dot com
2010-09-10  9:31 ` [Bug tree-optimization/45626] [4.6 Regression] " rguenth at gcc dot gnu dot org
2010-09-21 13:57 ` 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).