Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/netbsd-1-6]: src/gnu/dist/toolchain/gcc/config/vax Pull up revision 1.7 ...
details: https://anonhg.NetBSD.org/src/rev/401326a307d9
branches: netbsd-1-6
changeset: 529731:401326a307d9
user: he <he%NetBSD.org@localhost>
date: Wed Dec 11 17:41:07 2002 +0000
description:
Pull up revision 1.7 (requested by thorpej in ticket #966):
Tidy up CC1_SPEC; remove the -mno-pic flag, which didn't
actually work properly.
Add a new -mno-asm-pic flag which tells the assembler to
assemble the code non-PIC even if it was compiled PIC.
diffstat:
gnu/dist/toolchain/gcc/config/vax/netbsd.h | 23 ++++++++++++++++-------
1 files changed, 16 insertions(+), 7 deletions(-)
diffs (36 lines):
diff -r 6f9641a7e8ab -r 401326a307d9 gnu/dist/toolchain/gcc/config/vax/netbsd.h
--- a/gnu/dist/toolchain/gcc/config/vax/netbsd.h Wed Dec 11 17:35:17 2002 +0000
+++ b/gnu/dist/toolchain/gcc/config/vax/netbsd.h Wed Dec 11 17:41:07 2002 +0000
@@ -8,16 +8,25 @@
#define CPP_PREDEFINES "-D__vax__ -D__NetBSD__ -Asystem(unix) -Asystem(NetBSD) -Acpu(vax) -Amachine(vax)"
#undef CC1_SPEC
-#define CC1_SPEC "\
- %{!fno-pic: \
- %{!mno-pic: %{!fpic: %{!fPIC:-fPIC}}} \
- %{!mindirect: %{!mno-indirect:-mno-indirect}}} \
- %{mno-pic: -fno-pic -mindirect} \
- %{fno-pic: \
- %{!mindirect: %{!mno-indirect:-mindirect}}}"
+#define CC1_SPEC \
+ "%{!fno-pic: \
+ %{!fpic: \
+ %{!fPIC:-fPIC}} \
+ %{!mindirect: \
+ %{!mno-indirect:-mno-indirect}}} \
+ %{fno-pic: \
+ %{!mno-indirect: \
+ %{!mindirect:-mindirect}}}"
#define CC1PLUS_SPEC CC1_SPEC
+/* Pass -k to the assembler by default, since we generate PIC code by
+ default (-fPIC above), unless -fno-pic or -mno-asm-pic is passed. */
+#undef ASM_SPEC
+#define ASM_SPEC \
+ "%{!fno-pic: \
+ %{!mno-asm-pic:-k}}"
+
/* Make gcc agree with <machine/ansi.h> */
#undef SIZE_TYPE
Home |
Main Index |
Thread Index |
Old Index