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]

[Patch,AVR]: Fix missing prototype warning for ACCUMULATE_OUTGOING_ARGS


Some parts outside the backend use ACCUMULATE_OUTGOING_ARGS without including
tm_p.h which lead to a build warning because avr.h does

#define ACCUMULATE_OUTGOING_ARGS avr_accumulate_outgoing_args()

This patcs moved the prototype from avr-protos.h to avr.h:

	* config/avr/avr-protos.h (avr_accumulate_outgoing_args): Move
	prototype from here to...
	* config/avr/avr.h: ...here.

Ok for trunk?

Johann


Index: config/avr/avr-protos.h
===================================================================
--- config/avr/avr-protos.h     (revision 184266)
+++ config/avr/avr-protos.h     (working copy)
@@ -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
Index: config/avr/avr.h
===================================================================
--- config/avr/avr.h    (revision 184269)
+++ config/avr/avr.h    (working copy)
@@ -676,6 +676,7 @@ struct GTY(()) machine_function
    required in order for pushes to be generated.  */
 #define PUSH_ROUNDING(X)       (X)

+extern bool avr_accumulate_outgoing_args (void);
 #define ACCUMULATE_OUTGOING_ARGS avr_accumulate_outgoing_args()

 #define INIT_EXPANDERS avr_init_expanders()


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