Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/external/gpl3/gcc/dist/gcc/config - perform some CSE on NETB...



details:   https://anonhg.NetBSD.org/src/rev/c0e44c0259be
branches:  trunk
changeset: 448443:c0e44c0259be
user:      mrg <mrg%NetBSD.org@localhost>
date:      Sun Feb 03 11:10:26 2019 +0000

description:
- perform some CSE on NETBSD_LIB_SPEC
- remove some #if 0 code

diffstat:

 external/gpl3/gcc/dist/gcc/config/netbsd.h |  30 ++++++------------------------
 1 files changed, 6 insertions(+), 24 deletions(-)

diffs (60 lines):

diff -r d23a6a43b19d -r c0e44c0259be external/gpl3/gcc/dist/gcc/config/netbsd.h
--- a/external/gpl3/gcc/dist/gcc/config/netbsd.h        Sun Feb 03 11:03:53 2019 +0000
+++ b/external/gpl3/gcc/dist/gcc/config/netbsd.h        Sun Feb 03 11:10:26 2019 +0000
@@ -108,30 +108,18 @@
    use string concatenation.  */
 
 #ifdef NETBSD_ENABLE_PTHREADS
-#define NETBSD_LIB_SPEC                \
+#define NETBSD_LIB_SPEC_PTHREAD \
   "%{pthread:                  \
      %{!p:                     \
        %{!pg:-lpthread}}       \
      %{p:-lpthread_p}          \
-     %{pg:-lpthread_p}}                \
-   %{posix:                    \
-     %{!p:                     \
-       %{!pg:-lposix}}         \
-     %{p:-lposix_p}            \
-     %{pg:-lposix_p}}          \
-   %{shared:                   \
-     %{!p:                     \
-       %{!pg:-lc}}             \
-     %{p:-lc_p}                        \
-       %{pg:-lc_p}}            \
-   %{!shared:                  \
-     %{!symbolic:              \
-       %{!p:                   \
-        %{!pg:-lc}}            \
-       %{p:-lc_p}              \
-       %{pg:-lc_p}}}"
+     %{pg:-lpthread_p}}"
 #else
+#define NETBSD_LIB_SPEC_PTHREAD
+#endif
+
 #define NETBSD_LIB_SPEC                \
+  NETBSD_LIB_SPEC_PTHREAD       \
   "%{posix:                    \
      %{!p:                     \
        %{!pg:-lposix}}         \
@@ -148,7 +136,6 @@
         %{!pg:-lc}}            \
        %{p:-lc_p}              \
        %{pg:-lc_p}}}"
-#endif
 
 #undef LIB_SPEC
 #define LIB_SPEC NETBSD_LIB_SPEC
@@ -156,11 +143,6 @@
 #define LIBSTDCXX_PROFILE "stdc++_p"
 #define MATH_LIBRARY_PROFILE "m_p"
 
-#if 0 // XXXMRG
-#undef STATIC_LIBASAN_LIBS
-#define STATIC_LIBASAN_LIBS "-lstdc++ -lpthread"
-#endif
-
 /* Provide a LIBGCC_SPEC appropriate for NetBSD.  */
 #ifdef NETBSD_NATIVE
 #define NETBSD_LIBGCC_SPEC     \



Home | Main Index | Thread Index | Old Index