[Bug c++/41194] __attribute__ ((__gnu_inline__)) yields undefined reference when compiled with -O0, but not with -O1

2010-05-31 Thread jonny+bg at mail dot hfa3 dot org
--- Comment #4 from jonny+bg at mail dot hfa3 dot org 2010-05-31 23:46 --- Same as comment 3, hopefully in pre tags this time. For clarity, a smaller test is: __inline __attribute__ ((gnu_inline)) void func () { } int main() { func(); return 0; } $ g++ foo.cpp /tmp/cc31L8fw.o: In

[Bug c++/41194] __attribute__ ((__gnu_inline__)) yields undefined reference when compiled with -O0, but not with -O1

2010-05-31 Thread jonny+bg at mail dot hfa3 dot org
--- Comment #3 from jonny+bg at mail dot hfa3 dot org 2010-05-31 23:41 --- For clarity, a smaller test is: __inline __attribute__ ((gnu_inline)) void func () { } int main() { func(); return 0; } $ g++ foo.cpp /tmp/cc31L8fw.o: In function `main': foo.cpp:(.text+0x5): unde