This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Xtensa: fix broken build for 3.1 branch
- From: Bob Wilson <bwilson at tensilica dot com>
- To: gcc-patches at gcc dot gnu dot org
- Date: Thu, 27 Jun 2002 16:50:27 -0700
- Subject: Xtensa: fix broken build for 3.1 branch
- Organization: Tensilica, Inc.
A 3rd argument was added to the resolve_unique_section function. This patch
updates the Xtensa port to provide that argument. rth fixed this earlier on the
top-of-trunk (thanks!) but now it seems to be needed on the 3.1 branch as well.
Tested with the xtensa-elf target and committed on the 3.1 branch.
2002-06-27 Bob Wilson <bob.wilson@acm.org>
* config/xtensa/xtensa.h (ASM_OUTPUT_POOL_PROLOGUE): Pass
flag_function_sections as new 3rd arg to resolve_unique_section.
? xtensa.h.new
Index: xtensa.h
===================================================================
RCS file: /cvs/gcc/gcc/gcc/config/xtensa/xtensa.h,v
retrieving revision 1.1.12.4
diff -c -r1.1.12.4 xtensa.h
*** xtensa.h 22 Mar 2002 22:46:46 -0000 1.1.12.4
--- xtensa.h 27 Jun 2002 23:32:59 -0000
***************
*** 1665,1671 ****
#define ASM_OUTPUT_POOL_PROLOGUE(FILE, FUNNAME, FUNDECL, SIZE) \
do { \
tree fnsection; \
! resolve_unique_section ((FUNDECL), 0); \
fnsection = DECL_SECTION_NAME (FUNDECL); \
if (fnsection != NULL_TREE) \
{ \
--- 1665,1671 ----
#define ASM_OUTPUT_POOL_PROLOGUE(FILE, FUNNAME, FUNDECL, SIZE) \
do { \
tree fnsection; \
! resolve_unique_section ((FUNDECL), 0, flag_function_sections); \
fnsection = DECL_SECTION_NAME (FUNDECL); \
if (fnsection != NULL_TREE) \
{ \