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 Make the post-netbsd 2.0 case the...



details:   https://anonhg.NetBSD.org/src/rev/eef393aa429d
branches:  trunk
changeset: 998098:eef393aa429d
user:      maya <maya%NetBSD.org@localhost>
date:      Sun Apr 07 14:08:35 2019 +0000

description:
Make the post-netbsd 2.0 case the only case. NFC.

(Reducing diff to upstream)

diffstat:

 external/gpl3/gcc/dist/gcc/config.gcc |  22 ++--------------------
 1 files changed, 2 insertions(+), 20 deletions(-)

diffs (38 lines):

diff -r a498994268cf -r eef393aa429d external/gpl3/gcc/dist/gcc/config.gcc
--- a/external/gpl3/gcc/dist/gcc/config.gcc     Sun Apr 07 14:05:15 2019 +0000
+++ b/external/gpl3/gcc/dist/gcc/config.gcc     Sun Apr 07 14:08:35 2019 +0000
@@ -797,32 +797,14 @@
   gas=yes
   gnu_ld=yes
   use_gcc_stdint=wrap
-
-  # NetBSD 2.0 and later get POSIX threads enabled by default.
-  # Allow them to be explicitly enabled on any other version.
   case ${enable_threads} in
-    "")
-      case ${target} in
-        *-*-netbsd[2-9]* | *-*-netbsdelf[2-9]*)
-          thread_file='posix'
-          tm_defines="${tm_defines} NETBSD_ENABLE_PTHREADS"
-          ;;
-      esac
-      ;;
-    yes | posix)
+    "" | yes | posix)
       thread_file='posix'
       tm_defines="${tm_defines} NETBSD_ENABLE_PTHREADS"
       ;;
   esac
-
-  # NetBSD 2.0 and later provide __cxa_atexit(), which we use by
-  # default (unless overridden by --disable-__cxa_atexit).
-  case ${target} in
-    *-*-netbsd[2-9]* | *-*-netbsdelf[2-9]*)
-      default_use_cxa_atexit=yes
-      ;;
-  esac
   nbsd_tm_file="${nbsd_tm_file} netbsd.h netbsd-stdint.h netbsd-elf.h"
+  default_use_cxa_atexit=yes
   ;;
 *-*-openbsd*)
   tmake_file="t-openbsd"



Home | Main Index | Thread Index | Old Index