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 to C++ visibility for 21764 and 19238



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


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