This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[PATCH]: fix misc darwin9 hard-codings
- From: Jack Howarth <howarth at bromo dot med dot uc dot edu>
- To: gcc-patches at gcc dot gnu dot org
- Cc: mrs at apple dot com
- Date: Sun, 30 Nov 2008 10:32:19 -0500
- Subject: [PATCH]: fix misc darwin9 hard-codings
The attach patch corrects a number of remaining instances where
configure and testcases were hard coded to darwin9. These should
be expanded to darwin[912] to allow for darwin10 and later. Tested
on x86_64-apple-darwin10. Okay for gcc trunk?
Jack
2008-11-29 Jack Howarth <howarth@bromo.med.uc.edu>
configure: Expand to darwin10 and later.
configure.ac: Likewise.
gcc/testsuite/gcc.dg/darwin-comm.c: Likewise.
libjava/configure: Likewise.
libjava/configure.ac: Likewise.
libjava/testsuite/lib/libjava.exp: Likewise.
Index: configure
===================================================================
--- configure (revision 142277)
+++ configure (working copy)
@@ -2210,7 +2210,7 @@
*-*-chorusos)
noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
;;
- powerpc-*-darwin* | x86_64-*-darwin9*)
+ powerpc-*-darwin* | x86_64-*-darwin[912]*)
noconfigdirs="$noconfigdirs ld gas gdb gprof"
noconfigdirs="$noconfigdirs sim target-rda"
;;
Index: gcc/testsuite/gcc.dg/darwin-comm.c
===================================================================
--- gcc/testsuite/gcc.dg/darwin-comm.c (revision 142277)
+++ gcc/testsuite/gcc.dg/darwin-comm.c (working copy)
@@ -1,4 +1,4 @@
-/* { dg-do compile { target *-*-darwin9* } } */
+/* { dg-do compile { target *-*-darwin[912]* } } */
/* { dg-final { scan-assembler ".comm _foo,1,15" } } */
char foo __attribute__ ((aligned(32768)));
Index: configure.ac
===================================================================
--- configure.ac (revision 142277)
+++ configure.ac (working copy)
@@ -446,7 +446,7 @@
*-*-chorusos)
noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
;;
- powerpc-*-darwin* | x86_64-*-darwin9*)
+ powerpc-*-darwin* | x86_64-*-darwin[912]*)
noconfigdirs="$noconfigdirs ld gas gdb gprof"
noconfigdirs="$noconfigdirs sim target-rda"
;;
Index: libjava/configure.ac
===================================================================
--- libjava/configure.ac (revision 142277)
+++ libjava/configure.ac (working copy)
@@ -867,7 +867,7 @@
# on Darwin -single_module speeds up loading of the dynamic libraries.
extra_ldflags_libjava=-Wl,-single_module
;;
-*-*-darwin[[9]]*)
+*-*-darwin[912]*)
extra_gij_ldflags=-Wl,-allow_stack_execute
;;
arm*linux*eabi)
Index: libjava/testsuite/lib/libjava.exp
===================================================================
--- libjava/testsuite/lib/libjava.exp (revision 142277)
+++ libjava/testsuite/lib/libjava.exp (working copy)
@@ -430,7 +430,7 @@
lappend args "additional_flags=-bind_at_load"
lappend args "additional_flags=-multiply_defined suppress"
}
- if { [istarget "*-*-darwin9*"] } {
+ if { [istarget "*-*-darwin9*"] || [istarget "*-*-darwin1*"] || [istarget "*-*-darwin2*"] } {
lappend args "additional_flags=-Wl,-allow_stack_execute"
}
Index: libjava/configure
===================================================================
--- libjava/configure (revision 142277)
+++ libjava/configure (working copy)
@@ -20608,7 +20608,7 @@
# on Darwin -single_module speeds up loading of the dynamic libraries.
extra_ldflags_libjava=-Wl,-single_module
;;
-*-*-darwin[9]*)
+*-*-darwin[912]*)
extra_gij_ldflags=-Wl,-allow_stack_execute
;;
arm*linux*eabi)