diff options
author | Kazu Hirata <kazu@gcc.gnu.org> | 2003-01-30 15:36:19 +0000 |
---|---|---|
committer | Kazu Hirata <kazu@gcc.gnu.org> | 2003-01-30 15:36:19 +0000 |
commit | 87a902e411978db4d5d8bf8eca4f02561d949cbf (patch) | |
tree | d707fe737f1c21f4bb4093281fd8aa77d0eb00fe | |
parent | 0186a143cb0f11fdd3e5c5baf6968bcd59b154e1 (diff) | |
download | gcc-87a902e411978db4d5d8bf8eca4f02561d949cbf.zip gcc-87a902e411978db4d5d8bf8eca4f02561d949cbf.tar.gz gcc-87a902e411978db4d5d8bf8eca4f02561d949cbf.tar.bz2 |
h8300-protos.h: Update the prototype for compute_plussi_cc.
* config/h8300/h8300-protos.h: Update the prototype for
compute_plussi_cc.
(cpp_reader): Declare before it is used.
* config/h8300/h8300.c (compute_plussi_cc): Change the return
type to int.
* config/h8300/h8300.md (monitor_prologue): Call abort() if we
see an unknown H8 variant.
From-SVN: r62141
-rw-r--r-- | gcc/ChangeLog | 12 | ||||
-rw-r--r-- | gcc/config/h8300/h8300-protos.h | 3 | ||||
-rw-r--r-- | gcc/config/h8300/h8300.c | 2 | ||||
-rw-r--r-- | gcc/config/h8300/h8300.md | 1 |
4 files changed, 15 insertions, 3 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index da8f117..8ba5264 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,4 +1,14 @@ -2003-01-30 Ralf Corsepius <corsepiu@faw.uni-ulm.de> +2003-01-30 Kazu Hirata <kazu@cs.umass.edu> + + * config/h8300/h8300-protos.h: Update the prototype for + compute_plussi_cc. + (cpp_reader): Declare before it is used. + * config/h8300/h8300.c (compute_plussi_cc): Change the return + type to int. + * config/h8300/h8300.md (monitor_prologue): Call abort() if we + see an unknown H8 variant. + +2003-01-30 Ralf Corsepius <corsepiu@faw.uni-ulm.de> PR target/9316 * config/rs6000/rtems.h: Add CPP_OS_DEFAULT_SPEC. diff --git a/gcc/config/h8300/h8300-protos.h b/gcc/config/h8300/h8300-protos.h index 436ddb7..2a0e7ac 100644 --- a/gcc/config/h8300/h8300-protos.h +++ b/gcc/config/h8300/h8300-protos.h @@ -28,7 +28,7 @@ Boston, MA 02111-1307, USA. */ #ifdef RTX_CODE extern const char *output_plussi PARAMS ((rtx *)); extern unsigned int compute_plussi_length PARAMS ((rtx *)); -extern enum attr_cc compute_plussi_cc PARAMS ((rtx *)); +extern int compute_plussi_cc PARAMS ((rtx *)); extern const char *output_a_shift PARAMS ((rtx *)); extern unsigned int compute_a_shift_length PARAMS ((rtx, rtx *)); extern const char *emit_a_rotate PARAMS ((enum rtx_code, rtx *)); @@ -95,6 +95,7 @@ extern void asm_file_start PARAMS ((FILE *)); extern void asm_file_end PARAMS ((FILE *)); extern int h8300_initial_elimination_offset PARAMS ((int, int)); +struct cpp_reader; extern void h8300_pr_interrupt PARAMS ((struct cpp_reader *)); extern void h8300_pr_saveall PARAMS ((struct cpp_reader *)); diff --git a/gcc/config/h8300/h8300.c b/gcc/config/h8300/h8300.c index e59e877..3e6040a 100644 --- a/gcc/config/h8300/h8300.c +++ b/gcc/config/h8300/h8300.c @@ -2082,7 +2082,7 @@ compute_plussi_length (operands) } } -enum attr_cc +int compute_plussi_cc (operands) rtx *operands; { diff --git a/gcc/config/h8300/h8300.md b/gcc/config/h8300/h8300.md index ec8a931..ff1b0b9 100644 --- a/gcc/config/h8300/h8300.md +++ b/gcc/config/h8300/h8300.md @@ -1963,6 +1963,7 @@ return \"mov.l\\ter0,@-er7\;stc\\tccr,r0l\;mov.b\\tr0l,@(4,er7)\;mov.l\\t@er7+,er0\;orc\\t#128,ccr\"; else if (TARGET_H8300S) return \"stc\texr,@-er7\;mov.l\\ter0,@-er7\;stc\tccr,r0l\;mov.b\tr0l,@(6,er7)\;mov.l\\t@er7+,er0\;orc\t#128,ccr\"; + abort (); }" [(set_attr "length" "20") (set_attr "cc" "clobber")]) |