From patchwork Tue Oct 25 14:06:59 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: Emit warning if not compiled with pg for x86_64 freebsd Date: Tue, 25 Oct 2011 04:06:59 -0000 From: Andreas Tobler X-Patchwork-Id: 121710 Message-Id: <4EA6C283.2040707@fgznet.ch> To: GCC Patches , Loren James Rittle 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 * 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*}} \