]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
pa.h (BIGGEST_ALIGNMENT): Change 32-bit value to 64 bits.
authorJohn David Anglin <dave@hiauly1.hia.nrc.ca>
Thu, 12 Dec 2002 22:37:08 +0000 (22:37 +0000)
committerJohn David Anglin <danglin@gcc.gnu.org>
Thu, 12 Dec 2002 22:37:08 +0000 (22:37 +0000)
* pa.h (BIGGEST_ALIGNMENT): Change 32-bit value to 64 bits.
(MAX_PARM_BOUNDARY, STACK_BOUNDARY): Express in terms of
BIGGEST_ALIGNMENT.
(PREFERRED_STACK_BOUNDARY): Express in terms of STACK_BOUNDARY.
(FUNCTION_BOUNDARY): Express in terms of BITS_PER_WORD.

From-SVN: r60084

gcc/ChangeLog
gcc/config/pa/pa.h

index c3669da15958f6ca94d275bf4cf8b68cec605b07..624ff10ef13a11c37a9db445c5c083fb5e89c187 100644 (file)
@@ -1,3 +1,11 @@
+2002-12-12  John David Anglin  <dave@hiauly1.hia.nrc.ca>
+
+       * pa.h (BIGGEST_ALIGNMENT): Change 32-bit value to 64 bits.
+       (MAX_PARM_BOUNDARY, STACK_BOUNDARY): Express in terms of
+       BIGGEST_ALIGNMENT.
+       (PREFERRED_STACK_BOUNDARY): Express in terms of STACK_BOUNDARY.
+       (FUNCTION_BOUNDARY): Express in terms of BITS_PER_WORD.
+
 2002-12-10  Janis Johnson  <janis187@us.ibm.com>
 
        PR other/8882
index f311d6b1ef6384889f2ed0e96f90c00cb76a400c..5c27467e25ae767cf353b45ee8e16aa54a247470 100644 (file)
@@ -415,19 +415,19 @@ extern int target_flags;
 
 /* Largest alignment required for any stack parameter, in bits.
    Don't define this if it is equal to PARM_BOUNDARY */
-#define MAX_PARM_BOUNDARY 64
+#define MAX_PARM_BOUNDARY BIGGEST_ALIGNMENT
 
 /* Boundary (in *bits*) on which stack pointer is always aligned;
    certain optimizations in combine depend on this.
 
-   GCC for the PA always rounds its stacks to a 512bit boundary,
-   but that happens late in the compilation process.  */
-#define STACK_BOUNDARY (TARGET_64BIT ? 128 : 64)
+   GCC for the PA always rounds its stacks to a 8 * STACK_BOUNDARY
+   boundary, but that happens late in the compilation process.  */
+#define STACK_BOUNDARY BIGGEST_ALIGNMENT
 
-#define PREFERRED_STACK_BOUNDARY 512
+#define PREFERRED_STACK_BOUNDARY (8 * STACK_BOUNDARY)
 
 /* Allocation boundary (in *bits*) for the code of a function.  */
-#define FUNCTION_BOUNDARY (TARGET_64BIT ? 64 : 32)
+#define FUNCTION_BOUNDARY BITS_PER_WORD
 
 /* Alignment of field after `int : 0' in a structure.  */
 #define EMPTY_FIELD_BOUNDARY 32
@@ -438,9 +438,8 @@ extern int target_flags;
 /* A bitfield declared as `int' forces `int' alignment for the struct.  */
 #define PCC_BITFIELD_TYPE_MATTERS 1
 
-/* No data type wants to be aligned rounder than this.  This is set
-   to 128 bits to allow for lock semaphores in the stack frame.*/
-#define BIGGEST_ALIGNMENT 128
+/* No data type wants to be aligned rounder than this.  */
+#define BIGGEST_ALIGNMENT (2 * BITS_PER_WORD)
 
 /* Get around hp-ux assembler bug, and make strcpy of constants fast.  */
 #define CONSTANT_ALIGNMENT(CODE, TYPEALIGN) \
@@ -452,7 +451,6 @@ extern int target_flags;
    && TYPE_MODE (TREE_TYPE (TYPE)) == QImode   \
    && (ALIGN) < BITS_PER_WORD ? BITS_PER_WORD : (ALIGN))
 
-
 /* Set this nonzero if move instructions will actually fail to work
    when given unaligned data.  */
 #define STRICT_ALIGNMENT 1