(CPP_SPEC): Define _POSIX_SOURCE if -posix.
authorRichard Kenner <kenner@gcc.gnu.org>
Mon, 13 Feb 1995 14:04:18 +0000 (09:04 -0500)
committerRichard Kenner <kenner@gcc.gnu.org>
Mon, 13 Feb 1995 14:04:18 +0000 (09:04 -0500)
From-SVN: r8925

gcc/config/rs6000/powerpc.h
gcc/config/rs6000/rs6000.h

index 207cde3f4d1400ecbe8001d231a10d660afe2768..3f5196667bf6cd937ecefffd459b533043f8e942 100644 (file)
@@ -1,6 +1,6 @@
 /* Definitions of target machine for GNU compiler,
    for IBM RS/6000 PowerPC running AIX version 3.2.
-   Copyright (C) 1993, 1994 Free Software Foundation, Inc.
+   Copyright (C) 1993, 1994, 1995 Free Software Foundation, Inc.
    Contributed by David Edelsohn (edelsohn@npac.syr.edu).
 
 This file is part of GNU CC.
@@ -27,6 +27,7 @@ the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.  */
 
 #undef CPP_SPEC
 #define CPP_SPEC "\
+%{posix: -D_POSIX_SOURCE} \
 %{!mcpu*: \
   %{mpower: %{!mpower2: -D_ARCH_PWR}} \
   %{mpower2: -D_ARCH_PWR2} \
index 40a852884dcc14a877dcdd0f6d17e5c2d6512b01..8daf16899aa79a9b895853d5b2eb4264ec549af5 100644 (file)
@@ -45,6 +45,7 @@ the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.  */
    target switches.  */
 
 #define CPP_SPEC "\
+%{posix: -D_POSIX_SOURCE} \
 %{!mcpu*: \
   %{mpower: %{!mpower2: -D_ARCH_PWR}} \
   %{mpower2: -D_ARCH_PWR2} \