Re: [PATCH 1/2] opts: change write_symbols to support bitmasks

2021-05-11 Thread Indu Bhagat via Gcc-patches
On 5/10/21 6:11 AM, Richard Biener wrote: On Thu, May 6, 2021 at 2:31 AM Indu Bhagat via Gcc-patches wrote: To support multiple debug formats, we need to move away from explicit enumeration of each individual combination of debug formats. debug_set_names with its static buffer seems unused

[PATCH, V2 0/2] Fix write_symbols for supporting multiple debug formats

2021-05-11 Thread Indu Bhagat via Gcc-patches
c. So the issue is, to support say, -gctf -gbtf -g or possibly other combination of debug formats to work together, each one needs to spelled out explicitly; which will make the handling ugly. This patch set updates write_symbols to use bitmasks. Thanks, Indu Bhagat (2): opts: change write_symbo

[PATCH,V2 1/2] opts: change write_symbols to support bitmasks

2021-05-11 Thread Indu Bhagat via Gcc-patches
[Changes from V1] - Use debug_set_names API and remove asserts around the diagnostics - Reword diagnostic and adjust testsuite [End of changes from V1] To support multiple debug formats, we need to move away from explicit enumeration of each individual combination of debug formats. gcc/c-fami

[PATCH,V2 2/2] dwarf: new dwarf_debuginfo_p predicate

2021-05-11 Thread Indu Bhagat via Gcc-patches
[Changes from V1] - included checks in - config/darwin.c - config/i386/cygming.h - config/i386/darwin.h - config/mips/mips.c - config/rs6000/rs6000.c [End of changes from V1] This patch introduces a dwarf_debuginfo_p predicate that abstracts and replaces complex checks on wri

Re: [PATCH 1/2] opts: change write_symbols to support bitmasks

2021-05-12 Thread Indu Bhagat via Gcc-patches
. Thanks. I tested the patch set for select triplets containing c6x/mips/powerpc and cygwin/darwin. Found and fixed the build issues. Will be posting V3 next. Thanks Indu

[PATCH, V3 0/2] Fix write_symbols for supporting multiple debug formats

2021-05-12 Thread Indu Bhagat via Gcc-patches
r, each one needs to spelled out explicitly; which will make the handling ugly. This patch set updates write_symbols to use bitmasks. Regression tested on x86_64, apart from simple (make all-gcc) builds for select target triplets to cover c6x/mips/powerpc and cygwin/darwin. Thanks, Indu Bhagat

[PATCH,V3 2/2] dwarf: new dwarf_debuginfo_p predicate

2021-05-12 Thread Indu Bhagat via Gcc-patches
[Changes from V2] - Tested build (make all-gcc) of cross compiler for target triplets containing c6x/mips/powerpc and darwin/cygwin. [End of changes from V2] This patch introduces a dwarf_debuginfo_p predicate that abstracts and replaces complex checks on write_symbols. gcc/c-family/ChangeL

[PATCH,V3 1/2] opts: change write_symbols to support bitmasks

2021-05-12 Thread Indu Bhagat via Gcc-patches
[No changes from V2] To support multiple debug formats, we need to move away from explicit enumeration of each individual combination of debug formats. gcc/c-family/ChangeLog: * c-opts.c (c_common_post_options): Adjust access to debug_type_names. * c-pch.c (struct c_pch_validity)

Re: [PATCH 2/3] btf: fix 'extern const void' variables [PR106773]

2022-12-12 Thread Indu Bhagat via Gcc-patches
On 12/12/22 12:59, David Faust wrote: On 12/8/22 23:34, Indu Bhagat wrote: Looks OK to me overall. Minor comments below. Thanks On 12/7/22 12:57, David Faust wrote: The eBPF loader expects to find BTF_KIND_VAR records for references to extern const void symbols. We were mistakenly

Re: [PATCH 3/3] btf: correct generation for extern funcs [PR106773]

2022-12-12 Thread Indu Bhagat via Gcc-patches
On 12/12/22 12:31, David Faust wrote: On 12/8/22 23:36, Indu Bhagat wrote: On 12/7/22 12:57, David Faust wrote: The eBPF loader expects to find entries for functions declared as extern in the corresponding BTF_KIND_DATASEC record, but we were not generating these entries. This patch adds

Re: [PATCH 1/3] btf: add 'extern' linkage for variables [PR106773]

2022-12-12 Thread Indu Bhagat via Gcc-patches
On 12/12/22 12:47, David Faust wrote: On 12/8/22 22:55, Indu Bhagat wrote: Hi David, On 12/7/22 12:57, David Faust wrote: Add support for the 'extern' linkage value for BTF_KIND_VAR records, which is used for variables declared as extern in the source file. PR target/1

Re: [PATCH v2 0/3] btf: fix BTF for extern items [PR106773]

2022-12-13 Thread Indu Bhagat via Gcc-patches
On 12/13/22 10:44, David Faust wrote: [Changes from v1: - Remove #defines for LINKAGE_* values, instead mirror enums from linux/btf.h to include/btf.h and use those. - Fix BTF generation for extern variable with both non-defining and defining decls in the same CU. Add a test for this.

Re: [[PATCH V9] 0/7] Support for the CTF and BTF debug formats

2021-06-22 Thread Indu Bhagat via Gcc-patches
hat's correct. Since GCC now supports bitmasks in the write_symbols, defining entries for combination of debug formats like CTF_AND_DWARF2_DEBUG is not necessary. Thanks for pointing it out. Indu

[PATCH] Fix PR testsuite/101269

2021-06-30 Thread Indu Bhagat via Gcc-patches
PR testsuite/101269 - new test case gcc.dg/debug/btf/btf-datasec-1.c fails with its introduction in r12-1852 BTF datasec records for .rodata/.data are expected for now for all targets. For powerpc based targets, use -msdata=none when ilp32 is enabled. 2021-06-30 Indu Bhagat gcc/testsuite

[COMMITTED] testsuite: Add missing dg-add-options to CTF testcase ctf-skip-types-4.c

2021-06-30 Thread Indu Bhagat via Gcc-patches
this testcase on powerpc64. 2021-06-30 Indu Bhagat gcc/testsuite/ * gcc.dg/debug/ctf/ctf-skip-types-4.c: Add dg-add-options float64 and float64x. --- gcc/testsuite/gcc.dg/debug/ctf/ctf-skip-types-4.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/gcc/testsuite

Re: [PATCH 1/3] btf: add 'extern' linkage for variables [PR106773]

2022-12-08 Thread Indu Bhagat via Gcc-patches
Hi David, On 12/7/22 12:57, David Faust wrote: Add support for the 'extern' linkage value for BTF_KIND_VAR records, which is used for variables declared as extern in the source file. PR target/106773 gcc/ * btfout.cc (BTF_LINKAGE_STATIC): New define. (BTF_LINKAGE_GLOBA

Re: [PATCH 2/3] btf: fix 'extern const void' variables [PR106773]

2022-12-08 Thread Indu Bhagat via Gcc-patches
Looks OK to me overall. Minor comments below. Thanks On 12/7/22 12:57, David Faust wrote: The eBPF loader expects to find BTF_KIND_VAR records for references to extern const void symbols. We were mistakenly identifing these as unsupported types, and as a result skipping emitting VAR records for

Re: [PATCH 3/3] btf: correct generation for extern funcs [PR106773]

2022-12-08 Thread Indu Bhagat via Gcc-patches
On 12/7/22 12:57, David Faust wrote: The eBPF loader expects to find entries for functions declared as extern in the corresponding BTF_KIND_DATASEC record, but we were not generating these entries. This patch adds support for the 'extern' linkage of function types in BTF, and creates entries for

Re: [PATCH] Testsuite: Add btf-dataset option for RISC-V.

2022-01-03 Thread Indu Bhagat via Gcc-patches
ould agree that the test case can be adapted as mentioned. The purpose of the test case is to check that BTF is correctly generated for whatever section the symbols end up in. Adding David Faust in CC for ACK. Thanks Indu IIRC some targets have other flavors of these, PPC's .sdata2 comes to mind.  Not sure if we'd need that to drop their -msdata=none flag.

[Committed] MAINTAINERS: Add myself as CTF and BTF reviewer

2023-04-06 Thread Indu Bhagat via Gcc-patches
/MAINTAINERS @@ -271,6 +271,7 @@ check in changes outside of the parts of the compiler they maintain. arc port Claudiu Zissulescu callgraph Martin Jambor C front endMarek Polacek +CTF, BTF Indu Bhagat CTF

<    1   2   3