Commit 36244024 by Kaveh R. Ghazi Committed by Kaveh Ghazi

bb-reorder.c (get_next_bb_note, [...]): Prototype.

	* bb-reorder.c (get_next_bb_note, get_prev_bb_note): Prototype.

	* diagnostic (vbuild_message_string, build_message_string,
	build_location_prefix, output_get_prefix, init_output_buffer,
	output_notice, vline_wrapper_message_with_location,
	v_message_with_decl, default_print_error_function): De-constify.
	(set_real_maximum_length): Prototype.

	* diagnostic.h (struct output_buffer, init_output_buffer,
	output_get_prefix, output_set_prefix): De-constify.

	* function.c (init_function_start): Constify.

	* gensupport.c (remove_constraints, process_rtx): Prototype.

	* gthr-posix.h: Indent uses of #pragma.

	* objc/objc-act.c (ggc_mark_imp_list, ggc_mark_hash_table):
	Prototype.

	* predict.c (find_expected_value): Delete prototype.
	(expected_value_to_br_prob): Initialize variable `ev_reg'.

	* sbitmap.h (debug_sbitmap): Prototype.

	* ssa.c (compute_coalesced_reg_partition): Prototype.

	* stor-layout.c (debug_rli): Prototype.

	* tree.h (round_down): Prototype.
	(init_function_start): Constify.

ch:
	* ch-tree.h (init_function_start): Constify.

From-SVN: r33675
parent 57c578a6
2000-05-04 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
* bb-reorder.c (get_next_bb_note, get_prev_bb_note): Prototype.
* diagnostic (vbuild_message_string, build_message_string,
build_location_prefix, output_get_prefix, init_output_buffer,
output_notice, vline_wrapper_message_with_location,
v_message_with_decl, default_print_error_function): De-constify.
(set_real_maximum_length): Prototype.
* diagnostic.h (struct output_buffer, init_output_buffer,
output_get_prefix, output_set_prefix): De-constify.
* function.c (init_function_start): Constify.
* gensupport.c (remove_constraints, process_rtx): Prototype.
* gthr-posix.h: Indent uses of #pragma.
* objc/objc-act.c (ggc_mark_imp_list, ggc_mark_hash_table):
Prototype.
* predict.c (find_expected_value): Delete prototype.
(expected_value_to_br_prob): Initialize variable `ev_reg'.
* sbitmap.h (debug_sbitmap): Prototype.
* ssa.c (compute_coalesced_reg_partition): Prototype.
* stor-layout.c (debug_rli): Prototype.
* tree.h (round_down): Prototype.
(init_function_start): Constify.
2000-05-04 Zack Weinberg <zack@wolery.cumb.org> 2000-05-04 Zack Weinberg <zack@wolery.cumb.org>
* cpphash.h: #define __extension__ away if GCC_VERSION < 2095 * cpphash.h: #define __extension__ away if GCC_VERSION < 2095
......
...@@ -166,6 +166,8 @@ static void free_scope_forest_1 PARAMS ((scope)); ...@@ -166,6 +166,8 @@ static void free_scope_forest_1 PARAMS ((scope));
static void free_scope_forest PARAMS ((scope_forest_info *)); static void free_scope_forest PARAMS ((scope_forest_info *));
void dump_scope_forest PARAMS ((scope_forest_info *)); void dump_scope_forest PARAMS ((scope_forest_info *));
static void dump_scope_forest_1 PARAMS ((scope, int)); static void dump_scope_forest_1 PARAMS ((scope, int));
static rtx get_next_bb_note PARAMS ((rtx));
static rtx get_prev_bb_note PARAMS ((rtx));
/* Skip over inter-block insns occurring after BB which are typically /* Skip over inter-block insns occurring after BB which are typically
associated with BB (e.g., barriers). If there are any such insns, associated with BB (e.g., barriers). If there are any such insns,
......
2000-05-04 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
* ch-tree.h (init_function_start): Constify.
2000-04-18 Zack Weinberg <zack@wolery.cumb.org> 2000-04-18 Zack Weinberg <zack@wolery.cumb.org>
* ch/lex.c: Remove references to cccp.c. * ch/lex.c: Remove references to cccp.c.
......
...@@ -1113,7 +1113,7 @@ extern void validate_varying_array_ref PARAMS ((tree, tree)); ...@@ -1113,7 +1113,7 @@ extern void validate_varying_array_ref PARAMS ((tree, tree));
/* in function.c */ /* in function.c */
extern void expand_function_end PARAMS ((char *, int, int)); extern void expand_function_end PARAMS ((char *, int, int));
extern void expand_function_start PARAMS ((tree, int)); extern void expand_function_start PARAMS ((tree, int));
extern void init_function_start PARAMS ((tree, char *, int)); extern void init_function_start PARAMS ((tree, const char *, int));
extern void pop_function_context PARAMS ((void)); extern void pop_function_context PARAMS ((void));
extern void push_function_context PARAMS ((void)); extern void push_function_context PARAMS ((void));
......
...@@ -45,10 +45,10 @@ Boston, MA 02111-1307, USA. */ ...@@ -45,10 +45,10 @@ Boston, MA 02111-1307, USA. */
/* Prototypes. */ /* Prototypes. */
static int doing_line_wrapping PARAMS ((void)); static int doing_line_wrapping PARAMS ((void));
static const char *vbuild_message_string PARAMS ((const char *, va_list)); static char *vbuild_message_string PARAMS ((const char *, va_list));
static const char *build_message_string PARAMS ((const char *, ...)) static char *build_message_string PARAMS ((const char *, ...))
ATTRIBUTE_PRINTF_1; ATTRIBUTE_PRINTF_1;
static const char *build_location_prefix PARAMS ((const char *, int, int)); static char *build_location_prefix PARAMS ((const char *, int, int));
static void output_notice PARAMS ((output_buffer *, const char *)); static void output_notice PARAMS ((output_buffer *, const char *));
static void line_wrapper_printf PARAMS ((FILE *, const char *, ...)) static void line_wrapper_printf PARAMS ((FILE *, const char *, ...))
ATTRIBUTE_PRINTF_2; ATTRIBUTE_PRINTF_2;
...@@ -78,6 +78,7 @@ static void v_pedwarn_with_file_and_line PARAMS ((const char *, int, ...@@ -78,6 +78,7 @@ static void v_pedwarn_with_file_and_line PARAMS ((const char *, int,
static void vsorry PARAMS ((const char *, va_list)); static void vsorry PARAMS ((const char *, va_list));
static void report_file_and_line PARAMS ((const char *, int, int)); static void report_file_and_line PARAMS ((const char *, int, int));
static void vnotice PARAMS ((FILE *, const char *, va_list)); static void vnotice PARAMS ((FILE *, const char *, va_list));
static void set_real_maximum_length PARAMS ((output_buffer *));
extern int rtl_dump_and_exit; extern int rtl_dump_and_exit;
extern int inhibit_warnings; extern int inhibit_warnings;
...@@ -135,7 +136,7 @@ output_is_line_wrapping (buffer) ...@@ -135,7 +136,7 @@ output_is_line_wrapping (buffer)
} }
/* Return BUFFER's prefix. */ /* Return BUFFER's prefix. */
const char * char *
output_get_prefix (buffer) output_get_prefix (buffer)
const output_buffer *buffer; const output_buffer *buffer;
{ {
...@@ -178,7 +179,7 @@ output_set_maximum_length (buffer, length) ...@@ -178,7 +179,7 @@ output_set_maximum_length (buffer, length)
void void
output_set_prefix (buffer, prefix) output_set_prefix (buffer, prefix)
output_buffer *buffer; output_buffer *buffer;
const char *prefix; char *prefix;
{ {
buffer->prefix = prefix; buffer->prefix = prefix;
set_real_maximum_length (buffer); set_real_maximum_length (buffer);
...@@ -189,7 +190,7 @@ output_set_prefix (buffer, prefix) ...@@ -189,7 +190,7 @@ output_set_prefix (buffer, prefix)
void void
init_output_buffer (buffer, prefix, maximum_length) init_output_buffer (buffer, prefix, maximum_length)
output_buffer *buffer; output_buffer *buffer;
const char *prefix; char *prefix;
int maximum_length; int maximum_length;
{ {
obstack_init (&buffer->obstack); obstack_init (&buffer->obstack);
...@@ -397,7 +398,7 @@ output_format (buffer, msg) ...@@ -397,7 +398,7 @@ output_format (buffer, msg)
output_finish (buffer); output_finish (buffer);
} }
static const char * static char *
vbuild_message_string (msgid, ap) vbuild_message_string (msgid, ap)
const char *msgid; const char *msgid;
va_list ap; va_list ap;
...@@ -411,14 +412,14 @@ vbuild_message_string (msgid, ap) ...@@ -411,14 +412,14 @@ vbuild_message_string (msgid, ap)
/* Return a malloc'd string containing MSGID formatted a la /* Return a malloc'd string containing MSGID formatted a la
printf. The caller is reponsible for freeing the memory. */ printf. The caller is reponsible for freeing the memory. */
static const char * static char *
build_message_string VPARAMS ((const char *msgid, ...)) build_message_string VPARAMS ((const char *msgid, ...))
{ {
#ifndef ANSI_PROTOTYPES #ifndef ANSI_PROTOTYPES
const char *msgid; const char *msgid;
#endif #endif
va_list ap; va_list ap;
const char *str; char *str;
VA_START (ap, msgid); VA_START (ap, msgid);
...@@ -437,7 +438,7 @@ build_message_string VPARAMS ((const char *msgid, ...)) ...@@ -437,7 +438,7 @@ build_message_string VPARAMS ((const char *msgid, ...))
/* Return a malloc'd string describing a location. The caller is /* Return a malloc'd string describing a location. The caller is
responsible for freeing the memory. */ responsible for freeing the memory. */
static const char * static char *
build_location_prefix (file, line, warn) build_location_prefix (file, line, warn)
const char *file; const char *file;
int line; int line;
...@@ -466,10 +467,10 @@ output_notice (buffer, msgid) ...@@ -466,10 +467,10 @@ output_notice (buffer, msgid)
output_buffer *buffer; output_buffer *buffer;
const char *msgid; const char *msgid;
{ {
const char *message = vbuild_message_string (msgid, buffer->format_args); char *message = vbuild_message_string (msgid, buffer->format_args);
output_add_string (buffer, message); output_add_string (buffer, message);
free ((char *) message); free (message);
} }
...@@ -540,7 +541,7 @@ vline_wrapper_message_with_location (file, line, warn, msgid, ap) ...@@ -540,7 +541,7 @@ vline_wrapper_message_with_location (file, line, warn, msgid, ap)
output_notice (&buffer, msgid); output_notice (&buffer, msgid);
output_flush_on (&buffer, stderr); output_flush_on (&buffer, stderr);
free ((char*) output_get_prefix (&buffer)); free (output_get_prefix (&buffer));
fputc ('\n', stderr); fputc ('\n', stderr);
} }
...@@ -688,7 +689,7 @@ v_message_with_decl (decl, warn, msgid, ap) ...@@ -688,7 +689,7 @@ v_message_with_decl (decl, warn, msgid, ap)
if (doing_line_wrapping()) if (doing_line_wrapping())
{ {
output_flush_on (&buffer, stderr); output_flush_on (&buffer, stderr);
free ((char *) output_get_prefix (&buffer)); free (output_get_prefix (&buffer));
} }
fputc ('\n', stderr); fputc ('\n', stderr);
...@@ -1137,7 +1138,7 @@ default_print_error_function (file) ...@@ -1137,7 +1138,7 @@ default_print_error_function (file)
{ {
if (last_error_function != current_function_decl) if (last_error_function != current_function_decl)
{ {
const char *prefix = NULL; char *prefix = NULL;
output_buffer buffer; output_buffer buffer;
if (file) if (file)
......
...@@ -40,7 +40,7 @@ struct output_buffer ...@@ -40,7 +40,7 @@ struct output_buffer
/* The obstack where the text is built up. */ /* The obstack where the text is built up. */
struct obstack obstack; struct obstack obstack;
/* The prefix for each new line. */ /* The prefix for each new line. */
const char *prefix; char *prefix;
/* The amount of characters output so far. */ /* The amount of characters output so far. */
int line_length; int line_length;
/* The real upper bound of number of characters per line, taking into /* The real upper bound of number of characters per line, taking into
...@@ -72,10 +72,10 @@ struct output_buffer ...@@ -72,10 +72,10 @@ struct output_buffer
extern printer_fn lang_printer; extern printer_fn lang_printer;
/* Prototypes */ /* Prototypes */
void init_output_buffer PARAMS ((output_buffer *, const char *, int)); void init_output_buffer PARAMS ((output_buffer *, char *, int));
void output_clear PARAMS ((output_buffer *)); void output_clear PARAMS ((output_buffer *));
const char *output_get_prefix PARAMS ((const output_buffer *)); char *output_get_prefix PARAMS ((const output_buffer *));
void output_set_prefix PARAMS ((output_buffer *, const char *)); void output_set_prefix PARAMS ((output_buffer *, char *));
void output_set_maximum_length PARAMS ((output_buffer *, int)); void output_set_maximum_length PARAMS ((output_buffer *, int));
void output_emit_prefix PARAMS ((output_buffer *)); void output_emit_prefix PARAMS ((output_buffer *));
void output_add_newline PARAMS ((output_buffer *)); void output_add_newline PARAMS ((output_buffer *));
......
...@@ -5960,7 +5960,7 @@ init_dummy_function_start () ...@@ -5960,7 +5960,7 @@ init_dummy_function_start ()
void void
init_function_start (subr, filename, line) init_function_start (subr, filename, line)
tree subr; tree subr;
char *filename; const char *filename;
int line; int line;
{ {
prepare_function_start (); prepare_function_start ();
......
...@@ -37,6 +37,9 @@ struct queue_elem { ...@@ -37,6 +37,9 @@ struct queue_elem {
static struct queue_elem *rtx_ready_queue; static struct queue_elem *rtx_ready_queue;
static void remove_constraints PARAMS ((rtx));
static void process_rtx PARAMS ((rtx *));
/* Recursively remove constraints from an rtx. */ /* Recursively remove constraints from an rtx. */
static void static void
......
...@@ -45,16 +45,16 @@ typedef pthread_mutex_t __gthread_mutex_t; ...@@ -45,16 +45,16 @@ typedef pthread_mutex_t __gthread_mutex_t;
#if SUPPORTS_WEAK && GTHREAD_USE_WEAK #if SUPPORTS_WEAK && GTHREAD_USE_WEAK
#pragma weak pthread_once #pragma weak pthread_once
#pragma weak pthread_key_create #pragma weak pthread_key_create
#pragma weak pthread_key_delete #pragma weak pthread_key_delete
#pragma weak pthread_getspecific #pragma weak pthread_getspecific
#pragma weak pthread_setspecific #pragma weak pthread_setspecific
#pragma weak pthread_create #pragma weak pthread_create
#pragma weak pthread_mutex_lock #pragma weak pthread_mutex_lock
#pragma weak pthread_mutex_trylock #pragma weak pthread_mutex_trylock
#pragma weak pthread_mutex_unlock #pragma weak pthread_mutex_unlock
static void *__gthread_active_ptr = &pthread_create; static void *__gthread_active_ptr = &pthread_create;
......
...@@ -341,6 +341,8 @@ static void handle_class_ref PARAMS ((tree)); ...@@ -341,6 +341,8 @@ static void handle_class_ref PARAMS ((tree));
static void generate_struct_by_value_array PARAMS ((void)) static void generate_struct_by_value_array PARAMS ((void))
ATTRIBUTE_NORETURN; ATTRIBUTE_NORETURN;
static void objc_act_parse_init PARAMS ((void)); static void objc_act_parse_init PARAMS ((void));
static void ggc_mark_imp_list PARAMS ((void *));
static void ggc_mark_hash_table PARAMS ((void *));
/*** Private Interface (data) ***/ /*** Private Interface (data) ***/
......
...@@ -216,12 +216,10 @@ estimate_probability (loops_info) ...@@ -216,12 +216,10 @@ estimate_probability (loops_info)
expected values of registers. Generate branch probabilities expected values of registers. Generate branch probabilities
based off these values. */ based off these values. */
static rtx find_expected_value PARAMS ((rtx, rtx));
void void
expected_value_to_br_prob () expected_value_to_br_prob ()
{ {
rtx insn, cond, ev = NULL_RTX, ev_reg; rtx insn, cond, ev = NULL_RTX, ev_reg = NULL_RTX;
for (insn = get_insns (); insn ; insn = NEXT_INSN (insn)) for (insn = get_insns (); insn ; insn = NEXT_INSN (insn))
{ {
......
...@@ -135,4 +135,5 @@ extern void sbitmap_intersection_of_preds PARAMS ((sbitmap, sbitmap *, int)); ...@@ -135,4 +135,5 @@ extern void sbitmap_intersection_of_preds PARAMS ((sbitmap, sbitmap *, int));
extern void sbitmap_union_of_succs PARAMS ((sbitmap, sbitmap *, int)); extern void sbitmap_union_of_succs PARAMS ((sbitmap, sbitmap *, int));
extern void sbitmap_union_of_preds PARAMS ((sbitmap, sbitmap *, int)); extern void sbitmap_union_of_preds PARAMS ((sbitmap, sbitmap *, int));
extern void debug_sbitmap PARAMS ((sbitmap));
#endif /* _SBITMAP_H */ #endif /* _SBITMAP_H */
...@@ -153,7 +153,7 @@ static int coalesce_reg_in_phi ...@@ -153,7 +153,7 @@ static int coalesce_reg_in_phi
static int coalesce_regs_in_successor_phi_nodes static int coalesce_regs_in_successor_phi_nodes
PARAMS ((basic_block bb, partition p, conflict_graph conflicts)); PARAMS ((basic_block bb, partition p, conflict_graph conflicts));
static partition compute_coalesced_reg_partition static partition compute_coalesced_reg_partition
PARAMS (()); PARAMS ((void));
static int mark_reg_in_phi static int mark_reg_in_phi
PARAMS ((rtx *ptr, void *data)); PARAMS ((rtx *ptr, void *data));
static void mark_phi_and_copy_regs static void mark_phi_and_copy_regs
......
...@@ -53,6 +53,7 @@ unsigned int set_alignment = 0; ...@@ -53,6 +53,7 @@ unsigned int set_alignment = 0;
static void finalize_record_size PARAMS ((record_layout_info)); static void finalize_record_size PARAMS ((record_layout_info));
static void finalize_type_size PARAMS ((tree)); static void finalize_type_size PARAMS ((tree));
static void place_union_field PARAMS ((record_layout_info, tree)); static void place_union_field PARAMS ((record_layout_info, tree));
extern void debug_rli PARAMS ((record_layout_info));
/* SAVE_EXPRs for sizes of types and decls, waiting to be expanded. */ /* SAVE_EXPRs for sizes of types and decls, waiting to be expanded. */
......
...@@ -2069,6 +2069,7 @@ extern tree size_int_type_wide PARAMS ((HOST_WIDE_INT, tree)); ...@@ -2069,6 +2069,7 @@ extern tree size_int_type_wide PARAMS ((HOST_WIDE_INT, tree));
#define sbitsize_int(L) size_int_wide ((HOST_WIDE_INT) (L), SBITSIZETYPE) #define sbitsize_int(L) size_int_wide ((HOST_WIDE_INT) (L), SBITSIZETYPE)
extern tree round_up PARAMS ((tree, int)); extern tree round_up PARAMS ((tree, int));
extern tree round_down PARAMS ((tree, int));
extern tree get_pending_sizes PARAMS ((void)); extern tree get_pending_sizes PARAMS ((void));
extern void put_pending_sizes PARAMS ((tree)); extern void put_pending_sizes PARAMS ((tree));
...@@ -2674,7 +2675,7 @@ extern void mark_varargs PARAMS ((void)); ...@@ -2674,7 +2675,7 @@ extern void mark_varargs PARAMS ((void));
extern void init_dummy_function_start PARAMS ((void)); extern void init_dummy_function_start PARAMS ((void));
extern void expand_dummy_function_end PARAMS ((void)); extern void expand_dummy_function_end PARAMS ((void));
extern void init_function_for_compilation PARAMS ((void)); extern void init_function_for_compilation PARAMS ((void));
extern void init_function_start PARAMS ((tree, char *, int)); extern void init_function_start PARAMS ((tree, const char *, int));
extern void assign_parms PARAMS ((tree)); extern void assign_parms PARAMS ((tree));
extern void put_var_into_stack PARAMS ((tree)); extern void put_var_into_stack PARAMS ((tree));
extern void flush_addressof PARAMS ((tree)); extern void flush_addressof PARAMS ((tree));
......
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