re PR libgomp/26384 (FAIL: libgomp.c/appendix-a/a.18.1.c execution test)
authorSteve Ellcey <sje@cup.hp.com>
Tue, 21 Mar 2006 21:12:00 +0000 (21:12 +0000)
committerSteve Ellcey <sje@gcc.gnu.org>
Tue, 21 Mar 2006 21:12:00 +0000 (21:12 +0000)
PR libgomp/26384
* config/pa/pa64-hpux.h (LIB_SPEC): Fix for -mt and -pthread options.

From-SVN: r112257

gcc/ChangeLog
gcc/config/pa/pa64-hpux.h

index 0a8feca8275089f03f8ed06b6d77a25d2b9fbfc1..fb5f2377c2fa68c8bee1d3d253796885c7acf626 100644 (file)
@@ -1,3 +1,8 @@
+2006-03-21  Steve Ellcey  <sje@cup.hp.com>
+
+       PR libgomp/26384
+       * config/pa/pa64-hpux.h (LIB_SPEC): Fix for -mt and -pthread options.
+
 2006-03-21  Jeff Law  <law@redhat.com>
 
        * tree-vrp.c (extract_range_from_unary_expr): Derive ranges for
index 9f51f66ae311b8cff1d5b2f76b80ac65a562354f..dc589230bf8970ccae4b757479254f2fa5cf1418 100644 (file)
@@ -56,25 +56,25 @@ Boston, MA 02110-1301, USA.  */
 #if ((TARGET_DEFAULT | TARGET_CPU_DEFAULT) & MASK_GNU_LD)
 #define LIB_SPEC \
   "%{!shared:\
-     %{!p:%{!pg: %{static:-lpthread} -lc\
+     %{!p:%{!pg: %{static|mt|pthread:-lpthread} -lc\
            %{static:%{!nolibdld:-a shared -ldld -a archive -lc}}}}\
      %{p:%{!pg:%{static:%{!mhp-ld:-a shared}%{mhp-ld:-a archive_shared}}\
-          -lprof %{static:-a archive -lpthread} -lc\
+          -lprof %{static:-a archive} %{static|mt|pthread:-lpthread} -lc\
           %{static:%{!nolibdld:-a shared -ldld -a archive -lc}}}}\
      %{pg:%{static:%{!mhp-ld:-a shared}%{mhp-ld:-a archive_shared}}\
-       -lgprof %{static:-a archive -lpthread} -lc\
+       -lgprof %{static:-a archive} %{static|mt|pthread:-lpthread} -lc\
        %{static:%{!nolibdld:-a shared -ldld -a archive -lc}}}}\
    /usr/lib/pa20_64/milli.a"
 #else
 #define LIB_SPEC \
   "%{!shared:\
-     %{!p:%{!pg: %{static:-lpthread} -lc\
+     %{!p:%{!pg: %{static|mt|pthread:-lpthread} -lc\
            %{static:%{!nolibdld:-a shared -ldld -a archive -lc}}}}\
      %{p:%{!pg:%{static:%{mgnu-ld:-a shared}%{!mgnu-ld:-a archive_shared}}\
-          -lprof %{static:-a archive -lpthread} -lc\
+          -lprof %{static:-a archive} %{shatic|mt|pthread:-lpthread} -lc\
           %{static:%{!nolibdld:-a shared -ldld -a archive -lc}}}}\
      %{pg:%{static:%{mgnu-ld:-a shared}%{!mgnu-ld:-a archive_shared}}\
-       -lgprof %{static:-a archive -lpthread} -lc\
+       -lgprof %{static:-a archive} %{static|mt|pthread:-lpthread} -lc\
        %{static:%{!nolibdld:-a shared -ldld -a archive -lc}}}}\
    /usr/lib/pa20_64/milli.a"
 #endif