]> git.ipfire.org Git - thirdparty/gcc.git/commit - gcc/c-family/c-common.c
extend.texi: Document that dllimport and dllexport imply default visibility.
authorMark Mitchell <mark@codesourcery.com>
Sat, 23 Jun 2007 19:17:04 +0000 (19:17 +0000)
committerMark Mitchell <mmitchel@gcc.gnu.org>
Sat, 23 Jun 2007 19:17:04 +0000 (19:17 +0000)
commit3a687f8bbb2c222ed8752901976f638a1980e854
tree68bf248eebd2d13665cd9f9a10d25b6810ef5803
parente36711f3cd476b24b011f18953aa3ed3e9a70a36
extend.texi: Document that dllimport and dllexport imply default visibility.

2007-06-23  Mark Mitchell  <mark@codesourcery.com>

* doc/extend.texi: Document that dllimport and dllexport imply
default visibility.
* tree.c (handle_dll_attribute): Set DECL_VISIBILITY on the
imported or exported declaration, including type declarations.
* c-common.c (handle_visibility_attribute): Check for conflicts
with dllimport/dllexport.
(c_determine_visibility): Handle dllimport/dllexport as an
explicit visibility atttribute.

2007-06-23  Mark Mitchell  <mark@codesourcery.com>

* decl2.c (determine_visibility): Don't look for dllexport here.
(determine_visibility_from_class): Tidy.

2007-06-23  Mark Mitchell  <mark@codesourcery.com>

* gcc.dg/visibility-12.c: New test.
* gcc.dg/visibility-13.c: Likewise.
* g++.dg/ext/visibility-9.C: Likewise.
* g++.dg/ext/visibility-10.C: Likewise.

From-SVN: r125975
gcc/ChangeLog
gcc/c-common.c
gcc/cp/ChangeLog
gcc/cp/decl2.c
gcc/doc/extend.texi
gcc/fold-const.c
gcc/testsuite/ChangeLog
gcc/tree.c