re PR libfortran/63471 (unix.c:1906:10: error: implicit declaration of function ...
authorJohn David Anglin <dave.anglin@nrc-cnrc.gc.ca>
Mon, 13 Oct 2014 17:02:35 +0000 (17:02 +0000)
committerJohn David Anglin <danglin@gcc.gnu.org>
Mon, 13 Oct 2014 17:02:35 +0000 (17:02 +0000)
PR libfortran/63471
        * config/pa/pa-hpux11.h (TARGET_OS_CPP_BUILTINS): Define _REENTRANT
        when _HPUX_SOURCE is defined.

From-SVN: r216152

gcc/ChangeLog
gcc/config/pa/pa-hpux11.h

index 36b5abb71c63dc77988341adf6ef5185fee3fddf..6a57df0d4754eb938ce39343bff1c935d4d3171f 100644 (file)
@@ -1,3 +1,9 @@
+2014-10-13  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
+
+       PR libfortran/63471
+        * config/pa/pa-hpux11.h (TARGET_OS_CPP_BUILTINS): Define _REENTRANT
+        when _HPUX_SOURCE is defined.
+
 2014-10-13  Jan Hubicka  <hubicka@ucw.cz>
 
        PR tree-optimization/62127
index 07f0decfa6179a09800bac2dc6c2d2985907eb7e..8885cd043943a1996d73c7e6f903e7a5813c5802 100644 (file)
@@ -40,6 +40,7 @@ along with GCC; see the file COPYING3.  If not see
        if (c_dialect_cxx ())                                           \
          {                                                             \
            builtin_define ("_HPUX_SOURCE");                            \
+           builtin_define ("_REENTRANT");                              \
            builtin_define ("_INCLUDE_LONGLONG");                       \
            builtin_define ("__STDCPP__");                              \
          }                                                             \
@@ -48,6 +49,7 @@ along with GCC; see the file COPYING3.  If not see
            if (!flag_iso)                                              \
              {                                                         \
                builtin_define ("_HPUX_SOURCE");                        \
+               builtin_define ("_REENTRANT");                          \
                if (preprocessing_trad_p ())                            \
                  {                                                     \
                    builtin_define ("hp9000s800");                      \