netware.h (TARGET_SUBTARGET_DEFAULT): Include MASK_ALIGN_DOUBLE.
authorJan Beulich <jbeulich@novell.com>
Tue, 10 Jan 2006 07:18:15 +0000 (07:18 +0000)
committerJan Beulich <jbeulich@gcc.gnu.org>
Tue, 10 Jan 2006 07:18:15 +0000 (07:18 +0000)
gcc/
2006-01-10  Jan Beulich  <jbeulich@novell.com>

* config/i386/netware.h (TARGET_SUBTARGET_DEFAULT): Include
MASK_ALIGN_DOUBLE.
* config/i386/nwld.h (LINK_SPEC): Add --extensions:GNU option.
* config/i386/t-nwld (SHLIB_LINK): Insert spaces between expr
arguments.

gcc/testsuite/
2006-01-10  Jan Beulich  <jbeulich@novell.com>

* lib/target-supports.exp (check_visibility_available): Simplify test
for *-*-netware*.
(check_profiling_available): Fail for *-*-netware*.
* g++.old-deja/g++.law/profile1.C: Remove dg-bogus for *-*-netware*.
* gcc.dg/20021014-1.c: Likewise.
* gcc.dg/nest.c: Likewise.

From-SVN: r109536

gcc/ChangeLog
gcc/config/i386/netware.h
gcc/config/i386/nwld.h
gcc/config/i386/t-nwld
gcc/testsuite/ChangeLog
gcc/testsuite/g++.old-deja/g++.law/profile1.C
gcc/testsuite/gcc.dg/20021014-1.c
gcc/testsuite/gcc.dg/nest.c
gcc/testsuite/lib/target-supports.exp

index d3e9c9fb53ffaacccb9c95b7f7254845b7aebe5d..a12ae46fdb9f7a1bd206538394487e1dc4cafb49 100644 (file)
@@ -1,3 +1,11 @@
+2006-01-10  Jan Beulich  <jbeulich@novell.com>
+
+       * config/i386/netware.h (TARGET_SUBTARGET_DEFAULT): Include
+       MASK_ALIGN_DOUBLE.
+       * config/i386/nwld.h (LINK_SPEC): Add --extensions:GNU option.
+       * config/i386/t-nwld (SHLIB_LINK): Insert spaces between expr
+       arguments.
+
 2006-01-10  Ben Elliston  <bje@au.ibm.com>
 
        * config/rs6000/predicates.md (easy_fp_constant): Discount decimal
index 197bdc5a6a27e727b0ca9dd206b190f0472a6ea0..3630765c7aa3c4a56a19e0cd3be79b084d9141b7 100644 (file)
@@ -71,7 +71,7 @@ Boston, MA 02110-1301, USA.  */
    returns float values in the 387, and uses MSVC bit field layout. */
 #undef TARGET_SUBTARGET_DEFAULT
 #define TARGET_SUBTARGET_DEFAULT (MASK_80387 | MASK_IEEE_FP | \
-       MASK_FLOAT_RETURNS | MASK_MS_BITFIELD_LAYOUT)
+       MASK_FLOAT_RETURNS | MASK_ALIGN_DOUBLE | MASK_MS_BITFIELD_LAYOUT)
 
 #undef MATH_LIBRARY
 #define MATH_LIBRARY ""
index 7585f86974e6012c5ad90f995d38bbcb61664d3f..fe132afbf8401085f0b1a47a3b78e671d0fcb108 100644 (file)
@@ -31,7 +31,8 @@ Boston, MA 02110-1301, USA.  */
 #define LINKER_NAME "nwld"
 
 #undef  LINK_SPEC
-#define LINK_SPEC "--format nlm %{static:%{!nostdlib:%{!nodefaultlib:%eStatic linking is not supported.\n}}}"
+#define LINK_SPEC "--format:NLM --extensions:GNU" \
+       " %{static:%{!nostdlib:%{!nodefaultlib:%eStatic linking is not supported.\n}}}"
 
 #undef  LINK_GCC_C_SEQUENCE_SPEC
 #define LINK_GCC_C_SEQUENCE_SPEC "%L %G"
index fbca0dfe933585d942e0dbced5d56230b8d8f1f3..6f6905541ecc674f6d2abbfe37fd44cd5c0cc722 100644 (file)
@@ -40,7 +40,7 @@ SHLIB_LINK = set -e; \
        echo "name $(SHLIB_NAME)" >>@shlib_base_name@.def; \
        echo "version $(version)" | sed "s!\.!,!g" >>@shlib_base_name@.def; \
        touch libgcc/build; \
-       echo "build $$$$(expr $$$$(<libgcc/build)+0)" >>@shlib_base_name@.def; \
+       echo "build $$$$(expr $$$$(<libgcc/build) + 0)" >>@shlib_base_name@.def; \
        echo "export @$(SHLIB_MAP)" >>@shlib_base_name@.def; \
        if mpkxdc -n -p @shlib_base_name@.xdc; \
                then echo "xdcdata @shlib_base_name@.xdc" >>@shlib_base_name@.def; \
@@ -51,7 +51,7 @@ SHLIB_LINK = set -e; \
                -Wl,--Map,--map-info,full,--strip-all,--def-file,@shlib_base_name@.def; \
        rm -f @shlib_base_name@.imp; $(LN_S) $(SHLIB_MAP) @shlib_base_name@.imp; \
        rm -f libgcc.imp; $(LN_S) @shlib_base_name@.imp libgcc.imp; \
-       expr $$$$(<libgcc/build)+1 >libgcc/build
+       expr $$$$(<libgcc/build) + 1 >libgcc/build
 
 # $(slibdir) double quoted to protect it from expansion while building
 # libgcc.mk.  We want this delayed until actual install time.
index d2a59cbc9f86b0913021977455f8958daf4c6362..1fa45223f151fba9a33bd68c2a90441ea42a43ab 100644 (file)
@@ -1,3 +1,12 @@
+2006-01-10  Jan Beulich  <jbeulich@novell.com>
+
+       * lib/target-supports.exp (check_visibility_available): Simplify test
+       for *-*-netware*.
+       (check_profiling_available): Fail for *-*-netware*.
+       * g++.old-deja/g++.law/profile1.C: Remove dg-bogus for *-*-netware*.
+       * gcc.dg/20021014-1.c: Likewise.
+       * gcc.dg/nest.c: Likewise.
+
 2006-01-09  Andrew Pinski  <pinskia@physics.uc.edu>
 
        fortran/24936
index acc20d0ad9261347a283bd3fbdceccb2060eafba..7f17a15de9fd8b36d2a8165df69df3283dbea7a1 100644 (file)
@@ -2,7 +2,6 @@
 // { dg-require-profiling "-pg" }
 // { dg-options "-pg" }
 // { dg-options "-pg -static" { target hppa*-*-hpux* } }
-// { dg-bogus "\[Uu\]nresolved symbol ._mcount" "Profiling unsupported" { xfail *-*-netware* } 0 }
 // GROUPS passed profiling
 #include <stdio.h>
 main()
index 6ce62c34666912ea46aa0ea50c49c97509844688..dd8614c9f093da1cb7d033d5462688146ef9965e 100644 (file)
@@ -4,7 +4,6 @@
 /* { dg-options "-O2 -p -static" { target hppa*-*-hpux* } } */
 /* { dg-error "profiler" "No profiler support" { target xstormy16-*-* } 0 } */
 /* { dg-error "" "consider using `-pg' instead of `-p' with gprof(1)" { target *-*-freebsd* } 0 } */
-/* { dg-bogus "\[Uu\]nresolved symbol ._mcount" "Profiling unsupported" { xfail *-*-netware* } 0 } */
 
 extern void abort (void);
 extern void exit (int);
index b9476600ae20caeee51be5517ca5f4ade7a87b00..7178bd820459c632c81994bacb87f7702592c4e5 100644 (file)
@@ -4,7 +4,6 @@
 /* { dg-options "-O2 -pg" } */
 /* { dg-options "-O2 -pg -static" { target hppa*-*-hpux* } } */
 /* { dg-error "profiler" "No profiler support" { target xstormy16-*-* } 0 } */
-/* { dg-bogus "\[Uu\]nresolved symbol ._mcount" "Profiling unsupported" { xfail *-*-netware* } 0 } */
 
 extern void abort (void);
 
index 2e91a161eeb84772651e65fe3b82237d15217b7d..78ceb540853069a3efc453cc6690509dbb3d6fa6 100644 (file)
@@ -131,7 +131,7 @@ proc check_visibility_available { what_kind } {
     global target_triplet
 
     # On NetWare, support makes no sense.
-    if { [string match "*-*-netware*" $target_triplet] } {
+    if { [istarget *-*-netware*] } {
         return 0
     }
 
@@ -279,6 +279,11 @@ proc check_profiling_available { test_what } {
        return 0
     }
 
+    # At present, there is no profiling support on NetWare.
+    if { [istarget *-*-netware*] } {
+       return 0
+    }
+
     # Now examine the cache variable.
     if {![info exists profiling_available_saved]} {
        # Some targets don't have any implementation of __bb_init_func or are