[ld/testsuite/]
authorKyrylo Tkachov <kyrylo.tkachov@arm.com>
Wed, 27 Nov 2013 13:43:39 +0000 (13:43 +0000)
committerKyrylo Tkachov <kyrylo.tkachov@arm.com>
Wed, 27 Nov 2013 13:43:39 +0000 (13:43 +0000)
2013-11-27  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>

* ld-plugin/lto.exp: Add -ffat-lto-objects.
* lib/ld-lib.exp (check_lto_available): Likewise.

ld/testsuite/ChangeLog
ld/testsuite/ld-plugin/lto.exp
ld/testsuite/lib/ld-lib.exp

index fe9589fd8018d6210a84725b566979943a6c3e7e..9bc7975fd58011f22336e09c3972ffcca62b030e 100644 (file)
@@ -1,3 +1,8 @@
+2013-11-27  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
+
+       * ld-plugin/lto.exp: Add -ffat-lto-objects.
+       * lib/ld-lib.exp (check_lto_available): Likewise.
+
 2013-11-27  Matthew Fortune <matthew.fortune@imgtec.com>
 
        * ld-mips-elf/mips-elf.exp: Consider mips-mti-elf the same as
index c5249f0df246fefe76771ef42579aa7403a645c8..69946de68fa976205581477420a0be9751494593 100644 (file)
@@ -57,7 +57,7 @@ set lto_link_tests {
    "" "-O2"
    {lto-3c.c} {} "libdummy.a"}
   {"Build liblto-3.a"
-   "" "-flto"
+   "" "-flto -ffat-lto-objects"
    {lto-3b.c} {} "liblto-3.a"}
   {"Build libdummy.a 5a"
    "" "-flto"
@@ -111,7 +111,7 @@ set lto_link_tests {
    "" ""
    {pr12758a.s} {} "libdummy.a"}
   {"Build libpr12758.a"
-   "" "-flto -O2"
+   "" "-flto -O2 -ffat-lto-objects"
    {pr12758b.c} {} "libpr12758.a"}
   {"PR ld/12758"
    "-O2 -Wl,-e,foo -nostdlib -flto -fuse-linker-plugin tmpdir/pr12758a.o -Wl,--start-group tmpdir/libpr12758.a -Wl,--end-group" ""
@@ -120,13 +120,13 @@ set lto_link_tests {
    "" ""
    {pr12760a.c} {} "libdummy.a"}
   {"Build libpr12760.a"
-   "" "-flto -O2"
+   "" "-flto -O2 -ffat-lto-objects"
    {pr12760b.c} {} "libpr12760.a"}
   {"PR ld/12760"
    "-O2 -Wl,-e,foo -nostdlib -flto -fuse-linker-plugin tmpdir/pr12760a.o -Wl,--start-group tmpdir/libpr12760.a -Wl,--end-group" ""
    {dummy.c} {} "pr12760.exe" "c" "warning: Bad bar"}
   {"Build libpr13183.a"
-   "-T" "-flto -O2"
+   "-T" "-flto -O2 -ffat-lto-objects"
    {pr13183a.c} {} "libpr13183.a"}
   {"Build libdummy.a PR ld/13183"
    "" "-flto -O2"
index 8df42ae85eda281df270c7d6ce747f6ee5c1569f..175449a6f42c360605778ab09751f4f2c5aa35b4 100644 (file)
@@ -1643,7 +1643,7 @@ proc check_lto_available { } {
        set f [open $src "w"]
        puts $f ""
        close $f
-       set status [remote_exec host $CC "-shared -B[pwd]/tmpdir/ld/ -flto -fuse-linker-plugin $src -o $output"]
+       set status [remote_exec host $CC "-shared -B[pwd]/tmpdir/ld/ -flto -ffat-lto-objects -fuse-linker-plugin $src -o $output"]
        if { [lindex $status 0] == 0 } {
            set lto_available_saved 1
        } else {