Commit c40ce8f3 by Mike Stump Committed by Mike Stump

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
parent d6a7a3be
2007-04-13 Mike Stump <mrs@apple.com>
* 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 <richard@codesourcery.com> 2007-04-13 Richard Sandiford <richard@codesourcery.com>
* config/mips/vxworks.h (SUBTARGET_OVERRIDE_OPTIONS): Define. * config/mips/vxworks.h (SUBTARGET_OVERRIDE_OPTIONS): Define.
......
...@@ -635,6 +635,9 @@ handle_c_option (size_t code, ...@@ -635,6 +635,9 @@ handle_c_option (size_t code,
case OPT_iframework: case OPT_iframework:
add_system_framework_path (xstrdup (arg)); add_system_framework_path (xstrdup (arg));
break; break;
case OPT_fapple_kext:
;
} }
/* We recognized the option. */ /* We recognized the option. */
......
...@@ -1708,11 +1708,6 @@ darwin_kextabi_p (void) { ...@@ -1708,11 +1708,6 @@ darwin_kextabi_p (void) {
void void
darwin_override_options (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) if (flag_mkernel || flag_apple_kext)
{ {
/* -mkernel implies -fapple-kext for C++ */ /* -mkernel implies -fapple-kext for C++ */
......
...@@ -36,7 +36,7 @@ Target RejectNegative Report Var(darwin_one_byte_bool) ...@@ -36,7 +36,7 @@ Target RejectNegative Report Var(darwin_one_byte_bool)
Set sizeof(bool) to 1 Set sizeof(bool) to 1
fapple-kext fapple-kext
Target Report Var(flag_apple_kext) Target Report C++ Var(flag_apple_kext)
Generate code for darwin loadable kernel extensions Generate code for darwin loadable kernel extensions
mkernel mkernel
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment