re PR lto/43373 (-fwhopr -fuse-linker-plugin ICE compressed stream data error)
2010-07-22 Richard Guenther <rguenther@suse.de> * lib/target-supports-dg.exp (dg-require-linker-plugin): New proc. * lib/target-supports.exp (check_linker_plugin_available): Likewise. PR lto/43373 * gcc.dg/lto/20100722-1_0.c: New testcase. From-SVN: r162414
This commit is contained in:
parent
56a42add96
commit
3cf8ccdf3b
@ -1,3 +1,11 @@
|
||||
2010-07-22 Richard Guenther <rguenther@suse.de>
|
||||
|
||||
* lib/target-supports-dg.exp (dg-require-linker-plugin): New proc.
|
||||
* lib/target-supports.exp (check_linker_plugin_available): Likewise.
|
||||
|
||||
PR lto/43373
|
||||
* gcc.dg/lto/20100722-1_0.c: New testcase.
|
||||
|
||||
2010-07-22 Martin Jambor <mjambor@suse.cz>
|
||||
|
||||
PR tree-optimization/44891
|
||||
|
6
gcc/testsuite/gcc.dg/lto/20100722-1_0.c
Normal file
6
gcc/testsuite/gcc.dg/lto/20100722-1_0.c
Normal file
@ -0,0 +1,6 @@
|
||||
/* { dg-lto-do run } */
|
||||
/* { dg-require-lto-plugin "" } */
|
||||
/* { dg-extra-ld-options "-fuse-linker-plugin" } */
|
||||
|
||||
int main() { return 0; }
|
||||
|
@ -207,6 +207,14 @@ proc dg-require-host-local { args } {
|
||||
}
|
||||
}
|
||||
|
||||
proc dg-require-linker-plugin { args } {
|
||||
set linker_plugin_available [ check_linker_plugin_available ]
|
||||
if { $linker_plugin_available == 0 } {
|
||||
upvar dg-do-what dg-do-what
|
||||
set dg-do-what [list [lindex ${dg-do-what} 0] "N" "P"]
|
||||
}
|
||||
}
|
||||
|
||||
# Add any target-specific flags needed for accessing the given list
|
||||
# of features. This must come after all dg-options.
|
||||
|
||||
|
@ -886,6 +886,12 @@ proc check_effective_target_static_libgfortran { } {
|
||||
} "-static"]
|
||||
}
|
||||
|
||||
proc check_linker_plugin_available { } {
|
||||
return [check_no_compiler_messages_nocache linker_plugin executable {
|
||||
int main() { return 0; }
|
||||
} "-flto -fuse-linker-plugin"]
|
||||
}
|
||||
|
||||
# Return 1 if the target supports executing 750CL paired-single instructions, 0
|
||||
# otherwise. Cache the result.
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user