public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug tree-optimization/65418] [5 Regression] vim miscompilation
2015-03-13 13:32 [Bug tree-optimization/65418] New: [5 Regression] vim miscompilation jakub at gcc dot gnu.org
@ 2015-03-13 13:32 ` jakub at gcc dot gnu.org
2015-03-13 13:33 ` jakub at gcc dot gnu.org
` (3 subsequent siblings)
4 siblings, 0 replies; 6+ messages in thread
From: jakub at gcc dot gnu.org @ 2015-03-13 13:32 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65418
Jakub Jelinek <jakub at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |ASSIGNED
Last reconfirmed| |2015-03-13
Ever confirmed|0 |1
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug tree-optimization/65418] New: [5 Regression] vim miscompilation
@ 2015-03-13 13:32 jakub at gcc dot gnu.org
2015-03-13 13:32 ` [Bug tree-optimization/65418] " jakub at gcc dot gnu.org
` (4 more replies)
0 siblings, 5 replies; 6+ messages in thread
From: jakub at gcc dot gnu.org @ 2015-03-13 13:32 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65418
Bug ID: 65418
Summary: [5 Regression] vim miscompilation
Product: gcc
Version: 5.0
Status: UNCONFIRMED
Keywords: wrong-code
Severity: normal
Priority: P3
Component: tree-optimization
Assignee: jakub at gcc dot gnu.org
Reporter: jakub at gcc dot gnu.org
__attribute__((noinline, noclone)) int
foo (int x)
{
if (x == '(' - 256 || x == '|' - 256 || x == '&' - 256 || x == 'n' - 256)
return 1;
return 0;
}
int
main ()
{
if (foo ('n' - 256) != 1
|| foo ('(' - 256) != 1
|| foo ('|' - 256) != 1
|| foo ('&' - 256) != 1
|| foo ('q' - 256) != 0)
__builtin_abort ();
return 0;
}
is miscompiled at -O2 starting with r216393.
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug tree-optimization/65418] [5 Regression] vim miscompilation
2015-03-13 13:32 [Bug tree-optimization/65418] New: [5 Regression] vim miscompilation jakub at gcc dot gnu.org
2015-03-13 13:32 ` [Bug tree-optimization/65418] " jakub at gcc dot gnu.org
@ 2015-03-13 13:33 ` jakub at gcc dot gnu.org
2015-03-13 15:59 ` jakub at gcc dot gnu.org
` (2 subsequent siblings)
4 siblings, 0 replies; 6+ messages in thread
From: jakub at gcc dot gnu.org @ 2015-03-13 13:33 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65418
Jakub Jelinek <jakub at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Priority|P3 |P1
Target Milestone|--- |5.0
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug tree-optimization/65418] [5 Regression] vim miscompilation
2015-03-13 13:32 [Bug tree-optimization/65418] New: [5 Regression] vim miscompilation jakub at gcc dot gnu.org
2015-03-13 13:32 ` [Bug tree-optimization/65418] " jakub at gcc dot gnu.org
2015-03-13 13:33 ` jakub at gcc dot gnu.org
@ 2015-03-13 15:59 ` jakub at gcc dot gnu.org
2015-03-14 9:56 ` jakub at gcc dot gnu.org
2015-03-14 9:57 ` jakub at gcc dot gnu.org
4 siblings, 0 replies; 6+ messages in thread
From: jakub at gcc dot gnu.org @ 2015-03-13 15:59 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65418
--- Comment #1 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Created attachment 35028
--> https://gcc.gnu.org/bugzilla/attachment.cgi?id=35028&action=edit
gcc5-pr65418.patch
Untested fix.
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug tree-optimization/65418] [5 Regression] vim miscompilation
2015-03-13 13:32 [Bug tree-optimization/65418] New: [5 Regression] vim miscompilation jakub at gcc dot gnu.org
` (2 preceding siblings ...)
2015-03-13 15:59 ` jakub at gcc dot gnu.org
@ 2015-03-14 9:56 ` jakub at gcc dot gnu.org
2015-03-14 9:57 ` jakub at gcc dot gnu.org
4 siblings, 0 replies; 6+ messages in thread
From: jakub at gcc dot gnu.org @ 2015-03-14 9:56 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65418
--- Comment #2 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Author: jakub
Date: Sat Mar 14 09:55:41 2015
New Revision: 221434
URL: https://gcc.gnu.org/viewcvs?rev=221434&root=gcc&view=rev
Log:
PR tree-optimization/65418
* tree-ssa-reassoc.c (extract_bit_test_mask): If there
are casts in the first PLUS_EXPR operand, ensure tbias and
*totallowp are in the inner type.
* gcc.c-torture/execute/pr65418-1.c: New test.
* gcc.c-torture/execute/pr65418-2.c: New test.
Added:
trunk/gcc/testsuite/gcc.c-torture/execute/pr65418-1.c
trunk/gcc/testsuite/gcc.c-torture/execute/pr65418-2.c
Modified:
trunk/gcc/ChangeLog
trunk/gcc/testsuite/ChangeLog
trunk/gcc/tree-ssa-reassoc.c
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug tree-optimization/65418] [5 Regression] vim miscompilation
2015-03-13 13:32 [Bug tree-optimization/65418] New: [5 Regression] vim miscompilation jakub at gcc dot gnu.org
` (3 preceding siblings ...)
2015-03-14 9:56 ` jakub at gcc dot gnu.org
@ 2015-03-14 9:57 ` jakub at gcc dot gnu.org
4 siblings, 0 replies; 6+ messages in thread
From: jakub at gcc dot gnu.org @ 2015-03-14 9:57 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65418
Jakub Jelinek <jakub at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|ASSIGNED |RESOLVED
Resolution|--- |FIXED
--- Comment #3 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Fixed.
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2015-03-14 9:57 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-03-13 13:32 [Bug tree-optimization/65418] New: [5 Regression] vim miscompilation jakub at gcc dot gnu.org
2015-03-13 13:32 ` [Bug tree-optimization/65418] " jakub at gcc dot gnu.org
2015-03-13 13:33 ` jakub at gcc dot gnu.org
2015-03-13 15:59 ` jakub at gcc dot gnu.org
2015-03-14 9:56 ` jakub at gcc dot gnu.org
2015-03-14 9:57 ` 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).