This is the mail archive of the mailing list for the binutils project.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

plugin testsuite tweak

I have a habit of configuring binutils with CFLAGS="-g -O -fno-inline",
which helps with debugging (at least it used to).  However it also
results in failing a couple of lto tests that rely on inlining.  Fixed
as follows.

	* ld-plugin/lto.exp (lto-9.o, pr13229.o): Pass -finline.

Index: ld/testsuite/ld-plugin/lto.exp
RCS file: /cvs/src/src/ld/testsuite/ld-plugin/lto.exp,v
retrieving revision 1.1
diff -u -p -r1.1 lto.exp
--- ld/testsuite/ld-plugin/lto.exp	7 Dec 2012 19:23:50 -0000	1.1
+++ ld/testsuite/ld-plugin/lto.exp	16 Jan 2013 02:14:17 -0000
@@ -69,7 +69,7 @@ set lto_link_tests {
    "-O2 -flto -fuse-linker-plugin" ""
    {lto-6.c} {} "lto-6.exe" "c"}
   {"Build libdummy.a 9"
-   "" "-O2 -flto"
+   "" "-O2 -finline -flto"
    {} {} "libdummy.a"}
   {"Build libdummy.a 11a"
    "" "-O -flto"
@@ -175,7 +175,7 @@ set lto_link_elf_tests {
    "-shared -O2 -fPIC -flto -fuse-linker-plugin -nostdlib -Wl,-version-script,pr12975.t" "-O2 -flto"
    {pr12975.c} {{"readelf" {-s --wide} "pr12975.d"}} "" "c"}
   {"PR ld/13229"
-   "-shared -O2 -fPIC -flto -fuse-linker-plugin -nostdlib" "-O2 -fno-early-inlining -flto"
+   "-shared -O2 -fPIC -flto -fuse-linker-plugin -nostdlib" "-O2 -finline -fno-early-inlining -flto"
    {} {{"readelf" {-s --wide} "pr13229.d"}} "" "c++"}
   {"PR ld/13244"
    "-shared -O2 -fPIC -flto -fuse-linker-plugin -nostdlib" "-O2 -fno-early-inlining -flto"

Alan Modra
Australia Development Lab, IBM

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]