public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug rtl-optimization/48334] New: [4.7 Regression] gcc.target/i386/pr39445.c FAILs with -fira-algorithm=priority
@ 2011-03-29 14:24 zsojka at seznam dot cz
2011-03-29 14:36 ` [Bug rtl-optimization/48334] " zsojka at seznam dot cz
` (3 more replies)
0 siblings, 4 replies; 5+ messages in thread
From: zsojka at seznam dot cz @ 2011-03-29 14:24 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=48334
Summary: [4.7 Regression] gcc.target/i386/pr39445.c FAILs with
-fira-algorithm=priority
Product: gcc
Version: 4.7.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: rtl-optimization
AssignedTo: unassigned@gcc.gnu.org
ReportedBy: zsojka@seznam.cz
Host: x86_64-pc-linux-gnu
Target: x86_64-pc-linux-gnu
Created attachment 23802
--> http://gcc.gnu.org/bugzilla/attachment.cgi?id=23802
reduced testcase
Output:
$ gcc -O -fira-algorithm=priority testcase.c
$ ./a.out
Program received signal SIGSEGV, Segmentation fault.
0x0000000000400537 in foo (a1=<value optimized out>, a2=..., a3=..., a4=...,
a5=..., a6=..., a7=..., a8=..., b1=1, b2=2, b3=3, b4=4, b5=5,
b6=6, b7=-1, y=...) at testcase.c:8
8 {
(gdb) disassemble
Dump of assembler code for function foo:
0x0000000000400534 <+0>: xorps %xmm0,%xmm0
=> 0x0000000000400537 <+3>: movaps %xmm0,0x10(%rsp)
0x000000000040053c <+8>: movlps 0x10(%rsp),%xmm0
0x0000000000400541 <+13>: movlps %xmm0,0x10(%rsp)
0x0000000000400546 <+18>: movlps 0x18(%rsp),%xmm0
0x000000000040054b <+23>: movlps %xmm0,0x18(%rsp)
0x0000000000400550 <+28>: movaps 0x10(%rsp),%xmm0
0x0000000000400555 <+33>: retq
End of assembler dump.
(gdb) i r rsp
rsp 0x7fffffffde28 0x7fffffffde28
The problem is unaligned access.
As in PR48331, the code generated by priority allocator is much worse than with
CB's one. The code with both allocators was the same in r171626.
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug rtl-optimization/48334] [4.7 Regression] gcc.target/i386/pr39445.c FAILs with -fira-algorithm=priority
2011-03-29 14:24 [Bug rtl-optimization/48334] New: [4.7 Regression] gcc.target/i386/pr39445.c FAILs with -fira-algorithm=priority zsojka at seznam dot cz
@ 2011-03-29 14:36 ` zsojka at seznam dot cz
2011-03-29 21:38 ` vmakarov at gcc dot gnu.org
` (2 subsequent siblings)
3 siblings, 0 replies; 5+ messages in thread
From: zsojka at seznam dot cz @ 2011-03-29 14:36 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=48334
Zdenek Sojka <zsojka at seznam dot cz> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |vmakarov at gcc dot gnu.org
--- Comment #1 from Zdenek Sojka <zsojka at seznam dot cz> 2011-03-29 14:32:47 UTC ---
It started with http://gcc.gnu.org/viewcvs?view=revision&revision=171649
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug rtl-optimization/48334] [4.7 Regression] gcc.target/i386/pr39445.c FAILs with -fira-algorithm=priority
2011-03-29 14:24 [Bug rtl-optimization/48334] New: [4.7 Regression] gcc.target/i386/pr39445.c FAILs with -fira-algorithm=priority zsojka at seznam dot cz
2011-03-29 14:36 ` [Bug rtl-optimization/48334] " zsojka at seznam dot cz
@ 2011-03-29 21:38 ` vmakarov at gcc dot gnu.org
2011-03-30 2:11 ` hp at gcc dot gnu.org
2011-03-30 8:44 ` rguenth at gcc dot gnu.org
3 siblings, 0 replies; 5+ messages in thread
From: vmakarov at gcc dot gnu.org @ 2011-03-29 21:38 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=48334
--- Comment #2 from Vladimir Makarov <vmakarov at gcc dot gnu.org> 2011-03-29 20:51:18 UTC ---
Author: vmakarov
Date: Tue Mar 29 20:51:14 2011
New Revision: 171699
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=171699
Log:
2011-03-29 Vladimir Makarov <vmakarov@redhat.com>
PR rtl-optimization/48331
PR rtl-optimization/48334
* ira-color.c (color_allocnos): Call setup_profitable_hard_regs
for any used algorithm.
Modified:
trunk/gcc/ChangeLog
trunk/gcc/ira-color.c
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug rtl-optimization/48334] [4.7 Regression] gcc.target/i386/pr39445.c FAILs with -fira-algorithm=priority
2011-03-29 14:24 [Bug rtl-optimization/48334] New: [4.7 Regression] gcc.target/i386/pr39445.c FAILs with -fira-algorithm=priority zsojka at seznam dot cz
2011-03-29 14:36 ` [Bug rtl-optimization/48334] " zsojka at seznam dot cz
2011-03-29 21:38 ` vmakarov at gcc dot gnu.org
@ 2011-03-30 2:11 ` hp at gcc dot gnu.org
2011-03-30 8:44 ` rguenth at gcc dot gnu.org
3 siblings, 0 replies; 5+ messages in thread
From: hp at gcc dot gnu.org @ 2011-03-30 2:11 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=48334
Hans-Peter Nilsson <hp at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |hp at gcc dot gnu.org
--- Comment #3 from Hans-Peter Nilsson <hp at gcc dot gnu.org> 2011-03-30 01:39:10 UTC ---
Should this be closed now?
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug rtl-optimization/48334] [4.7 Regression] gcc.target/i386/pr39445.c FAILs with -fira-algorithm=priority
2011-03-29 14:24 [Bug rtl-optimization/48334] New: [4.7 Regression] gcc.target/i386/pr39445.c FAILs with -fira-algorithm=priority zsojka at seznam dot cz
` (2 preceding siblings ...)
2011-03-30 2:11 ` hp at gcc dot gnu.org
@ 2011-03-30 8:44 ` rguenth at gcc dot gnu.org
3 siblings, 0 replies; 5+ messages in thread
From: rguenth at gcc dot gnu.org @ 2011-03-30 8:44 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=48334
Richard Guenther <rguenth at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |RESOLVED
Resolution| |FIXED
Target Milestone|--- |4.7.0
--- Comment #4 from Richard Guenther <rguenth at gcc dot gnu.org> 2011-03-30 08:39:47 UTC ---
Assumed fixed.
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2011-03-30 8:39 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-03-29 14:24 [Bug rtl-optimization/48334] New: [4.7 Regression] gcc.target/i386/pr39445.c FAILs with -fira-algorithm=priority zsojka at seznam dot cz
2011-03-29 14:36 ` [Bug rtl-optimization/48334] " zsojka at seznam dot cz
2011-03-29 21:38 ` vmakarov at gcc dot gnu.org
2011-03-30 2:11 ` hp at gcc dot gnu.org
2011-03-30 8:44 ` rguenth 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).