public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c/44024] New: missed optimization
@ 2010-05-07 13:15 espindola at gcc dot gnu dot org
2010-05-07 13:46 ` [Bug c/44024] " rguenth at gcc dot gnu dot org
` (2 more replies)
0 siblings, 3 replies; 4+ messages in thread
From: espindola at gcc dot gnu dot org @ 2010-05-07 13:15 UTC (permalink / raw)
To: gcc-bugs
The commit
http://gcc.gnu.org/viewcvs?view=revision&revision=122551
changed gcc's behaviour in
-----------------------------
int bar();
int a = ((void *) bar) != 0;
--------------------------------
We used to accept it, but now we produce
test.c:2: error: initializer element is not constant
The new behaviour is actually the correct one, but it points out that the
change had unintentional effects. Richard asked me to create his bug for him to
investigate.
--
Summary: missed optimization
Product: gcc
Version: 4.6.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c
AssignedTo: rguenther at suse dot de
ReportedBy: espindola at gcc dot gnu dot org
GCC build triplet: x86_64-unknown-linux-gnu
GCC host triplet: x86_64-unknown-linux-gnu
GCC target triplet: x86_64-unknown-linux-gnu
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=44024
^ permalink raw reply [flat|nested] 4+ messages in thread
* [Bug c/44024] missed optimization
2010-05-07 13:15 [Bug c/44024] New: missed optimization espindola at gcc dot gnu dot org
@ 2010-05-07 13:46 ` rguenth at gcc dot gnu dot org
2010-05-09 18:17 ` rguenth at gcc dot gnu dot org
2010-05-09 18:18 ` rguenth at gcc dot gnu dot org
2 siblings, 0 replies; 4+ messages in thread
From: rguenth at gcc dot gnu dot org @ 2010-05-07 13:46 UTC (permalink / raw)
To: gcc-bugs
--
rguenth at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
AssignedTo|rguenther at suse dot de |rguenth at gcc dot gnu dot
| |org
Status|UNCONFIRMED |ASSIGNED
Ever Confirmed|0 |1
Last reconfirmed|0000-00-00 00:00:00 |2010-05-07 13:46:07
date| |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=44024
^ permalink raw reply [flat|nested] 4+ messages in thread
* [Bug c/44024] missed optimization
2010-05-07 13:15 [Bug c/44024] New: missed optimization espindola at gcc dot gnu dot org
2010-05-07 13:46 ` [Bug c/44024] " rguenth at gcc dot gnu dot org
@ 2010-05-09 18:17 ` rguenth at gcc dot gnu dot org
2010-05-09 18:18 ` rguenth at gcc dot gnu dot org
2 siblings, 0 replies; 4+ messages in thread
From: rguenth at gcc dot gnu dot org @ 2010-05-09 18:17 UTC (permalink / raw)
To: gcc-bugs
------- Comment #1 from rguenth at gcc dot gnu dot org 2010-05-09 18:17 -------
Fixed.
--
rguenth at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|ASSIGNED |RESOLVED
Resolution| |FIXED
Target Milestone|--- |4.6.0
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=44024
^ permalink raw reply [flat|nested] 4+ messages in thread
* [Bug c/44024] missed optimization
2010-05-07 13:15 [Bug c/44024] New: missed optimization espindola at gcc dot gnu dot org
2010-05-07 13:46 ` [Bug c/44024] " rguenth at gcc dot gnu dot org
2010-05-09 18:17 ` rguenth at gcc dot gnu dot org
@ 2010-05-09 18:18 ` rguenth at gcc dot gnu dot org
2 siblings, 0 replies; 4+ messages in thread
From: rguenth at gcc dot gnu dot org @ 2010-05-09 18:18 UTC (permalink / raw)
To: gcc-bugs
------- Comment #2 from rguenth at gcc dot gnu dot org 2010-05-09 18:17 -------
Subject: Bug 44024
Author: rguenth
Date: Sun May 9 18:17:33 2010
New Revision: 159205
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=159205
Log:
2010-05-09 Richard Guenther <rguenther@suse.de>
PR middle-end/44024
* fold-const.c (tree_single_nonzero_warnv_p): Properly
handle &FUNCTION_DECL.
* gcc.dg/pr44024.c: New testcase.
Added:
trunk/gcc/testsuite/gcc.dg/pr44024.c
Modified:
trunk/gcc/ChangeLog
trunk/gcc/fold-const.c
trunk/gcc/testsuite/ChangeLog
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=44024
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2010-05-09 18:18 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-05-07 13:15 [Bug c/44024] New: missed optimization espindola at gcc dot gnu dot org
2010-05-07 13:46 ` [Bug c/44024] " rguenth at gcc dot gnu dot org
2010-05-09 18:17 ` rguenth at gcc dot gnu dot org
2010-05-09 18:18 ` rguenth at gcc dot gnu dot 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).