public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
From: "trick at icculus dot org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug middle-end/22448] ICE on dereferencing a label in an asm statement
Date: Wed, 11 Feb 2009 13:38:00 -0000	[thread overview]
Message-ID: <20090211133831.9464.qmail@sourceware.org> (raw)
In-Reply-To: <bug-22448-10216@http.gcc.gnu.org/bugzilla/>

[-- 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


       reply	other threads:[~2009-02-11 13:38 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <bug-22448-10216@http.gcc.gnu.org/bugzilla/>
2009-02-11 13:38 ` trick at icculus dot org [this message]
     [not found] <bug-22448-4@http.gcc.gnu.org/bugzilla/>
2021-09-10 23:15 ` pinskia at gcc dot gnu.org
2005-07-13  2:24 [Bug c/22448] New: " mrd at alkemio dot org
2005-07-28 16:40 ` [Bug middle-end/22448] " pinskia at gcc dot gnu dot org

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20090211133831.9464.qmail@sourceware.org \
    --to=gcc-bugzilla@gcc.gnu.org \
    --cc=gcc-bugs@gcc.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).