diff mbox

DejaGNU support for AIX visibility

Message ID CAGWvny=Uam0s8edA+fhYjTZh-yvPrCxyOC3fguU9MUvdFK3RSA@mail.gmail.com
State New
Headers show

Commit Message

David Edelsohn Nov. 7, 2016, 8:40 p.m. UTC
Adding visibility support for AIX to GCC requires the DejaGNU
testsuite to know about XCOFF "hidden".  DejaGNU labels XCOFF as
"coff".  The appended patch adds a regex to the DejaGNU
hidden-scan-for procedure to recognize AIX XCOFF hidden pseudo-ops in
assembly language.


- David
diff mbox


Index: lib/scanasm.exp
--- lib/scanasm.exp     (revision 241929)
+++ lib/scanasm.exp     (working copy)
@@ -103,6 +103,7 @@ 
     set objformat [gcc_target_object_format]

     switch $objformat {
+        coff     { return "$symbol\[,\d\]*hidden" }
         elf      { return "hidden\[ \t_\]*$symbol" }
         mach-o   { return "private_extern\[ \t_\]*_?$symbol" }
         default  { return "" }