[PATCH] DejaGNU support for AIX visibility

David Edelsohn dje.gcc@gmail.com
Mon Nov 7 20:40:00 GMT 2016


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.

Committed.

- David


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 "" }



More information about the Gcc-patches mailing list