Add -fno-rtti when building plugins.
authorDavid Malcolm <dmalcolm@redhat.com>
Mon, 5 Aug 2013 20:19:29 +0000 (20:19 +0000)
committerDavid Malcolm <dmalcolm@gcc.gnu.org>
Mon, 5 Aug 2013 20:19:29 +0000 (20:19 +0000)
gcc/testsuite

* lib/plugin-support.exp (plugin-test-execute): Add -fno-rtti
to optstr when building plugins.

From-SVN: r201509

gcc/testsuite/ChangeLog
gcc/testsuite/lib/plugin-support.exp

index 757c9f2..403a268 100644 (file)
@@ -1,5 +1,10 @@
 2013-08-05  David Malcolm  <dmalcolm@redhat.com>
 
+       * lib/plugin-support.exp (plugin-test-execute): Add -fno-rtti
+       to optstr when building plugins.
+
+2013-08-05  David Malcolm  <dmalcolm@redhat.com>
+
        Patch autogenerated by refactor_passes.py from
        https://github.com/davidmalcolm/gcc-refactoring-scripts
        revision 03fe39476a4c4ea450b49e087cfa817b5f92021e
index 88033b3..017f3fd 100644 (file)
@@ -104,7 +104,7 @@ proc plugin-test-execute { plugin_src plugin_tests } {
        set optstr [concat $optstr "-DIN_GCC -fPIC -shared -undefined dynamic_lookup"]
     } else {
        set plug_cflags $PLUGINCFLAGS 
-       set optstr "$includes $extra_flags -DIN_GCC -fPIC -shared"
+       set optstr "$includes $extra_flags -DIN_GCC -fPIC -shared -fno-rtti"
     }
 
     # Temporarily switch to the environment for the plugin compiler.