Avoid gcc-7 warning killing ld testcases
authorAlan Modra <amodra@gmail.com>
Wed, 1 Mar 2017 23:53:42 +0000 (10:23 +1030)
committerAlan Modra <amodra@gmail.com>
Thu, 2 Mar 2017 00:10:06 +0000 (10:40 +1030)
* testsuite/ld-elf/shared.exp: Pass -ansi when compiling new.cc
and dl3.cc.

ld/ChangeLog
ld/testsuite/ld-elf/shared.exp

index b271cdb1bbbc14325fc37ebd64302de506877119..c7854374c89987855706b5f5892a2f4ca8b371f8 100644 (file)
@@ -1,3 +1,8 @@
+2017-03-02  Alan Modra  <amodra@gmail.com>
+
+       * testsuite/ld-elf/shared.exp: Pass -ansi when compiling new.cc
+       and dl3.cc.
+
 2017-02-28  Alan Modra  <amodra@gmail.com>
 
        * testsuite/ld-elf/merge.d: xfail for nios.
index 41fb2ba2e66e2f1bcc8b5fdf66a7bb29a865d07d..070915a791d6055e1ebc29262c8bccfbb7f9d764 100644 (file)
@@ -581,10 +581,10 @@ set build_cxx_tests {
    "-shared -Wl,--dynamic-list-cpp-typeinfo" "-fPIC"
    {dl3.cc} {} "libdl3c.so" "c++"}
   {"Build libdnew1a.so with --Bsymbolic-functions --dynamic-list-cpp-new"
-   "-shared -Wl,-Bsymbolic-functions,--dynamic-list-cpp-new" "-fPIC"
+   "-shared -Wl,-Bsymbolic-functions,--dynamic-list-cpp-new" "-fPIC -ansi"
    {del.cc new.cc} {} "libnew1a.so" "c++"}
   {"Build libdnew1b.so with --dynamic-list-data --dynamic-list-cpp-new"
-   "-shared -Wl,--dynamic-list-data,--dynamic-list-cpp-new" "-fPIC"
+   "-shared -Wl,--dynamic-list-data,--dynamic-list-cpp-new" "-fPIC -ansi"
    {del.cc new.cc} {} "libnew1b.so" "c++"}
 }
 
@@ -601,10 +601,10 @@ set run_cxx_tests {
      {dl3main.cc} "dl3c" "dl3a.out" "" "c++"}
     {"Run with libnew1a.so"
      "-Wl,--no-as-needed tmpdir/libnew1a.so" ""
-     {dl5.cc} "dl5a" "dl5.out" "" "c++"}
+     {dl5.cc} "dl5a" "dl5.out" "-ansi" "c++"}
     {"Run with libnew1b.so"
      "-Wl,--no-as-needed tmpdir/libnew1b.so" ""
-     {dl5.cc} "dl5b" "dl5.out" "" "c++"}
+     {dl5.cc} "dl5b" "dl5.out" "-ansi" "c++"}
 }
 
 run_cc_link_tests $build_cxx_tests