diff options
Diffstat (limited to 'gcc-4.9/gcc/testsuite/lib/target-supports-dg.exp')
-rw-r--r-- | gcc-4.9/gcc/testsuite/lib/target-supports-dg.exp | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/gcc-4.9/gcc/testsuite/lib/target-supports-dg.exp b/gcc-4.9/gcc/testsuite/lib/target-supports-dg.exp index 171dc1b47..9128a5486 100644 --- a/gcc-4.9/gcc/testsuite/lib/target-supports-dg.exp +++ b/gcc-4.9/gcc/testsuite/lib/target-supports-dg.exp @@ -127,6 +127,25 @@ 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 uses a linker that supports plugins and can load +# the function reordering linker plugin. + +proc dg-require-linker-function-reordering-plugin {args } { + if { ![ check_linker_function_reordering_plugin_supported ] } { + 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. |