public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c/37289] New: ICE after non-trivial conversion at assignment
@ 2008-08-30 16:07 kreckel at ginac dot de
2008-08-30 22:26 ` [Bug middle-end/37289] [4.4 Regression] " pinskia at gcc dot gnu dot org
` (4 more replies)
0 siblings, 5 replies; 6+ messages in thread
From: kreckel at ginac dot de @ 2008-08-30 16:07 UTC (permalink / raw)
To: gcc-bugs
I am using GCC 4.4.0 20080829 (experimental).
$ cat u.c
void f(unsigned long x);
void g(long x)
{
f((unsigned long)(-1-x)+1);
}
$ gcc -c u.c
u.c: In function 'g':
u.c:4: error: non-trivial conversion at assignment
D.2087
x
D.2087 = -x;
u.c:4: 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.
--
Summary: ICE after non-trivial conversion at assignment
Product: gcc
Version: 4.4.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: kreckel at ginac dot de
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=37289
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug middle-end/37289] [4.4 Regression] ICE after non-trivial conversion at assignment
2008-08-30 16:07 [Bug c/37289] New: ICE after non-trivial conversion at assignment kreckel at ginac dot de
@ 2008-08-30 22:26 ` pinskia at gcc dot gnu dot org
2008-08-31 11:24 ` rguenth at gcc dot gnu dot org
` (3 subsequent siblings)
4 siblings, 0 replies; 6+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2008-08-30 22:26 UTC (permalink / raw)
To: gcc-bugs
------- Comment #1 from pinskia at gcc dot gnu dot org 2008-08-30 22:25 -------
Confirmed on powerpc-linux-gnu also.
-- Pinski
--
pinskia at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |pinskia at gcc dot gnu dot
| |org
Status|UNCONFIRMED |NEW
Component|c |middle-end
Ever Confirmed|0 |1
GCC build triplet|x86_64-unknown-linux-gnu |
GCC host triplet|x86_64-unknown-linux-gnu |
GCC target triplet|x86_64-unknown-linux-gnu |
Keywords| |ice-on-valid-code
Last reconfirmed|0000-00-00 00:00:00 |2008-08-30 22:25:16
date| |
Summary|ICE after non-trivial |[4.4 Regression] ICE after
|conversion at assignment |non-trivial conversion at
| |assignment
Target Milestone|--- |4.4.0
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=37289
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug middle-end/37289] [4.4 Regression] ICE after non-trivial conversion at assignment
2008-08-30 16:07 [Bug c/37289] New: ICE after non-trivial conversion at assignment kreckel at ginac dot de
2008-08-30 22:26 ` [Bug middle-end/37289] [4.4 Regression] " pinskia at gcc dot gnu dot org
@ 2008-08-31 11:24 ` rguenth at gcc dot gnu dot org
2008-08-31 13:42 ` rguenth at gcc dot gnu dot org
` (2 subsequent siblings)
4 siblings, 0 replies; 6+ messages in thread
From: rguenth at gcc dot gnu dot org @ 2008-08-31 11:24 UTC (permalink / raw)
To: gcc-bugs
------- Comment #2 from rguenth at gcc dot gnu dot org 2008-08-31 11:22 -------
I have a patch.
t.i: In function 'g':
t.i:4: error: non-trivial conversion at assignment
long unsigned int
long int
D.1235 = -x;
--
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-08-30 22:25:16 |2008-08-31 11:22:59
date| |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=37289
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug middle-end/37289] [4.4 Regression] ICE after non-trivial conversion at assignment
2008-08-30 16:07 [Bug c/37289] New: ICE after non-trivial conversion at assignment kreckel at ginac dot de
2008-08-30 22:26 ` [Bug middle-end/37289] [4.4 Regression] " pinskia at gcc dot gnu dot org
2008-08-31 11:24 ` rguenth at gcc dot gnu dot org
@ 2008-08-31 13:42 ` rguenth at gcc dot gnu dot org
2008-08-31 14:22 ` rguenth at gcc dot gnu dot org
2008-09-04 9:52 ` rguenth at gcc dot gnu dot org
4 siblings, 0 replies; 6+ messages in thread
From: rguenth at gcc dot gnu dot org @ 2008-08-31 13:42 UTC (permalink / raw)
To: gcc-bugs
------- Comment #3 from rguenth at gcc dot gnu dot org 2008-08-31 13:40 -------
Subject: Bug 37289
Author: rguenth
Date: Sun Aug 31 13:39:26 2008
New Revision: 139831
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=139831
Log:
2008-08-31 Richard Guenther <rguenther@suse.de>
PR middle-end/37289
* fold-const.c (fold_binary): Retain conversions in folding
~A + 1 to -A.
* gcc.dg/pr37289.c: New testcase.
Added:
trunk/gcc/testsuite/gcc.dg/pr37289.c
Modified:
trunk/gcc/ChangeLog
trunk/gcc/fold-const.c
trunk/gcc/testsuite/ChangeLog
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=37289
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug middle-end/37289] [4.4 Regression] ICE after non-trivial conversion at assignment
2008-08-30 16:07 [Bug c/37289] New: ICE after non-trivial conversion at assignment kreckel at ginac dot de
` (2 preceding siblings ...)
2008-08-31 13:42 ` rguenth at gcc dot gnu dot org
@ 2008-08-31 14:22 ` rguenth at gcc dot gnu dot org
2008-09-04 9:52 ` rguenth at gcc dot gnu dot org
4 siblings, 0 replies; 6+ messages in thread
From: rguenth at gcc dot gnu dot org @ 2008-08-31 14:22 UTC (permalink / raw)
To: gcc-bugs
------- Comment #4 from rguenth at gcc dot gnu dot org 2008-08-31 14:21 -------
Fixed.
--
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=37289
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug middle-end/37289] [4.4 Regression] ICE after non-trivial conversion at assignment
2008-08-30 16:07 [Bug c/37289] New: ICE after non-trivial conversion at assignment kreckel at ginac dot de
` (3 preceding siblings ...)
2008-08-31 14:22 ` rguenth at gcc dot gnu dot org
@ 2008-09-04 9:52 ` rguenth at gcc dot gnu dot org
4 siblings, 0 replies; 6+ messages in thread
From: rguenth at gcc dot gnu dot org @ 2008-09-04 9:52 UTC (permalink / raw)
To: gcc-bugs
------- Comment #5 from rguenth at gcc dot gnu dot org 2008-09-04 09:51 -------
*** Bug 37366 has been marked as a duplicate of this bug. ***
--
rguenth at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |dcb314 at hotmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=37289
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2008-09-04 9:52 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-08-30 16:07 [Bug c/37289] New: ICE after non-trivial conversion at assignment kreckel at ginac dot de
2008-08-30 22:26 ` [Bug middle-end/37289] [4.4 Regression] " pinskia at gcc dot gnu dot org
2008-08-31 11:24 ` rguenth at gcc dot gnu dot org
2008-08-31 13:42 ` rguenth at gcc dot gnu dot org
2008-08-31 14:22 ` rguenth at gcc dot gnu dot org
2008-09-04 9:52 ` 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).