freebsd.h (LINK_SPEC): Weaken error to notice.
authorLoren J. Rittle <ljrittle@acm.org>
Sat, 8 Feb 2003 01:11:35 +0000 (01:11 +0000)
committerLoren J. Rittle <ljrittle@gcc.gnu.org>
Sat, 8 Feb 2003 01:11:35 +0000 (01:11 +0000)
* config/alpha/freebsd.h (LINK_SPEC): Weaken error to notice.
* config/ia64/freebsd.h (LINK_SPEC): Likewise.
* config/sparc/freebsd.h (LINK_SPEC): Likewise.
* config/i386/freebsd.h (LINK_SPEC): Add clause to mirror other arches.
* gcc.dg/20021014-1.c: Annotate with expected notice text.

From-SVN: r62567

gcc/ChangeLog
gcc/config/alpha/freebsd.h
gcc/config/i386/freebsd.h
gcc/config/ia64/freebsd.h
gcc/config/sparc/freebsd.h
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/20021014-1.c

index 80f94bc64bd391bc4b5ae2f6528bf4cf8f8feab8..3c3bc7e5a4e8300a7d09ba300aef4ebe91771a10 100644 (file)
@@ -1,3 +1,10 @@
+2003-02-07  Loren James Rittle  <ljrittle@acm.org>
+
+       * config/alpha/freebsd.h (LINK_SPEC): Weaken error to notice.
+       * config/ia64/freebsd.h (LINK_SPEC): Likewise.
+       * config/sparc/freebsd.h (LINK_SPEC): Likewise.
+       * config/i386/freebsd.h (LINK_SPEC): Add clause to mirror other arches.
+
 2003-02-07  Wolfgang Bangerth  <bangerth@ticam.utexas.edu>
 
        * doc/trouble.texi: Document pitfalls of two-stage name lookup.
index 0ec9688552786e4aec4bf08ab72ad9fa97f14e1a..c77d85640f618478e4a03f7c3c08971c7f4844f2 100644 (file)
@@ -39,7 +39,7 @@ Boston, MA 02111-1307, USA.  */
 #define CPP_SPEC "%(cpp_subtarget) %{posix:-D_POSIX_SOURCE}"
 
 #define LINK_SPEC "%{G*} %{relax:-relax}                               \
-  %{p:%e`-p' not supported; use `-pg' and gprof(1)}                    \
+  %{p:%nconsider using `-pg' instead of `-p' with gprof(1)}            \
   %{Wl,*:%*}                                                           \
   %{assert*} %{R*} %{rpath*} %{defsym*}                                        \
   %{shared:-Bshareable %{h*} %{soname*}}                               \
index e0160b1e0480c7def4993d69dbcc66004e4b696b..7e9af2e818eac8913935b46a3e93b5f87d561faa 100644 (file)
@@ -100,6 +100,7 @@ Boston, MA 02111-1307, USA.  */
 
 #undef LINK_SPEC
 #define LINK_SPEC "\
+  %{p:%nconsider using `-pg' instead of `-p' with gprof(1)} \
   %{Wl,*:%*} \
   %{v:-V} \
   %{assert*} %{R*} %{rpath*} %{defsym*} \
index 34dc885905b24830d2a0fa0c53978eda128dde76..3082f4f701a4c73a9a91d3db9609a1a5b3f6fb25 100644 (file)
@@ -19,8 +19,8 @@ along with GNU CC; see the file COPYING.  If not, write to
 the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.  */
 
 
-#define LINK_SPEC                                                      \
"%{p:%e`-p' not supported; use `-pg' and gprof(1)}                    \
+#define LINK_SPEC "                                                    \
 %{p:%nconsider using `-pg' instead of `-p' with gprof(1)}                            \
   %{Wl,*:%*}                                                           \
   %{assert*} %{R*} %{rpath*} %{defsym*}                                        \
   %{shared:-Bshareable %{h*} %{soname*}}                               \
index bd7fcd244451c73bd5f1131cdd0cedaec09d4f97..3bc6b4f2b7e63106003eb22053fc5cd69afb2415 100644 (file)
@@ -30,7 +30,7 @@ the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.  */
 
 #define LINK_SPEC "%(link_arch)                                                \
   %{!mno-relax:%{!r:-relax}}                                           \
-  %{p:%e`-p' not supported; use `-pg' and gprof(1)}                    \
+  %{p:%nconsider using `-pg' instead of `-p' with gprof(1)}                            \
   %{Wl,*:%*}                                                           \
   %{assert*} %{R*} %{rpath*} %{defsym*}                                        \
   %{shared:-Bshareable %{h*} %{soname*}}                               \
index c701328315b0272c113564da15ff0ae82a2d9856..58350ce97380595c0aaf9bc2801d2e8dab0ee66d 100644 (file)
@@ -1,3 +1,7 @@
+2003-02-07  Loren James Rittle  <ljrittle@acm.org>
+
+       * gcc.dg/20021014-1.c: Annotate with expected notice text.
+
 2003-02-07  Roger Sayle  <roger@eyesopen.com>
 
        * testsuite/gcc.dg/builtins-4.c: New test case.
index 8a3ad1d8642b7fcf2e60e77320642927e1f27792..cfb90d88f9e9eedd3f70da635d29bd6d7db64f37 100644 (file)
@@ -1,6 +1,7 @@
 /* { dg-do run } */
 /* { dg-options "-O2 -p" } */
 /* { dg-error "profiler" "No profiler support" { target mmix-*-* } 0 } */
+/* { dg-error "" "consider using `-pg' instead of `-p' with gprof(1)" { target *-*-freebsd* } 0 } */
 /* Support for -p on solaris2 relies on mcrt1.o which comes with the
    vendor compiler.  We cannot reiably predict the directory where the
    vendor compiler (and thus mcrt1.o) is installed so we can't