public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug middle-end/33666] New: [4.3 Regression] Type verification failure with pointer to long long conversion
@ 2007-10-05 10:11 rguenth at gcc dot gnu dot org
2007-10-05 12:00 ` [Bug middle-end/33666] " rguenth at gcc dot gnu dot org
` (2 more replies)
0 siblings, 3 replies; 4+ messages in thread
From: rguenth at gcc dot gnu dot org @ 2007-10-05 10:11 UTC (permalink / raw)
To: gcc-bugs
The following fails with 32bit pointers and 64bit long long if the compiler is
built with type-checking enabled.
void __lock_get_list(void *dp)
{
if (((unsigned int)dp + 1) & ~1ULL)
;
}
The original trees look ok:
if (((long long unsigned int) (dp + 1) & 0x0fffffffffffffffe) != 0)
{
(void) 0;
}
--
Summary: [4.3 Regression] Type verification failure with pointer
to long long conversion
Product: gcc
Version: 4.3.0
Status: UNCONFIRMED
Keywords: ice-on-valid-code, ice-checking
Severity: normal
Priority: P3
Component: middle-end
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: rguenth at gcc dot gnu dot org
GCC target triplet: i686-*-*
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=33666
^ permalink raw reply [flat|nested] 4+ messages in thread
* [Bug middle-end/33666] [4.3 Regression] Type verification failure with pointer to long long conversion
2007-10-05 10:11 [Bug middle-end/33666] New: [4.3 Regression] Type verification failure with pointer to long long conversion rguenth at gcc dot gnu dot org
@ 2007-10-05 12:00 ` rguenth at gcc dot gnu dot org
2007-10-05 16:33 ` rguenth at gcc dot gnu dot org
2007-10-05 16:34 ` rguenth at gcc dot gnu dot org
2 siblings, 0 replies; 4+ messages in thread
From: rguenth at gcc dot gnu dot org @ 2007-10-05 12:00 UTC (permalink / raw)
To: gcc-bugs
------- Comment #1 from rguenth at gcc dot gnu dot org 2007-10-05 12:00 -------
I have a patch.
--
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|UNCONFIRMED |ASSIGNED
Ever Confirmed|0 |1
Last reconfirmed|0000-00-00 00:00:00 |2007-10-05 12:00:07
date| |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=33666
^ permalink raw reply [flat|nested] 4+ messages in thread
* [Bug middle-end/33666] [4.3 Regression] Type verification failure with pointer to long long conversion
2007-10-05 10:11 [Bug middle-end/33666] New: [4.3 Regression] Type verification failure with pointer to long long conversion rguenth at gcc dot gnu dot org
2007-10-05 12:00 ` [Bug middle-end/33666] " rguenth at gcc dot gnu dot org
@ 2007-10-05 16:33 ` rguenth at gcc dot gnu dot org
2007-10-05 16:34 ` rguenth at gcc dot gnu dot org
2 siblings, 0 replies; 4+ messages in thread
From: rguenth at gcc dot gnu dot org @ 2007-10-05 16:33 UTC (permalink / raw)
To: gcc-bugs
------- Comment #2 from rguenth at gcc dot gnu dot org 2007-10-05 16:33 -------
Subject: Bug 33666
Author: rguenth
Date: Fri Oct 5 16:33:25 2007
New Revision: 129036
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=129036
Log:
2007-10-05 Richard Guenther <rguenther@suse.de>
PR middle-end/33666
* fold-const.c (fold_unary): Do not fold (long long)(int)ptr
to (long long)ptr.
* gcc.dg/pr33666.c: New testcase.
Added:
trunk/gcc/testsuite/gcc.dg/pr33666.c
Modified:
trunk/gcc/ChangeLog
trunk/gcc/fold-const.c
trunk/gcc/testsuite/ChangeLog
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=33666
^ permalink raw reply [flat|nested] 4+ messages in thread
* [Bug middle-end/33666] [4.3 Regression] Type verification failure with pointer to long long conversion
2007-10-05 10:11 [Bug middle-end/33666] New: [4.3 Regression] Type verification failure with pointer to long long conversion rguenth at gcc dot gnu dot org
2007-10-05 12:00 ` [Bug middle-end/33666] " rguenth at gcc dot gnu dot org
2007-10-05 16:33 ` rguenth at gcc dot gnu dot org
@ 2007-10-05 16:34 ` rguenth at gcc dot gnu dot org
2 siblings, 0 replies; 4+ messages in thread
From: rguenth at gcc dot gnu dot org @ 2007-10-05 16:34 UTC (permalink / raw)
To: gcc-bugs
------- Comment #3 from rguenth at gcc dot gnu dot org 2007-10-05 16:33 -------
Fixed.
--
rguenth at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|ASSIGNED |RESOLVED
Resolution| |FIXED
Target Milestone|--- |4.3.0
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=33666
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2007-10-05 16:34 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-10-05 10:11 [Bug middle-end/33666] New: [4.3 Regression] Type verification failure with pointer to long long conversion rguenth at gcc dot gnu dot org
2007-10-05 12:00 ` [Bug middle-end/33666] " rguenth at gcc dot gnu dot org
2007-10-05 16:33 ` rguenth at gcc dot gnu dot org
2007-10-05 16:34 ` 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).