From 0c20a65f04004843874f9e22c460207285dfdec1 Mon Sep 17 00:00:00 2001 From: Andreas Jaeger Date: Sun, 6 Jul 2003 11:56:09 +0200 Subject: jump.c: Convert prototypes to ISO C90. * jump.c: Convert prototypes to ISO C90. * langhooks-def.h: Likewise. Add extern to prototypes. * langhooks.c: Likewise. * langhooks.h: Likewise. * lcm.c: Likewise. * local-alloc.c: Likewise. * loop-init.c: Likewise. * loop-unroll.c: Likewise. * loop-unswitch.c: Likewise. * loop.c: Likewise. * loop.h: Likewise. Add extern to prototypes. * machmode.h: Likewise. * main.c: Likewise. * mbchar.c: Likewise. * mbchar.h: Likewise. * mkdeps.c: Likewise. * mkdeps.h: Likewise. * optabs.c: Likewise. * optabs.h: Likewise. * output.h: Likewise. * gccspec.c: Likwise. * postreload.c: Likewise. * prefix.c: Likewise. * prefix.h: Likewise. * print-rtl.c: Likewise. * print-tree.c: Likewise. * profile.c: Likewise. * read-rtl.c: Likewise. * real.c: Likewise. * real.h: Likewise. * recog.c: Likewise. * recog.h: Likewise. * reg-stack.c: Likewise. * regclass.c: Likewise. * regmove.c: Likewise. * regrename.c: Likewise. * regs.h: Likewise. * reload.c: Likewise. * reload.h: Likewise. * reload1.c: Likewise. * reorg.c: Likewise. * resource.c: Likewise. * resource.h: Likewise. * rtl-error.c: Likewise. * rtl.c: Likewise. * rtl.h: Likewise. * rtlanal.c: Likewise. From-SVN: r68998 --- gcc/rtl.c | 74 ++++++++++++++++----------------------------------------------- 1 file changed, 19 insertions(+), 55 deletions(-) (limited to 'gcc/rtl.c') diff --git a/gcc/rtl.c b/gcc/rtl.c index 852b8ca..a92ca4b 100644 --- a/gcc/rtl.c +++ b/gcc/rtl.c @@ -240,8 +240,7 @@ const char * const reg_note_name[] = Store the length, and initialize all elements to zero. */ rtvec -rtvec_alloc (n) - int n; +rtvec_alloc (int n) { rtvec rt; @@ -257,8 +256,7 @@ rtvec_alloc (n) all the rest is initialized to zero. */ rtx -rtx_alloc (code) - RTX_CODE code; +rtx_alloc (RTX_CODE code) { rtx rt; int n = GET_RTX_LENGTH (code); @@ -280,8 +278,7 @@ rtx_alloc (code) except for those few rtx codes that are sharable. */ rtx -copy_rtx (orig) - rtx orig; +copy_rtx (rtx orig) { rtx copy; int i, j; @@ -386,8 +383,7 @@ copy_rtx (orig) /* Create a new copy of an rtx. Only copy just one level. */ rtx -shallow_copy_rtx (orig) - rtx orig; +shallow_copy_rtx (rtx orig) { RTX_CODE code = GET_CODE (orig); size_t n = GET_RTX_LENGTH (code); @@ -409,8 +405,7 @@ int generating_concat_p; This is the Lisp function EQUAL for rtx arguments. */ int -rtx_equal_p (x, y) - rtx x, y; +rtx_equal_p (rtx x, rtx y) { int i; int j; @@ -526,12 +521,8 @@ rtx_equal_p (x, y) #if defined ENABLE_RTL_CHECKING && (GCC_VERSION >= 2007) void -rtl_check_failed_bounds (r, n, file, line, func) - rtx r; - int n; - const char *file; - int line; - const char *func; +rtl_check_failed_bounds (rtx r, int n, const char *file, int line, + const char *func) { internal_error ("RTL check: access of elt %d of `%s' with last elt %d in %s, at %s:%d", @@ -540,13 +531,8 @@ rtl_check_failed_bounds (r, n, file, line, func) } void -rtl_check_failed_type1 (r, n, c1, file, line, func) - rtx r; - int n; - int c1; - const char *file; - int line; - const char *func; +rtl_check_failed_type1 (rtx r, int n, int c1, const char *file, int line, + const char *func) { internal_error ("RTL check: expected elt %d type '%c', have '%c' (rtx %s) in %s, at %s:%d", @@ -555,14 +541,8 @@ rtl_check_failed_type1 (r, n, c1, file, line, func) } void -rtl_check_failed_type2 (r, n, c1, c2, file, line, func) - rtx r; - int n; - int c1; - int c2; - const char *file; - int line; - const char *func; +rtl_check_failed_type2 (rtx r, int n, int c1, int c2, const char *file, + int line, const char *func) { internal_error ("RTL check: expected elt %d type '%c' or '%c', have '%c' (rtx %s) in %s, at %s:%d", @@ -571,12 +551,8 @@ rtl_check_failed_type2 (r, n, c1, c2, file, line, func) } void -rtl_check_failed_code1 (r, code, file, line, func) - rtx r; - enum rtx_code code; - const char *file; - int line; - const char *func; +rtl_check_failed_code1 (rtx r, enum rtx_code code, const char *file, + int line, const char *func) { internal_error ("RTL check: expected code `%s', have `%s' in %s, at %s:%d", GET_RTX_NAME (code), GET_RTX_NAME (GET_CODE (r)), func, @@ -584,12 +560,8 @@ rtl_check_failed_code1 (r, code, file, line, func) } void -rtl_check_failed_code2 (r, code1, code2, file, line, func) - rtx r; - enum rtx_code code1, code2; - const char *file; - int line; - const char *func; +rtl_check_failed_code2 (rtx r, enum rtx_code code1, enum rtx_code code2, + const char *file, int line, const char *func) { internal_error ("RTL check: expected code `%s' or `%s', have `%s' in %s, at %s:%d", @@ -599,12 +571,8 @@ rtl_check_failed_code2 (r, code1, code2, file, line, func) /* XXX Maybe print the vector? */ void -rtvec_check_failed_bounds (r, n, file, line, func) - rtvec r; - int n; - const char *file; - int line; - const char *func; +rtvec_check_failed_bounds (rtvec r, int n, const char *file, int line, + const char *func) { internal_error ("RTL check: access of elt %d of vector with last elt %d in %s, at %s:%d", @@ -614,12 +582,8 @@ rtvec_check_failed_bounds (r, n, file, line, func) #if defined ENABLE_RTL_FLAG_CHECKING void -rtl_check_failed_flag (name, r, file, line, func) - const char *name; - rtx r; - const char *file; - int line; - const char *func; +rtl_check_failed_flag (const char *name, rtx r, const char *file, + int line, const char *func) { internal_error ("RTL flag check: %s used with unexpected rtx code `%s' in %s, at %s:%d", -- cgit v1.1