public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/31526] New: [4.3 regression] ICE in alloc_aux_for_block()
@ 2007-04-10 11:48 martin at mpa-garching dot mpg dot de
2007-04-10 11:54 ` [Bug c++/31526] " martin at mpa-garching dot mpg dot de
` (9 more replies)
0 siblings, 10 replies; 11+ messages in thread
From: martin at mpa-garching dot mpg dot de @ 2007-04-10 11:48 UTC (permalink / raw)
To: gcc-bugs
Current trunk's g++ ICE's on the attached testcase when compiling with -O:
/scratch/martin/cleanls>g++ -v -O -c bug.ii
Using built-in specs.
Target: i686-pc-linux-gnu
Configured with: /scratch/martin/gcc/configure
--prefix=/afs/mpa/data/martin/ugcc --enable-languages=c++,fortran
--enable-checking=release
Thread model: posix
gcc version 4.3.0 20070410 (experimental)
/afs/mpa/data/martin/ugcc/libexec/gcc/i686-pc-linux-gnu/4.3.0/cc1plus
-fpreprocessed bug.ii -quiet -dumpbase bug.ii -mtune=generic -auxbase bug -O
-version -o /tmp/ccx57rja.s
GNU C++ version 4.3.0 20070410 (experimental) (i686-pc-linux-gnu)
compiled by GNU C version 4.3.0 20070410 (experimental).
GGC heuristics: --param ggc-min-expand=100 --param ggc-min-heapsize=131072
Compiler executable checksum: 107a3cf2e8248586e6673669df88f7f9
sat_info.cc: In function 'void readEntirePointing(iohandle&, const
std::string&, const std::string&, arr<pointing>&)':
sat_info.cc:18: internal compiler error: in alloc_aux_for_block, at cfg.c:665
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://gcc.gnu.org/bugs.html> for instructions.
I'm sorry that I currently don't have the time to reduce the testcase further.
--
Summary: [4.3 regression] ICE in alloc_aux_for_block()
Product: gcc
Version: 4.3.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c++
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: martin at mpa-garching dot mpg dot de
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=31526
^ permalink raw reply [flat|nested] 11+ messages in thread
* [Bug c++/31526] [4.3 regression] ICE in alloc_aux_for_block()
2007-04-10 11:48 [Bug c++/31526] New: [4.3 regression] ICE in alloc_aux_for_block() martin at mpa-garching dot mpg dot de
@ 2007-04-10 11:54 ` martin at mpa-garching dot mpg dot de
2007-04-10 12:07 ` rguenth at gcc dot gnu dot org
` (8 subsequent siblings)
9 siblings, 0 replies; 11+ messages in thread
From: martin at mpa-garching dot mpg dot de @ 2007-04-10 11:54 UTC (permalink / raw)
To: gcc-bugs
------- Comment #1 from martin at mpa-garching dot mpg dot de 2007-04-10 12:54 -------
Created an attachment (id=13343)
--> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=13343&action=view)
unreduced testcase
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=31526
^ permalink raw reply [flat|nested] 11+ messages in thread
* [Bug c++/31526] [4.3 regression] ICE in alloc_aux_for_block()
2007-04-10 11:48 [Bug c++/31526] New: [4.3 regression] ICE in alloc_aux_for_block() martin at mpa-garching dot mpg dot de
2007-04-10 11:54 ` [Bug c++/31526] " martin at mpa-garching dot mpg dot de
@ 2007-04-10 12:07 ` rguenth at gcc dot gnu dot org
2007-04-10 12:11 ` rakdver at gcc dot gnu dot org
` (7 subsequent siblings)
9 siblings, 0 replies; 11+ messages in thread
From: rguenth at gcc dot gnu dot org @ 2007-04-10 12:07 UTC (permalink / raw)
To: gcc-bugs
------- Comment #2 from rguenth at gcc dot gnu dot org 2007-04-10 13:07 -------
Zdenek, this is likely caused by your patch (same bug as for tramp3d).
Reducing.
--
rguenth at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |rguenth at gcc dot gnu dot
| |org, rakdver at gcc dot gnu
| |dot org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=31526
^ permalink raw reply [flat|nested] 11+ messages in thread
* [Bug c++/31526] [4.3 regression] ICE in alloc_aux_for_block()
2007-04-10 11:48 [Bug c++/31526] New: [4.3 regression] ICE in alloc_aux_for_block() martin at mpa-garching dot mpg dot de
2007-04-10 11:54 ` [Bug c++/31526] " martin at mpa-garching dot mpg dot de
2007-04-10 12:07 ` rguenth at gcc dot gnu dot org
@ 2007-04-10 12:11 ` rakdver at gcc dot gnu dot org
2007-04-10 13:00 ` rakdver at gcc dot gnu dot org
` (6 subsequent siblings)
9 siblings, 0 replies; 11+ messages in thread
From: rakdver at gcc dot gnu dot org @ 2007-04-10 12:11 UTC (permalink / raw)
To: gcc-bugs
------- Comment #3 from rakdver at gcc dot gnu dot org 2007-04-10 13:10 -------
Most likely (although probably it just exposes an existing bug, some pass
forgets to clean up aux after using it).
--
rakdver at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
AssignedTo|unassigned at gcc dot gnu |rakdver at gcc dot gnu dot
|dot org |org
Status|UNCONFIRMED |ASSIGNED
Ever Confirmed|0 |1
Last reconfirmed|0000-00-00 00:00:00 |2007-04-10 13:10:59
date| |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=31526
^ permalink raw reply [flat|nested] 11+ messages in thread
* [Bug c++/31526] [4.3 regression] ICE in alloc_aux_for_block()
2007-04-10 11:48 [Bug c++/31526] New: [4.3 regression] ICE in alloc_aux_for_block() martin at mpa-garching dot mpg dot de
` (2 preceding siblings ...)
2007-04-10 12:11 ` rakdver at gcc dot gnu dot org
@ 2007-04-10 13:00 ` rakdver at gcc dot gnu dot org
2007-04-10 13:09 ` rguenth at gcc dot gnu dot org
` (5 subsequent siblings)
9 siblings, 0 replies; 11+ messages in thread
From: rakdver at gcc dot gnu dot org @ 2007-04-10 13:00 UTC (permalink / raw)
To: gcc-bugs
------- Comment #4 from rakdver at gcc dot gnu dot org 2007-04-10 13:59 -------
This patch fixes the problem:
Index: tree-inline.c
===================================================================
*** tree-inline.c (revision 123693)
--- tree-inline.c (working copy)
*************** copy_cfg_body (copy_body_data * id, gcov
*** 1205,1211 ****
new->aux = bb;
}
! last = n_basic_blocks;
/* Now that we've duplicated the blocks, duplicate their edges. */
FOR_ALL_BB_FN (bb, cfun_to_copy)
copy_edges_for_bb (bb, count_scale);
--- 1205,1211 ----
new->aux = bb;
}
! last = last_basic_block;
/* Now that we've duplicated the blocks, duplicate their edges. */
FOR_ALL_BB_FN (bb, cfun_to_copy)
copy_edges_for_bb (bb, count_scale);
*************** copy_cfg_body (copy_body_data * id, gcov
*** 1219,1225 ****
}
/* Zero out AUX fields of newly created block during EH edge
insertion. */
! for (; last < n_basic_blocks; last++)
BASIC_BLOCK (last)->aux = NULL;
entry_block_map->aux = NULL;
exit_block_map->aux = NULL;
--- 1219,1225 ----
}
/* Zero out AUX fields of newly created block during EH edge
insertion. */
! for (; last < last_basic_block; last++)
BASIC_BLOCK (last)->aux = NULL;
entry_block_map->aux = NULL;
exit_block_map->aux = NULL;
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=31526
^ permalink raw reply [flat|nested] 11+ messages in thread
* [Bug c++/31526] [4.3 regression] ICE in alloc_aux_for_block()
2007-04-10 11:48 [Bug c++/31526] New: [4.3 regression] ICE in alloc_aux_for_block() martin at mpa-garching dot mpg dot de
` (3 preceding siblings ...)
2007-04-10 13:00 ` rakdver at gcc dot gnu dot org
@ 2007-04-10 13:09 ` rguenth at gcc dot gnu dot org
2007-04-10 21:03 ` [Bug tree-optimization/31526] " rakdver at gcc dot gnu dot org
` (4 subsequent siblings)
9 siblings, 0 replies; 11+ messages in thread
From: rguenth at gcc dot gnu dot org @ 2007-04-10 13:09 UTC (permalink / raw)
To: gcc-bugs
------- Comment #5 from rguenth at gcc dot gnu dot org 2007-04-10 14:08 -------
Created an attachment (id=13344)
--> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=13344&action=view)
reduced testcase
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=31526
^ permalink raw reply [flat|nested] 11+ messages in thread
* [Bug tree-optimization/31526] [4.3 regression] ICE in alloc_aux_for_block()
2007-04-10 11:48 [Bug c++/31526] New: [4.3 regression] ICE in alloc_aux_for_block() martin at mpa-garching dot mpg dot de
` (4 preceding siblings ...)
2007-04-10 13:09 ` rguenth at gcc dot gnu dot org
@ 2007-04-10 21:03 ` rakdver at gcc dot gnu dot org
2007-04-10 21:10 ` rakdver at gcc dot gnu dot org
` (3 subsequent siblings)
9 siblings, 0 replies; 11+ messages in thread
From: rakdver at gcc dot gnu dot org @ 2007-04-10 21:03 UTC (permalink / raw)
To: gcc-bugs
------- Comment #6 from rakdver at gcc dot gnu dot org 2007-04-10 22:03 -------
Patch:
http://gcc.gnu.org/ml/gcc-patches/2007-04/msg00486.html
--
rakdver at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
URL| |http://gcc.gnu.org/ml/gcc-
| |patches/2007-
| |04/msg00486.html
Component|c++ |tree-optimization
Keywords| |patch
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=31526
^ permalink raw reply [flat|nested] 11+ messages in thread
* [Bug tree-optimization/31526] [4.3 regression] ICE in alloc_aux_for_block()
2007-04-10 11:48 [Bug c++/31526] New: [4.3 regression] ICE in alloc_aux_for_block() martin at mpa-garching dot mpg dot de
` (5 preceding siblings ...)
2007-04-10 21:03 ` [Bug tree-optimization/31526] " rakdver at gcc dot gnu dot org
@ 2007-04-10 21:10 ` rakdver at gcc dot gnu dot org
2007-04-13 8:46 ` martin at mpa-garching dot mpg dot de
` (2 subsequent siblings)
9 siblings, 0 replies; 11+ messages in thread
From: rakdver at gcc dot gnu dot org @ 2007-04-10 21:10 UTC (permalink / raw)
To: gcc-bugs
------- Comment #7 from rakdver at gcc dot gnu dot org 2007-04-10 22:10 -------
Subject: Bug 31526
Author: rakdver
Date: Tue Apr 10 22:10:26 2007
New Revision: 123699
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=123699
Log:
PR tree-optimization/31526
* tree-inline.c (copy_cfg_body): Use last_basic_block instead of
n_basic_blocks to find newly added blocks.
Modified:
trunk/gcc/ChangeLog
trunk/gcc/tree-inline.c
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=31526
^ permalink raw reply [flat|nested] 11+ messages in thread
* [Bug tree-optimization/31526] [4.3 regression] ICE in alloc_aux_for_block()
2007-04-10 11:48 [Bug c++/31526] New: [4.3 regression] ICE in alloc_aux_for_block() martin at mpa-garching dot mpg dot de
` (6 preceding siblings ...)
2007-04-10 21:10 ` rakdver at gcc dot gnu dot org
@ 2007-04-13 8:46 ` martin at mpa-garching dot mpg dot de
2007-04-13 8:47 ` rguenth at gcc dot gnu dot org
2007-04-13 8:48 ` rguenth at gcc dot gnu dot org
9 siblings, 0 replies; 11+ messages in thread
From: martin at mpa-garching dot mpg dot de @ 2007-04-13 8:46 UTC (permalink / raw)
To: gcc-bugs
------- Comment #8 from martin at mpa-garching dot mpg dot de 2007-04-13 09:46 -------
works for me again, thanks!
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=31526
^ permalink raw reply [flat|nested] 11+ messages in thread
* [Bug tree-optimization/31526] [4.3 regression] ICE in alloc_aux_for_block()
2007-04-10 11:48 [Bug c++/31526] New: [4.3 regression] ICE in alloc_aux_for_block() martin at mpa-garching dot mpg dot de
` (7 preceding siblings ...)
2007-04-13 8:46 ` martin at mpa-garching dot mpg dot de
@ 2007-04-13 8:47 ` rguenth at gcc dot gnu dot org
2007-04-13 8:48 ` rguenth at gcc dot gnu dot org
9 siblings, 0 replies; 11+ messages in thread
From: rguenth at gcc dot gnu dot org @ 2007-04-13 8:47 UTC (permalink / raw)
To: gcc-bugs
------- Comment #9 from rguenth at gcc dot gnu dot org 2007-04-13 09:47 -------
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=31526
^ permalink raw reply [flat|nested] 11+ messages in thread
* [Bug tree-optimization/31526] [4.3 regression] ICE in alloc_aux_for_block()
2007-04-10 11:48 [Bug c++/31526] New: [4.3 regression] ICE in alloc_aux_for_block() martin at mpa-garching dot mpg dot de
` (8 preceding siblings ...)
2007-04-13 8:47 ` rguenth at gcc dot gnu dot org
@ 2007-04-13 8:48 ` rguenth at gcc dot gnu dot org
9 siblings, 0 replies; 11+ messages in thread
From: rguenth at gcc dot gnu dot org @ 2007-04-13 8:48 UTC (permalink / raw)
To: gcc-bugs
--
rguenth at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Target Milestone|--- |4.3.0
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=31526
^ permalink raw reply [flat|nested] 11+ messages in thread
end of thread, other threads:[~2007-04-13 8:48 UTC | newest]
Thread overview: 11+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-04-10 11:48 [Bug c++/31526] New: [4.3 regression] ICE in alloc_aux_for_block() martin at mpa-garching dot mpg dot de
2007-04-10 11:54 ` [Bug c++/31526] " martin at mpa-garching dot mpg dot de
2007-04-10 12:07 ` rguenth at gcc dot gnu dot org
2007-04-10 12:11 ` rakdver at gcc dot gnu dot org
2007-04-10 13:00 ` rakdver at gcc dot gnu dot org
2007-04-10 13:09 ` rguenth at gcc dot gnu dot org
2007-04-10 21:03 ` [Bug tree-optimization/31526] " rakdver at gcc dot gnu dot org
2007-04-10 21:10 ` rakdver at gcc dot gnu dot org
2007-04-13 8:46 ` martin at mpa-garching dot mpg dot de
2007-04-13 8:47 ` rguenth at gcc dot gnu dot org
2007-04-13 8:48 ` 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).