aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--gcc/ChangeLog5
-rw-r--r--gcc/config/sh/sh.md12
2 files changed, 12 insertions, 5 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index eca7673..b460672 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,3 +1,8 @@
+2002-01-24 Alexandre Oliva <aoliva@redhat.com>
+
+ * config/sh/sh.md (sym_label2reg): Make sure all CONSTs have
+ modes.
+
2002-01-24 Kazu Hirata <kazu@hxi.com>
* config/h8300/h8300.c (print_operand): Remove support for
diff --git a/gcc/config/sh/sh.md b/gcc/config/sh/sh.md
index 1a038d1..9b54d29 100644
--- a/gcc/config/sh/sh.md
+++ b/gcc/config/sh/sh.md
@@ -3784,11 +3784,13 @@
(define_expand "sym_label2reg"
[(set (match_operand:SI 0 "" "")
- (const (minus:SI
- (const:SI (unspec:SI [(match_operand:SI 1 "" "")] UNSPEC_PIC))
- (const (plus:SI
- (match_operand:SI 2 "" "")
- (const_int 2))))))]
+ (const:SI (minus:SI
+ (const:SI
+ (unspec:SI [(match_operand:SI 1 "" "")] UNSPEC_PIC))
+ (const:SI
+ (plus:SI
+ (match_operand:SI 2 "" "")
+ (const_int 2))))))]
"" "")
(define_expand "symGOT_load"