gcc/include
David Faust 2bce22e88e btf: add 'extern' linkage for variables [PR106773]
Add support for the 'extern' linkage value for BTF_KIND_VAR records,
which is used for variables declared as extern in the source file.

This also fixes a bug with BTF generation for extern variables which
have both a non-defining declaration and a defining declaration in the
same CU.

	PR target/106773

gcc/

	* btfout.cc (btf_collect_datasec): Mark extern variables as such.
	(btf_dvd_emit_preprocess_cb): Skip non-defining extern variable decl
	if there is a defining decl for the same variable.
	(btf_asm_varent): Accomodate 'extern' linkage.

gcc/testsuite/

	* gcc.dg/debug/btf/btf-variables-4.c: New test.
	* gcc.dg/debug/btf/btf-variables-5.c: New test.

include/

	* btf.h (enum btf_var_linkage): New.
	(struct btf_var): Update comment to note 'extern' linkage.
2022-12-14 10:20:52 -08:00
..
cuda libgomp/nvptx: Prepare for reverse-offload callback handling 2022-10-24 17:04:08 +02:00
gdb Update copyright years. 2022-01-03 10:42:10 +01:00
ansidecl.h libiberty: remove FINAL and OVERRIDE from ansidecl.h 2022-05-24 10:22:37 -04:00
btf.h btf: add 'extern' linkage for variables [PR106773] 2022-12-14 10:20:52 -08:00
ChangeLog Daily bump. 2022-12-08 00:17:45 +00:00
ChangeLog-9103
ChangeLog.jit
COPYING
COPYING3
ctf.h Update copyright years. 2022-01-03 10:42:10 +01:00
demangle.h demangler: Templated lambda demangling 2022-11-15 13:34:56 -05:00
dwarf2.def Correct spelling of DW_AT_namelist_item 2022-05-31 23:35:23 +09:30
dwarf2.h Updated constants from <https://dwarfstd.org/Languages.php> 2022-09-26 23:51:52 -04:00
dyn-string.h Update copyright years. 2022-01-03 10:42:10 +01:00
environ.h Update copyright years. 2022-01-03 10:42:10 +01:00
fibheap.h Update copyright years. 2022-01-03 10:42:10 +01:00
filenames.h Update copyright years. 2022-01-03 10:42:10 +01:00
floatformat.h rename floatformat_ia64_quad_{big, little} to floatformat_ieee_quad_{big, little} 2022-03-19 13:33:40 -04:00
fnmatch.h Update copyright years. 2022-01-03 10:42:10 +01:00
gcc-c-fe.def Update copyright years. 2022-01-03 10:42:10 +01:00
gcc-c-interface.h Update copyright years. 2022-01-03 10:42:10 +01:00
gcc-cp-fe.def Update copyright years. 2022-01-03 10:42:10 +01:00
gcc-cp-interface.h Update copyright years. 2022-01-03 10:42:10 +01:00
gcc-interface.h Update copyright years. 2022-01-03 10:42:10 +01:00
getopt.h Update copyright years. 2022-01-03 10:42:10 +01:00
gomp-constants.h Remove support for Intel MIC offloading 2022-11-04 10:51:01 +01:00
hashtab.h libiberty: stop using PTR macro 2022-05-10 16:04:30 +02:00
hsa.h
hsa_ext_amd.h
hsa_ext_image.h
leb128.h Update copyright years. 2022-01-03 10:42:10 +01:00
libiberty.h Update copyright years. 2022-01-03 10:42:10 +01:00
longlong.h LoongArch: implement count_{leading,trailing}_zeros 2022-10-13 18:05:22 +08:00
lto-symtab.h Update copyright years. 2022-01-03 10:42:10 +01:00
md5.h Update copyright years. 2022-01-03 10:42:10 +01:00
objalloc.h Update copyright years. 2022-01-03 10:42:10 +01:00
obstack.h Update copyright years. 2022-01-03 10:42:10 +01:00
partition.h Update copyright years. 2022-01-03 10:42:10 +01:00
plugin-api.h lto-plugin: implement LDPT_GET_API_VERSION 2022-07-12 15:26:57 +02:00
safe-ctype.h Update copyright years. 2022-01-03 10:42:10 +01:00
sha1.h Update copyright years. 2022-01-03 10:42:10 +01:00
simple-object.h Update copyright years. 2022-01-03 10:42:10 +01:00
sort.h Update copyright years. 2022-01-03 10:42:10 +01:00
splay-tree.h Update copyright years. 2022-01-03 10:42:10 +01:00
symcat.h Update copyright years. 2022-01-03 10:42:10 +01:00
timeval-utils.h Update copyright years. 2022-01-03 10:42:10 +01:00
vtv-change-permission.h Libvtv: Add loongarch support. 2022-10-31 17:35:02 +08:00
xregex.h
xregex2.h Update copyright years. 2022-01-03 10:42:10 +01:00
xtensa-config.h Update copyright years. 2022-01-03 10:42:10 +01:00
xtensa-dynconfig.h gcc: xtensa: allow dynamic configuration 2022-12-07 10:00:48 -08:00