diff options
author | Richard Guenther <rguenther@suse.de> | 2010-07-22 12:54:44 +0000 |
---|---|---|
committer | Richard Biener <rguenth@gcc.gnu.org> | 2010-07-22 12:54:44 +0000 |
commit | 3cf8ccdf3b979989ce17ffe48a2c588606cfc5d1 (patch) | |
tree | 1528f706179bfabe57c28086545b7570a71c64ab /gcc | |
parent | 56a42add96f40b6dfd8002abfc3e55f5ccf40535 (diff) | |
download | gcc-3cf8ccdf3b979989ce17ffe48a2c588606cfc5d1.zip gcc-3cf8ccdf3b979989ce17ffe48a2c588606cfc5d1.tar.gz gcc-3cf8ccdf3b979989ce17ffe48a2c588606cfc5d1.tar.bz2 |
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
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/testsuite/ChangeLog | 8 | ||||
-rw-r--r-- | gcc/testsuite/gcc.dg/lto/20100722-1_0.c | 6 | ||||
-rw-r--r-- | gcc/testsuite/lib/target-supports-dg.exp | 8 | ||||
-rw-r--r-- | gcc/testsuite/lib/target-supports.exp | 6 |
4 files changed, 28 insertions, 0 deletions
diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 7bffd78..ebfd257 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -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 diff --git a/gcc/testsuite/gcc.dg/lto/20100722-1_0.c b/gcc/testsuite/gcc.dg/lto/20100722-1_0.c new file mode 100644 index 0000000..a859e7e --- /dev/null +++ b/gcc/testsuite/gcc.dg/lto/20100722-1_0.c @@ -0,0 +1,6 @@ +/* { dg-lto-do run } */ +/* { dg-require-lto-plugin "" } */ +/* { dg-extra-ld-options "-fuse-linker-plugin" } */ + +int main() { return 0; } + diff --git a/gcc/testsuite/lib/target-supports-dg.exp b/gcc/testsuite/lib/target-supports-dg.exp index e742d75..02f0bc1 100644 --- a/gcc/testsuite/lib/target-supports-dg.exp +++ b/gcc/testsuite/lib/target-supports-dg.exp @@ -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. diff --git a/gcc/testsuite/lib/target-supports.exp b/gcc/testsuite/lib/target-supports.exp index 0378f80..9c1369a 100644 --- a/gcc/testsuite/lib/target-supports.exp +++ b/gcc/testsuite/lib/target-supports.exp @@ -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. |