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 Reduce diff to upstream (in conf...



details:   https://anonhg.NetBSD.org/src/rev/372bf75544c9
branches:  trunk
changeset: 455603:372bf75544c9
user:      maya <maya%NetBSD.org@localhost>
date:      Sun Apr 07 14:11:23 2019 +0000

description:
Reduce diff to upstream  (in config.gcc):
Make the NETBSD_ENABLE_PTHREADS unconditional (we don't use the else case)

diffstat:

 external/gpl3/gcc/dist/gcc/config.gcc      |  5 +----
 external/gpl3/gcc/dist/gcc/config/netbsd.h |  4 ----
 2 files changed, 1 insertions(+), 8 deletions(-)

diffs (35 lines):

diff -r c9e813dd8225 -r 372bf75544c9 external/gpl3/gcc/dist/gcc/config.gcc
--- a/external/gpl3/gcc/dist/gcc/config.gcc     Sun Apr 07 14:08:35 2019 +0000
+++ b/external/gpl3/gcc/dist/gcc/config.gcc     Sun Apr 07 14:11:23 2019 +0000
@@ -798,10 +798,7 @@
   gnu_ld=yes
   use_gcc_stdint=wrap
   case ${enable_threads} in
-    "" | yes | posix)
-      thread_file='posix'
-      tm_defines="${tm_defines} NETBSD_ENABLE_PTHREADS"
-      ;;
+    "" | yes | posix) thread_file='posix' ;;
   esac
   nbsd_tm_file="${nbsd_tm_file} netbsd.h netbsd-stdint.h netbsd-elf.h"
   default_use_cxa_atexit=yes
diff -r c9e813dd8225 -r 372bf75544c9 external/gpl3/gcc/dist/gcc/config/netbsd.h
--- a/external/gpl3/gcc/dist/gcc/config/netbsd.h        Sun Apr 07 14:08:35 2019 +0000
+++ b/external/gpl3/gcc/dist/gcc/config/netbsd.h        Sun Apr 07 14:11:23 2019 +0000
@@ -107,16 +107,12 @@
    FIXME: Could eliminate the duplication here if we were allowed to
    use string concatenation.  */
 
-#ifdef NETBSD_ENABLE_PTHREADS
 #define NETBSD_LIB_SPEC_PTHREAD \
   "%{pthread:                  \
      %{!p:                     \
        %{!pg:-lpthread}}       \
      %{p:-lpthread_p}          \
      %{pg:-lpthread_p}}"
-#else
-#define NETBSD_LIB_SPEC_PTHREAD
-#endif
 
 #define NETBSD_LIB_SPEC                \
   NETBSD_LIB_SPEC_PTHREAD       \



Home | Main Index | Thread Index | Old Index