From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 16993 invoked by alias); 10 May 2002 00:56:03 -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 16892 invoked by uid 71); 10 May 2002 00:56:01 -0000 Resent-Date: 10 May 2002 00:56:01 -0000 Resent-Message-ID: <20020510005601.16890.qmail@sources.redhat.com> Resent-From: gcc-gnats@gcc.gnu.org (GNATS Filer) Resent-To: nobody@gcc.gnu.org Resent-Cc: gcc-prs@gcc.gnu.org, gcc-bugs@gcc.gnu.org, janis187@us.ibm.com Resent-Reply-To: gcc-gnats@gcc.gnu.org, David.Billinghurst@riotinto.com Received:(qmail 14319 invoked by uid 61); 10 May 2002 00:55:31 -0000 Message-Id:<20020510005531.14318.qmail@sources.redhat.com> Date: Thu, 09 May 2002 17:56:00 -0000 From: David.Billinghurst@riotinto.com Reply-To: David.Billinghurst@riotinto.com To: gcc-gnats@gcc.gnu.org Cc: janis187@us.ibm.com X-Send-Pr-Version:gnatsweb-2.9.3 (1.1.1.1.2.31) X-GNATS-Notify:janis187@us.ibm.com Subject: bootstrap/6619: irix cc chokes on rtl_check macros? X-SW-Source: 2002-05/txt/msg00280.txt.bz2 List-Id: >Number: 6619 >Category: bootstrap >Synopsis: irix cc chokes on rtl_check macros? >Confidential: no >Severity: serious >Priority: medium >Responsible: unassigned >State: open >Class: sw-bug >Submitter-Id: net >Arrival-Date: Thu May 09 17:56:00 PDT 2002 >Closed-Date: >Last-Modified: >Originator: David Billinghurst >Release: gcc-3.2 >Organization: >Environment: mips-sgi-irix6.5 >Description: gcc-3.2 on irix6.5 using cc fails in rtl.c. It got past this point yesterday. The problem may be related to 2002-05-08 Janis Johnson * rtl.h (RTL_FLAG_CHECK*): Add an argument for the macro name, and use it in all invocations of these macros. Clean up comments. * rtl.c (rtl_check_failed_flag): Add an argument for the name of the flag access macro whose check failed. * doc/rtl.texi (Flags): Document additional flag uses. The error is "/exd4/billingd/src/gcc/gcc/rtl.c", line 474: error(1029): expected an expression || REG_FUNCTION_VALUE_P (x) == REG_FUNCTION_VALUE_P (y))); ^ "/exd4/billingd/src/gcc/gcc/rtl.c", line 474: error(1029): expected an expression || REG_FUNCTION_VALUE_P (x) == REG_FUNCTION_VALUE_P (y))); ^ 2 errors detected in the compilation of "/exd4/billingd/src/gcc/gcc/rtl.c". The code fragment is switch (code) { case REG: /* Until rtl generation is complete, don't consider a reference to the return register of the current function the same as the return from a called function. This eases the job of function integration. Once the distinction is no longer needed, they can be considered equivalent. */ return (REGNO (x) == REGNO (y) && (! rtx_equal_function_value_matters || REG_FUNCTION_VALUE_P (x) == REG_FUNCTION_VALUE_P (y))); case LABEL_REF: return XEXP (x, 0) == XEXP (y, 0); Looking at the preprocessed file I see switch (code) { case REG: return ((((x)->fld[0]). rtuint) == (((y)->fld[0]). rtuint) && (! rtx_equal_function_value_matters || ( ({ rtx const _rtx = ((x)); if (((enum rtx_code) (_rtx)->code) != REG) rtl_check_failed_flag ("REG_FUNCTION_VALUE_P", _rtx, "/exd4/billingd/src/gcc/gcc/rtl.c", 474, "?"); _rtx; })->integrated) == ( ({ rtx const _rtx = ((y)); if (((enum rtx_code) (_rtx)->code) != REG) rtl_check_failed_flag ("REG_FUNCTION_VALUE_P", _rtx, "/exd4/billingd/src/gcc/gcc/rtl.c", 474, "?"); _rtx; })->integrated))); case LABEL_REF: return (((x)->fld[0]). rtx) == (((y)->fld[0]). rtx); >How-To-Repeat: >Fix: >Release-Note: >Audit-Trail: >Unformatted: