public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug tree-optimization/56398] New: [4.8 Regression] ICE (Segmentation fault) in dominated_by_p
@ 2013-02-19 15:03 doko at gcc dot gnu.org
2013-02-20 9:32 ` [Bug tree-optimization/56398] " rguenth at gcc dot gnu.org
` (8 more replies)
0 siblings, 9 replies; 10+ messages in thread
From: doko at gcc dot gnu.org @ 2013-02-19 15:03 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=56398
Bug #: 56398
Summary: [4.8 Regression] ICE (Segmentation fault) in
dominated_by_p
Classification: Unclassified
Product: gcc
Version: 4.8.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: tree-optimization
AssignedTo: unassigned@gcc.gnu.org
ReportedBy: doko@gcc.gnu.org
Created attachment 29498
--> http://gcc.gnu.org/bugzilla/attachment.cgi?id=29498
preprocessed source
works with the 4.7 branch, fails with trunk 20130217. lowering optimization to
-O2 avoids the issue.
$ g++ -c -g -O3 vtkLargeInteger.ii
/home/packages/tmp/ice/vtk-5.8.0/Common/vtkLargeInteger.cxx: In function 'long
int vtkpow(long int, long int)':
/home/packages/tmp/ice/vtk-5.8.0/Common/vtkLargeInteger.cxx:36:6: internal
compiler error: Segmentation fault
long vtkpow(long a, long b)
^
Please submit a full bug report,
with preprocessed source if appropriate.
Program received signal SIGSEGV, Segmentation fault.
0x00000000006ea65b in dominated_by_p(cdi_direction, basic_block_def const*,
basic_block_def const*) ()
(gdb) bt
#0 0x00000000006ea65b in dominated_by_p(cdi_direction, basic_block_def const*,
basic_block_def const*) ()
#1 0x0000000000a2e450 in ?? ()
#2 0x0000000000a30101 in ?? ()
#3 0x0000000000a31b26 in vect_do_peeling_for_loop_bound(_loop_vec_info*,
tree_node**, unsigned int, bool) ()
#4 0x0000000000a22404 in vect_transform_loop(_loop_vec_info*) ()
#5 0x0000000000a3ac3b in vectorize_loops() ()
#6 0x0000000000860919 in execute_one_pass(opt_pass*) ()
#7 0x0000000000860cf5 in execute_pass_list(opt_pass*) ()
#8 0x0000000000860d07 in execute_pass_list(opt_pass*) ()
#9 0x0000000000860d07 in execute_pass_list(opt_pass*) ()
#10 0x00000000006c03be in ?? ()
#11 0x00000000006c1977 in compile() ()
#12 0x00000000006c1d9a in finalize_compilation_unit() ()
#13 0x0000000000595fe9 in cp_write_global_declarations() ()
#14 0x00000000008eee8d in ?? ()
#15 0x00000000008f08fa in toplev_main(int, char**) ()
#16 0x00007ffff6c55a55 in __libc_start_main (main=0x533f50 <main>, argc=15,
ubp_av=0x7fffffffe508, init=<optimized out>, fini=<optimized out>,
rtld_fini=<optimized out>, stack_end=0x7fffffffe4f8) at libc-start.c:260
#17 0x00000000005341b9 in _start ()
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug tree-optimization/56398] [4.8 Regression] ICE (Segmentation fault) in dominated_by_p
2013-02-19 15:03 [Bug tree-optimization/56398] New: [4.8 Regression] ICE (Segmentation fault) in dominated_by_p doko at gcc dot gnu.org
@ 2013-02-20 9:32 ` rguenth at gcc dot gnu.org
2013-02-20 9:51 ` mpolacek at gcc dot gnu.org
` (7 subsequent siblings)
8 siblings, 0 replies; 10+ messages in thread
From: rguenth at gcc dot gnu.org @ 2013-02-20 9:32 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=56398
Richard Biener <rguenth at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |ASSIGNED
Last reconfirmed| |2013-02-20
AssignedTo|unassigned at gcc dot |rguenth at gcc dot gnu.org
|gnu.org |
Target Milestone|--- |4.8.0
Ever Confirmed|0 |1
--- Comment #1 from Richard Biener <rguenth at gcc dot gnu.org> 2013-02-20 09:32:20 UTC ---
Confirmed, mine.
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug tree-optimization/56398] [4.8 Regression] ICE (Segmentation fault) in dominated_by_p
2013-02-19 15:03 [Bug tree-optimization/56398] New: [4.8 Regression] ICE (Segmentation fault) in dominated_by_p doko at gcc dot gnu.org
2013-02-20 9:32 ` [Bug tree-optimization/56398] " rguenth at gcc dot gnu.org
@ 2013-02-20 9:51 ` mpolacek at gcc dot gnu.org
2013-02-20 10:07 ` rguenth at gcc dot gnu.org
` (6 subsequent siblings)
8 siblings, 0 replies; 10+ messages in thread
From: mpolacek at gcc dot gnu.org @ 2013-02-20 9:51 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=56398
Marek Polacek <mpolacek at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |mpolacek at gcc dot gnu.org
--- Comment #2 from Marek Polacek <mpolacek at gcc dot gnu.org> 2013-02-20 09:51:37 UTC ---
Reducing.
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug tree-optimization/56398] [4.8 Regression] ICE (Segmentation fault) in dominated_by_p
2013-02-19 15:03 [Bug tree-optimization/56398] New: [4.8 Regression] ICE (Segmentation fault) in dominated_by_p doko at gcc dot gnu.org
2013-02-20 9:32 ` [Bug tree-optimization/56398] " rguenth at gcc dot gnu.org
2013-02-20 9:51 ` mpolacek at gcc dot gnu.org
@ 2013-02-20 10:07 ` rguenth at gcc dot gnu.org
2013-02-20 10:09 ` rguenth at gcc dot gnu.org
` (5 subsequent siblings)
8 siblings, 0 replies; 10+ messages in thread
From: rguenth at gcc dot gnu.org @ 2013-02-20 10:07 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=56398
--- Comment #3 from Richard Biener <rguenth at gcc dot gnu.org> 2013-02-20 10:06:35 UTC ---
Fix:
Index: gcc/tree-vect-loop-manip.c
===================================================================
--- gcc/tree-vect-loop-manip.c (revision 196167)
+++ gcc/tree-vect-loop-manip.c (working copy)
@@ -187,6 +187,7 @@ adjust_debug_stmts (tree from, tree to,
if (MAY_HAVE_DEBUG_STMTS
&& TREE_CODE (from) == SSA_NAME
+ && ! SSA_NAME_IS_DEFAULT_DEF (from)
&& ! virtual_operand_p (from))
{
ai.from = from;
default defs are dominating all uses, so in adjust_debug_stmts_now we
wouldn't do anything for them. Thus, just ignore them.
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug tree-optimization/56398] [4.8 Regression] ICE (Segmentation fault) in dominated_by_p
2013-02-19 15:03 [Bug tree-optimization/56398] New: [4.8 Regression] ICE (Segmentation fault) in dominated_by_p doko at gcc dot gnu.org
` (2 preceding siblings ...)
2013-02-20 10:07 ` rguenth at gcc dot gnu.org
@ 2013-02-20 10:09 ` rguenth at gcc dot gnu.org
2013-02-20 13:38 ` rguenth at gcc dot gnu.org
` (4 subsequent siblings)
8 siblings, 0 replies; 10+ messages in thread
From: rguenth at gcc dot gnu.org @ 2013-02-20 10:09 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=56398
Richard Biener <rguenth at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |aoliva at gcc dot gnu.org
--- Comment #4 from Richard Biener <rguenth at gcc dot gnu.org> 2013-02-20 10:08:35 UTC ---
Latent everywhere btw.
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug tree-optimization/56398] [4.8 Regression] ICE (Segmentation fault) in dominated_by_p
2013-02-19 15:03 [Bug tree-optimization/56398] New: [4.8 Regression] ICE (Segmentation fault) in dominated_by_p doko at gcc dot gnu.org
` (3 preceding siblings ...)
2013-02-20 10:09 ` rguenth at gcc dot gnu.org
@ 2013-02-20 13:38 ` rguenth at gcc dot gnu.org
2013-02-20 13:49 ` rguenth at gcc dot gnu.org
` (3 subsequent siblings)
8 siblings, 0 replies; 10+ messages in thread
From: rguenth at gcc dot gnu.org @ 2013-02-20 13:38 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=56398
--- Comment #5 from Richard Biener <rguenth at gcc dot gnu.org> 2013-02-20 13:38:20 UTC ---
Author: rguenth
Date: Wed Feb 20 13:38:13 2013
New Revision: 196172
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=196172
Log:
2013-02-20 Richard Biener <rguenther@suse.de>
PR tree-optimization/56398
* tree-vect-loop-manip.c (adjust_debug_stmts): Skip
SSA default defs.
Modified:
trunk/gcc/ChangeLog
trunk/gcc/tree-vect-loop-manip.c
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug tree-optimization/56398] [4.8 Regression] ICE (Segmentation fault) in dominated_by_p
2013-02-19 15:03 [Bug tree-optimization/56398] New: [4.8 Regression] ICE (Segmentation fault) in dominated_by_p doko at gcc dot gnu.org
` (4 preceding siblings ...)
2013-02-20 13:38 ` rguenth at gcc dot gnu.org
@ 2013-02-20 13:49 ` rguenth at gcc dot gnu.org
2013-02-20 15:34 ` mpolacek at gcc dot gnu.org
` (2 subsequent siblings)
8 siblings, 0 replies; 10+ messages in thread
From: rguenth at gcc dot gnu.org @ 2013-02-20 13:49 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=56398
Richard Biener <rguenth at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|ASSIGNED |RESOLVED
Resolution| |FIXED
--- Comment #6 from Richard Biener <rguenth at gcc dot gnu.org> 2013-02-20 13:49:04 UTC ---
Fixed.
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug tree-optimization/56398] [4.8 Regression] ICE (Segmentation fault) in dominated_by_p
2013-02-19 15:03 [Bug tree-optimization/56398] New: [4.8 Regression] ICE (Segmentation fault) in dominated_by_p doko at gcc dot gnu.org
` (5 preceding siblings ...)
2013-02-20 13:49 ` rguenth at gcc dot gnu.org
@ 2013-02-20 15:34 ` mpolacek at gcc dot gnu.org
2013-02-21 8:58 ` rguenther at suse dot de
2013-02-21 10:29 ` mpolacek at gcc dot gnu.org
8 siblings, 0 replies; 10+ messages in thread
From: mpolacek at gcc dot gnu.org @ 2013-02-20 15:34 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=56398
--- Comment #7 from Marek Polacek <mpolacek at gcc dot gnu.org> 2013-02-20 15:33:52 UTC ---
Reduced. Should I add the testcase to into testsuite?
namespace
{
#0 "/usr/include/c/4.8/bits/postypes.h" 3
}
vtkpow (int b)
{
int a1;
int b1;
int c;
while (b1)
{
while (b)
b1 = 0;
b1 = b1 - 1;
c = c * a1;
}
return c;
}
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug tree-optimization/56398] [4.8 Regression] ICE (Segmentation fault) in dominated_by_p
2013-02-19 15:03 [Bug tree-optimization/56398] New: [4.8 Regression] ICE (Segmentation fault) in dominated_by_p doko at gcc dot gnu.org
` (6 preceding siblings ...)
2013-02-20 15:34 ` mpolacek at gcc dot gnu.org
@ 2013-02-21 8:58 ` rguenther at suse dot de
2013-02-21 10:29 ` mpolacek at gcc dot gnu.org
8 siblings, 0 replies; 10+ messages in thread
From: rguenther at suse dot de @ 2013-02-21 8:58 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=56398
--- Comment #8 from rguenther at suse dot de <rguenther at suse dot de> 2013-02-21 08:58:11 UTC ---
On Wed, 20 Feb 2013, mpolacek at gcc dot gnu.org wrote:
>
> http://gcc.gnu.org/bugzilla/show_bug.cgi?id=56398
>
> --- Comment #7 from Marek Polacek <mpolacek at gcc dot gnu.org> 2013-02-20 15:33:52 UTC ---
> Reduced. Should I add the testcase to into testsuite?
Yes, that would be nice.
Thanks,
Richard.
> namespace
> {
> #0 "/usr/include/c/4.8/bits/postypes.h" 3
> }
>
> vtkpow (int b)
> {
> int a1;
> int b1;
> int c;
> while (b1)
> {
> while (b)
> b1 = 0;
> b1 = b1 - 1;
> c = c * a1;
> }
> return c;
> }
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug tree-optimization/56398] [4.8 Regression] ICE (Segmentation fault) in dominated_by_p
2013-02-19 15:03 [Bug tree-optimization/56398] New: [4.8 Regression] ICE (Segmentation fault) in dominated_by_p doko at gcc dot gnu.org
` (7 preceding siblings ...)
2013-02-21 8:58 ` rguenther at suse dot de
@ 2013-02-21 10:29 ` mpolacek at gcc dot gnu.org
8 siblings, 0 replies; 10+ messages in thread
From: mpolacek at gcc dot gnu.org @ 2013-02-21 10:29 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=56398
--- Comment #9 from Marek Polacek <mpolacek at gcc dot gnu.org> 2013-02-21 10:28:57 UTC ---
Author: mpolacek
Date: Thu Feb 21 10:21:19 2013
New Revision: 196199
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=196199
Log:
New test for PR56398.
Added:
trunk/gcc/testsuite/g++.dg/torture/pr56398.C
Modified:
trunk/gcc/testsuite/ChangeLog
^ permalink raw reply [flat|nested] 10+ messages in thread
end of thread, other threads:[~2013-02-21 10:29 UTC | newest]
Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-02-19 15:03 [Bug tree-optimization/56398] New: [4.8 Regression] ICE (Segmentation fault) in dominated_by_p doko at gcc dot gnu.org
2013-02-20 9:32 ` [Bug tree-optimization/56398] " rguenth at gcc dot gnu.org
2013-02-20 9:51 ` mpolacek at gcc dot gnu.org
2013-02-20 10:07 ` rguenth at gcc dot gnu.org
2013-02-20 10:09 ` rguenth at gcc dot gnu.org
2013-02-20 13:38 ` rguenth at gcc dot gnu.org
2013-02-20 13:49 ` rguenth at gcc dot gnu.org
2013-02-20 15:34 ` mpolacek at gcc dot gnu.org
2013-02-21 8:58 ` rguenther at suse dot de
2013-02-21 10:29 ` mpolacek at gcc dot gnu.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).