From cbd3488bb9798167f4eeb8dd7ed693dcbf66d987 Mon Sep 17 00:00:00 2001 From: Jeff Law Date: Sun, 11 Jun 2000 14:21:02 -0600 Subject: [PATCH] [multiple changes] 2000-06-09 Rodney Brown * mcore-protos.h: discards const warning removal. * mcore.c: discards const warning removal. 2000-06-09 Kazu Hirata * config/h8300/lib1funcs.asm: Declare the machine architecture at the beginning of the file. 2000-06-09 J. David Anglin * real.h: Add prototype for ldexp. From-SVN: r34496 --- gcc/ChangeLog | 14 ++++++++++++++ gcc/config/h8300/lib1funcs.asm | 24 ++++++++---------------- gcc/config/mcore/mcore-protos.h | 4 ++-- gcc/config/mcore/mcore.c | 8 ++++---- gcc/real.h | 2 +- 5 files changed, 29 insertions(+), 23 deletions(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 7ba1f72d453..700cbb4683b 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -31,6 +31,20 @@ * Makefile.in (c-parse.o): Also depend on output.h. +2000-06-09 Rodney Brown + + * mcore-protos.h: discards const warning removal. + * mcore.c: discards const warning removal. + +2000-06-09 Kazu Hirata + + * config/h8300/lib1funcs.asm: Declare the machine architecture at + the beginning of the file. + +2000-06-09 J. David Anglin + + * real.h: Add prototype for ldexp. + 2000-06-09 Zack Weinberg * ggc-none.c, ggc-simple.c, ggc-page.c (ggc_alloc_obj): Rename diff --git a/gcc/config/h8300/lib1funcs.asm b/gcc/config/h8300/lib1funcs.asm index 4eb05a2fa5f..312e21d9d7c 100644 --- a/gcc/config/h8300/lib1funcs.asm +++ b/gcc/config/h8300/lib1funcs.asm @@ -95,6 +95,14 @@ Boston, MA 02111-1307, USA. */ #define A3E e3 #endif +#ifdef __H8300H__ + .h8300h +#endif + +#ifdef __H8300S__ + .h8300s +#endif + #ifdef L_cmpsi2 #ifdef __H8300__ .section .text @@ -304,14 +312,6 @@ setbit: inc A0L ; do insert bit ;; We bunch all of this into one object file since there are several ;; "supporting routines". -#ifdef __H8300H__ - .h8300h -#endif - -#ifdef __H8300S__ - .h8300s -#endif - .section .text .align 2 @@ -736,14 +736,6 @@ _done: #else /* __H8300H__ */ -#ifdef __H8300H__ - .h8300h -#endif - -#ifdef __H8300S__ - .h8300s -#endif - .global ___mulsi3 ___mulsi3: sub.l A2P,A2P diff --git a/gcc/config/mcore/mcore-protos.h b/gcc/config/mcore/mcore-protos.h index 5069a62dbc1..8dc1b09742e 100644 --- a/gcc/config/mcore/mcore-protos.h +++ b/gcc/config/mcore/mcore-protos.h @@ -30,8 +30,8 @@ extern int mcore_byte_offset PARAMS ((unsigned int)); extern int mcore_halfword_offset PARAMS ((unsigned int)); extern int mcore_const_trick_uses_not PARAMS ((long)); extern void mcore_override_options PARAMS ((void)); -extern int mcore_dllexport_name_p PARAMS ((char *)); -extern int mcore_dllimport_name_p PARAMS ((char *)); +extern int mcore_dllexport_name_p PARAMS ((const char *)); +extern int mcore_dllimport_name_p PARAMS ((const char *)); extern int mcore_naked_function_p PARAMS ((void)); #ifdef TREE_CODE diff --git a/gcc/config/mcore/mcore.c b/gcc/config/mcore/mcore.c index 85458fb71b2..4622adeeb9c 100644 --- a/gcc/config/mcore/mcore.c +++ b/gcc/config/mcore/mcore.c @@ -3254,7 +3254,7 @@ mcore_function_arg_partial_nregs (cum, mode, type, named) /* Return non-zero if SYMBOL is marked as being dllexport'd. */ int mcore_dllexport_name_p (symbol) - char * symbol; + const char * symbol; { return symbol[0] == '@' && symbol[1] == 'e' && symbol[2] == '.'; } @@ -3262,7 +3262,7 @@ mcore_dllexport_name_p (symbol) /* Return non-zero if SYMBOL is marked as being dllimport'd. */ int mcore_dllimport_name_p (symbol) - char * symbol; + const char * symbol; { return symbol[0] == '@' && symbol[1] == 'i' && symbol[2] == '.'; } @@ -3272,7 +3272,7 @@ static void mcore_mark_dllexport (decl) tree decl; { - char * oldname; + const char * oldname; char * newname; rtx rtlname; tree idp; @@ -3309,7 +3309,7 @@ static void mcore_mark_dllimport (decl) tree decl; { - char * oldname; + const char * oldname; char * newname; tree idp; rtx rtlname; diff --git a/gcc/real.h b/gcc/real.h index a85ca741120..ccd0541a1fa 100644 --- a/gcc/real.h +++ b/gcc/real.h @@ -359,7 +359,7 @@ do { \ /* Scale X by Y powers of 2. */ #ifndef REAL_VALUE_LDEXP #define REAL_VALUE_LDEXP(x, y) ldexp (x, y) -extern double ldexp (); +extern double ldexp PARAMS ((double, int)); #endif /* Convert the string X to a floating-point value. */