public inbox for gcc-bugs@sourceware.org help / color / mirror / Atom feed
* [Bug c/38771] New: error: non-trivial conversion in unary operation @ 2009-01-09 0:34 regehr at cs dot utah dot edu 2009-01-09 8:55 ` [Bug c/38771] [4.4 regression] " jakub at gcc dot gnu dot org ` (4 more replies) 0 siblings, 5 replies; 6+ messages in thread From: regehr at cs dot utah dot edu @ 2009-01-09 0:34 UTC (permalink / raw) To: gcc-bugs [-- Warning: decoded text below may be mangled, UTF-8 assumed --] [-- Attachment #1: Type: text/plain, Size: 2325 bytes --] Seen using r143187 on Ubuntu Hardy on x86. regehr@john-home:~/volatile/tmp116$ current-gcc -O0 -c small.c small.c: In function foo: small.c:1: error: non-trivial conversion in unary operation long long unsigned int long long int iftmp.0 = -p_37.1; small.c:1: error: non-trivial conversion in unary operation long long unsigned int long long int iftmp.0 = -p_37; small.c:1: internal compiler error: verify_gimple failed Please submit a full bug report, with preprocessed source if appropriate. See <http://gcc.gnu.org/bugs.html> for instructions. regehr@john-home:~/volatile/tmp116$ cat small.c unsigned long long foo (long long p_37) { return -(unsigned long long) (p_37 ? : p_37); } regehr@john-home:~/volatile/tmp116$ current-gcc -v Using built-in specs. Target: i686-pc-linux-gnu Configured with: ../configure --program-prefix=current- --enable-languages=c,c++ --prefix=/home/regehr : (reconfigured) ../configure --program-prefix=current- --enable-languages=c,c++ --prefix=/home/regehr : (reconfigured) ../configure --program-prefix=current- --enable-languages=c,c++ --prefix=/home/regehr : (reconfigured) ../configure --program-prefix=current- --prefix=/home/regehr --enable-languages=c,c++ --no-create --no-recursion : (reconfigured) ../configure --program-prefix=current- --prefix=/home/regehr --enable-languages=c,c++ --no-create --no-recursion : (reconfigured) ../configure --program-prefix=current- --prefix=/home/regehr --enable-languages=c,c++ --no-create --no-recursion : (reconfigured) ../configure --program-prefix=current- --prefix=/home/regehr --enable-languages=c,c++ --no-create --no-recursion : (reconfigured) ../configure --program-prefix=current- --prefix=/home/regehr --enable-languages=c,c++ --no-create --no-recursion Thread model: posix gcc version 4.4.0 20090108 (experimental) (GCC) -- Summary: error: non-trivial conversion in unary operation Product: gcc Version: unknown Status: UNCONFIRMED Severity: normal Priority: P3 Component: c AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: regehr at cs dot utah dot edu GCC build triplet: i686-pc-linux-gnu GCC host triplet: i686-pc-linux-gnu GCC target triplet: i686-pc-linux-gnu http://gcc.gnu.org/bugzilla/show_bug.cgi?id=38771 ^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug c/38771] [4.4 regression] error: non-trivial conversion in unary operation 2009-01-09 0:34 [Bug c/38771] New: error: non-trivial conversion in unary operation regehr at cs dot utah dot edu @ 2009-01-09 8:55 ` jakub at gcc dot gnu dot org 2009-01-09 9:04 ` [Bug middle-end/38771] " jakub at gcc dot gnu dot org ` (3 subsequent siblings) 4 siblings, 0 replies; 6+ messages in thread From: jakub at gcc dot gnu dot org @ 2009-01-09 8:55 UTC (permalink / raw) To: gcc-bugs ------- Comment #1 from jakub at gcc dot gnu dot org 2009-01-09 08:54 ------- fold_unary bug. -- jakub at gcc dot gnu dot org changed: What |Removed |Added ---------------------------------------------------------------------------- AssignedTo|unassigned at gcc dot gnu |jakub at gcc dot gnu dot org |dot org | Status|UNCONFIRMED |ASSIGNED Ever Confirmed|0 |1 Last reconfirmed|0000-00-00 00:00:00 |2009-01-09 08:54:39 date| | Summary|error: non-trivial |[4.4 regression] error: non- |conversion in unary |trivial conversion in unary |operation |operation Target Milestone|--- |4.4.0 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=38771 ^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug middle-end/38771] [4.4 regression] error: non-trivial conversion in unary operation 2009-01-09 0:34 [Bug c/38771] New: error: non-trivial conversion in unary operation regehr at cs dot utah dot edu 2009-01-09 8:55 ` [Bug c/38771] [4.4 regression] " jakub at gcc dot gnu dot org @ 2009-01-09 9:04 ` jakub at gcc dot gnu dot org 2009-01-09 10:31 ` rguenth at gcc dot gnu dot org ` (2 subsequent siblings) 4 siblings, 0 replies; 6+ messages in thread From: jakub at gcc dot gnu dot org @ 2009-01-09 9:04 UTC (permalink / raw) To: gcc-bugs ------- Comment #2 from jakub at gcc dot gnu dot org 2009-01-09 09:04 ------- Created an attachment (id=17063) --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=17063&action=view) gcc44-pr38771.patch Fix. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=38771 ^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug middle-end/38771] [4.4 regression] error: non-trivial conversion in unary operation 2009-01-09 0:34 [Bug c/38771] New: error: non-trivial conversion in unary operation regehr at cs dot utah dot edu 2009-01-09 8:55 ` [Bug c/38771] [4.4 regression] " jakub at gcc dot gnu dot org 2009-01-09 9:04 ` [Bug middle-end/38771] " jakub at gcc dot gnu dot org @ 2009-01-09 10:31 ` rguenth at gcc dot gnu dot org 2009-01-09 13:41 ` jakub at gcc dot gnu dot org 2009-01-09 14:03 ` jakub at gcc dot gnu dot org 4 siblings, 0 replies; 6+ messages in thread From: rguenth at gcc dot gnu dot org @ 2009-01-09 10:31 UTC (permalink / raw) To: gcc-bugs -- rguenth at gcc dot gnu dot org changed: What |Removed |Added ---------------------------------------------------------------------------- Keywords| |ice-checking, wrong-code Priority|P3 |P1 Version|unknown |4.4.0 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=38771 ^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug middle-end/38771] [4.4 regression] error: non-trivial conversion in unary operation 2009-01-09 0:34 [Bug c/38771] New: error: non-trivial conversion in unary operation regehr at cs dot utah dot edu ` (2 preceding siblings ...) 2009-01-09 10:31 ` rguenth at gcc dot gnu dot org @ 2009-01-09 13:41 ` jakub at gcc dot gnu dot org 2009-01-09 14:03 ` jakub at gcc dot gnu dot org 4 siblings, 0 replies; 6+ messages in thread From: jakub at gcc dot gnu dot org @ 2009-01-09 13:41 UTC (permalink / raw) To: gcc-bugs ------- Comment #3 from jakub at gcc dot gnu dot org 2009-01-09 13:41 ------- Subject: Bug 38771 Author: jakub Date: Fri Jan 9 13:41:08 2009 New Revision: 143202 URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=143202 Log: PR middle-end/38771 * fold-const.c (fold_unary): For COMPOUND_EXPR and COND_EXPR, fold_convert arg0 operands to TREE_TYPE (op0) first. * gcc.c-torture/compile/pr38771.c: New test. Added: trunk/gcc/testsuite/gcc.c-torture/compile/pr38771.c Modified: trunk/gcc/ChangeLog trunk/gcc/fold-const.c trunk/gcc/testsuite/ChangeLog -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=38771 ^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug middle-end/38771] [4.4 regression] error: non-trivial conversion in unary operation 2009-01-09 0:34 [Bug c/38771] New: error: non-trivial conversion in unary operation regehr at cs dot utah dot edu ` (3 preceding siblings ...) 2009-01-09 13:41 ` jakub at gcc dot gnu dot org @ 2009-01-09 14:03 ` jakub at gcc dot gnu dot org 4 siblings, 0 replies; 6+ messages in thread From: jakub at gcc dot gnu dot org @ 2009-01-09 14:03 UTC (permalink / raw) To: gcc-bugs ------- Comment #4 from jakub at gcc dot gnu dot org 2009-01-09 14:02 ------- Fixed. -- jakub at gcc dot gnu dot org changed: What |Removed |Added ---------------------------------------------------------------------------- Status|ASSIGNED |RESOLVED Resolution| |FIXED http://gcc.gnu.org/bugzilla/show_bug.cgi?id=38771 ^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2009-01-09 14:03 UTC | newest] Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed) -- links below jump to the message on this page -- 2009-01-09 0:34 [Bug c/38771] New: error: non-trivial conversion in unary operation regehr at cs dot utah dot edu 2009-01-09 8:55 ` [Bug c/38771] [4.4 regression] " jakub at gcc dot gnu dot org 2009-01-09 9:04 ` [Bug middle-end/38771] " jakub at gcc dot gnu dot org 2009-01-09 10:31 ` rguenth at gcc dot gnu dot org 2009-01-09 13:41 ` jakub at gcc dot gnu dot org 2009-01-09 14:03 ` jakub 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).