public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c/22448] New: ICE on dereferencing a label in an asm statement
@ 2005-07-13 2:24 mrd at alkemio dot org
2005-07-13 2:26 ` [Bug middle-end/22448] [4.0/4.1 Regression] " pinskia at gcc dot gnu dot org
` (2 more replies)
0 siblings, 3 replies; 6+ messages in thread
From: mrd at alkemio dot org @ 2005-07-13 2:24 UTC (permalink / raw)
To: gcc-bugs
With gcc 4.0.1, compiling the following results in an ICE:
void
foo ()
{
label: asm ("" : : "g" (*&&label));
}
Admittedly I don't expect it to do anything useful, but I was told in #gcc that
I should report the ICE anyways. (For what it's worth, this same code snippet
compiles without error in gcc 3.3 and 3.4.)
--
Summary: ICE on dereferencing a label in an asm statement
Product: gcc
Version: 4.0.1
Status: UNCONFIRMED
Severity: normal
Priority: P2
Component: c
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: mrd at alkemio dot org
CC: gcc-bugs at gcc dot gnu dot org
GCC host triplet: i386-pc-linux-gnu
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=22448
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug middle-end/22448] [4.0/4.1 Regression] ICE on dereferencing a label in an asm statement
2005-07-13 2:24 [Bug c/22448] New: ICE on dereferencing a label in an asm statement mrd at alkemio dot org
@ 2005-07-13 2:26 ` pinskia at gcc dot gnu dot org
2005-07-28 16:36 ` pinskia at gcc dot gnu dot org
2005-07-28 16:40 ` [Bug middle-end/22448] " pinskia at gcc dot gnu dot org
2 siblings, 0 replies; 6+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-07-13 2:26 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From pinskia at gcc dot gnu dot org 2005-07-13 02:24 -------
Confirmed, a regression from 3.4.0.
(In reply to comment #0)
> Admittedly I don't expect it to do anything useful, but I was told in #gcc that
> I should report the ICE anyways.
Yes by me :).
--
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |NEW
Component|c |middle-end
Ever Confirmed| |1
Known to fail| |4.0.0 4.1.0
Known to work| |3.4.0
Last reconfirmed|0000-00-00 00:00:00 |2005-07-13 02:24:31
date| |
Summary|ICE on dereferencing a label|[4.0/4.1 Regression] ICE on
|in an asm statement |dereferencing a label in an
| |asm statement
Target Milestone|--- |4.0.2
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=22448
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug middle-end/22448] [4.0/4.1 Regression] ICE on dereferencing a label in an asm statement
2005-07-13 2:24 [Bug c/22448] New: ICE on dereferencing a label in an asm statement mrd at alkemio dot org
2005-07-13 2:26 ` [Bug middle-end/22448] [4.0/4.1 Regression] " pinskia at gcc dot gnu dot org
@ 2005-07-28 16:36 ` pinskia at gcc dot gnu dot org
2005-07-28 16:40 ` [Bug middle-end/22448] " pinskia at gcc dot gnu dot org
2 siblings, 0 replies; 6+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-07-28 16:36 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From pinskia at gcc dot gnu dot org 2005-07-28 16:35 -------
*** Bug 23110 has been marked as a duplicate of this bug. ***
--
What |Removed |Added
----------------------------------------------------------------------------
CC| |76306 dot 1226 at compuserve
| |dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=22448
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug middle-end/22448] ICE on dereferencing a label in an asm statement
2005-07-13 2:24 [Bug c/22448] New: ICE on dereferencing a label in an asm statement mrd at alkemio dot org
2005-07-13 2:26 ` [Bug middle-end/22448] [4.0/4.1 Regression] " pinskia at gcc dot gnu dot org
2005-07-28 16:36 ` pinskia at gcc dot gnu dot org
@ 2005-07-28 16:40 ` pinskia at gcc dot gnu dot org
2 siblings, 0 replies; 6+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-07-28 16:40 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From pinskia at gcc dot gnu dot org 2005-07-28 16:38 -------
Turns out this is not really a regression. If you change g to r, it fails from 2.95.3 and up.
--
What |Removed |Added
----------------------------------------------------------------------------
Known to fail|4.0.0 4.1.0 |2.95 3.2 3.3.3 3.4.0 4.0.0
| |4.1.0
Known to work|3.4.0 |
Summary|[4.0/4.1 Regression] ICE on |ICE on dereferencing a label
|dereferencing a label in an |in an asm statement
|asm statement |
Target Milestone|4.0.2 |---
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=22448
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug middle-end/22448] ICE on dereferencing a label in an asm statement
[not found] <bug-22448-4@http.gcc.gnu.org/bugzilla/>
@ 2021-09-10 23:15 ` pinskia at gcc dot gnu.org
0 siblings, 0 replies; 6+ messages in thread
From: pinskia at gcc dot gnu.org @ 2021-09-10 23:15 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=22448
Andrew Pinski <pinskia at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Resolution|--- |DUPLICATE
Status|NEW |RESOLVED
Known to fail| |
--- Comment #5 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
Fixed in GCC 4.7.0 and is a dup of bug 48552.
*** This bug has been marked as a duplicate of bug 48552 ***
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug middle-end/22448] ICE on dereferencing a label in an asm statement
[not found] <bug-22448-10216@http.gcc.gnu.org/bugzilla/>
@ 2009-02-11 13:38 ` trick at icculus dot org
0 siblings, 0 replies; 6+ messages in thread
From: trick at icculus dot org @ 2009-02-11 13:38 UTC (permalink / raw)
To: gcc-bugs
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain, Size: 1065 bytes --]
------- Comment #4 from trick at icculus dot org 2009-02-11 13:38 -------
This also happens when dereferencing void pointers (this is invalid code
though, but I get the same error with the code in the first post):
void foo (void *p)
{
asm("" :: "g" (*p));
}
$ gcc -c foo.c
foo.c: In function foo:
foo.c:3: warning: dereferencing void * pointer
foo.c:3: internal compiler error: in gimplify_expr, at gimplify.c:6288
Please submit a full bug report,
with preprocessed source if appropriate.
See <http://gcc.gnu.org/bugs.html> for instructions.
$ gcc -v
Using built-in specs.
Target: x86_64-unknown-linux-gnu
Configured with: ../configure --prefix=/usr --enable-shared
--enable-languages=c,c++,fortran,objc,obj-c++,treelang --enable-threads=posix
--mandir=/usr/share/man --infodir=/usr/share/info --enable-__cxa_atexit
--disable-multilib --libdir=/usr/lib --libexecdir=/usr/lib --enable-clocale=gnu
--disable-libstdcxx-pch --with-tune=generic
Thread model: posix
gcc version 4.3.3 (GCC)
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=22448
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2021-09-10 23:15 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-07-13 2:24 [Bug c/22448] New: ICE on dereferencing a label in an asm statement mrd at alkemio dot org
2005-07-13 2:26 ` [Bug middle-end/22448] [4.0/4.1 Regression] " pinskia at gcc dot gnu dot org
2005-07-28 16:36 ` pinskia at gcc dot gnu dot org
2005-07-28 16:40 ` [Bug middle-end/22448] " pinskia at gcc dot gnu dot org
[not found] <bug-22448-10216@http.gcc.gnu.org/bugzilla/>
2009-02-11 13:38 ` trick at icculus dot org
[not found] <bug-22448-4@http.gcc.gnu.org/bugzilla/>
2021-09-10 23:15 ` pinskia at gcc dot gnu.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).