Changeset 2247


Ignore:
Timestamp:
Jul 15, 2005, 6:49:25 AM (20 years ago)
Author:
bird
Message:

Created a hack for the nsSupportWeakReference / friend problem.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/gcc/gcc/cp/decl.c

    • Property cvs2svn:cvs-rev changed from 1.6 to 1.7
    r2246 r2247  
    1378713787    }
    1378813788
     13789#if 1 /* bird: HACK ALERT! HACK ALERT! */
     13790  /* Don't replace attributes with nothing. See the nsSupportWeakReference / friend problem.
     13791     Limit any negative sideeffects this hack may have by only caring for a select number of attributes. */
     13792  if (   TYPE_ATTRIBUTES (ref)
     13793      && globalize
     13794      && (   lookup_attribute ("dllexport", TYPE_ATTRIBUTES (ref))
     13795          || lookup_attribute ("dllimport", TYPE_ATTRIBUTES (ref))
     13796          || lookup_attribute ("system", TYPE_ATTRIBUTES (ref))
     13797          || lookup_attribute ("cdecl", TYPE_ATTRIBUTES (ref))
     13798          || lookup_attribute ("optlink", TYPE_ATTRIBUTES (ref))
     13799          || lookup_attribute ("stdcall", TYPE_ATTRIBUTES (ref))))
     13800    TYPE_ATTRIBUTES (ref) = merge_attributes(TYPE_ATTRIBUTES (ref), attributes);
     13801  else
     13802    TYPE_ATTRIBUTES (ref) = attributes;
     13803#else
    1378913804  TYPE_ATTRIBUTES (ref) = attributes;
     13805#endif
    1379013806
    1379113807  POP_TIMEVAR_AND_RETURN (TV_NAME_LOOKUP, ref);
Note: See TracChangeset for help on using the changeset viewer.