This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [PATCH] 34641: Fix find_reloads_address handling of reg_equiv_constant
Hello Jakub,
> // { dg-require-visibility "" }
>
> is also needed IMHO, as you use visibility attribute.
...
> > + typedef long unsigned int size_t;
>
> This ought to be
> typedef __SIZE_TYPE__ size_t;
> otherwise it fails on targets where size_t is e.g. unsigned int
> (i386, ...).
I've applied the attached patch.
Thanks for having a look at it!
Bye,
-Andreas-
2008-01-11 Andreas Krebbel <krebbel1@de.ibm.com>
* g++.dg/torture/pr34641.C: Add dg-require-visibility. Define
size_t using predefined macro.
Index: gcc/testsuite/g++.dg/torture/pr34641.C
===================================================================
*** gcc/testsuite/g++.dg/torture/pr34641.C.orig 2008-01-10 09:42:03.000000000 +0100
--- gcc/testsuite/g++.dg/torture/pr34641.C 2008-01-11 09:39:22.000000000 +0100
***************
*** 1,9 ****
// { dg-require-effective-target fpic }
// { dg-options "-fPIC" }
// { dg-do compile }
! typedef long unsigned int size_t;
extern "C" void *
malloc (size_t __size)
throw () __attribute__ ((__malloc__));
--- 1,10 ----
// { dg-require-effective-target fpic }
+ // { dg-require-visibility "" }
// { dg-options "-fPIC" }
// { dg-do compile }
! typedef __SIZE_TYPE__ size_t;
extern "C" void *
malloc (size_t __size)
throw () __attribute__ ((__malloc__));