aboutsummaryrefslogtreecommitdiff
path: root/gcc/config
diff options
context:
space:
mode:
authorChristian Schüler <cschueler@gmx.de>2011-03-30 14:45:49 +0000
committerMike Stump <mrs@gcc.gnu.org>2011-03-30 14:45:49 +0000
commitbd837408eeb0bd05b4b2621983f79bb7da8d253c (patch)
tree6e6e4d94713781a7aa167973d456801c11456b1c /gcc/config
parente9c0470ac5719868e0dd0e2e5768c3a70ec4cb78 (diff)
downloadgcc-bd837408eeb0bd05b4b2621983f79bb7da8d253c.zip
gcc-bd837408eeb0bd05b4b2621983f79bb7da8d253c.tar.gz
gcc-bd837408eeb0bd05b4b2621983f79bb7da8d253c.tar.bz2
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
Diffstat (limited to 'gcc/config')
-rw-r--r--gcc/config/darwin-driver.c9
-rw-r--r--gcc/config/darwin.opt3
2 files changed, 12 insertions, 0 deletions
diff --git a/gcc/config/darwin-driver.c b/gcc/config/darwin-driver.c
index 1eb9201..08834da 100644
--- a/gcc/config/darwin-driver.c
+++ b/gcc/config/darwin-driver.c
@@ -161,6 +161,15 @@ darwin_driver_init (unsigned int *decoded_options_count,
continue;
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_framework:
++*decoded_options_count;
diff --git a/gcc/config/darwin.opt b/gcc/config/darwin.opt
index a31ee07..3fcd35f 100644
--- a/gcc/config/darwin.opt
+++ b/gcc/config/darwin.opt
@@ -31,6 +31,9 @@ Driver Alias(Zall_load)
allowable_client
Driver Separate Alias(Zallowable_client)
+arch
+Driver RejectNegative Separate
+
arch_errors_fatal
Driver Alias(Zarch_errors_fatal)