This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug target/38981] [4.4 regression] internal compiler error
- From: "ebotcazou at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 8 Feb 2009 10:26:35 -0000
- Subject: [Bug target/38981] [4.4 regression] internal compiler error
- References: <bug-38981-10182@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #14 from ebotcazou at gcc dot gnu dot org 2009-02-08 10:26 -------
This is a bug in the qsort implementation on Solaris 8:
Breakpoint 1, sort_coalesce_list (cl=0x1ce4b80)
at /nile.build/botcazou/gcc-head/src/gcc/tree-ssa-coalesce.c:434
434 qsort (cl->sorted, num, sizeof (coalesce_pair_p), compare_pairs);
(gdb) p cl->sorted
$22 = (coalesce_pair_p *) 0x1cc4e88
(gdb) p num
$23 = 8
(gdb) continue
Continuing.
Program received signal SIGSEGV, Segmentation fault.
0x00f1bb00 in compare_pairs (p1=0x1cc4e84, p2=0x1cc4e8c)
at /nile.build/botcazou/gcc-head/src/gcc/tree-ssa-coalesce.c:318
318 result = (* pp2)->cost - (* pp1)->cost;
i.e. the comparator is invoked on &cl->sorted[-1], which is invalid.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=38981