From: Georg-Johann Lay Date: Tue, 21 Feb 2012 17:41:06 +0000 (+0000) Subject: avr-protos.h (avr_accumulate_outgoing_args): Move prototype from here to... X-Git-Tag: releases/gcc-4.7.0~267 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=0545950be0752fdecf3ff75b56d413fedeaf483d;p=thirdparty%2Fgcc.git avr-protos.h (avr_accumulate_outgoing_args): Move prototype from here to... * config/avr/avr-protos.h (avr_accumulate_outgoing_args): Move prototype from here to... * config/avr/avr.h: ...here. From-SVN: r184445 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index bc8b10586f97..ee9b3dfcc67a 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,9 @@ +2012-01-21 Georg-Johann Lay + + * config/avr/avr-protos.h (avr_accumulate_outgoing_args): Move + prototype from here to... + * config/avr/avr.h: ...here. + 2012-02-21 Richard Earnshaw PR target/52294 diff --git a/gcc/config/avr/avr-protos.h b/gcc/config/avr/avr-protos.h index fa8c421addc9..229f38541c96 100644 --- a/gcc/config/avr/avr-protos.h +++ b/gcc/config/avr/avr-protos.h @@ -33,7 +33,6 @@ extern int avr_simple_epilogue (void); extern int avr_hard_regno_rename_ok (unsigned int, unsigned int); extern rtx avr_return_addr_rtx (int count, rtx tem); extern void avr_register_target_pragmas (void); -extern bool avr_accumulate_outgoing_args (void); extern void avr_init_expanders (void); #ifdef TREE_CODE diff --git a/gcc/config/avr/avr.h b/gcc/config/avr/avr.h index 1b7bd3551cc6..6bc73de974ff 100644 --- a/gcc/config/avr/avr.h +++ b/gcc/config/avr/avr.h @@ -676,6 +676,10 @@ struct GTY(()) machine_function required in order for pushes to be generated. */ #define PUSH_ROUNDING(X) (X) +/* Define prototype here to avoid build warning. Some files using + ACCUMULATE_OUTGOING_ARGS (directly or indirectly) include + tm.h but not tm_p.h. */ +extern bool avr_accumulate_outgoing_args (void); #define ACCUMULATE_OUTGOING_ARGS avr_accumulate_outgoing_args() #define INIT_EXPANDERS avr_init_expanders()