From 08617b1b475e5ae9c61c9b3536cf712283647284 Mon Sep 17 00:00:00 2001 From: Daniel Dunbar Date: Sat, 2 May 2009 22:09:19 +0000 Subject: [PATCH] Driver: Treat -m32 and -m64 as "driver-only" arguments. - In particular, don't forward them to gcc; these participate in the selection of the tool chain, which should know how to talk to gcc and be fixed if it doesn't. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@70648 91177308-0d34-0410-b5e6-96231b3b80d8 --- include/clang/Driver/Options.def | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/clang/Driver/Options.def b/include/clang/Driver/Options.def index 58f6517572..13456d9531 100644 --- a/include/clang/Driver/Options.def +++ b/include/clang/Driver/Options.def @@ -474,10 +474,10 @@ OPTION("-iwithsysroot", iwithsysroot, JoinedOrSeparate, i_Group, INVALID, "", 0, OPTION("-i", i, Joined, i_Group, INVALID, "", 0, 0, 0) OPTION("-keep_private_externs", keep__private__externs, Flag, INVALID, INVALID, "", 0, 0, 0) OPTION("-l", l, JoinedOrSeparate, INVALID, INVALID, "l", 0, 0, 0) -OPTION("-m32", m32, Flag, m_Group, INVALID, "", 0, 0, 0) +OPTION("-m32", m32, Flag, m_Group, INVALID, "d", 0, 0, 0) OPTION("-m3dnowa", m3dnowa, Flag, m_Group, INVALID, "", 0, 0, 0) OPTION("-m3dnow", m3dnow, Flag, m_Group, INVALID, "", 0, 0, 0) -OPTION("-m64", m64, Flag, m_Group, INVALID, "", 0, 0, 0) +OPTION("-m64", m64, Flag, m_Group, INVALID, "d", 0, 0, 0) OPTION("-mconstant-cfstrings", mconstant_cfstrings, Flag, clang_ignored_m_Group, INVALID, "", 0, 0, 0) OPTION("-mdynamic-no-pic", mdynamic_no_pic, Joined, m_Group, INVALID, "q", 0, 0, 0) OPTION("-mfix-and-continue", mfix_and_continue, Flag, clang_ignored_m_Group, INVALID, "", 0, 0, 0) -- 2.40.0