From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 9286 invoked by alias); 10 Nov 2002 22:56:01 -0000 Mailing-List: contact gcc-prs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-prs-owner@gcc.gnu.org Received: (qmail 9262 invoked by uid 71); 10 Nov 2002 22:56:00 -0000 Resent-Date: 10 Nov 2002 22:56:00 -0000 Resent-Message-ID: <20021110225600.9261.qmail@sources.redhat.com> Resent-From: gcc-gnats@gcc.gnu.org (GNATS Filer) Resent-Cc: gcc-prs@gcc.gnu.org, gcc-bugs@gcc.gnu.org, jbroughton@keyresearch.com, glindahl@keyresearch.com Resent-Reply-To: gcc-gnats@gcc.gnu.org, jbr@keyresearch.com Received: (qmail 5670 invoked by uid 61); 10 Nov 2002 22:54:02 -0000 Message-Id: <20021110225402.5669.qmail@sources.redhat.com> Date: Sun, 10 Nov 2002 14:56:00 -0000 From: jbr@keyresearch.com Reply-To: jbr@keyresearch.com To: gcc-gnats@gcc.gnu.org Cc: jbroughton@keyresearch.com, glindahl@keyresearch.com X-Send-Pr-Version: gnatsweb-2.9.3 (1.1.1.1.2.31) X-GNATS-Notify: jbroughton@keyresearch.com glindahl@keyresearch.com Subject: target/8520: -mips64 not forcing -mgp64 under mips*-*-linux* target X-SW-Source: 2002-11/txt/msg00499.txt.bz2 List-Id: >Number: 8520 >Category: target >Synopsis: -mips64 not forcing -mgp64 under mips*-*-linux* target >Confidential: no >Severity: serious >Priority: medium >Responsible: unassigned >State: open >Class: sw-bug >Submitter-Id: net >Arrival-Date: Sun Nov 10 14:56:00 PST 2002 >Closed-Date: >Last-Modified: >Originator: Jeff Rubin >Release: 3.2 >Organization: >Environment: Cross compiler running on i686-pc-linux running Red Hat 7.2 linux >Description: In config.gcc, for mips*-*-linux*, tm_file has near the end linux.h and then mips/linux.h. The first thing mips/linux.h does is to include mips/mips.h. So the header files come in in the order ... linux.h mips/mips.h linux.h In mips/mips.h there is a macro definition for CC1_SPEC which has the correct stuff to make -mips64 force -mgp64, among other things. However, it is conditionaled on #ifndef CC1_SPEC. linux.h also has a macro definition for CC1_SPEC (setting it to %{profile:-p}) which is conditionaled the same way. Since linux.h comes before mips.h, CC1_SPEC gets defined by linux.h and not by mips.h. >How-To-Repeat: >Fix: Partial fix: add #undef CC1_SPEC to mips/linux.h before the #include "mips/mips.h" to undo the definition in linux.h. I'm not sure how you would get the profile forces -p effect back or even if you want to in this case. >Release-Note: >Audit-Trail: >Unformatted: