https://sourceware.org/bugzilla/show_bug.cgi?id=32860

Nick Clifton <nickc at redhat dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |nickc at redhat dot com

--- Comment #3 from Nick Clifton <nickc at redhat dot com> ---
I think that it is also worth noting that there is a simple workaround -
compiling with -fno-builtin.  As in:

  gcc -O2 -flto -fno-fat-lto-objects -fno-builtin -c pr31482c.c pr31482a.c
  ar -rv libstatic.a pr31482c.o
  gcc -O2 -flto -fno-fat-lto-objects -Wl,--as-needed -o x pr31482a.o
libstatic.a
  ./x
  PASS1

The point being, if you are going to write code that provides its own version
of builtin system functions, then you should tell the compiler that this is
what you are doing.

-- 
You are receiving this mail because:
You are on the CC list for the bug.

Reply via email to