+2010-10-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
+
+ PR testsuite/45851
+ * doc/sourcebuild.texi (LTO Testing, dg-extra-ld-options):
+ Document optional target selector.
+
2010-10-12 Joseph Myers <joseph@codesourcery.com>
* flag-types.h: New.
to override @var{LTO_OPTIONS}. Each test will be compiled and run with
each of these sets of options.
-@item @{ dg-extra-ld-options @var{options} @}
+@item @{ dg-extra-ld-options @var{options} [@{ target @var{selector} @}]@}
This directive adds @var{options} to the linker options used.
@item @{ dg-suppress-ld-options @var{options} @}
+2010-10-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
+
+ PR testsuite/45851
+ * lib/lto.exp (lto-get-options-main): Support optional target
+ selector for dg-extra-ld-options.
+
2010-10-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
* gcc.dg/pragma-init-fini.c: Skip on i?86-*-solaris2.8 && !gas.
warning "lto.exp does not support dg-lto-do $dgdo"
}
} elseif { ![string compare "dg-extra-ld-options" $cmd] } {
- set dg-extra-ld-options [lindex $op 2]
- verbose "dg-extra-ld-options for main is ${dg-extra-ld-options}"
+ if { [llength $op] > 4 } {
+ error "[lindex $op 0]: too many arguments"
+ } else {
+ if { [llength $op] == 3
+ || ([llength $op] > 3
+ && [dg-process-target [lindex $op 3]] == "S") } {
+ set dg-extra-ld-options [lindex $op 2]
+ verbose \
+ "dg-extra-ld-options for main is ${dg-extra-ld-options}"
+ }
+ }
} elseif { ![string compare "dg-suppress-ld-options" $cmd] } {
set dg-suppress-ld-options [lindex $op 2]
verbose \