diff options
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/ChangeLog | 7 | ||||
-rw-r--r-- | gcc/config/sol2.h | 5 |
2 files changed, 12 insertions, 0 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 72729f4..6000893 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,10 @@ +2004-11-16 Daniel Jacobowitz <dan@codesourcery.com> + Mark Mitchell <mark@codesourcery.com> + + PR target/6123 + * config/sol2.h (TARGET_OS_CPP_BUILTINS): Define __PIC__ and + __pic__ if PIC. + 2004-11-16 Ulrich Weigand <uweigand@de.ibm.com> * regmove.c (regmove_optimize): Use lowpart_subreg instead of diff --git a/gcc/config/sol2.h b/gcc/config/sol2.h index 07994e2..86d359c 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) |