This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
add Xtensa ".literal_position" directive
- From: Bob Wilson <bwilson at tensilica dot com>
- To: gcc-patches at gcc dot gnu dot org
- Date: Wed, 20 Mar 2002 14:56:14 -0800
- Subject: add Xtensa ".literal_position" directive
- Organization: Tensilica, Inc.
This patch for the Xtensa port is required to match a recent change
to GAS for Xtensa. Tested with the xtensa-elf target.
Committed to 3.1 branch and top-of-trunk.
2002-03-20 Bob Wilson <bob.wilson@acm.org>
* config/xtensa/xtensa.h (ASM_OUTPUT_POOL_PROLOGUE): Emit a
".literal_position" directive before the constant pool.
Index: xtensa.h
===================================================================
RCS file: /cvs/gcc/gcc/gcc/config/xtensa/xtensa.h,v
retrieving revision 1.1.12.2
diff -c -3 -r1.1.12.2 xtensa.h
*** xtensa.h 2002/03/18 18:10:16 1.1.12.2
--- xtensa.h 2002/03/20 21:53:41
***************
*** 1679,1685 ****
strcmp (fnsectname, ".text") ? fnsectname : ""); \
} \
if ((SIZE) > 0) \
! function_section (FUNDECL); \
} while (0)
--- 1679,1688 ----
strcmp (fnsectname, ".text") ? fnsectname : ""); \
} \
if ((SIZE) > 0) \
! { \
! function_section (FUNDECL); \
! fprintf (FILE, "\t.literal_position\n"); \
! } \
} while (0)