aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.6/gcc/testsuite/lib/target-supports-dg.exp
diff options
context:
space:
mode:
Diffstat (limited to 'gcc-4.6/gcc/testsuite/lib/target-supports-dg.exp')
-rw-r--r--gcc-4.6/gcc/testsuite/lib/target-supports-dg.exp10
1 files changed, 10 insertions, 0 deletions
diff --git a/gcc-4.6/gcc/testsuite/lib/target-supports-dg.exp b/gcc-4.6/gcc/testsuite/lib/target-supports-dg.exp
index 99cffe0..c9aa0cf 100644
--- a/gcc-4.6/gcc/testsuite/lib/target-supports-dg.exp
+++ b/gcc-4.6/gcc/testsuite/lib/target-supports-dg.exp
@@ -100,6 +100,16 @@ proc dg-require-ifunc { args } {
}
}
+# If this target does not support the section exclude "e" attribute,
+# skip this test.
+
+proc dg-require-section-exclude { args } {
+ if { ![ check_section_exclude_available ] } {
+ upvar dg-do-what dg-do-what
+ set dg-do-what [list [lindex ${dg-do-what} 0] "N" "P"]
+ }
+}
+
# If this target's linker does not support the --gc-sections flag,
# skip this test.