public inbox for gcc-bugs@sourceware.org help / color / mirror / Atom feed
* [Bug middle-end/35390] New: ~~n != n in some cases @ 2008-02-27 11:46 takeshi dot mouri dot net at green dot ocn dot ne dot jp 2008-02-27 11:53 ` [Bug middle-end/35390] " takeshi dot mouri dot net at green dot ocn dot ne dot jp ` (6 more replies) 0 siblings, 7 replies; 8+ messages in thread From: takeshi dot mouri dot net at green dot ocn dot ne dot jp @ 2008-02-27 11:46 UTC (permalink / raw) To: gcc-bugs the preprocessed file: unsigned foo (int n) { return ~((unsigned)~n); } The above code is compiled to: ;; Function foo (foo) ;; enabled by -tree-original { return (unsigned int) ~n; } This should be "return (unsigned int) n". -- Summary: ~~n != n in some cases Product: gcc Version: 4.3.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: middle-end AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: takeshi dot mouri dot net at green dot ocn dot ne dot jp GCC build triplet: i686-pc-cygwin GCC host triplet: i686-pc-cygwin GCC target triplet: i686-pc-cygwin http://gcc.gnu.org/bugzilla/show_bug.cgi?id=35390 ^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug middle-end/35390] ~~n != n in some cases 2008-02-27 11:46 [Bug middle-end/35390] New: ~~n != n in some cases takeshi dot mouri dot net at green dot ocn dot ne dot jp @ 2008-02-27 11:53 ` takeshi dot mouri dot net at green dot ocn dot ne dot jp 2008-02-27 12:33 ` [Bug middle-end/35390] [4.3/4.4 Regression] " rguenth at gcc dot gnu dot org ` (5 subsequent siblings) 6 siblings, 0 replies; 8+ messages in thread From: takeshi dot mouri dot net at green dot ocn dot ne dot jp @ 2008-02-27 11:53 UTC (permalink / raw) To: gcc-bugs ------- Comment #1 from takeshi dot mouri dot net at green dot ocn dot ne dot jp 2008-02-27 11:53 ------- The regression is located at revision 129128. -- takeshi dot mouri dot net at green dot ocn dot ne dot jp changed: What |Removed |Added ---------------------------------------------------------------------------- Known to fail| |4.3.0 Known to work| |4.1.1 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=35390 ^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug middle-end/35390] [4.3/4.4 Regression] ~~n != n in some cases 2008-02-27 11:46 [Bug middle-end/35390] New: ~~n != n in some cases takeshi dot mouri dot net at green dot ocn dot ne dot jp 2008-02-27 11:53 ` [Bug middle-end/35390] " takeshi dot mouri dot net at green dot ocn dot ne dot jp @ 2008-02-27 12:33 ` rguenth at gcc dot gnu dot org 2008-02-27 12:33 ` rguenth at gcc dot gnu dot org ` (4 subsequent siblings) 6 siblings, 0 replies; 8+ messages in thread From: rguenth at gcc dot gnu dot org @ 2008-02-27 12:33 UTC (permalink / raw) To: gcc-bugs ------- Comment #2 from rguenth at gcc dot gnu dot org 2008-02-27 12:32 ------- Confirmed. -- rguenth at gcc dot gnu dot org changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |NEW Ever Confirmed|0 |1 Keywords| |wrong-code Last reconfirmed|0000-00-00 00:00:00 |2008-02-27 12:32:42 date| | Summary|~~n != n in some cases |[4.3/4.4 Regression] ~~n != | |n in some cases Target Milestone|--- |4.3.0 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=35390 ^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug middle-end/35390] [4.3/4.4 Regression] ~~n != n in some cases 2008-02-27 11:46 [Bug middle-end/35390] New: ~~n != n in some cases takeshi dot mouri dot net at green dot ocn dot ne dot jp 2008-02-27 11:53 ` [Bug middle-end/35390] " takeshi dot mouri dot net at green dot ocn dot ne dot jp 2008-02-27 12:33 ` [Bug middle-end/35390] [4.3/4.4 Regression] " rguenth at gcc dot gnu dot org @ 2008-02-27 12:33 ` rguenth at gcc dot gnu dot org 2008-02-27 12:37 ` rguenth at gcc dot gnu dot org ` (3 subsequent siblings) 6 siblings, 0 replies; 8+ messages in thread From: rguenth at gcc dot gnu dot org @ 2008-02-27 12:33 UTC (permalink / raw) To: gcc-bugs ------- Comment #3 from rguenth at gcc dot gnu dot org 2008-02-27 12:32 ------- Mine. -- rguenth at gcc dot gnu dot org changed: What |Removed |Added ---------------------------------------------------------------------------- AssignedTo|unassigned at gcc dot gnu |rguenth at gcc dot gnu dot |dot org |org Status|NEW |ASSIGNED Last reconfirmed|2008-02-27 12:32:42 |2008-02-27 12:32:52 date| | http://gcc.gnu.org/bugzilla/show_bug.cgi?id=35390 ^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug middle-end/35390] [4.3/4.4 Regression] ~~n != n in some cases 2008-02-27 11:46 [Bug middle-end/35390] New: ~~n != n in some cases takeshi dot mouri dot net at green dot ocn dot ne dot jp ` (2 preceding siblings ...) 2008-02-27 12:33 ` rguenth at gcc dot gnu dot org @ 2008-02-27 12:37 ` rguenth at gcc dot gnu dot org 2008-02-27 14:14 ` rguenth at gcc dot gnu dot org ` (2 subsequent siblings) 6 siblings, 0 replies; 8+ messages in thread From: rguenth at gcc dot gnu dot org @ 2008-02-27 12:37 UTC (permalink / raw) To: gcc-bugs ------- Comment #4 from rguenth at gcc dot gnu dot org 2008-02-27 12:36 ------- extern void abort (void); unsigned int foo (int n) { return ~((unsigned int)~n); } int main() { if (foo(0) != 0) abort (); return 0; } -- rguenth at gcc dot gnu dot org changed: What |Removed |Added ---------------------------------------------------------------------------- Known to work|4.1.1 |4.1.1 4.2.2 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=35390 ^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug middle-end/35390] [4.3/4.4 Regression] ~~n != n in some cases 2008-02-27 11:46 [Bug middle-end/35390] New: ~~n != n in some cases takeshi dot mouri dot net at green dot ocn dot ne dot jp ` (3 preceding siblings ...) 2008-02-27 12:37 ` rguenth at gcc dot gnu dot org @ 2008-02-27 14:14 ` rguenth at gcc dot gnu dot org 2008-02-27 14:14 ` rguenth at gcc dot gnu dot org 2008-02-27 14:15 ` rguenth at gcc dot gnu dot org 6 siblings, 0 replies; 8+ messages in thread From: rguenth at gcc dot gnu dot org @ 2008-02-27 14:14 UTC (permalink / raw) To: gcc-bugs ------- Comment #6 from rguenth at gcc dot gnu dot org 2008-02-27 14:13 ------- Subject: Bug 35390 Author: rguenth Date: Wed Feb 27 14:12:33 2008 New Revision: 132712 URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=132712 Log: 2008-02-27 Richard Guenther <rguenther@suse.de> PR middle-end/35390 * fold-const.c (fold_unary): Return the correct argument, converted to the result type. * gcc.c-torture/execute/pr35390.c: New testcase. PR middle-end/34971 * fold-const.c (fold_binary): Use the types precision, not the bitsize of the mode if folding rotate expressions. Build rotates only for full modes. * gcc.c-torture/execute/pr34971.c: New testcase. Added: branches/gcc-4_3-branch/gcc/testsuite/gcc.c-torture/execute/pr34971.c branches/gcc-4_3-branch/gcc/testsuite/gcc.c-torture/execute/pr35390.c Modified: branches/gcc-4_3-branch/gcc/ChangeLog branches/gcc-4_3-branch/gcc/fold-const.c branches/gcc-4_3-branch/gcc/testsuite/ChangeLog -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=35390 ^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug middle-end/35390] [4.3/4.4 Regression] ~~n != n in some cases 2008-02-27 11:46 [Bug middle-end/35390] New: ~~n != n in some cases takeshi dot mouri dot net at green dot ocn dot ne dot jp ` (4 preceding siblings ...) 2008-02-27 14:14 ` rguenth at gcc dot gnu dot org @ 2008-02-27 14:14 ` rguenth at gcc dot gnu dot org 2008-02-27 14:15 ` rguenth at gcc dot gnu dot org 6 siblings, 0 replies; 8+ messages in thread From: rguenth at gcc dot gnu dot org @ 2008-02-27 14:14 UTC (permalink / raw) To: gcc-bugs ------- Comment #5 from rguenth at gcc dot gnu dot org 2008-02-27 14:13 ------- Fixed. -- rguenth at gcc dot gnu dot org changed: What |Removed |Added ---------------------------------------------------------------------------- Known to fail|4.3.0 | http://gcc.gnu.org/bugzilla/show_bug.cgi?id=35390 ^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug middle-end/35390] [4.3/4.4 Regression] ~~n != n in some cases 2008-02-27 11:46 [Bug middle-end/35390] New: ~~n != n in some cases takeshi dot mouri dot net at green dot ocn dot ne dot jp ` (5 preceding siblings ...) 2008-02-27 14:14 ` rguenth at gcc dot gnu dot org @ 2008-02-27 14:15 ` rguenth at gcc dot gnu dot org 6 siblings, 0 replies; 8+ messages in thread From: rguenth at gcc dot gnu dot org @ 2008-02-27 14:15 UTC (permalink / raw) To: gcc-bugs ------- Comment #7 from rguenth at gcc dot gnu dot org 2008-02-27 14:15 ------- Fi-xed. -- rguenth at gcc dot gnu dot org changed: What |Removed |Added ---------------------------------------------------------------------------- Status|ASSIGNED |RESOLVED Resolution| |FIXED http://gcc.gnu.org/bugzilla/show_bug.cgi?id=35390 ^ permalink raw reply [flat|nested] 8+ messages in thread
end of thread, other threads:[~2008-02-27 14:15 UTC | newest] Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed) -- links below jump to the message on this page -- 2008-02-27 11:46 [Bug middle-end/35390] New: ~~n != n in some cases takeshi dot mouri dot net at green dot ocn dot ne dot jp 2008-02-27 11:53 ` [Bug middle-end/35390] " takeshi dot mouri dot net at green dot ocn dot ne dot jp 2008-02-27 12:33 ` [Bug middle-end/35390] [4.3/4.4 Regression] " rguenth at gcc dot gnu dot org 2008-02-27 12:33 ` rguenth at gcc dot gnu dot org 2008-02-27 12:37 ` rguenth at gcc dot gnu dot org 2008-02-27 14:14 ` rguenth at gcc dot gnu dot org 2008-02-27 14:14 ` rguenth at gcc dot gnu dot org 2008-02-27 14:15 ` 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).