Emit warning if not compiled with pg for x86_64 freebsd

Message ID 4EA6C283.2040707@fgznet.ch
State New
Headers show

Commit Message

Andreas Tobler Oct. 25, 2011, 2:06 p.m.

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?


2011-10-25  Andreas Tobler  <andreast@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*}} \