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: C++ Visibility regressions


	Jason supplied the appended patch, which I tested on AIX and
committed with his approval from IRC.

David

	* name-lookup.c (push_namespace_with_attribs): Only apply hidden
	visibility to anonymous namespaces if HAVE_GAS_HIDDEN.

Index: name-lookup.c
===================================================================
*** name-lookup.c	(revision 112311)
--- name-lookup.c	(working copy)
*************** push_namespace_with_attribs (tree name, 
*** 3066,3071 ****
--- 3066,3072 ----
        push_visibility (TREE_STRING_POINTER (x));
        goto found;
      }
+ #ifdef HAVE_GAS_HIDDEN
    if (anon)
      {
        /* Anonymous namespaces default to hidden visibility.  This might
*************** push_namespace_with_attribs (tree name, 
*** 3073,3078 ****
--- 3074,3080 ----
        current_binding_level->has_visibility = 1;
        push_visibility ("hidden");
      }
+ #endif
   found:
  #endif
  


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