From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 106576 invoked by alias); 19 Jan 2018 16:34:34 -0000 Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org Received: (qmail 106565 invoked by uid 89); 19 Jan 2018 16:34:33 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-0.9 required=5.0 tests=BAYES_00,KAM_LAZY_DOMAIN_SECURITY,SPF_HELO_PASS,T_RP_MATCHES_RCVD autolearn=no version=3.3.2 spammy=HTo:U*schwab X-HELO: mx1.redhat.com Received: from mx1.redhat.com (HELO mx1.redhat.com) (209.132.183.28) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Fri, 19 Jan 2018 16:34:32 +0000 Received: from smtp.corp.redhat.com (int-mx04.intmail.prod.int.phx2.redhat.com [10.5.11.14]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 76F71C07F9B1; Fri, 19 Jan 2018 16:34:31 +0000 (UTC) Received: from [127.0.0.1] (ovpn04.gateway.prod.ext.ams2.redhat.com [10.39.146.4]) by smtp.corp.redhat.com (Postfix) with ESMTP id AA7655D96F; Fri, 19 Jan 2018 16:34:30 +0000 (UTC) Subject: Re: [committed] Don't pass -m32 to libcc1 on arm-linux To: Andreas Schwab , Yao Qi References: <1516353450-16357-1-git-send-email-yao.qi@linaro.org> <87fu714y19.fsf@linux-m68k.org> Cc: gdb-patches@sourceware.org From: Pedro Alves Message-ID: <498b69e2-1204-b286-4284-90f148372d05@redhat.com> Date: Fri, 19 Jan 2018 16:34:00 -0000 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.5.0 MIME-Version: 1.0 In-Reply-To: <87fu714y19.fsf@linux-m68k.org> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-SW-Source: 2018-01/txt/msg00399.txt.bz2 On 01/19/2018 04:24 PM, Andreas Schwab wrote: > On Jan 19 2018, Yao Qi wrote: > >> This patch fixes it by implementing gcc_target_options gdbarch method >> for arm-linux to override option "-m32". > > Why is that not the default? I think for really no good reason other than the coincidence that the first couple ports that implemented this hook could share the same set of "-m" options. I agree that changing the default would be better. "-m" options are, by design, machine-specific. Thanks, Pedro Alves