diff options
author | John David Anglin <danglin@gcc.gnu.org> | 2016-10-09 17:02:21 +0000 |
---|---|---|
committer | John David Anglin <danglin@gcc.gnu.org> | 2016-10-09 17:02:21 +0000 |
commit | df74f099d381013b4f52a32654f9a97c5bd39327 (patch) | |
tree | 27784452b85abf1298e12fc94cb51a584096ab42 /gcc/config | |
parent | 8813a647b5f81fb32955f8ec2438d73e9e6280d4 (diff) | |
download | gcc-df74f099d381013b4f52a32654f9a97c5bd39327.zip gcc-df74f099d381013b4f52a32654f9a97c5bd39327.tar.gz gcc-df74f099d381013b4f52a32654f9a97c5bd39327.tar.bz2 |
pa.h (BIGGEST_ALIGNMENT): Adjust comment.
* config/pa/pa.h (BIGGEST_ALIGNMENT): Adjust comment.
(MALLOC_ABI_ALIGNMENT): Define.
From-SVN: r240901
Diffstat (limited to 'gcc/config')
-rw-r--r-- | gcc/config/pa/pa.h | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/gcc/config/pa/pa.h b/gcc/config/pa/pa.h index 3efcc3a..f0aa1ae 100644 --- a/gcc/config/pa/pa.h +++ b/gcc/config/pa/pa.h @@ -292,9 +292,21 @@ typedef struct GTY(()) machine_function /* A bit-field 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. */ +/* No data type wants to be aligned rounder than this. The long double + type has 16-byte alignment on the 64-bit target even though it was never + implemented in hardware. The software implementation only needs 8-byte + alignment. This is to match the HP compilers. */ #define BIGGEST_ALIGNMENT (2 * BITS_PER_WORD) +/* Alignment, in bits, a C conformant malloc implementation has to provide. + The HP-UX malloc implementation provides a default alignment of 8 bytes. + This can be increased with mallopt. The glibc implementation also provides + 8-byte alignment. Note that this isn't enough for various POSIX types such + as pthread_mutex_t. However, since we no longer need the 16-byte alignment + for atomic operations, we ignore the nominal alignment specified for these + types. The same is true for long double on 64-bit HP-UX. */ +#define MALLOC_ABI_ALIGNMENT (64) + /* Get around hp-ux assembler bug, and make strcpy of constants fast. */ #define CONSTANT_ALIGNMENT(EXP, ALIGN) \ (TREE_CODE (EXP) == STRING_CST \ |