[Bug c/49046] code fragment with inline assembly seg faults gcc
steve at acroname dot com
gcc-bugzilla@gcc.gnu.org
Wed May 18 18:06:00 GMT 2011
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=49046
--- Comment #1 from Steve Richards <steve at acroname dot com> 2011-05-18 17:40:54 UTC ---
I simplified this down to the following code that segment faults:
--- begin foo.c ---
int main(const int argc, const char* argv[])
{
asm ("adr r2, #0x10002101");
return 0;
}
--- end foo.c ---
The compile line for this is:
$ arm-none-eabi-gcc -c -mcpu=cortex-m3 -mthumb foo.c
More information about the Gcc-bugs
mailing list