public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug middle-end/45231] gcc.c-torture/compile/941014-2.c ICEs with -fgraphite-identity
[not found] <bug-45231-4@http.gcc.gnu.org/bugzilla/>
@ 2010-12-08 2:24 ` howarth at nitro dot med.uc.edu
2010-12-08 6:30 ` spop at gcc dot gnu.org
` (3 subsequent siblings)
4 siblings, 0 replies; 6+ messages in thread
From: howarth at nitro dot med.uc.edu @ 2010-12-08 2:24 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45231
--- Comment #2 from Jack Howarth <howarth at nitro dot med.uc.edu> 2010-12-08 02:23:45 UTC ---
This issue doesn't seem to be present at r167573 with
http://gcc.gnu.org/ml/gcc-patches/2010-12/msg00629.html and
Index: opts.c
===================================================================
--- opts.c (revision 167318)
+++ opts.c (working copy)
@@ -462,6 +462,9 @@
{ OPT_LEVELS_1_PLUS, OPT_fcombine_stack_adjustments, NULL, 1 },
/* -O2 optimizations. */
+#ifdef HAVE_cloog
+ { OPT_LEVELS_2_PLUS, OPT_fgraphite_identity, NULL, 1 },
+#endif
{ OPT_LEVELS_2_PLUS, OPT_finline_small_functions, NULL, 1 },
{ OPT_LEVELS_2_PLUS, OPT_findirect_inlining, NULL, 1 },
{ OPT_LEVELS_2_PLUS, OPT_fpartial_inlining, NULL, 1 },
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug middle-end/45231] gcc.c-torture/compile/941014-2.c ICEs with -fgraphite-identity
[not found] <bug-45231-4@http.gcc.gnu.org/bugzilla/>
2010-12-08 2:24 ` [Bug middle-end/45231] gcc.c-torture/compile/941014-2.c ICEs with -fgraphite-identity howarth at nitro dot med.uc.edu
@ 2010-12-08 6:30 ` spop at gcc dot gnu.org
2010-12-08 14:07 ` howarth at nitro dot med.uc.edu
` (2 subsequent siblings)
4 siblings, 0 replies; 6+ messages in thread
From: spop at gcc dot gnu.org @ 2010-12-08 6:30 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45231
Sebastian Pop <spop at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |ASSIGNED
Last reconfirmed| |2010.12.08 06:29:51
AssignedTo|unassigned at gcc dot |spop at gcc dot gnu.org
|gnu.org |
Ever Confirmed|0 |1
--- Comment #3 from Sebastian Pop <spop at gcc dot gnu.org> 2010-12-08 06:29:51 UTC ---
Mine. Thanks Jack for letting me know that the posted patch
also fixes this one. I added the testcase of this bug to the patch.
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug middle-end/45231] gcc.c-torture/compile/941014-2.c ICEs with -fgraphite-identity
[not found] <bug-45231-4@http.gcc.gnu.org/bugzilla/>
2010-12-08 2:24 ` [Bug middle-end/45231] gcc.c-torture/compile/941014-2.c ICEs with -fgraphite-identity howarth at nitro dot med.uc.edu
2010-12-08 6:30 ` spop at gcc dot gnu.org
@ 2010-12-08 14:07 ` howarth at nitro dot med.uc.edu
2010-12-08 23:02 ` spop at gcc dot gnu.org
2010-12-08 23:04 ` spop at gcc dot gnu.org
4 siblings, 0 replies; 6+ messages in thread
From: howarth at nitro dot med.uc.edu @ 2010-12-08 14:07 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45231
--- Comment #4 from Jack Howarth <howarth at nitro dot med.uc.edu> 2010-12-08 14:07:15 UTC ---
(In reply to comment #3)
> Mine. Thanks Jack for letting me know that the posted patch
> also fixes this one. I added the testcase of this bug to the patch.
Yes. This patch resolves this PR on x86_64-apple-darwin10...
http://gcc.gnu.org/ml/gcc-testresults/2010-12/msg00666.html
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug middle-end/45231] gcc.c-torture/compile/941014-2.c ICEs with -fgraphite-identity
[not found] <bug-45231-4@http.gcc.gnu.org/bugzilla/>
` (2 preceding siblings ...)
2010-12-08 14:07 ` howarth at nitro dot med.uc.edu
@ 2010-12-08 23:02 ` spop at gcc dot gnu.org
2010-12-08 23:04 ` spop at gcc dot gnu.org
4 siblings, 0 replies; 6+ messages in thread
From: spop at gcc dot gnu.org @ 2010-12-08 23:02 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45231
--- Comment #5 from Sebastian Pop <spop at gcc dot gnu.org> 2010-12-08 23:01:46 UTC ---
Author: spop
Date: Wed Dec 8 23:01:40 2010
New Revision: 167609
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=167609
Log:
Fix PR45230, PR45231, and PR45370: fold_stmt_inplace after replace_exp.
2010-12-08 Richard Guenther <rguenther@suse.de>
Sebastian Pop <sebastian.pop@amd.com>
PR tree-optimization/45230
PR tree-optimization/45231
PR tree-optimization/45370
* sese.c (rename_uses): Returns a bool. Call
recompute_tree_invariant_for_addr_expr only on the RHS of a
GIMPLE_ASSIGN.
(graphite_copy_stmts_from_block): Call fold_stmt_inplace when
rename_uses returns true.
* tree-ssa-copy.c (replace_exp): Add a comment about calling
fold_stmt_inplace after replace_exp.
* gcc.dg/graphite/id-pr45230-1.c: New.
* gcc.dg/graphite/id-pr45231.c: New.
* gfortran.dg/graphite/id-pr45370.f90: New.
Added:
trunk/gcc/testsuite/gcc.dg/graphite/id-pr45230-1.c
trunk/gcc/testsuite/gcc.dg/graphite/id-pr45231.c
trunk/gcc/testsuite/gfortran.dg/graphite/id-pr45370.f90
Modified:
trunk/gcc/ChangeLog
trunk/gcc/sese.c
trunk/gcc/testsuite/ChangeLog
trunk/gcc/tree-ssa-copy.c
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug middle-end/45231] gcc.c-torture/compile/941014-2.c ICEs with -fgraphite-identity
[not found] <bug-45231-4@http.gcc.gnu.org/bugzilla/>
` (3 preceding siblings ...)
2010-12-08 23:02 ` spop at gcc dot gnu.org
@ 2010-12-08 23:04 ` spop at gcc dot gnu.org
4 siblings, 0 replies; 6+ messages in thread
From: spop at gcc dot gnu.org @ 2010-12-08 23:04 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45231
Sebastian Pop <spop at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|ASSIGNED |RESOLVED
Resolution| |FIXED
--- Comment #6 from Sebastian Pop <spop at gcc dot gnu.org> 2010-12-08 23:04:22 UTC ---
Fixed.
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug middle-end/45231] New: gcc.c-torture/compile/941014-2.c ICEs with -fgraphite-identity
@ 2010-08-08 2:24 howarth at nitro dot med dot uc dot edu
2010-08-15 23:09 ` [Bug middle-end/45231] " zsojka at seznam dot cz
0 siblings, 1 reply; 6+ messages in thread
From: howarth at nitro dot med dot uc dot edu @ 2010-08-08 2:24 UTC (permalink / raw)
To: gcc-bugs
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain, Size: 5153 bytes --]
Current gcc trunk with the proposed graphite merge
(http://gcc.gnu.org/ml/gcc-patches/2010-08/msg00080.html) still ICEs the
compiler when the gcc.c-torture/compile/941014-2.c testcase is compiled with
-fgraphite-identity. The error appears as...
gcc-4 -O3 -fomit-frame-pointer -w -c -m32 -fgraphite-identity -o 941014-2.o
941014-2.c
941014-2.c: In function f:
941014-2.c:2:1: 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.
and backtraces in gdb as...
gdb /sw/lib/gcc4.6/libexec/gcc/x86_64-apple-darwin10.4.0/4.6.0/cc1
GNU gdb 6.3.50-20050815 (Apple version gdb-1469) (Wed May 5 04:36:56 UTC 2010)
Copyright 2004 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB. Type "show warranty" for details.
This GDB was configured as "x86_64-apple-darwin"...Reading symbols for shared
libraries ............. done
(gdb) r -fpreprocessed 941014-2.i -fPIC -quiet -dumpbase 941014-2.c
-mmacosx-version-min=10.6.4 -m32 -mtune=generic -auxbase-strip 941014-2.o -O3
-w -version -fomit-frame-pointer -fgraphite-identity -o 941014-2.s
Starting program:
/sw/lib/gcc4.6/libexec/gcc/x86_64-apple-darwin10.4.0/4.6.0/cc1 -fpreprocessed
941014-2.i -fPIC -quiet -dumpbase 941014-2.c -mmacosx-version-min=10.6.4 -m32
-mtune=generic -auxbase-strip 941014-2.o -O3 -w -version -fomit-frame-pointer
-fgraphite-identity -o 941014-2.s
Reading symbols for shared libraries .++++++++++++..... done
GNU C (GCC) version 4.6.0 20100807 (experimental) (x86_64-apple-darwin10.4.0)
compiled by GNU C version 4.6.0 20100807 (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 C (GCC) version 4.6.0 20100807 (experimental) (x86_64-apple-darwin10.4.0)
compiled by GNU C version 4.6.0 20100807 (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
Compiler executable checksum: 51323d20c79050973b53377b407f3f68
Program received signal EXC_BAD_ACCESS, Could not access memory.
Reason: KERN_INVALID_ADDRESS at address: 0x0000000000000061
gsi_for_stmt (stmt=0x141de9de0) at gimple.h:245
245 return (!(bb->flags & BB_RTL) && bb->il.gimple) ? bb->il.gimple->seq
: NULL;
(gdb) bt
#0 gsi_for_stmt (stmt=0x141de9de0) at gimple.h:245
#1 0x00000001004b5d7e in insert_out_of_ssa_copy (res=0x141e0bd38, var=<value
temporarily unavailable, due to optimizations>, after_stmt=0x141de9de0) at
../../gcc-4.6-20100807/gcc/graphite-sese-to-poly.c:2130
#2 0x00000001004b6630 in rewrite_phi_out_of_ssa (psi=0x7fff5fbfeae0) at
../../gcc-4.6-20100807/gcc/graphite-sese-to-poly.c:2328
#3 0x00000001004bc499 in rewrite_reductions_out_of_ssa (scop=<value
temporarily unavailable, due to optimizations>) at
../../gcc-4.6-20100807/gcc/graphite-sese-to-poly.c:2403
#4 0x000000010049563d in graphite_transform_loops () at
../../gcc-4.6-20100807/gcc/graphite.c:290
#5 0x000000010074121a in graphite_transforms () at
../../gcc-4.6-20100807/gcc/tree-ssa-loop.c:296
#6 0x0000000100582786 in execute_one_pass (pass=0x100c74260) at
../../gcc-4.6-20100807/gcc/passes.c:1567
#7 0x0000000100582a5d in execute_pass_list (pass=0x100c74260) at
../../gcc-4.6-20100807/gcc/passes.c:1622
#8 0x0000000100582a6f in execute_pass_list (pass=0x100c742c0) at
../../gcc-4.6-20100807/gcc/passes.c:1623
#9 0x0000000100582a6f in execute_pass_list (pass=0x100c74560) at
../../gcc-4.6-20100807/gcc/passes.c:1623
#10 0x0000000100582a6f in execute_pass_list (pass=0x100c73700) at
../../gcc-4.6-20100807/gcc/passes.c:1623
#11 0x00000001006af1fc in tree_rest_of_compilation (fndecl=0x141e19000) at
../../gcc-4.6-20100807/gcc/tree-optimize.c:452
#12 0x00000001008819fd in cgraph_expand_function (node=0x141e1d000) at
../../gcc-4.6-20100807/gcc/cgraphunit.c:1643
#13 0x0000000100884caa in cgraph_optimize () at
../../gcc-4.6-20100807/gcc/cgraphunit.c:1722
#14 0x000000010088533a in cgraph_finalize_compilation_unit () at
../../gcc-4.6-20100807/gcc/cgraphunit.c:1185
#15 0x000000010001cf05 in c_write_global_declarations () at
../../gcc-4.6-20100807/gcc/c-decl.c:9698
#16 0x000000010064145e in toplev_main (argc=19, argv=0x7fff5fbfef68) at
../../gcc-4.6-20100807/gcc/toplev.c:983
#17 0x0000000100001914 in start ()
--
Summary: gcc.c-torture/compile/941014-2.c ICEs with -fgraphite-
identity
Product: gcc
Version: 4.6.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: middle-end
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=45231
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug middle-end/45231] gcc.c-torture/compile/941014-2.c ICEs with -fgraphite-identity
2010-08-08 2:24 [Bug middle-end/45231] New: " howarth at nitro dot med dot uc dot edu
@ 2010-08-15 23:09 ` zsojka at seznam dot cz
0 siblings, 0 replies; 6+ messages in thread
From: zsojka at seznam dot cz @ 2010-08-15 23:09 UTC (permalink / raw)
To: gcc-bugs
------- Comment #1 from zsojka at seznam dot cz 2010-08-15 23:09 -------
Created an attachment (id=21485)
--> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=21485&action=view)
reduced testcase
Testcase crashes at x86_64-linux as well.
Valgrind output (r163261):
$ valgrind --trace-children=yes -q
/mnt/svn/gcc-trunk/binary-163261-lto-fortran-checking-yes-rtl-df/bin/gcc -O1
-funswitch-loops -fgraphite-identity testcase.c
==1230== Invalid read of size 1
==1230== at 0x716434: gsi_for_stmt (gimple.h:245)
==1230== by 0xF4404F: insert_out_of_ssa_copy (graphite-sese-to-poly.c:2130)
==1230== by 0xF4486B: rewrite_phi_out_of_ssa (graphite-sese-to-poly.c:2328)
==1230== by 0xF4A1C1: rewrite_reductions_out_of_ssa
(graphite-sese-to-poly.c:2403)
==1230== by 0xF35A8C: graphite_transform_loops (graphite.c:290)
==1230== by 0x984326: graphite_transforms (tree-ssa-loop.c:296)
==1230== by 0x7BF13B: execute_one_pass (passes.c:1567)
==1230== by 0x7BF3D4: execute_pass_list (passes.c:1622)
==1230== by 0x7BF3E6: execute_pass_list (passes.c:1623)
==1230== by 0x7BF3E6: execute_pass_list (passes.c:1623)
==1230== by 0x7BF3E6: execute_pass_list (passes.c:1623)
==1230== by 0x901335: tree_rest_of_compilation (tree-optimize.c:452)
==1230== Address 0x61 is not stack'd, malloc'd or (recently) free'd
==1230==
testcase.c: In function 'f':
testcase.c:2:1: 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.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45231
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2010-12-08 23:04 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
[not found] <bug-45231-4@http.gcc.gnu.org/bugzilla/>
2010-12-08 2:24 ` [Bug middle-end/45231] gcc.c-torture/compile/941014-2.c ICEs with -fgraphite-identity howarth at nitro dot med.uc.edu
2010-12-08 6:30 ` spop at gcc dot gnu.org
2010-12-08 14:07 ` howarth at nitro dot med.uc.edu
2010-12-08 23:02 ` spop at gcc dot gnu.org
2010-12-08 23:04 ` spop at gcc dot gnu.org
2010-08-08 2:24 [Bug middle-end/45231] New: " howarth at nitro dot med dot uc dot edu
2010-08-15 23:09 ` [Bug middle-end/45231] " zsojka at seznam dot cz
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).