public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug lto/47205] New: GCC emits optimized out noinline function
@ 2011-01-07 11:45 d.g.gorbachev at gmail dot com
  2011-01-07 12:48 ` Jan Hubicka
                   ` (4 more replies)
  0 siblings, 5 replies; 6+ messages in thread
From: d.g.gorbachev at gmail dot com @ 2011-01-07 11:45 UTC (permalink / raw)
  To: gcc-bugs

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

           Summary: GCC emits optimized out noinline function
           Product: gcc
           Version: 4.6.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: lto
        AssignedTo: unassigned@gcc.gnu.org
        ReportedBy: d.g.gorbachev@gmail.com


$ gcc -O2 -flto -fwhole-program main.c foo.c
$ nm a.out | grep foo
08048380 t foo.1988

========= main.c ========
extern int foo(void);

int main(void)
{
  return foo() * 0;
}
=========================

========= foo.c =========
__attribute__((noinline))
int foo(void)
{
  return 0x2a;
}
=========================


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

end of thread, other threads:[~2021-08-30  4:54 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-01-07 11:45 [Bug lto/47205] New: GCC emits optimized out noinline function d.g.gorbachev at gmail dot com
2011-01-07 12:48 ` Jan Hubicka
2011-01-07 12:52 ` [Bug lto/47205] " hubicka at ucw dot cz
2011-01-07 12:58 ` [Bug tree-optimization/47205] " hubicka at gcc dot gnu.org
2011-01-07 12:59 ` hubicka at gcc dot gnu.org
2021-08-30  4:54 ` pinskia at gcc dot gnu.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).