Commit bd837408 by Christian Schüler Committed by Mike Stump

PR/driver 48208

2011-03-30  Christian Schüler  <cschueler@gmx.de>

	PR/driver 48208
	* config/c.opt (F): Added 'Driver' to -F option.
	PR/driver 48260
	* config/darwin-driver.c (darwin_driver_init): Add '-arch' to
	  handler function.
	* config/darwin.opt: Added '-arch' option.

From-SVN: r171727
parent e9c0470a
2011-03-30 Christian Schüler <cschueler@gmx.de>
PR/driver 48208
* config/c.opt (F): Added 'Driver' to -F option.
PR/driver 48260
* config/darwin-driver.c (darwin_driver_init): Add '-arch' to
handler function.
* config/darwin.opt: Added '-arch' option.
2011-03-30 Nick Clifton <nickc@redhat.com> 2011-03-30 Nick Clifton <nickc@redhat.com>
* config/rx/rx.md: Add peepholes and patterns to combine * config/rx/rx.md: Add peepholes and patterns to combine
......
...@@ -201,7 +201,7 @@ E ...@@ -201,7 +201,7 @@ E
C ObjC C++ ObjC++ Undocumented Var(flag_preprocess_only) C ObjC C++ ObjC++ Undocumented Var(flag_preprocess_only)
F F
C ObjC C++ ObjC++ Joined Separate MissingArgError(missing path after %qs) Driver C ObjC C++ ObjC++ Joined Separate MissingArgError(missing path after %qs)
-F <dir> Add <dir> to the end of the main framework include path -F <dir> Add <dir> to the end of the main framework include path
H H
......
...@@ -161,6 +161,15 @@ darwin_driver_init (unsigned int *decoded_options_count, ...@@ -161,6 +161,15 @@ darwin_driver_init (unsigned int *decoded_options_count,
continue; continue;
switch ((*decoded_options)[i].opt_index) switch ((*decoded_options)[i].opt_index)
{ {
#if DARWIN_X86
case OPT_arch:
if (!strcmp ((*decoded_options)[i].arg, "i386"))
generate_option (OPT_m32, NULL, 1, CL_DRIVER, &(*decoded_options)[i]);
else if (!strcmp ((*decoded_options)[i].arg, "x86_64"))
generate_option (OPT_m64, NULL, 1, CL_DRIVER, &(*decoded_options)[i]);
break;
#endif
case OPT_filelist: case OPT_filelist:
case OPT_framework: case OPT_framework:
++*decoded_options_count; ++*decoded_options_count;
......
...@@ -31,6 +31,9 @@ Driver Alias(Zall_load) ...@@ -31,6 +31,9 @@ Driver Alias(Zall_load)
allowable_client allowable_client
Driver Separate Alias(Zallowable_client) Driver Separate Alias(Zallowable_client)
arch
Driver RejectNegative Separate
arch_errors_fatal arch_errors_fatal
Driver Alias(Zarch_errors_fatal) Driver Alias(Zarch_errors_fatal)
......
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