This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug tree-optimization/33319] [4.2/4.3 regression] g++.dg/tree-ssa/pr27549.C ICE with vectorization



------- Comment #6 from victork at gcc dot gnu dot org  2007-10-23 06:57 -------
I think this bug is duplicate of pr31081.
Probably versioning which is done by vectorizer exposes the problem in inliner.
I've attached the vectorizer dump for analysys (pr27549.C.103t.vect)

% gdb --args ./gcc/cc1plus -O2 -ftree-vectorize -msse2 ../pr27549.C
GNU gdb 6.5
Copyright (C) 2006 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 "i586-suse-linux"...Using host libthread_db library
"/lib/libthread_db.so.1".

(gdb) b fail_abnormal_edge_coalesce
Breakpoint 1 at 0x8555f01: file ../../gcc/gcc/tree-ssa-coalesce.c, line 945.
(gdb) run
Starting program: /home/victork/mainline/build.129573/gcc/cc1plus -O2
-ftree-vectorize -msse2 ../t.C
 virtual E::~E() E::~E() virtual E::~E() virtual E::~E() virtual F::~F()
F::~F() virtual F::~F() virtual F::~F() virtual size_t F::e() const virtual
void F::f(char*) const S::S() S::S() S::S() void S::s(const char*, size_t) void
S::s(const E*) const char* S::t() void S::v(size_t) S::~S() S::~S() S::~S()
const char* foo() void __static_initialization_and_destruction_0(int, int)
F::F() E::E() E::E() E::E() F::F() F::F() void _GLOBAL__I_p()
Analyzing compilation unit
Performing interprocedural optimizations
 <visibility> <early_local_cleanups> <inline> <static-var>
<pure-const>Assembling functions:
 virtual E::~E() virtual F::~F() virtual size_t F::e() const virtual void
F::f(char*) const (static initializers for ../t.C) virtual F::~F() virtual
E::~E() const char* foo()
Breakpoint 1, fail_abnormal_edge_coalesce (x=141, y=138) at
../../gcc/gcc/tree-ssa-coalesce.c:945
945       fprintf (stderr, "\nUnable to coalesce ssa_names %d and %d",x, y);
(gdb) bt
#0  fail_abnormal_edge_coalesce (x=141, y=138) at
../../gcc/gcc/tree-ssa-coalesce.c:945
#1  0x08555c4a in coalesce_partitions (map=0x8b02e90, graph=0x8ac45a0,
cl=0x8ac4880, debug=0x0)
    at ../../gcc/gcc/tree-ssa-coalesce.c:1278
#2  0x08556bf9 in coalesce_ssa_name () at
../../gcc/gcc/tree-ssa-coalesce.c:1380
#3  0x084fd0f1 in remove_ssa_form (perform_ter=141 '\215') at
../../gcc/gcc/tree-outof-ssa.c:1139
#4  0x084fef5f in rewrite_out_of_ssa () at ../../gcc/gcc/tree-outof-ssa.c:1294
#5  0x0840b68a in execute_one_pass (pass=0x89d6e00) at
../../gcc/gcc/passes.c:1117
#6  0x0840b87f in execute_pass_list (pass=0x89d6e00) at
../../gcc/gcc/passes.c:1170
#7  0x0840b892 in execute_pass_list (pass=0x89d6c00) at
../../gcc/gcc/passes.c:1171
#8  0x084f8c77 in tree_rest_of_compilation (fndecl=0xb7d94a00) at
../../gcc/gcc/tree-optimize.c:404
#9  0x08695245 in cgraph_expand_function (node=0xb7d94c00) at
../../gcc/gcc/cgraphunit.c:1060
#10 0x08697947 in cgraph_optimize () at ../../gcc/gcc/cgraphunit.c:1123
#11 0x08108e5d in cp_write_global_declarations () at
../../gcc/gcc/cp/decl2.c:3410
#12 0x084948c9 in toplev_main (argc=5, argv=0xbfea1f24) at
../../gcc/gcc/toplev.c:1055
#13 0x0821fc5f in main (argc=Cannot access memory at address 0x12
) at ../../gcc/gcc/main.c:35
(gdb)


Continuing.

Unable to coalesce ssa_names 141 and 138 which are marked as MUST COALESCE.
s$b_141(ab) and  s$b_138(ab)

../t.C: In function 'const char* foo()':
../t.C:72: internal compiler error: SSA corruption
Please submit a full bug report,
with preprocessed source if appropriate.
See <http://gcc.gnu.org/bugs.html> for instructions.

Program exited with code 04.


-- 

victork at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |jakub at gcc dot gnu dot
                   |                            |org, rakdver at gcc dot gnu
                   |                            |dot org, amacleod at redhat
                   |                            |dot com, jh at suse dot cz
             Status|ASSIGNED                    |WAITING


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]