This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: PATCH to C++ visibility for 21764 and 19238
- From: Andrew Pinski <pinskia at physics dot uc dot edu>
- To: Jason Merrill <jason at redhat dot com>
- Cc: "gcc-patches >> GCC Patches" <gcc-patches at gcc dot gnu dot org>
- Date: Mon, 20 Mar 2006 22:24:54 -0500
- Subject: Re: PATCH to C++ visibility for 21764 and 19238
- References: <441F70A6.8050202@redhat.com>
On Mar 20, 2006, at 10:19 PM, Jason Merrill wrote:
+ // { dg-do compile { target i?86-*-linux* x86_64-*-linux*
powerpc*-*-linux* } }
+ // { dg-final { scan-assembler "hidden\[ \t\]*_Z1fv" } }
+ // { dg-final { scan-assembler "hidden\[ \t\]*_ZZ1fvE1i" } }
+ // { dg-final { scan-assembler "hidden\[ \t\]*_ZZ1fvEN1A1fEv" } }
There is a better way than this.
Something like:
// { dg-require-visibility "" }
// { dg-final { scan-hidden "_Z1fv" } }
// { dg-final { scan-hidden "_ZZ1fvE1i" } }
// { dg-final { scan-hidden "_ZZ1fvEN1A1fEv" } }
Which will then test it on all targets that support visibility instead
of the ones which you listed.
Likewise for the other testcase (scan-not-hidden replaces
scan-assembler-not).
Thanks,
Andrew Pinski