This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug middle-end/23991] [4.1 Regression]: Gcc failed to build on ia64


------- Additional Comments From joern dot rennecke at st dot com  2005-09-22 17:14 -------
Subject: Re:  [4.1 Regression]: Gcc failed to build on ia64

Ian Lance Taylor wrote:

>>2005-09-21  J"orn Rennecke <joern.rennecke@st.com>
>>
>>	* final.c (get_attr_length_1): In !HAVE_ATTR_length case, define as
>>	macro.  Don't attach ATTRIBUTE_UNUSED to arguments.
>>	(get_attr_length, get_attr_min_length): Add ATTRIBUTE_UNUSED.
>>    
>>
>
>Ick, don't do that.  Suppose you just #define insn_default_length and
>insn_min_length as macros ifndef HAVE_ATTR_length.
>
>Ian
>  
>
Do you like the attached patch better?


2005-09-22  J"orn Rennecke <joern.rennecke@st.com>

	* final.c (insn_default_length, insn_min_length): In !HAVE_ATTR_length
	case, define as macros.

Index: final.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/final.c,v
retrieving revision 1.361
diff -p -r1.361 final.c
*** final.c	20 Sep 2005 21:48:36 -0000	1.361
--- final.c	22 Sep 2005 17:10:14 -0000
*************** get_attr_length_1 (rtx insn ATTRIBUTE_UN
*** 443,448 ****
--- 443,450 ----
    return length;
  #else /* not HAVE_ATTR_length */
    return 0;
+ #define insn_default_length 0
+ #define insn_min_length 0
  #endif /* not HAVE_ATTR_length */
  }
  


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=23991


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]