Noticed this working on some assembly code.  Committed to trunk.

Dave
---

hppa: Fix over alignment of 64-bit functions

Both 32 and 64-bit assembly code needs 32-bit alignment.

2025-10-05  John David Anglin  <[email protected]>

gcc/ChangeLog:

        * config/pa/pa.h (FUNCTION_BOUNDARY): Set to 32.

diff --git a/gcc/config/pa/pa.h b/gcc/config/pa/pa.h
index be845c83690..6972faae8ec 100644
--- a/gcc/config/pa/pa.h
+++ b/gcc/config/pa/pa.h
@@ -292,7 +292,7 @@ typedef struct GTY(()) machine_function
 #define PREFERRED_STACK_BOUNDARY (TARGET_64BIT ? 128 : 512)
 
 /* Allocation boundary (in *bits*) for the code of a function.  */
-#define FUNCTION_BOUNDARY BITS_PER_WORD
+#define FUNCTION_BOUNDARY 32
 
 /* Alignment of field after `int : 0' in a structure.  */
 #define EMPTY_FIELD_BOUNDARY 32

Attachment: signature.asc
Description: PGP signature

Reply via email to