Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/gnu/dist/toolchain/gcc/config/mips Fix PIC handling logic in...
details: https://anonhg.NetBSD.org/src/rev/989085c4e991
branches: trunk
changeset: 539144:989085c4e991
user: thorpej <thorpej%NetBSD.org@localhost>
date: Sat Nov 09 08:09:21 2002 +0000
description:
Fix PIC handling logic in ASM_SPEC: always pass -KPIC to the assembler
unless one of the following flags are passed to the compiler:
-mno-abicalls
-fno-pic
-fno-PIC
Based on the following change in gcc-current:
2002-09-22 Jason Thorpe <thorpej%wasabisystems.com@localhost>
* config/mips/netbsd.h (SUBTARGET_ASM_SPEC): Always pass -KPIC
unless -fno-pic or -fno-PIC is specified.
The -mno-abicalls handling is new to this patch, and will be checked
into gcc-current shortly.
diffstat:
gnu/dist/toolchain/gcc/config/mips/netbsd.h | 4 +++-
1 files changed, 3 insertions(+), 1 deletions(-)
diffs (14 lines):
diff -r 859b782ecf30 -r 989085c4e991 gnu/dist/toolchain/gcc/config/mips/netbsd.h
--- a/gnu/dist/toolchain/gcc/config/mips/netbsd.h Sat Nov 09 07:54:24 2002 +0000
+++ b/gnu/dist/toolchain/gcc/config/mips/netbsd.h Sat Nov 09 08:09:21 2002 +0000
@@ -86,7 +86,9 @@
%{gstabs:-g} %{gstabs0:-g0} %{gstabs1:-g1} %{gstabs2:-g2} %{gstabs3:-g3} \
%{gstabs+:-g} %{gstabs+0:-g0} %{gstabs+1:-g1} %{gstabs+2:-g2} %{gstabs+3:-g3} \
%{gcoff:-g} %{gcoff0:-g0} %{gcoff1:-g1} %{gcoff2:-g2} %{gcoff3:-g3} \
- %{membedded-pic} %{fpic:-k} %{fPIC:-k -K}"
+ %{membedded-pic} \
+ %{!mno-abicalls: \
+ %{!fno-PIC:%{!fno-pic:-KPIC}}}"
/* Provide a LINK_SPEC appropriate for a NetBSD ELF target. */
Home |
Main Index |
Thread Index |
Old Index