This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
alpha.md small fix
- To: gcc-patches at gcc dot gnu dot org
- Subject: alpha.md small fix
- From: Zack Weinberg <zackw at panix dot com>
- Date: Sat, 4 Aug 2001 00:59:26 -0400
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")])