From: Daniel Jacobowitz Date: Tue, 16 Nov 2004 22:42:21 +0000 (+0000) Subject: re PR target/6123 (__pic__/__PIC__ not defined when -fpic/-fPIC is specified) X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=d3f2f8aec2d6873c7ba01bc0e0b6143af1a3702a;p=gcc.git re PR target/6123 (__pic__/__PIC__ not defined when -fpic/-fPIC is specified) 2004-11-16 Daniel Jacobowitz Mark Mitchell PR target/6123 * config/sol2.h (TARGET_OS_CPP_BUILTINS): Define __PIC__ and __pic__ if PIC. Co-Authored-By: Mark Mitchell From-SVN: r90770 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 72729f4563f..600089338f6 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,10 @@ +2004-11-16 Daniel Jacobowitz + Mark Mitchell + + PR target/6123 + * config/sol2.h (TARGET_OS_CPP_BUILTINS): Define __PIC__ and + __pic__ if PIC. + 2004-11-16 Ulrich Weigand * regmove.c (regmove_optimize): Use lowpart_subreg instead of diff --git a/gcc/config/sol2.h b/gcc/config/sol2.h index 07994e22250..86d359c178b 100644 --- a/gcc/config/sol2.h +++ b/gcc/config/sol2.h @@ -72,6 +72,11 @@ Boston, MA 02111-1307, USA. */ builtin_define ("_LARGEFILE64_SOURCE=1"); \ builtin_define ("__EXTENSIONS__"); \ } \ + if (flag_pic) \ + { \ + builtin_define ("__PIC__"); \ + builtin_define ("__pic__"); \ + } \ TARGET_SUB_OS_CPP_BUILTINS(); \ } while (0)