diff options
author | Olivier Hainque <hainque@adacore.com> | 2018-12-03 15:47:52 +0000 |
---|---|---|
committer | Pierre-Marie de Rodat <pmderodat@gcc.gnu.org> | 2018-12-03 15:47:52 +0000 |
commit | e663d4d985b60ba445f140df2481af573073cbc7 (patch) | |
tree | fa060c1801f1c495c7baacd63667d75c2c31ba0d /gcc/ada/gcc-interface | |
parent | 1ab144aec03080a93a59a180f5daae50143b006b (diff) | |
download | gcc-e663d4d985b60ba445f140df2481af573073cbc7.zip gcc-e663d4d985b60ba445f140df2481af573073cbc7.tar.gz gcc-e663d4d985b60ba445f140df2481af573073cbc7.tar.bz2 |
[Ada] Adjust the default MALLOC_OBSERVABLE_ALIGNMENT to 2 * POINTER_SIZE
Instead of 2 * LONG_TYPE_SIZE. POINTER_SIZE is believed to be the
correct base on more configurations than LONG_TYPE_SIZE and this
adjustment prevents the need for local patches to compensate on
configurations where the latter is inappropriate, for example
x86_64-mingw.
2018-12-03 Olivier Hainque <hainque@adacore.com>
gcc/ada/
* gcc-interface/targtyps.c (MALLOC_OBSERVABLE_ALIGNMENT): Set to
2 * POINTER_SIZE.
From-SVN: r266747
Diffstat (limited to 'gcc/ada/gcc-interface')
-rw-r--r-- | gcc/ada/gcc-interface/targtyps.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gcc/ada/gcc-interface/targtyps.c b/gcc/ada/gcc-interface/targtyps.c index 78a9db9..9386a53 100644 --- a/gcc/ada/gcc-interface/targtyps.c +++ b/gcc/ada/gcc-interface/targtyps.c @@ -6,7 +6,7 @@ * * * Body * * * - * Copyright (C) 1992-2015, Free Software Foundation, Inc. * + * Copyright (C) 1992-2018, Free Software Foundation, Inc. * * * * GNAT is free software; you can redistribute it and/or modify it under * * terms of the GNU General Public License as published by the Free Soft- * @@ -132,7 +132,7 @@ get_target_maximum_default_alignment (void) #ifdef MALLOC_OBSERVABLE_ALIGNMENT #define MALLOC_ALIGNMENT MALLOC_OBSERVABLE_ALIGNMENT #else -#define MALLOC_OBSERVABLE_ALIGNMENT (2 * LONG_TYPE_SIZE) +#define MALLOC_OBSERVABLE_ALIGNMENT (2 * POINTER_SIZE) #define MALLOC_ALIGNMENT \ MAX (MALLOC_ABI_ALIGNMENT, MALLOC_OBSERVABLE_ALIGNMENT) #endif |