This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH] eliminate UNRESOLVED errors on attr-ifunc-1.[c,C]


On Tue, Sep 14, 2010 at 12:16 PM, Jack Howarth <howarth@bromo.med.uc.edu> wrote:
> ? Currently on targets like darwin which lack weak alias support in their
> object format, the gcc.dg/attr-ifunc-1.c and g++.dg/ext/attr-ifunc-1.C produce
> UNRESOLVED testsuite results...
>
> Executing on host: /sw/src/fink.build/gcc46-4.6.0-1000/darwin_objdir/gcc/xgcc -B/sw/src/fink.build/gcc46-4.6.0-1000/darwin_objdir/gcc/ ?-c ?-m32 -o ifunc94739.o ifunc94739.c ? ?(timeout = 300)
> ifunc94739.c:5:18: error: only weak aliases are supported in this configuration^M
> compiler exited with status 1
> output is:
> ifunc94739.c:5:18: error: only weak aliases are supported in this configuration^M
>
> UNRESOLVED: gcc.dg/attr-ifunc-1.c
> UNSUPPORTED: gcc.dg/attr-ifunc-1.c
> UNRESOLVED: gcc.dg/attr-ifunc-2.c
> UNSUPPORTED: gcc.dg/attr-ifunc-2.c
> UNRESOLVED: gcc.dg/attr-ifunc-3.c
> UNSUPPORTED: gcc.dg/attr-ifunc-3.c
> UNRESOLVED: gcc.dg/attr-ifunc-4.c
> UNSUPPORTED: gcc.dg/attr-ifunc-4.c
> UNRESOLVED: gcc.dg/attr-ifunc-5.c
> UNSUPPORTED: gcc.dg/attr-ifunc-5.c
>
> ?These can be properly eliminated by the addition of a dg-require-weak and a dg-require-alias
> in each testcase. Tested on x86_64-apple-darwin10. Okay for gcc trunk?

No - somehow dg-require-ifunc does not work.

Richard.

> ? ? ? ? ? ? ? ? ? Jack
>
> 2010-09-14 ?Jack Howarth ?<howarth@bromo.med.uc.edu>
>
> ? ? ? ?* gcc.dg/attr-ifunc-1.c: Add dg-require-weak and dg-require-alias.
> ? ? ? ?* g++.dg/ext/attr-ifunc-1.C: Likewise.
>
> Index: gcc/testsuite/gcc.dg/attr-ifunc-1.c
> ===================================================================
> --- gcc/testsuite/gcc.dg/attr-ifunc-1.c (revision 164270)
> +++ gcc/testsuite/gcc.dg/attr-ifunc-1.c (working copy)
> @@ -1,5 +1,7 @@
> ?/* { dg-do run } ?*/
> ?/* { dg-require-ifunc "" } */
> +/* { dg-require-weak "" } */
> +/* { dg-require-alias "" } */
> ?/* { dg-options "" } */
>
> ?#include <stdio.h>
> Index: gcc/testsuite/g++.dg/ext/attr-ifunc-1.C
> ===================================================================
> --- gcc/testsuite/g++.dg/ext/attr-ifunc-1.C ? ? (revision 164270)
> +++ gcc/testsuite/g++.dg/ext/attr-ifunc-1.C ? ? (working copy)
> @@ -1,5 +1,7 @@
> ?/* { dg-do run } ?*/
> ?/* { dg-require-ifunc "" } */
> +/* { dg-require-weak "" } */
> +/* { dg-require-alias "" } */
> ?/* { dg-options "-Wno-pmf-conversions" } */
>
> ?#include <stdio.h>
>


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]