aboutsummaryrefslogtreecommitdiff
path: root/gcc/config.gcc
diff options
context:
space:
mode:
authorYaakov Selkowitz <yselkowi@redhat.com>2014-08-19 15:21:22 +0000
committerKai Tietz <ktietz@gcc.gnu.org>2014-08-19 17:21:22 +0200
commit301f44023e0c46542329b5f77763685529a46267 (patch)
tree120983161c5b777e07ffab4db007b3cf1f6d8d29 /gcc/config.gcc
parent8020a4d5c58aed7abfe15c681e62f133f87e788e (diff)
downloadgcc-301f44023e0c46542329b5f77763685529a46267.zip
gcc-301f44023e0c46542329b5f77763685529a46267.tar.gz
gcc-301f44023e0c46542329b5f77763685529a46267.tar.bz2
config.gcc (*-*-cygwin*): Use __cxa_atexit by default.
2014-08-19 Yaakov Selkowitz <yselkowi@redhat.com> * config.gcc (*-*-cygwin*): Use __cxa_atexit by default. (extra_options): Add i386/cygwin.opt. * config/i386/cygwin.h (STARTFILE_SPEC): Use crtbeginS.o if shared. (CPP_SPEC): Accept -pthread. (LINK_SPEC): Ditto. (GOMP_SELF_SPECS): Update comment. * config/i386/cygwin.opt: New file for -pthread flag. From-SVN: r214161
Diffstat (limited to 'gcc/config.gcc')
-rw-r--r--gcc/config.gcc6
1 files changed, 4 insertions, 2 deletions
diff --git a/gcc/config.gcc b/gcc/config.gcc
index e1f1532..6862c127 100644
--- a/gcc/config.gcc
+++ b/gcc/config.gcc
@@ -1568,13 +1568,14 @@ i[34567]86-*-cygwin*)
xm_file=i386/xm-cygwin.h
tmake_file="${tmake_file} i386/t-cygming t-slibgcc"
target_gtfiles="\$(srcdir)/config/i386/winnt.c"
- extra_options="${extra_options} i386/cygming.opt"
+ extra_options="${extra_options} i386/cygming.opt i386/cygwin.opt"
extra_objs="winnt.o winnt-stubs.o"
c_target_objs="${c_target_objs} msformat-c.o"
cxx_target_objs="${cxx_target_objs} winnt-cxx.o msformat-c.o"
if test x$enable_threads = xyes; then
thread_file='posix'
fi
+ default_use_cxa_atexit=yes
use_gcc_stdint=wrap
;;
x86_64-*-cygwin*)
@@ -1583,13 +1584,14 @@ x86_64-*-cygwin*)
xm_file=i386/xm-cygwin.h
tmake_file="${tmake_file} i386/t-cygming t-slibgcc i386/t-cygwin-w64"
target_gtfiles="\$(srcdir)/config/i386/winnt.c"
- extra_options="${extra_options} i386/cygming.opt"
+ extra_options="${extra_options} i386/cygming.opt i386/cygwin.opt"
extra_objs="winnt.o winnt-stubs.o"
c_target_objs="${c_target_objs} msformat-c.o"
cxx_target_objs="${cxx_target_objs} winnt-cxx.o msformat-c.o"
if test x$enable_threads = xyes; then
thread_file='posix'
fi
+ default_use_cxa_atexit=yes
use_gcc_stdint=wrap
tm_defines="${tm_defines} TARGET_CYGWIN64=1"
;;