public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug inline-asm/27301]  New: ICE on convoluted inline asm with "m" (statement expression)
@ 2006-04-25  9:00 jakub at gcc dot gnu dot org
  2006-04-25 18:41 ` [Bug inline-asm/27301] [4.0/4.1/4.2 Regression] ICE on convoluted inline asm with "m" (statement expression and vla) pinskia at gcc dot gnu dot org
                   ` (13 more replies)
  0 siblings, 14 replies; 15+ messages in thread
From: jakub at gcc dot gnu dot org @ 2006-04-25  9:00 UTC (permalink / raw)
  To: gcc-bugs

inline void
foo (void *ptr, long n)
{
  __asm__ __volatile__ ("" : : "m" (__extension__
                                    ({ struct { char x[n]; } *p = ptr;
                                     *p; })));

}

void
bar (void)
{
  char buf[16];
  foo (buf, sizeof foo);
}

ICEs in tree_cst_low, apparently GCC attempts to create a VLA through non-VLA
mechanism (expand_one_stack_var).


-- 
           Summary: ICE on convoluted inline asm with "m" (statement
                    expression)
           Product: gcc
           Version: 4.1.1
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: inline-asm
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: jakub at gcc dot gnu dot org
GCC target triplet: i686-linux, x86_64-linux


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=27301


^ permalink raw reply	[flat|nested] 15+ messages in thread

end of thread, other threads:[~2009-03-30 15:52 UTC | newest]

Thread overview: 15+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-04-25  9:00 [Bug inline-asm/27301] New: ICE on convoluted inline asm with "m" (statement expression) jakub at gcc dot gnu dot org
2006-04-25 18:41 ` [Bug inline-asm/27301] [4.0/4.1/4.2 Regression] ICE on convoluted inline asm with "m" (statement expression and vla) pinskia at gcc dot gnu dot org
2006-04-25 18:47 ` [Bug c/27301] " pinskia at gcc dot gnu dot org
2006-04-30  6:11 ` pinskia at gcc dot gnu dot org
2006-05-06 11:00 ` enrico dot scholz at informatik dot tu-chemnitz dot de
2006-06-04 18:35 ` mmitchel at gcc dot gnu dot org
2006-08-27 21:32 ` pinskia at gcc dot gnu dot org
2007-02-03 16:52 ` [Bug c/27301] [4.0/4.1/4.2/4.3 " gdr at gcc dot gnu dot org
2007-02-03 20:29 ` pinskia at gcc dot gnu dot org
2007-02-14  9:25 ` mmitchel at gcc dot gnu dot org
2007-09-20 10:10 ` jakub at gcc dot gnu dot org
2007-09-20 21:20 ` jakub at gcc dot gnu dot org
2007-09-21  9:51 ` [Bug c/27301] [4.0/4.1/4.2 " jakub at gcc dot gnu dot org
2008-07-04 21:21 ` [Bug c/27301] [4.2 " jsm28 at gcc dot gnu dot org
2009-03-30 15:52 ` jsm28 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).