------- Comment #7 from jkenisto at us dot ibm dot com  2008-01-09 22:35 -------
Testing of stuff like kprobes in Linux would be a lot easier if nolinline
worked reliably.  See this thread, for example:
http://marc.info/?l=linux-kernel&m=119991179332571&w=2

BTW, this sort of noinline failure can be demonstrated quite easily on my
system (i386 gcc v4.1.2) by compiling the following code with "gcc -S -O2":
-----
#define noinline __attribute__((noinline))
static noinline void plz_dont_inline_me(void)
{
}

void doit(void)
{
        plz_dont_inline_me();
}
-----

$ gcc -v
Using built-in specs.
Target: i386-redhat-linux
Configured with: ../configure --prefix=/usr --mandir=/usr/share/man
--infodir=/usr/share/info --enable-shared --enable-threads=posix
--enable-checking=release --with-system-zlib --enable-__cxa_atexit
--disable-libunwind-exceptions --enable-libgcj-multifile
--enable-languages=c,c++,objc,obj-c++,java,fortran,ada --enable-java-awt=gtk
--disable-dssi --enable-plugin
--with-java-home=/usr/lib/jvm/java-1.4.2-gcj-1.4.2.0/jre --with-cpu=generic
--host=i386-redhat-linux
Thread model: posix
gcc version 4.1.2 20070626 (Red Hat 4.1.2-13)


-- 


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

Reply via email to