This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
config/sh/sh.c: properly define ACCUMULATE_OUTGOING_ARGS
- To: gcc-patches at gcc dot gnu dot org
- Subject: config/sh/sh.c: properly define ACCUMULATE_OUTGOING_ARGS
- From: Toshi Morita <tm2 at best dot com>
- Date: Sun, 18 Mar 2001 01:43:44 -0800 (PST)
- Cc: aoliva at redhat dot com, rth at redhat dot com
THis patch:
2001-03-17 Richard Henderson <rth@redhat.com>
* dwarf2out.c (queue_reg_save): New.
(flush_queued_reg_saves, clobbers_queued_reg_save): New.
(dwarf2out_frame_debug_expr): Call queue_reg_save instead of
dwarf2out_reg_save.
(dwarf2out_frame_debug): Call flush_queued_reg_saves when needed.
(cfa, cfa_store, cfa_temp): Make static.
* final.c (final_scan_insn): Always call dwarf2out_frame_debug.
Caused target sh-elf builds to break:
gcc -c -DCROSS_COMPILE -DIN_GCC -g -O2 -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wtraditional -pedantic -Wno-long-long -DHAVE_CONFIG_H -I. -I. -I../../gcc/gcc -I../../gcc/gcc/. -I../../gcc/gcc/config -I../../gcc/gcc/../include ../../gcc/gcc/dwarf2out.c -o dwarf2out.o
^[kk../../gcc/gcc/dwarf2out.c: In function `dwarf2out_frame_debug':
../../gcc/gcc/dwarf2out.c:1568: `ACCUMULATE_OUTGOING_ARGS' undeclared (first use in this function)
../../gcc/gcc/dwarf2out.c:1568: (Each undeclared identifier is reported only once
../../gcc/gcc/dwarf2out.c:1568: for each function it appears in.)
because it depends upon ACCUMULATE_OUTGOING_ARGS to be defined properly.
For some reason, the SH target doesn't have it defined at all.
This patch fixes the problem:
Sun Mar 18 01:40:19 PST 2001 Toshiyasu Morita (toshiyasu.morita@hsa.hitachi.com)
* config/sh/sh.c (ACCUMULATE_OUTGOING_ARGS): Add definition.
*** sh.h.bak Sun Mar 18 01:39:38 2001
--- sh.h Sun Mar 18 01:39:54 2001
***************
*** 2366,2371 ****
--- 2366,2373 ----
clear if this would give better code. If implemented, should check for
compatibility problems. */
+ #define ACCUMULATE_OUTGOING_ARGS 0
+
/* A C statement (sans semicolon) to update the integer variable COST
based on the relationship between INSN that is dependent on
DEP_INSN through the dependence LINK. The default is to make no