Hi,

the patch below adds a compile time warning which is present on the 32-bit target but not on the 64-bit target.

I think it is missing since the beginning.

The patches 'fixes' the gcc.dg/20021014-1.c test case on x86_64-freebsd.

Ok for trunk and 4.6?

Thanks,
Andreas

2011-10-25  Andreas Tobler  <andre...@fgznet.ch>

        * config/i386/freebsd64.h (LINK_SPEC): Emit the same warning as the
        32-bit target does.

Index: config/i386/freebsd64.h
===================================================================
--- config/i386/freebsd64.h     (revision 180364)
+++ config/i386/freebsd64.h     (working copy)
@@ -32,6 +32,7 @@
 #undef LINK_SPEC
 #define LINK_SPEC "\
   %{m32:-m elf_i386_fbsd} \
+  %{p:%nconsider using '-pg' instead of '-p' with gprof(1)} \
   %{v:-V} \
   %{assert*} %{R*} %{rpath*} %{defsym*} \
   %{shared:-Bshareable %{h*} %{soname*}} \

Reply via email to