From: Mike Stump Date: Fri, 13 Apr 2007 17:29:27 +0000 (+0000) Subject: darwin-c.c (handle_c_option): Handle -fapple-kext here so we can... X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=c40ce8f320df0b2cf23426a9c3da37df10dde3d7;p=gcc.git darwin-c.c (handle_c_option): Handle -fapple-kext here so we can... * config/darwin-c.c (handle_c_option): Handle -fapple-kext here so we can... * config/darwin.opt (fapple-kext): Make C++ only. * config/darwin.c (darwin_override_options): Remove code to ensure -fapple-kext is given for C++ only. From-SVN: r123792 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 60be46405c3..1c32a95fbb3 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,11 @@ +2007-04-13 Mike Stump + + * config/darwin-c.c (handle_c_option): Handle -fapple-kext here so + we can... + * config/darwin.opt (fapple-kext): Make C++ only. + * config/darwin.c (darwin_override_options): Remove code to ensure + -fapple-kext is given for C++ only. + 2007-04-13 Richard Sandiford * config/mips/vxworks.h (SUBTARGET_OVERRIDE_OPTIONS): Define. diff --git a/gcc/config/darwin-c.c b/gcc/config/darwin-c.c index dc03a9d96be..0b3e8200f72 100644 --- a/gcc/config/darwin-c.c +++ b/gcc/config/darwin-c.c @@ -635,6 +635,9 @@ handle_c_option (size_t code, case OPT_iframework: add_system_framework_path (xstrdup (arg)); break; + + case OPT_fapple_kext: + ; } /* We recognized the option. */ diff --git a/gcc/config/darwin.c b/gcc/config/darwin.c index 507b1b47a3f..73836ae08b0 100644 --- a/gcc/config/darwin.c +++ b/gcc/config/darwin.c @@ -1708,11 +1708,6 @@ darwin_kextabi_p (void) { void darwin_override_options (void) { - if (flag_apple_kext && strcmp (lang_hooks.name, "GNU C++") != 0) - { - warning (0, "command line option %<-fapple-kext%> is only valid for C++"); - flag_apple_kext = 0; - } if (flag_mkernel || flag_apple_kext) { /* -mkernel implies -fapple-kext for C++ */ diff --git a/gcc/config/darwin.opt b/gcc/config/darwin.opt index b27b3db75ca..0ffc72e754a 100644 --- a/gcc/config/darwin.opt +++ b/gcc/config/darwin.opt @@ -36,7 +36,7 @@ Target RejectNegative Report Var(darwin_one_byte_bool) Set sizeof(bool) to 1 fapple-kext -Target Report Var(flag_apple_kext) +Target Report C++ Var(flag_apple_kext) Generate code for darwin loadable kernel extensions mkernel