This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug middle-end/32370] [4.3 Regression] Segfault after rejecting bogus assembler



------- Comment #2 from sje at cup dot hp dot com  2007-06-21 16:30 -------
Here is a preprocessed test case"

typedef __builtin_va_list __gnuc_va_list;
typedef __gnuc_va_list va_list;
unsigned char inb_local(unsigned long port) { unsigned char value; __asm__
__vol
atile__("in" "b" " %w1, %" "b" "0" : "=a"(value) : "Nd"(port)); return value; }
void
printk(const char *fmt, ...)
{
        va_list argptr;
        __builtin_va_start(argptr,fmt);
        __builtin_va_end(argptr);
}
void
x_inb(unsigned short port)
{
        unsigned char val;
        val = inb_local(port);
}


-- 

sje at cup dot hp dot com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |sje at cup dot hp dot com


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]