public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug rtl-optimization/64990] New: wrong code at -O1, -O2 and -O3 on x86_64-linux-gnu
@ 2015-02-09 21:25 su at cs dot ucdavis.edu
2015-02-09 21:48 ` [Bug rtl-optimization/64990] [4.8/4.9/5 Regression] " jakub at gcc dot gnu.org
` (2 more replies)
0 siblings, 3 replies; 4+ messages in thread
From: su at cs dot ucdavis.edu @ 2015-02-09 21:25 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64990
Bug ID: 64990
Summary: wrong code at -O1, -O2 and -O3 on x86_64-linux-gnu
Product: gcc
Version: 5.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: rtl-optimization
Assignee: unassigned at gcc dot gnu.org
Reporter: su at cs dot ucdavis.edu
The current gcc trunk miscompiles the following code on x86_64-linux at -O1,
-O2 and -O3 in both 32-bit and 64-bit modes.
It also affects 4.6.x through 4.9.x.
$ gcc-trunk -v
Using built-in specs.
COLLECT_GCC=gcc-trunk
COLLECT_LTO_WRAPPER=/usr/local/gcc-trunk/libexec/gcc/x86_64-unknown-linux-gnu/5.0.0/lto-wrapper
Target: x86_64-unknown-linux-gnu
Configured with: ../gcc-trunk/configure --prefix=/usr/local/gcc-trunk
--enable-languages=c,c++ --disable-werror --enable-multilib
Thread model: posix
gcc version 5.0.0 20150209 (experimental) [trunk revision 220527] (GCC)
$
$ gcc-trunk -O0 small.c; a.out
$
$ gcc-trunk -O1 small.c
$ ./a.out
Segmentation fault (core dumped)
$
--------------------------
static int a = 770, c, f;
int b, d, e = 1, h, i, j;
static int
fn1 ()
{
int g[1];
c = 0;
for (;;)
{
if (e)
break;
return g[(a + 1) * 6 + (f + 1) * 3 + 1];
}
if (b)
return d;
return 0;
}
int
main ()
{
h = fn1 ();
if (j)
i = 0;
return 0;
}
^ permalink raw reply [flat|nested] 4+ messages in thread
* [Bug rtl-optimization/64990] [4.8/4.9/5 Regression] wrong code at -O1, -O2 and -O3 on x86_64-linux-gnu
2015-02-09 21:25 [Bug rtl-optimization/64990] New: wrong code at -O1, -O2 and -O3 on x86_64-linux-gnu su at cs dot ucdavis.edu
@ 2015-02-09 21:48 ` jakub at gcc dot gnu.org
2015-02-10 10:19 ` rguenth at gcc dot gnu.org
2015-02-12 12:58 ` jakub at gcc dot gnu.org
2 siblings, 0 replies; 4+ messages in thread
From: jakub at gcc dot gnu.org @ 2015-02-09 21:48 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64990
Jakub Jelinek <jakub at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |NEW
Last reconfirmed| |2015-02-09
CC| |jakub at gcc dot gnu.org
Target Milestone|--- |4.8.5
Summary|wrong code at -O1, -O2 and |[4.8/4.9/5 Regression]
|-O3 on x86_64-linux-gnu |wrong code at -O1, -O2 and
| |-O3 on x86_64-linux-gnu
Ever confirmed|0 |1
--- Comment #1 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Started with r164552.
^ permalink raw reply [flat|nested] 4+ messages in thread
* [Bug rtl-optimization/64990] [4.8/4.9/5 Regression] wrong code at -O1, -O2 and -O3 on x86_64-linux-gnu
2015-02-09 21:25 [Bug rtl-optimization/64990] New: wrong code at -O1, -O2 and -O3 on x86_64-linux-gnu su at cs dot ucdavis.edu
2015-02-09 21:48 ` [Bug rtl-optimization/64990] [4.8/4.9/5 Regression] " jakub at gcc dot gnu.org
@ 2015-02-10 10:19 ` rguenth at gcc dot gnu.org
2015-02-12 12:58 ` jakub at gcc dot gnu.org
2 siblings, 0 replies; 4+ messages in thread
From: rguenth at gcc dot gnu.org @ 2015-02-10 10:19 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64990
Richard Biener <rguenth at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Keywords| |wrong-code
Target| |x86_64-*-*
Priority|P3 |P2
^ permalink raw reply [flat|nested] 4+ messages in thread
* [Bug rtl-optimization/64990] [4.8/4.9/5 Regression] wrong code at -O1, -O2 and -O3 on x86_64-linux-gnu
2015-02-09 21:25 [Bug rtl-optimization/64990] New: wrong code at -O1, -O2 and -O3 on x86_64-linux-gnu su at cs dot ucdavis.edu
2015-02-09 21:48 ` [Bug rtl-optimization/64990] [4.8/4.9/5 Regression] " jakub at gcc dot gnu.org
2015-02-10 10:19 ` rguenth at gcc dot gnu.org
@ 2015-02-12 12:58 ` jakub at gcc dot gnu.org
2 siblings, 0 replies; 4+ messages in thread
From: jakub at gcc dot gnu.org @ 2015-02-12 12:58 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64990
Jakub Jelinek <jakub at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution|--- |DUPLICATE
--- Comment #2 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
I believe this is yet another case of PR61047.
*** This bug has been marked as a duplicate of bug 61047 ***
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2015-02-12 12:58 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-02-09 21:25 [Bug rtl-optimization/64990] New: wrong code at -O1, -O2 and -O3 on x86_64-linux-gnu su at cs dot ucdavis.edu
2015-02-09 21:48 ` [Bug rtl-optimization/64990] [4.8/4.9/5 Regression] " jakub at gcc dot gnu.org
2015-02-10 10:19 ` rguenth at gcc dot gnu.org
2015-02-12 12:58 ` jakub 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).