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]

accumulate_outgoing_args default


Yesterday I introduced a new use of ACCUMULATE_OUTGOING_ARGS in
dwarf2out.c, which caused build problems on SH.  Fixed thus.


r~


        * defaults.h (ACCUMULATE_OUTGOING_ARGS, PUSH_ARGS): Move from ...
        * calls.c: ... here. 
        * combine.c, expr.c, final.c, function.c toplev.c: Don't provide
        defaults for them here.

Index: calls.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/calls.c,v
retrieving revision 1.176
diff -c -p -d -r1.176 calls.c
*** calls.c	2001/03/15 02:50:48	1.176
--- calls.c	2001/03/18 21:36:00
*************** Boston, MA 02111-1307, USA.  */
*** 34,52 ****
  #include "timevar.h"
  #include "sbitmap.h"
  
- #ifndef ACCUMULATE_OUTGOING_ARGS
- #define ACCUMULATE_OUTGOING_ARGS 0
- #endif
- 
- /* Supply a default definition for PUSH_ARGS.  */
- #ifndef PUSH_ARGS
- #ifdef PUSH_ROUNDING
- #define PUSH_ARGS	!ACCUMULATE_OUTGOING_ARGS
- #else
- #define PUSH_ARGS	0
- #endif
- #endif
- 
  #if !defined FUNCTION_OK_FOR_SIBCALL
  #define FUNCTION_OK_FOR_SIBCALL(DECL) 1
  #endif
--- 34,39 ----
Index: combine.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/combine.c,v
retrieving revision 1.191
diff -c -p -d -r1.191 combine.c
*** combine.c	2001/03/17 17:00:23	1.191
--- combine.c	2001/03/18 21:36:00
*************** Boston, MA 02111-1307, USA.  */
*** 93,111 ****
  #include "real.h"
  #include "toplev.h"
  
- #ifndef ACCUMULATE_OUTGOING_ARGS
- #define ACCUMULATE_OUTGOING_ARGS 0
- #endif
- 
- /* Supply a default definition for PUSH_ARGS.  */
- #ifndef PUSH_ARGS
- #ifdef PUSH_ROUNDING
- #define PUSH_ARGS	!ACCUMULATE_OUTGOING_ARGS
- #else
- #define PUSH_ARGS	0
- #endif
- #endif
- 
  /* It is not safe to use ordinary gen_lowpart in combine.
     Use gen_lowpart_for_combine instead.  See comments there.  */
  #define gen_lowpart dont_use_gen_lowpart_you_dummy
--- 93,98 ----
Index: defaults.h
===================================================================
RCS file: /cvs/gcc/gcc/gcc/defaults.h,v
retrieving revision 1.32
diff -c -p -d -r1.32 defaults.h
*** defaults.h	2001/02/13 20:17:44	1.32
--- defaults.h	2001/03/18 21:36:00
*************** do {								\
*** 308,312 ****
--- 308,325 ----
  #endif
  #endif
  
+ #ifndef ACCUMULATE_OUTGOING_ARGS
+ #define ACCUMULATE_OUTGOING_ARGS 0
+ #endif
+ 
+ /* Supply a default definition for PUSH_ARGS.  */
+ #ifndef PUSH_ARGS
+ #ifdef PUSH_ROUNDING
+ #define PUSH_ARGS	!ACCUMULATE_OUTGOING_ARGS
+ #else
+ #define PUSH_ARGS	0
+ #endif
+ #endif
+ 
  #endif  /* GCC_DEFAULTS_H */
  
Index: expr.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/expr.c,v
retrieving revision 1.303
diff -c -p -d -r1.303 expr.c
*** expr.c	2001/03/15 02:50:49	1.303
--- expr.c	2001/03/18 21:36:00
*************** Boston, MA 02111-1307, USA.  */
*** 44,62 ****
  #include "intl.h"
  #include "tm_p.h"
  
- #ifndef ACCUMULATE_OUTGOING_ARGS
- #define ACCUMULATE_OUTGOING_ARGS 0
- #endif
- 
- /* Supply a default definition for PUSH_ARGS.  */
- #ifndef PUSH_ARGS
- #ifdef PUSH_ROUNDING
- #define PUSH_ARGS	!ACCUMULATE_OUTGOING_ARGS
- #else
- #define PUSH_ARGS	0
- #endif
- #endif
- 
  /* Decide whether a function's arguments should be processed
     from first to last or from last to first.
  
--- 44,49 ----
Index: final.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/final.c,v
retrieving revision 1.162
diff -c -p -d -r1.162 final.c
*** final.c	2001/03/18 05:09:55	1.162
--- final.c	2001/03/18 21:36:00
*************** Boston, MA 02111-1307, USA.  */
*** 79,88 ****
  
  #endif /* DBX_DEBUGGING_INFO || XCOFF_DEBUGGING_INFO */
  
- #ifndef ACCUMULATE_OUTGOING_ARGS
- #define ACCUMULATE_OUTGOING_ARGS 0
- #endif
- 
  #ifdef XCOFF_DEBUGGING_INFO
  #include "xcoffout.h"
  #endif
--- 79,84 ----
Index: function.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/function.c,v
retrieving revision 1.256
diff -c -p -d -r1.256 function.c
*** function.c	2001/03/15 02:50:49	1.256
--- function.c	2001/03/18 21:36:00
*************** Boston, MA 02111-1307, USA.  */
*** 60,69 ****
  #include "ggc.h"
  #include "tm_p.h"
  
- #ifndef ACCUMULATE_OUTGOING_ARGS
- #define ACCUMULATE_OUTGOING_ARGS 0
- #endif
- 
  #ifndef TRAMPOLINE_ALIGNMENT
  #define TRAMPOLINE_ALIGNMENT FUNCTION_BOUNDARY
  #endif
--- 60,65 ----
Index: toplev.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/toplev.c,v
retrieving revision 1.437
diff -c -p -d -r1.437 toplev.c
*** toplev.c	2001/03/15 02:50:50	1.437
--- toplev.c	2001/03/18 21:36:01
*************** Boston, MA 02111-1307, USA.  */
*** 65,74 ****
  #include "ssa.h"
  #include "params.h"
  
- #ifndef ACCUMULATE_OUTGOING_ARGS
- #define ACCUMULATE_OUTGOING_ARGS 0
- #endif
- 
  #ifdef DWARF_DEBUGGING_INFO
  #include "dwarfout.h"
  #endif
--- 65,70 ----


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