summaryrefslogtreecommitdiffstats
path: root/contrib
diff options
context:
space:
mode:
authorjdp <jdp@FreeBSD.org>1997-04-05 16:19:08 +0000
committerjdp <jdp@FreeBSD.org>1997-04-05 16:19:08 +0000
commit8a34de70b70e232cf213388041d3d2facc77b56f (patch)
treec4ba88c1674b93aaa34ae9788d6b882590752c80 /contrib
parent3913c4d60b0d38f23bebb6f1e856ba031a68ee10 (diff)
downloadFreeBSD-src-8a34de70b70e232cf213388041d3d2facc77b56f.zip
FreeBSD-src-8a34de70b70e232cf213388041d3d2facc77b56f.tar.gz
Disallow "-p" when linking, with a diagnostic that recommends using
"-pg" and gprof(1) instead. FreeBSD does not support plain "-p" or prof(1). Plain "-p" is still allowed when just compiling. In the compile phase, "-p" is identical "-pg". It is used by <bsd.lib.mk> for building profiled object files.
Diffstat (limited to 'contrib')
-rw-r--r--contrib/gcc/config/i386/freebsd.h11
-rw-r--r--contrib/gcc/config/i386/freebsd.h.fixed11
2 files changed, 12 insertions, 10 deletions
diff --git a/contrib/gcc/config/i386/freebsd.h b/contrib/gcc/config/i386/freebsd.h
index 6908bc3..264a5e0 100644
--- a/contrib/gcc/config/i386/freebsd.h
+++ b/contrib/gcc/config/i386/freebsd.h
@@ -86,17 +86,18 @@ Boston, MA 02111-1307, USA. */
#define ASM_SPEC " %| %{fpic:-k} %{fPIC:-k}"
-/* Like the default, except no -lg. */
-#define LIB_SPEC "%{!p:%{!pg:-lc}}%{p:-lc_p}%{pg:-lc_p}"
+/* Like the default, except no -lg, and no -p. */
+#define LIB_SPEC "%{!pg:-lc}%{pg:-lc_p}"
#define LINK_SPEC \
- "%{!nostdlib:%{!r:%{!e*:-e start}}} -dc -dp %{static:-Bstatic} %{assert*} \
- %{p:-Bstatic} %{pg:-Bstatic} %{Z} %{R*}"
+ "%{p:%e`-p' not supported; use `-pg' and gprof(1)} \
+ %{!nostdlib:%{!r:%{!e*:-e start}}} -dc -dp %{static:-Bstatic} %{assert*} \
+ %{pg:-Bstatic} %{Z} %{R*}"
#define LINK_LIBGCC_SPECIAL_1 1
#define STARTFILE_SPEC \
- "%{pg:gcrt0.o%s}%{!pg:%{p:mcrt0.o%s}%{!p:%{static:scrt0.o%s}%{!static:crt0.o%s}}}"
+ "%{pg:gcrt0.o%s}%{!pg:%{static:scrt0.o%s}%{!static:crt0.o%s}}"
/* This goes away when the math emulator is fixed. */
#undef TARGET_DEFAULT
diff --git a/contrib/gcc/config/i386/freebsd.h.fixed b/contrib/gcc/config/i386/freebsd.h.fixed
index 6908bc3..264a5e0 100644
--- a/contrib/gcc/config/i386/freebsd.h.fixed
+++ b/contrib/gcc/config/i386/freebsd.h.fixed
@@ -86,17 +86,18 @@ Boston, MA 02111-1307, USA. */
#define ASM_SPEC " %| %{fpic:-k} %{fPIC:-k}"
-/* Like the default, except no -lg. */
-#define LIB_SPEC "%{!p:%{!pg:-lc}}%{p:-lc_p}%{pg:-lc_p}"
+/* Like the default, except no -lg, and no -p. */
+#define LIB_SPEC "%{!pg:-lc}%{pg:-lc_p}"
#define LINK_SPEC \
- "%{!nostdlib:%{!r:%{!e*:-e start}}} -dc -dp %{static:-Bstatic} %{assert*} \
- %{p:-Bstatic} %{pg:-Bstatic} %{Z} %{R*}"
+ "%{p:%e`-p' not supported; use `-pg' and gprof(1)} \
+ %{!nostdlib:%{!r:%{!e*:-e start}}} -dc -dp %{static:-Bstatic} %{assert*} \
+ %{pg:-Bstatic} %{Z} %{R*}"
#define LINK_LIBGCC_SPECIAL_1 1
#define STARTFILE_SPEC \
- "%{pg:gcrt0.o%s}%{!pg:%{p:mcrt0.o%s}%{!p:%{static:scrt0.o%s}%{!static:crt0.o%s}}}"
+ "%{pg:gcrt0.o%s}%{!pg:%{static:scrt0.o%s}%{!static:crt0.o%s}}"
/* This goes away when the math emulator is fixed. */
#undef TARGET_DEFAULT
OpenPOWER on IntegriCloud