decl.c (init_decl_processing): Complain if -fnew-abi -fno-vtable-thunks is used.
authorMark Mitchell <mark@codesourcery.com>
Sun, 16 Jan 2000 17:06:42 +0000 (17:06 +0000)
committerMark Mitchell <mmitchel@gcc.gnu.org>
Sun, 16 Jan 2000 17:06:42 +0000 (17:06 +0000)
* decl.c (init_decl_processing): Complain if -fnew-abi
-fno-vtable-thunks is used.

From-SVN: r31441

gcc/cp/ChangeLog
gcc/cp/decl.c

index cd58e5c74043aed4f43a38c0def2c95d898d22d7..e4850d6cd5bad5c0ab6b896e2a828ef614864683 100644 (file)
@@ -1,5 +1,8 @@
 2000-01-16  Mark Mitchell  <mark@codesourcery.com>
 
+       * decl.c (init_decl_processing): Complain if -fnew-abi
+       -fno-vtable-thunks is used.
+
        * decl2.c (lang_decode_option): Don't couple flag_honor_std to
        flag_new_abi.
 
index 935fd3acbb918e3a8d80c76f0beece595e4ebeae..d8a57e56f2b119d284bb8ea500ea13e175ab11cf 100644 (file)
@@ -5956,6 +5956,11 @@ init_decl_processing ()
   int wchar_type_size;
   tree array_domain_type;
 
+  /* Check to see that the user did not specify an invalid combination
+     of command-line options.  */
+  if (flag_new_abi && !flag_vtable_thunks)
+    fatal ("the new ABI requires vtable thunks");
+
   /* Have to make these distinct before we try using them.  */
   lang_name_cplusplus = get_identifier ("C++");
   lang_name_c = get_identifier ("C");