This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Avoid explicit use of machine modes (8/n) Hook-izeINIT_TARGET_OPTABS


"Joseph S. Myers" <jsm@polyomino.org.uk> writes:
> This patch seems to be missing the usual poisoning for the macros replaced
> by this hook.

This, I simply forgot.

Hans-Peter Nilsson <hp@bitrange.com> writes:
> Thanks.  Please use (void) instead of () for function
> definitions in the CRIS port in the future, now that it's C90.

This was because I started working on the patch before the CRIS port
got converted to C90.

Both are fixed thus.

zw

        * system.h: Poison macros obsoleted by earlier patch.
        * config/cris/cris.c: C90-ify a function definition.

===================================================================
Index: system.h
--- system.h	23 Aug 2003 18:03:05 -0000	1.169
+++ system.h	2 Oct 2003 17:20:38 -0000
@@ -587,7 +587,10 @@
 	ENCODE_SECTION_INFO STRIP_NAME_ENCODING ASM_GLOBALIZE_LABEL	\
 	ASM_OUTPUT_MI_THUNK CONST_COSTS RTX_COSTS DEFAULT_RTX_COSTS	\
 	ADDRESS_COST MACHINE_DEPENDENT_REORG ASM_FILE_START ASM_FILE_END \
-	ASM_SIMPLIFY_DWARF_ADDR
+	ASM_SIMPLIFY_DWARF_ADDR INIT_TARGET_OPTABS INIT_SUBTARGET_OPTABS \
+	INIT_GOFAST_OPTABS MULSI3_LIBCALL MULDI3_LIBCALL DIVSI3_LIBCALL \
+	DIVDI3_LIBCALL UDIVSI3_LIBCALL UDIVDI3_LIBCALL MODSI3_LIBCALL	\
+	MODDI3_LIBCALL UMODSI3_LIBCALL UMODDI3_LIBCALL
 
 /* Other obsolete target macros, or macros that used to be in target
    headers and were not used, and may be obsolete or may never have
===================================================================
Index: config/cris/cris.c
--- config/cris/cris.c	2 Oct 2003 00:44:20 -0000	1.44
+++ config/cris/cris.c	2 Oct 2003 17:20:38 -0000
@@ -2727,7 +2727,7 @@
 
 /* Rename the function calls for integer multiply and divide.  */
 static void
-cris_init_libfuncs ()
+cris_init_libfuncs (void)
 {
   set_optab_libfunc (smul_optab, SImode, "__Mul");
   set_optab_libfunc (sdiv_optab, SImode, "__Div");


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]