Fix builds on xcode 12+

Enforce the use of -Werror-implicit-function-declaration for all platforms to catch this. See: https://developer.apple.com/documentation/xcode-release-notes/xcode-12-release-notes
This commit is contained in:
luckytyphlosion 2021-01-25 22:25:35 -05:00
parent e4250fbaac
commit 1f83e3d73f
9 changed files with 17 additions and 6 deletions

View File

@ -24,7 +24,7 @@ VPATH = $(srcdir)
CC = gcc
BASE_CFLAGS = -g -std=gnu11
BASE_CFLAGS = -g -std=gnu11 -Werror-implicit-function-declaration
INCLUDES = -I. -I$(srcdir)

View File

@ -40,6 +40,7 @@
#include "except.h"
#include "toplev.h"
#include "expr.h"
#include "unistd.h"
#if defined (DWARF2_DEBUGGING_INFO)
#include "dwarf2out.h"

View File

@ -64,7 +64,7 @@ ALLOCA_FINISH = true
XCFLAGS =
TCFLAGS =
# CYGNUS LOCAL nowarnings/law
CFLAGS = -g
CFLAGS = -g -Werror-implicit-function-declaration
BOOT_CFLAGS = -O2 $(CFLAGS)
WARN_CFLAGS =
# END CYGNUS LOCAL

View File

@ -38,6 +38,7 @@ Boston, MA 02111-1307, USA. */
#include "tree.h"
#include "expr.h"
#include "toplev.h"
#include "recog.h"
/* The maximum number of insns skipped which will be conditionalised if
possible. */
@ -47,7 +48,6 @@ extern FILE *asm_out_file;
/* Some function declarations. */
/* CYGNUS LOCAL */
void arm_increase_location PROTO ((int));
static int get_prologue_size PROTO ((void));
/* END CYGNUS LOCAL */

View File

@ -2215,4 +2215,10 @@ int ok_integer_or_other ();
/* END CYGNUS LOCAL */
int s_register_operand (/* register rtx op, enum machine_mode mode */);
void arm_asm_output_label (/*FILE *, char **/);
void arm_increase_location PARAMS ((int));
int short_branch PARAMS ((int, int));
int arm_insn_not_targeted (/* rtx */);
int arm_backwards_branch PARAMS ((int, int));
#endif /* __ARM_H__ */

View File

@ -5168,9 +5168,8 @@ invalidate_nonnull_info (x, setter)
This could probably be integrated with global cprop with a little work. */
void
delete_null_pointer_checks (f, pass)
delete_null_pointer_checks (f)
rtx f;
int pass;
{
int_list_ptr *s_preds, *s_succs;
int *num_preds, *num_succs;

View File

@ -226,7 +226,7 @@ from the machine description file `md'. */\n\n");
printf ("#include \"insn-attr.h\"\n\n");
printf ("#include \"insn-codes.h\"\n\n");
printf ("#include \"recog.h\"\n\n");
printf ("#include \"tree.h\"\n");
printf ("#include \"output.h\"\n");
}

View File

@ -43,6 +43,8 @@ Boston, MA 02111-1307, USA. */
#include "range.h"
#include "toplev.h"
void init_regset_vector PROTO ((regset *, int, struct obstack *));
extern struct obstack *rtl_obstack;
/* Information that we gather about registers */

View File

@ -1449,6 +1449,9 @@ extern int gcse_main PROTO ((rtx, FILE *));
/* END CYGNUS LOCAL */
#endif
extern void delete_null_pointer_checks PARAMS ((rtx));
extern void merge_blocks PARAMS ((rtx));
/* In global.c */
extern void mark_elimination PROTO ((int, int));
#ifdef BUFSIZ