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

alpha.md small fix


This is a small and rather obscure fix to alpha.md.  The affected pattern
is mutually exclusive with the one immediately above it, but this is not
properly reflected in their C tests.  This doesn't cause any problems
in the current code, but I'm working on logic to eliminate patterns
whose tests are provably false at compile time; with that in effect,
it becomes more important that the tests are accurate.

I'm not presently in a position to test this properly.  I've built
cc1 of a cross-compiler; that's all.

zw

	* alpha.md (builtin_setjmp_receiver): Add !TARGET_AS_CAN_SUBTRACT_LABELS
	to C constraint.
===================================================================
Index: config/alpha/alpha.md
--- config/alpha/alpha.md	2001/08/03 08:23:54	1.146
+++ config/alpha/alpha.md	2001/08/04 04:40:01
@@ -5930,7 +5930,7 @@ fadd,fmul,fcpys,fdiv,fsqrt,misc,mvi,ftoi
 
 (define_insn "builtin_setjmp_receiver"
   [(unspec_volatile [(label_ref (match_operand 0 "" ""))] UNSPECV_SETJMPR)]
-  "TARGET_ABI_OSF"
+  "TARGET_ABI_OSF && ! TARGET_AS_CAN_SUBTRACT_LABELS"
   "br $29,$LSJ%=\n$LSJ%=:\;ldgp $29,0($29)"
   [(set_attr "length" "12")
    (set_attr "type" "multi")])


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