This is the mail archive of the 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]

Fix FRV's symbolic_operand predicate

Hi Aldy, Hi Alex,

  I hope that you do not mind me applying the patch below as obvious.
  It fixes the FRV's symbolic_operand predicate which was designed to
  allow CONST rtl constructs, but which did not mention this in the
  match_code clause.

  I came across this bug whilst building glibc with TLS enabled and
  after applying the patch I was able to get further in the build.  (I
  have not yet successfully built glibc, but that is another matter).
  I also rebuilt both a frv-elf and a frv-linux-gnu toolchain, and
  there were no problems.


2007-05-02  Nick Clifton  <>

	* config/frv/ (symbolic_operand): Accept CONSTs.

Index: gcc/config/frv/
--- gcc/config/frv/	(revision 124346)
+++ gcc/config/frv/	(working copy)
@@ -1124,7 +1124,7 @@
 ;; Returns 1 if OP is either a SYMBOL_REF or a constant.
 (define_predicate "symbolic_operand"
-  (match_code "symbol_ref,const_int")
+  (match_code "symbol_ref,const,const_int")
   enum rtx_code c = GET_CODE (op);

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