This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
ADDR_VEC alignment, PA port
- To: gcc-patches at gcc dot gnu dot org
- Subject: ADDR_VEC alignment, PA port
- From: Jeffrey A Law <law at cygnus dot com>
- Date: Tue, 02 Nov 1999 01:50:55 -0700
- Reply-To: law at cygnus dot com
Each entry in an ADDR_VEC on the PA is 8 bytes, but we only want to align
the ADDR_VEC to a 4 byte boundary.
This only effects ports not using GAS since when using GAS the ADDR_VECs
are lowered to a bunch of jumps before final output.
* pa.h (ADDR_VEC_ALIGN): Define.
Index: pa.h
===================================================================
RCS file: /cvs/gcc/egcs/gcc/config/pa/pa.h,v
retrieving revision 1.76
retrieving revision 1.77
diff -c -r1.76 -r1.77
*** pa.h 1999/10/15 23:04:06 1.76
--- pa.h 1999/11/02 08:50:55 1.77
***************
*** 1689,1694 ****
--- 1689,1697 ----
for the index in the tablejump instruction. */
#define CASE_VECTOR_MODE (TARGET_BIG_SWITCH ? TImode : DImode)
+ /* Jump tables must be 32 bit aligned, no matter the size of the element. */
+ #define ADDR_VEC_ALIGN(ADDR_VEC) 2
+
/* Specify the tree operation to be used to convert reals to integers. */
#define IMPLICIT_FIX_EXPR FIX_ROUND_EXPR