Commit 7d82c626 by Rainer Orth Committed by Rainer Orth

clearcap.map: New file.

	* gcc.target/i386/clearcap.map: New file.
	* gcc.target/i386/i386.exp: Check for linker -M mapfile support.
	Pass clearcap.map by default if supported.

From-SVN: r157136
parent 1069f584
2010-03-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE> 2010-03-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
* gcc.target/i386/clearcap.map: New file.
* gcc.target/i386/i386.exp: Check for linker -M mapfile support.
Pass clearcap.map by default if supported.
2010-03-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
PR fortran/42900 PR fortran/42900
* gfortran.dg/stat_1.f90: Accept 'testfile' gid == parent dir gid. * gfortran.dg/stat_1.f90: Accept 'testfile' gid == parent dir gid.
Explain this. Explain this.
......
# clear all hardware capabilities emitted by Sun as: the tests here
# guard against execution at runtime
hwcap_1 = V0x0 OVERRIDE;
# Copyright (C) 1997, 2004, 2007, 2008, 2009 Free Software Foundation, Inc. # Copyright (C) 1997, 2004, 2007, 2008, 2009, 2010
# Free Software Foundation, Inc.
# This program is free software; you can redistribute it and/or modify # This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by # it under the terms of the GNU General Public License as published by
...@@ -160,6 +161,17 @@ proc check_effective_target_xop { } { ...@@ -160,6 +161,17 @@ proc check_effective_target_xop { } {
} "-O2 -mxop" ] } "-O2 -mxop" ]
} }
# If the linker used understands -M <mapfile>, pass it to clear hardware
# capabilities set by the Sun assembler.
set FLAGS ""
set clearcap_ldflags "-Wl,-M,$srcdir/$subdir/clearcap.map"
if [check_no_compiler_messages mapfile executable {
int main (void) { return 0; }
} $clearcap_ldflags ] {
set FLAGS $clearcap_ldflags
}
# If a testcase doesn't have special options, use these. # If a testcase doesn't have special options, use these.
global DEFAULT_CFLAGS global DEFAULT_CFLAGS
if ![info exists DEFAULT_CFLAGS] then { if ![info exists DEFAULT_CFLAGS] then {
...@@ -184,7 +196,7 @@ set tests [lsort [glob -nocomplain $srcdir/$subdir/*.\[cS\]]] ...@@ -184,7 +196,7 @@ set tests [lsort [glob -nocomplain $srcdir/$subdir/*.\[cS\]]]
set tests [prune $tests $srcdir/$subdir/vect-args.c] set tests [prune $tests $srcdir/$subdir/vect-args.c]
# Main loop. # Main loop.
dg-runtest $tests "" $DEFAULT_CFLAGS dg-runtest $tests $FLAGS $DEFAULT_CFLAGS
# All done. # All done.
dg-finish dg-finish
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment