gcc/libphobos
Iain Buclaw 636b01ab49 d: Add @visibility' and @hidden' attributes.
The `@visibility' attribute is functionality the same as
`__attribute__((visibility))', and `@hidden' is a convenience alias to
`@visibility("hidden")' defined in the `gcc.attributes' module.

As the visibility of a symbol is also indirectly controlled by the
`export' keyword, the handling of this in the code generation pass has
been improved so that conflicts will be appropriately diagnosed.

gcc/d/ChangeLog:

	* d-attribs.cc (d_langhook_attribute_table): Add visibility.
	(insert_type_attribute): Use decl_attributes instead of
	merge_attributes.
	(insert_decl_attribute): Likewise.
	(apply_user_attributes): Do nothing when no UDAs applied.
	(d_handle_visibility_attribute): New function.
	* d-gimplify.cc (d_gimplify_binary_expr): Adjust.
	* d-tree.h (set_visibility_for_decl): Declare.
	* decl.cc (get_symbol_decl): Move setting of visibility flags to...
	(set_visibility_for_decl): ... here.  New function.
	* types.cc (TypeVisitor::visit (TypeStruct *)): Call
	set_visibility_for_decl().
	(TypeVisitor::visit (TypeClass *)): Likewise.

gcc/testsuite/ChangeLog:

	* gdc.dg/attr_visibility1.d: New test.
	* gdc.dg/attr_visibility2.d: New test.
	* gdc.dg/attr_visibility3.d: New test.

libphobos/ChangeLog:

	* libdruntime/gcc/attributes.d (visibility): Define.
	(hidden): Define.
2022-06-15 20:11:04 +02:00
..
libdruntime d: Add @visibility' and @hidden' attributes. 2022-06-15 20:11:04 +02:00
m4 libphobos: Update comment for DRUNTIME_OS_SOURCES 2021-09-01 14:19:35 +02:00
src d: Merge upstream dmd 821ed393d, druntime 454471d8, phobos 1206fc94f. 2022-06-13 11:38:10 +02:00
testsuite diagnostics: add SARIF output format 2022-06-02 15:40:22 -04:00
acinclude.m4 Update copyright years. 2022-01-03 10:42:10 +01:00
aclocal.m4
ChangeLog Daily bump. 2022-06-14 00:16:39 +00:00
config.h.in
configure libphobos: Enable on Solaris/SPARC or with /bin/as [PR 103528] 2022-03-11 09:37:44 +01:00
configure.ac libphobos: Enable on Solaris/SPARC or with /bin/as [PR 103528] 2022-03-11 09:37:44 +01:00
configure.tgt libphobos: Enable on Solaris/SPARC or with /bin/as [PR 103528] 2022-03-11 09:37:44 +01:00
d_rules.am Update copyright years. 2022-01-03 10:42:10 +01:00
Makefile.am Update copyright years. 2022-01-03 10:42:10 +01:00
Makefile.in d: Merge upstream dmd 52844d4b1, druntime dbd0c874, phobos 896b1d0e1. 2022-02-16 11:15:02 +01:00
README.gcc

The files in this directory where noted are part of the DRuntime
and Phobos library.

DRuntime is the low-level runtime library backing the D programming
language, hosted at https://github.com/dlang/druntime/.

Phobos is the standard library for the D Programming Language, hosted
at https://github.com/dlang/phobos/.

The following sources and directories are part of DRuntime:
  libdruntime/core/
  libdruntime/gc/
  libdruntime/gcstub/
  libdruntime/object.d
  libdruntime/rt/

The following sources and directories are part of Phobos:
  src/etc/
  src/index.d
  src/std/

To report a bug or look up known issues with the runtime or standard
library please visit the issue tracker at https://issues.dlang.org/.

All changes to either of these libraries should go through the
upstream repository first, then merged back to GCC.