Commit a60369f0 by Kaveh R. Ghazi Committed by Kaveh Ghazi

m68k.c (legitimize_pic_address): Move prototype ...

	* m68k.c (legitimize_pic_address): Move prototype ...

	* m68k-protos.h (legitimize_pic_address): ... here.

	* m68k.md (legitimize_pic_address): Delete prototypes.
	(untyped_call): Invoke GEN_CALL(), not gen_call().

	* nextstep.c: Include system.h and toplev.h.
	(get_directive_line): Don't prototype.
	(handle_pragma): Mark parameters with ATTRIBUTE_UNUSED and constify.

	* nextstep.h (handle_pragma): Prototype.
	(SECTION_FUNCTION): Prototype FUNCTION().  Move prototype of
	objc_section_init ...
	(EXTRA_SECTION_FUNCTIONS): ... here.

From-SVN: r34427
parent df07dc5b
2000-06-06 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
* m68k.c (legitimize_pic_address): Move prototype ...
* m68k-protos.h (legitimize_pic_address): ... here.
* m68k.md (legitimize_pic_address): Delete prototypes.
(untyped_call): Invoke GEN_CALL(), not gen_call().
* nextstep.c: Include system.h and toplev.h.
(get_directive_line): Don't prototype.
(handle_pragma): Mark parameters with ATTRIBUTE_UNUSED and constify.
* nextstep.h (handle_pragma): Prototype.
(SECTION_FUNCTION): Prototype FUNCTION(). Move prototype of
objc_section_init ...
(EXTRA_SECTION_FUNCTIONS): ... here.
Tue Jun 6 08:17:26 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu> Tue Jun 6 08:17:26 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
* sdbout.c (struct sdb_file): NAME now const. * sdbout.c (struct sdb_file): NAME now const.
......
...@@ -61,6 +61,7 @@ extern int general_src_operand PARAMS ((rtx, enum machine_mode)); ...@@ -61,6 +61,7 @@ extern int general_src_operand PARAMS ((rtx, enum machine_mode));
extern int nonimmediate_src_operand PARAMS ((rtx, enum machine_mode)); extern int nonimmediate_src_operand PARAMS ((rtx, enum machine_mode));
extern int memory_src_operand PARAMS ((rtx, enum machine_mode)); extern int memory_src_operand PARAMS ((rtx, enum machine_mode));
extern int pcrel_address PARAMS ((rtx, enum machine_mode)); extern int pcrel_address PARAMS ((rtx, enum machine_mode));
extern rtx legitimize_pic_address PARAMS ((rtx, enum machine_mode, rtx));
#endif /* RTX_CODE */ #endif /* RTX_CODE */
extern int flags_in_68881 PARAMS ((void)); extern int flags_in_68881 PARAMS ((void));
......
...@@ -54,7 +54,6 @@ enum reg_class regno_reg_class[] ...@@ -54,7 +54,6 @@ enum reg_class regno_reg_class[]
int switch_table_difference_label_flag; int switch_table_difference_label_flag;
static rtx find_addr_reg PARAMS ((rtx)); static rtx find_addr_reg PARAMS ((rtx));
rtx legitimize_pic_address PARAMS ((rtx, enum machine_mode, rtx));
static const char *singlemove_string PARAMS ((rtx *)); static const char *singlemove_string PARAMS ((rtx *));
......
...@@ -509,7 +509,6 @@ ...@@ -509,7 +509,6 @@
Call legitimize_pic_address with the source, mode, and a relocation Call legitimize_pic_address with the source, mode, and a relocation
register (a new pseudo, or the final destination if reload_in_progress register (a new pseudo, or the final destination if reload_in_progress
is set). Then fall through normally */ is set). Then fall through normally */
extern rtx legitimize_pic_address();
rtx temp = reload_in_progress ? operands[0] : gen_reg_rtx (Pmode); rtx temp = reload_in_progress ? operands[0] : gen_reg_rtx (Pmode);
operands[1] = legitimize_pic_address (operands[1], SImode, temp); operands[1] = legitimize_pic_address (operands[1], SImode, temp);
} }
...@@ -955,7 +954,6 @@ ...@@ -955,7 +954,6 @@
Call legitimize_pic_address with the source, mode, and a relocation Call legitimize_pic_address with the source, mode, and a relocation
register (a new pseudo, or the final destination if reload_in_progress register (a new pseudo, or the final destination if reload_in_progress
is set). Then fall through normally */ is set). Then fall through normally */
extern rtx legitimize_pic_address();
rtx temp = reload_in_progress ? operands[0] : gen_reg_rtx (Pmode); rtx temp = reload_in_progress ? operands[0] : gen_reg_rtx (Pmode);
operands[1] = legitimize_pic_address (operands[1], SImode, temp); operands[1] = legitimize_pic_address (operands[1], SImode, temp);
} }
...@@ -6940,7 +6938,7 @@ ...@@ -6940,7 +6938,7 @@
{ {
int i; int i;
emit_call_insn (gen_call (operands[0], const0_rtx, NULL, const0_rtx)); emit_call_insn (GEN_CALL (operands[0], const0_rtx, NULL, const0_rtx));
for (i = 0; i < XVECLEN (operands[2], 0); i++) for (i = 0; i < XVECLEN (operands[2], 0); i++)
{ {
......
...@@ -20,9 +20,10 @@ the Free Software Foundation, 59 Temple Place - Suite 330, ...@@ -20,9 +20,10 @@ the Free Software Foundation, 59 Temple Place - Suite 330,
Boston, MA 02111-1307, USA. */ Boston, MA 02111-1307, USA. */
#include "config.h" #include "config.h"
#include <stdio.h> #include "system.h"
#include "flags.h" #include "flags.h"
#include "tree.h" #include "tree.h"
#include "toplev.h"
/* Make everything that used to go in the text section really go there. */ /* Make everything that used to go in the text section really go there. */
...@@ -38,8 +39,6 @@ static int pragma_initialized; ...@@ -38,8 +39,6 @@ static int pragma_initialized;
static int initial_optimize_flag; static int initial_optimize_flag;
extern char *get_directive_line ();
/* Called from check_newline via the macro HANDLE_PRAGMA. /* Called from check_newline via the macro HANDLE_PRAGMA.
FINPUT is the source file input stream. FINPUT is the source file input stream.
CH is the first character after `#pragma'. CH is the first character after `#pragma'.
...@@ -47,9 +46,9 @@ extern char *get_directive_line (); ...@@ -47,9 +46,9 @@ extern char *get_directive_line ();
int int
handle_pragma (p_getc, p_ungetc, pname) handle_pragma (p_getc, p_ungetc, pname)
int (* p_getc) PARAMS ((void)); int (* p_getc) PARAMS ((void)) ATTRIBUTE_UNUSED;
void (* p_ungetc) PARAMS ((int)); void (* p_ungetc) PARAMS ((int)) ATTRIBUTE_UNUSED;
char * pname; const char *pname;
{ {
int retval = 0; int retval = 0;
......
...@@ -259,7 +259,7 @@ Boston, MA 02111-1307, USA. */ ...@@ -259,7 +259,7 @@ Boston, MA 02111-1307, USA. */
#undef HANDLE_PRAGMA #undef HANDLE_PRAGMA
#define HANDLE_PRAGMA(GETC, UNGETC, NAME) handle_pragma (GETC, UNGETC, NAME) #define HANDLE_PRAGMA(GETC, UNGETC, NAME) handle_pragma (GETC, UNGETC, NAME)
extern int handle_pragma (); extern int handle_pragma PARAMS ((int(*)(void), void (*)(int), const char *));
/* Give methods pretty symbol names on NeXT. */ /* Give methods pretty symbol names on NeXT. */
...@@ -320,10 +320,10 @@ extern int handle_pragma (); ...@@ -320,10 +320,10 @@ extern int handle_pragma ();
#undef SECTION_FUNCTION #undef SECTION_FUNCTION
#define SECTION_FUNCTION(FUNCTION, SECTION, DIRECTIVE, WAS_TEXT, OBJC) \ #define SECTION_FUNCTION(FUNCTION, SECTION, DIRECTIVE, WAS_TEXT, OBJC) \
extern void FUNCTION PARAMS ((void)); \
void \ void \
FUNCTION () \ FUNCTION () \
{ \ { \
extern void objc_section_init (); \
extern int flag_no_mach_text_sections; \ extern int flag_no_mach_text_sections; \
\ \
if (WAS_TEXT && flag_no_mach_text_sections) \ if (WAS_TEXT && flag_no_mach_text_sections) \
...@@ -353,6 +353,7 @@ FUNCTION () \ ...@@ -353,6 +353,7 @@ FUNCTION () \
#undef EXTRA_SECTION_FUNCTIONS #undef EXTRA_SECTION_FUNCTIONS
#define EXTRA_SECTION_FUNCTIONS \ #define EXTRA_SECTION_FUNCTIONS \
extern void objc_section_init PARAMS ((void)); \
SECTION_FUNCTION (const_section, \ SECTION_FUNCTION (const_section, \
in_const, \ in_const, \
".const", 1, 0) \ ".const", 1, 0) \
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment