RFA: Fix target/47063 (ada fails to build for alpha*-dec-vms)
diff mbox

Message ID 20101229203021.ea2na6w1hcs8gsws-nzlynne@webmail.spamcop.net
State New
Headers show

Commit Message

Joern Rennecke Dec. 30, 2010, 1:30 a.m. UTC
Quoting "rguenth at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>:

> http://gcc.gnu.org/bugzilla/show_bug.cgi?id=47063
>
> --- Comment #2 from Richard Guenther <rguenth at gcc dot gnu.org>   
> 2010-12-29 23:05:08 UTC ---
> I suppose it was meant to be MALLOC_ABI_ALIGNMENT?

Indeed, that makes sense.

Cross-tested for x86_64-pc-linux-gnu X alpha-dec-vms and
x86_64-pc-linux-gnu X alpha64-dec-vms; it runs next into PR47101, but
when the patch for that is applied too, both configurations can successfuly
build "all-gcc".
2010-12-30  Joern Rennecke  <amylaar@spamcop.net>

	PR target/47063
	* config/alpha/vms.h (MALLOC_ALIGNMENT): Don't undef / define.
	(MALLOC_ABI_ALIGNMENT): Undef / define.

Comments

Richard Biener Dec. 30, 2010, 12:42 p.m. UTC | #1
On Thu, Dec 30, 2010 at 2:30 AM, Joern Rennecke <amylaar@spamcop.net> wrote:
> Quoting "rguenth at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>:
>
>> http://gcc.gnu.org/bugzilla/show_bug.cgi?id=47063
>>
>> --- Comment #2 from Richard Guenther <rguenth at gcc dot gnu.org>
>>  2010-12-29 23:05:08 UTC ---
>> I suppose it was meant to be MALLOC_ABI_ALIGNMENT?
>
> Indeed, that makes sense.
>
> Cross-tested for x86_64-pc-linux-gnu X alpha-dec-vms and
> x86_64-pc-linux-gnu X alpha64-dec-vms; it runs next into PR47101, but
> when the patch for that is applied too, both configurations can successfuly
> build "all-gcc".

Ok.

Thanks,
Richard.

> 2010-12-30  Joern Rennecke  <amylaar@spamcop.net>
>
>        PR target/47063
>        * config/alpha/vms.h (MALLOC_ALIGNMENT): Don't undef / define.
>        (MALLOC_ABI_ALIGNMENT): Undef / define.
>
> Index: config/alpha/vms.h
> ===================================================================
> --- config/alpha/vms.h  (revision 168327)
> +++ config/alpha/vms.h  (working copy)
> @@ -72,8 +72,8 @@ #define TARGET_OS_CPP_BUILTINS()              \
>  #define MAX_OFILE_ALIGNMENT 524288  /* 8 x 2^16 by DEC Ada Test CD40VRA */
>
>  /* The maximum alignment 'malloc' honors.  */
> -#undef  MALLOC_ALIGNMENT
> -#define MALLOC_ALIGNMENT ((TARGET_MALLOC64 ? 16 : 8) * BITS_PER_UNIT)
> +#undef  MALLOC_ABI_ALIGNMENT
> +#define MALLOC_ABI_ALIGNMENT ((TARGET_MALLOC64 ? 16 : 8) * BITS_PER_UNIT)
>
>  #undef FIXED_REGISTERS
>  #define FIXED_REGISTERS  \
>
>

Patch
diff mbox

Index: config/alpha/vms.h
===================================================================
--- config/alpha/vms.h	(revision 168327)
+++ config/alpha/vms.h	(working copy)
@@ -72,8 +72,8 @@  #define TARGET_OS_CPP_BUILTINS()		\
 #define MAX_OFILE_ALIGNMENT 524288  /* 8 x 2^16 by DEC Ada Test CD40VRA */
 
 /* The maximum alignment 'malloc' honors.  */
-#undef  MALLOC_ALIGNMENT
-#define MALLOC_ALIGNMENT ((TARGET_MALLOC64 ? 16 : 8) * BITS_PER_UNIT)
+#undef  MALLOC_ABI_ALIGNMENT
+#define MALLOC_ABI_ALIGNMENT ((TARGET_MALLOC64 ? 16 : 8) * BITS_PER_UNIT)
 
 #undef FIXED_REGISTERS
 #define FIXED_REGISTERS  \