Subject: Re: __PIC__ and __pic__
To: Jason Thorpe <thorpej@wasabisystems.com>
From: Nick Hudson <skrll@netbsd.org>
List: tech-toolchain
Date: 03/03/2004 19:46:34
--Boundary-00=_aYjRA2WgRk3KhUo
Content-Type: text/plain;
charset="iso-8859-1"
Content-Transfer-Encoding: 7bit
Content-Disposition: inline
On Tuesday 02 March 2004 21:15, Jason Thorpe wrote:
> On Mar 2, 2004, at 12:16 PM, Nick Hudson wrote:
[...]
> > I believe TARGET_OS_CPP_BUILTINS is the right place...
>
> Yes. I agree is should be consistently defined for -fpic and -fPIC for
> all of NetBSD's configurations.
OK to commit the attached?
Nick
--Boundary-00=_aYjRA2WgRk3KhUo
Content-Type: text/x-diff;
charset="iso-8859-1";
name="netbsd.h.diff"
Content-Transfer-Encoding: 7bit
Content-Disposition: attachment;
filename="netbsd.h.diff"
Index: netbsd.h
===================================================================
RCS file: /cvsroot/src/gnu/dist/gcc/gcc/config/netbsd.h,v
retrieving revision 1.6
diff -c -r1.6 netbsd.h
*** netbsd.h 15 Feb 2004 19:52:27 -0000 1.6
--- netbsd.h 3 Mar 2004 07:22:38 -0000
***************
*** 26,31 ****
--- 26,36 ----
builtin_define ("__NetBSD__"); \
builtin_assert ("system=unix"); \
builtin_assert ("system=NetBSD"); \
+ if (flag_pic) \
+ { \
+ builtin_define ("__PIC__"); \
+ builtin_define ("__pic__"); \
+ } \
} \
while (0)
--Boundary-00=_aYjRA2WgRk3KhUo--