[PATCH V8 5/7] CTF/BTF testsuites

2021-05-14 Thread Jose E. Marchesi via Gcc-patches
This commit adds a new testsuite for the CTF debug format. 2021-05-14 Indu Bhagat David Faust gcc/testsuite/ * lib/gcc-dg.exp (gcc-dg-frontend-supports-ctf): New procedure. (gcc-dg-debug-runtest): Add -gctf support. * gcc.dg/debug/btf/btf-1.c: New test.

[PATCH V8 0/7] Support for the CTF and BTF debug formats

2021-05-14 Thread Jose E. Marchesi via Gcc-patches
debug info. BTF_DEBUG- Write BTF debug info. CTF_AND_DWARF2_DEBUG - Write both CTF and DWARF info. Doing this, we just followed the trend initiated by vmsdbgout.c, which added VMS_DEBUG and VMS_AND_DWARF2_DEBUG. David Faust (1): Enable BTF generation in the BPF backen

[PATCH V8 2/7] dwarf: new dwarf_debuginfo_p predicate

2021-05-14 Thread Jose E. Marchesi via Gcc-patches
This patch introduces a dwarf_debuginfo_p predicate that abstracts and replaces complex checks on write_symbols. 2021-04-14 Indu Bhagat gcc/ChangeLog * flags.h (dwarf_debuginfo_p): New function declaration. * opts.c (dwarf_debuginfo_p): New function definition. *

[PATCH V8 1/7] dwarf: add a dwarf2int.h internal interface

2021-05-14 Thread Jose E. Marchesi via Gcc-patches
: - dw_get_die_child - dw_get_die_sib - dw_get_die_tag 2021-05-14 Jose E. Marchesi * dwarf2int.h: New file. * dwarf2out.c (get_AT): Function is no longer static. (get_AT_string): Likewise. (get_AT_flag): Likewise. (get_AT_unsigned): Likewise

[PATCH V8 3/7] dejagnu: modularize gcc-dg-debug-runtest a bit

2021-05-14 Thread Jose E. Marchesi via Gcc-patches
Move some functionality into a procedure of its own. This is only so that when the patch for ctf comes along, the gcc-dg-debug-runtest procedure looks bit more uniform. gcc/testsuite/ChangeLog: * lib/gcc-dg.exp (gcc-dg-target-supports-debug-format): New procedure. ---

Re: [PATCH V7 4/7] CTF/BTF debug formats

2021-04-30 Thread Jose E. Marchesi via Gcc-patches
>> For a moment, for the sake of this question, if we establish that CTF/BTF >> generation always feeds off DWARF DIEs (so there is no need to access >> type/decl tree nodes), what will it take to keep LTO support while keeping >> ctf_debug_finalize in dwarf2out_finish ? > > I don't think it's

Re: [PATCH v11] Practical improvement to libgcc complex divide

2021-04-28 Thread Jose E. Marchesi via Gcc-patches
> This patch version is OK. I just pushed the patch to master in Patrick's behalf.

Re: [PATCH 2/2] bpf: allow BSS symbols to be global symbols

2021-04-27 Thread Jose E. Marchesi via Gcc-patches
Hi David. >> Hi YiFei. >> >>> Prior to this, a BSS declaration such as: >>> >>> int foo; >>> static int bar; >>> >>> Generates: >>> >>> .global foo >>> .local foo >>> .comm foo,4,4 >>> .local bar >>> .comm bar,4,4 >>> >>> Creating symbols: >>> >>> b

Re: [PATCH 2/2] bpf: allow BSS symbols to be global symbols

2021-04-23 Thread Jose E. Marchesi via Gcc-patches
Hi YiFei. > Prior to this, a BSS declaration such as: > > int foo; > static int bar; > > Generates: > > .global foo > .local foo > .comm foo,4,4 > .local bar > .comm bar,4,4 > > Creating symbols: > > b foo > 0004 b bar > > Both symbols

Re: [PATCH 1/2] bpf: align function entry point to 64 bits

2021-04-22 Thread Jose E. Marchesi via Gcc-patches
Hi YiFei. This is OK for both trunk and GCC 10. Thanks for the fix! [I see you don't have a copyright transfer contract in place. I believe this change, and also the patch in 2/2, are small/trivial enough to not require one, but if you plan to do more contributions in the future we will

[PATCH V7 5/7] CTF/BTF testsuites

2021-04-19 Thread Jose E. Marchesi via Gcc-patches
This commit adds a new testsuite for the CTF debug format. 2021-04-14 Indu Bhagat David Faust gcc/testsuite/ * lib/gcc-dg.exp (gcc-dg-frontend-supports-ctf): New procedure. (gcc-dg-debug-runtest): Add -gctf support. * gcc.dg/debug/btf/btf-1.c: New test.

[PATCH V7 6/7] CTF/BTF documentation

2021-04-19 Thread Jose E. Marchesi via Gcc-patches
This commit documents the new command line options introduced by the CTF and BTF debug formats. 2021-04-14 Indu Bhagat * doc/invoke.texi: Document the CTF and BTF debug info options. --- gcc/doc/invoke.texi | 20 1 file changed, 20 insertions(+) diff --git

[PATCH V7 7/7] Enable BTF generation in the BPF backend

2021-04-19 Thread Jose E. Marchesi via Gcc-patches
This patch changes the BPF GCC backend in order to use the DWARF debug hooks and therefore enables the user to generate BTF debugging information with -gbtf. Generating BTF is crucial when compiling BPF programs, since the CO-RE (compile-once, run-everwhere) mechanism used by the kernel BPF

[PATCH V7 3/7] dejagnu: modularize gcc-dg-debug-runtest a bit

2021-04-19 Thread Jose E. Marchesi via Gcc-patches
Move some functionality into a procedure of its own. This is only so that when the patch for ctf comes along, the gcc-dg-debug-runtest procedure looks bit more uniform. gcc/testsuite/ChangeLog: * lib/gcc-dg.exp (gcc-dg-target-supports-debug-format): New procedure. ---

[PATCH V7 2/7] dwarf: new dwarf_debuginfo_p predicate

2021-04-19 Thread Jose E. Marchesi via Gcc-patches
This patch introduces a dwarf_debuginfo_p predicate that abstracts and replaces complex checks on write_symbols. 2021-04-14 Indu Bhagat gcc/ChangeLog * flags.h (dwarf_debuginfo_p): New function declaration. * opts.c (dwarf_debuginfo_p): New function definition. *

[PATCH V7 1/7] dwarf: add a dwarf2int.h internal interface

2021-04-19 Thread Jose E. Marchesi via Gcc-patches
: - dw_get_die_child - dw_get_die_sib - dw_get_die_tag 2021-04-14 Jose E. Marchesi * dwarf2int.h: New file. * dwarf2out.c (get_AT): Function is no longer static. (get_AT_string): Likewise. (get_AT_flag): Likewise. (get_AT_unsigned): Likewise

[PATCH V7 0/7] Support for the CTF and BTF debug formats

2021-04-19 Thread Jose E. Marchesi via Gcc-patches
info. Doing this, we just followed the trend initiated by vmsdbgout.c, which added VMS_DEBUG and VMS_AND_DWARF2_DEBUG. David Faust (1): Enable BTF generation in the BPF backend Indu Bhagat (3): dwarf: new dwarf_debuginfo_p predicate dejagnu: modularize gcc-dg-debug-runtest a bit

[PATCH V6 5/7] CTF/BTF testsuites

2021-04-14 Thread Jose E. Marchesi via Gcc-patches
This commit adds a new testsuite for the CTF debug format. 2021-04-14 Indu Bhagat David Faust gcc/testsuite/ * lib/gcc-dg.exp (gcc-dg-frontend-supports-ctf): New procedure. (gcc-dg-debug-runtest): Add -gctf support. * gcc.dg/debug/btf/btf-1.c: New test.

[PATCH V6 7/7] Enable BTF generation in the BPF backend

2021-04-14 Thread Jose E. Marchesi via Gcc-patches
This patch changes the BPF GCC backend in order to use the DWARF debug hooks and therefore enables the user to generate BTF debugging information with -gbtf. Generating BTF is crucial when compiling BPF programs, since the CO-RE (compile-once, run-everwhere) mechanism used by the kernel BPF

[PATCH V6 6/7] CTF/BTF documentation

2021-04-14 Thread Jose E. Marchesi via Gcc-patches
This commit documents the new command line options introduced by the CTF and BTF debug formats. 2021-04-14 Indu Bhagat * doc/invoke.texi: Document the CTF and BTF debug info options. --- gcc/doc/invoke.texi | 20 1 file changed, 20 insertions(+) diff --git

[PATCH V6 0/7] Support for the CTF and BTF debug formats

2021-04-14 Thread Jose E. Marchesi via Gcc-patches
ARF info. Doing this, we just followed the trend initiated by vmsdbgout.c, which added VMS_DEBUG and VMS_AND_DWARF2_DEBUG. David Faust (1): Enable BTF generation in the BPF backend Indu Bhagat (3): dwarf: new dwarf_debuginfo_p predicate dejagnu: modularize gcc-dg-debug-runtest a bit

[PATCH V6 1/7] dwarf: add a dwarf2int.h internal interface

2021-04-14 Thread Jose E. Marchesi via Gcc-patches
: - dw_get_die_child - dw_get_die_sib - dw_get_die_tag 2021-04-14 Jose E. Marchesi * dwarf2int.h: New file. * dwarf2out.c (get_AT): Function is no longer static. (get_AT_string): Likewise. (get_AT_flag): Likewise. (get_AT_unsigned): Likewise

[PATCH V6 2/7] dwarf: new dwarf_debuginfo_p predicate

2021-04-14 Thread Jose E. Marchesi via Gcc-patches
This patch introduces a dwarf_debuginfo_p predicate that abstracts and replaces complex checks on write_symbols. 2021-04-14 Indu Bhagat gcc/ChangeLog * flags.h (dwarf_debuginfo_p): New function declaration. * opts.c (dwarf_debuginfo_p): New function definition. *

[PATCH V6 3/7] dejagnu: modularize gcc-dg-debug-runtest a bit

2021-04-14 Thread Jose E. Marchesi via Gcc-patches
Move some functionality into a procedure of its own. This is only so that when the patch for ctf comes along, the gcc-dg-debug-runtest procedure looks bit more uniform. gcc/testsuite/ChangeLog: * lib/gcc-dg.exp (gcc-dg-target-supports-debug-format): New procedure. ---

Re: [PATCH V5 0/6] Support for the CTF and BTF debug formats

2021-04-01 Thread Jose E. Marchesi via Gcc-patches
iously, these routines need access to the dwarf DIE data > structures, and several functions which are defined in dwarf2out.[ch], > many (most?) of which are private to that file: dw_die_ref, get_AT, > etc. > > Therefore, in this implementation we exported these fun

[PATCH] Change semantics of -frecord-gcc-switches and add -frecord-gcc-switches-format.

2021-03-23 Thread Jose E. Marchesi via Gcc-patches
ping Any hope for getting this in? We really need this support. Thanks! > On 3/12/21 6:39 PM, Martin Liška wrote: > PING^2 > > On 3/1/21 1:07 PM, Martin Liška wrote: >> PING >> On 2/18/21 10:18 AM, Martin Liška wrote: >>> On 2/16/21 10:17 PM, Qing Zhao wrote: Hello, What’s

Re: [PATCH V5 0/6] Support for the CTF and BTF debug formats

2021-03-19 Thread Jose E. Marchesi via Gcc-patches
> [Changes from V4: > - Rebased to latest master. > - Support for DATASEC in BTF. > - Bug fixes in the CTF support. > - Be more silent: do not inform() the user anymore if -gctf is used > along with a frontend for which there is no CTF support. Ignore > the request instead. > - Got rid of

[PATCH V5 4/6] CTF/BTF testsuites

2021-03-18 Thread Jose E. Marchesi via Gcc-patches
This commit adds a new testsuite for the CTF debug format. 2021-03-18 Indu Bhagat David Faust gcc/testsuite/ * gcc.dg/debug/btf/btf-1.c: New test. * gcc.dg/debug/btf/btf-2.c: Likewise. * gcc.dg/debug/btf/btf-anonymous-struct-1.c: Likewise. *

[PATCH V5 6/6] Enable BTF generation in the BPF backend

2021-03-18 Thread Jose E. Marchesi via Gcc-patches
This patch changes the BPF GCC backend in order to use the DWARF debug hooks and therefore enables the user to generate BTF debugging information with -gbtf. Generating BTF is crucial when compiling BPF programs, since the CO-RE (compile-once, run-everwhere) mechanism used by the kernel BPF

[PATCH V5 5/6] CTF/BTF documentation

2021-03-18 Thread Jose E. Marchesi via Gcc-patches
This commit documents the new command line options introduced by the CTF and BTF debug formats. 2021-02-18 Indu Bhagat * doc/invoke.texi: Document the CTF and BTF debug info options. --- gcc/doc/invoke.texi | 20 1 file changed, 20 insertions(+) diff --git

[PATCH V5 1/6] dwarf: add a dwarf2int.h internal interface

2021-03-18 Thread Jose E. Marchesi via Gcc-patches
to sport a dw_* prefix. Also, a struct type has been moved from dwarf2out.c to dwarf2int.h: - dw_attr_node Finally, three new accessor functions have been added to dwarf2out.c with prototypes in dwarf2int.h: - dw_get_die_child - dw_get_die_sib - dw_get_die_tag 2021-03-17 Jose E. Marchesi

[PATCH V5 0/6] Support for the CTF and BTF debug formats

2021-03-18 Thread Jose E. Marchesi via Gcc-patches
fo. CTF_AND_DWARF2_DEBUG - Write both CTF and DWARF info. Doing this, we just followed the trend initiated by vmsdbgout.c, which added VMS_DEBUG and VMS_AND_DWARF2_DEBUG. David Faust (1): Enable BTF generation in the BPF backend Indu Bhagat (2): dwarf: new dwarf_debuginfo_p predicate

[PATCH V5 2/6] dwarf: new dwarf_debuginfo_p predicate

2021-03-18 Thread Jose E. Marchesi via Gcc-patches
This patch introduces a dwarf_debuginfo_p predicate that abstracts and replaces complex checks on write_symbols. 2021-03-18 Indu Bhagat gcc/ChangeLog * flags.h (dwarf_debuginfo_p): New function declaration. * opts.c (dwarf_debuginfo_p): New function definition. *

Re: [PATCH V3 1/5] Add new function lang_GNU_GIMPLE

2021-03-09 Thread Jose E. Marchesi via Gcc-patches
> On Mon, Mar 1, 2021 at 12:17 PM Jose E. Marchesi via Gcc-patches > wrote: > > I think I've already said this at some point but you shouldn't need > this. There's no > "GIMPLE language", the user wrote C or C++ or Fortran or ... Ok we will drop this patch from the series.

Re: [PATCH V3 0/5] Support for the CTF and BTF debug formats

2021-03-09 Thread Jose E. Marchesi via Gcc-patches
> On Tue, Mar 9, 2021 at 11:46 AM Jose E. Marchesi > wrote: >> >> >> >> It probably should define BTF_DEBUGGING_INFO and that should >> >> enable parts guarded with DWARF2_DEBUGGING_INFO as well. >> > >> > BTW, is there a git bran

Re: [PATCH V3 0/5] Support for the CTF and BTF debug formats

2021-03-09 Thread Jose E. Marchesi via Gcc-patches
Hi Richard. Thanks for looking at this :) [Today I sent a V4 of the series containing a couple of fixes to the BTF code. It doesn't contain big changes so the discussion below still applies.] >> In turn, debug_format_do_cu traverses the tree of DIEs passed to it calling >> ctf_do_die on

Re: [PATCH V3 0/5] Support for the CTF and BTF debug formats

2021-03-09 Thread Jose E. Marchesi via Gcc-patches
>> It probably should define BTF_DEBUGGING_INFO and that should >> enable parts guarded with DWARF2_DEBUGGING_INFO as well. > > BTW, is there a git branch one can more easily browse the new code? I can push the branch to users/jemarch/ctf-v4 if thats ok?

[PATCH V4 3/5] CTF/BTF testsuites

2021-03-09 Thread Jose E. Marchesi via Gcc-patches
This commit adds a new testsuite for the CTF debug format. 2021-02-18 Indu Bhagat David Faust gcc/testsuite/ * gcc.dg/debug/btf/btf-1.c: New test. * gcc.dg/debug/btf/btf-2.c: Likewise. * gcc.dg/debug/btf/btf-anonymous-struct-1.c: Likewise. *

[PATCH V4 5/5] Enable BTF generation in the BPF backend

2021-03-09 Thread Jose E. Marchesi via Gcc-patches
This patch changes the BPF GCC backend in order to use the DWARF debug hooks and therefore enables the user to generate BTF debugging information with -gbtf. Generating BTF is crucial when compiling BPF programs, since the CO-RE (compile-once, run-everwhere) mechanism used by the kernel BPF

[PATCH V4 4/5] CTF/BTF documentation

2021-03-09 Thread Jose E. Marchesi via Gcc-patches
This commit documents the new command line options introduced by the CTF and BTF debug formats. 2021-02-18 Indu Bhagat * doc/invoke.texi: Document the CTF and BTF debug info options. --- gcc/doc/invoke.texi | 20 1 file changed, 20 insertions(+) diff --git

[PATCH V4 0/5] Support for the CTF and BTF debug formats

2021-03-09 Thread Jose E. Marchesi via Gcc-patches
#define BTF_DEBUGGING_FORMAT #define DWARF_DEBUGGING_FORMAT /* The default */ Regardless of what debug format is defined as the default, the other formats are also available with -gdwarf, -gctf, -gbtf, etc. David Faust (1): Enable BTF generation in the BPF backend Indu Bhagat

[PATCH V4 1/5] Add new function lang_GNU_GIMPLE

2021-03-09 Thread Jose E. Marchesi via Gcc-patches
2021-02-18 Indu Bhagat * langhooks.c (lang_GNU_GIMPLE): New Function. * langhooks.h: New Prototype. --- gcc/langhooks.c | 9 + gcc/langhooks.h | 1 + 2 files changed, 10 insertions(+) diff --git a/gcc/langhooks.c b/gcc/langhooks.c index 2354386f7b4..0082ee9f350 100644

Re: [PATCH V3 0/5] Support for the CTF and BTF debug formats

2021-03-08 Thread Jose E. Marchesi via Gcc-patches
ebug hooks to use by defining constants like > DWARF2_DEBUGGING_INFO. Since the new debug formats are based on the > DWARF debug hooks, that is the constant to define by the backends > wanting to support DWARF + debug infos. > > However, some backends

Re: [PATCH V3 0/5] Support for the CTF and BTF debug formats

2021-03-01 Thread Jose E. Marchesi via Gcc-patches
> - More testing: we are building Gentoo with -gctf activated by > default and fixing problems as we find them. More than 160 packages > built so far.] This count is now 860 packages built ;)

[PATCH V3 3/5] CTF/BTF testsuites

2021-03-01 Thread Jose E. Marchesi via Gcc-patches
This commit adds a new testsuite for the CTF debug format. 2021-02-18 Indu Bhagat David Faust gcc/testsuite/ * gcc.dg/debug/btf/btf-1.c: New test. * gcc.dg/debug/btf/btf-2.c: Likewise. * gcc.dg/debug/btf/btf-anonymous-struct-1.c: Likewise. *

[PATCH V3 5/5] Enable BTF generation in the BPF backend

2021-03-01 Thread Jose E. Marchesi via Gcc-patches
This patch changes the BPF GCC backend in order to use the DWARF debug hooks and therefore enables the user to generate BTF debugging information with -gbtf. Generating BTF is crucial when compiling BPF programs, since the CO-RE (compile-once, run-everwhere) mechanism used by the kernel BPF

[PATCH V3 4/5] CTF/BTF documentation

2021-03-01 Thread Jose E. Marchesi via Gcc-patches
This commit documents the new command line options introduced by the CTF and BTF debug formats. 2021-02-18 Indu Bhagat * doc/invoke.texi: Document the CTF and BTF debug info options. --- gcc/doc/invoke.texi | 20 1 file changed, 20 insertions(+) diff --git

[PATCH V3 0/5] Support for the CTF and BTF debug formats

2021-03-01 Thread Jose E. Marchesi via Gcc-patches
format is defined as the default, the other formats are also available with -gdwarf, -gctf, -gbtf, etc. David Faust (1): Enable BTF generation in the BPF backend Indu Bhagat (1): CTF/BTF documentation Jose E. Marchesi (3): Add new function lang_GNU_GIMPLE CTF/BTF debug formats CTF/BTF tests

[PATCH V3 1/5] Add new function lang_GNU_GIMPLE

2021-03-01 Thread Jose E. Marchesi via Gcc-patches
2021-02-18 Indu Bhagat * langhooks.c (lang_GNU_GIMPLE): New Function. * langhooks.h: New Prototype. --- gcc/langhooks.c | 9 + gcc/langhooks.h | 1 + 2 files changed, 10 insertions(+) diff --git a/gcc/langhooks.c b/gcc/langhooks.c index 2354386f7b4..0082ee9f350 100644

[PATCH V2 3/5] CTF/BTF testsuites

2021-02-18 Thread Jose E. Marchesi via Gcc-patches
This commit adds a new testsuite for the CTF debug format. 2021-02-18 Indu Bhagat David Faust gcc/testsuite/ * gcc.dg/debug/btf/btf-1.c: New test. * gcc.dg/debug/btf/btf-2.c: Likewise. * gcc.dg/debug/btf/btf-anonymous-struct-1.c: Likewise. *

[PATCH V2 5/5] Enable BTF generation in the BPF backend

2021-02-18 Thread Jose E. Marchesi via Gcc-patches
This patch changes the BPF GCC backend in order to use the DWARF debug hooks and therefore enables the user to generate BTF debugging information with -gbtf. Generating BTF is crucial when compiling BPF programs, since the CO-RE (compile-once, run-everwhere) mechanism used by the kernel BPF

[PATCH V2 4/5] CTF/BTF documentation

2021-02-18 Thread Jose E. Marchesi via Gcc-patches
This commit documents the new command line options introduced by the CTF and BTF debug formats. 2021-02-18 Indu Bhagat * doc/invoke.texi: Document the CTF and BTF debug info options. --- gcc/doc/invoke.texi | 20 1 file changed, 20 insertions(+) diff --git

[PATCH V2 0/5] Support for the CTF and BTF debug formats

2021-02-18 Thread Jose E. Marchesi via Gcc-patches
with -g. */ #define CTF_DEBUGGING_FORMAT #define BTF_DEBUGGING_FORMAT #define DWARF_DEBUGGING_FORMAT /* The default */ Regardless of what debug format is defined as the default, the other formats are also available with -gdwarf, -gctf, -gbtf, etc. David Faust (1): Enable BTF ge

[PATCH V2 1/5] Add new function lang_GNU_GIMPLE

2021-02-18 Thread Jose E. Marchesi via Gcc-patches
2021-02-18 Indu Bhagat * langhooks.c (lang_GNU_GIMPLE): New Function. * langhooks.h: New Prototype. --- gcc/langhooks.c | 9 + gcc/langhooks.h | 1 + 2 files changed, 10 insertions(+) diff --git a/gcc/langhooks.c b/gcc/langhooks.c index 2354386f7b4..0082ee9f350 100644

[PATCH 3/4] CTF testsuite

2021-01-22 Thread Jose E. Marchesi via Gcc-patches
This commit adds a new testsuite for the CTF debug format. 2021-01-22 Indu Bhagat gcc/testsuite/ * gcc.dg/debug/ctf/ctf-1.c: New test. * gcc.dg/debug/ctf/ctf-2.c: Likewise. * gcc.dg/debug/ctf/ctf-anonymous-struct-1.c: Likewise. *

[PATCH 0/4] Support for the CTF debug format

2021-01-22 Thread Jose E. Marchesi via Gcc-patches
Hi people! Last year we submitted a first patch series introducing support for the CTF debugging format in GCC [1]. We got a lot of feedback that prompted us to change the approach used to generate the debug info, and this patch series is the result of that. This implementation works, but there

[PATCH 2/4] CTF debug format

2021-01-22 Thread Jose E. Marchesi via Gcc-patches
This commit introduces support for generating CTF debugging information from GCC. 2021-01-22 Indu Bhagat Jose E. Marchesi Weimin Pan gcc/ * Makefile.in: Add ctfout.* files to GTFILES. Add new object files. * common.opt: Add CTF debug info options

[PATCH 1/4] Add new function lang_GNU_GIMPLE

2021-01-22 Thread Jose E. Marchesi via Gcc-patches
2021-01-22 Indu Bhagat * langhooks.c (lang_GNU_GIMPLE): New Function. * langhooks.h: New Prototype. --- gcc/langhooks.c | 9 + gcc/langhooks.h | 1 + 2 files changed, 10 insertions(+) diff --git a/gcc/langhooks.c b/gcc/langhooks.c index 2354386f7b4..0082ee9f350 100644

[PATCH 4/4] CTF documentation

2021-01-22 Thread Jose E. Marchesi via Gcc-patches
This commit documents the new command line options introduced by the CTF debug format. 2021-01-22 Indu Bhagat * doc/invoke.texi: Document the CTF debug info options. --- gcc/doc/invoke.texi | 16 1 file changed, 16 insertions(+) diff --git a/gcc/doc/invoke.texi

Re: [stage1][PATCH] Change semantics of -frecord-gcc-switches and add -frecord-gcc-switches-format.

2020-11-13 Thread Jose E. Marchesi via Gcc-patches
> PING^7 on the following patch proposed 8 months ago for gcc11: > > https://gcc.gnu.org/pipermail/gcc-patches/2020-March/542198.html > > > The deadline for gcc11 stage 1 is approaching. The pinged patch is > one that has been

Re: dg-options after board/cflags

2020-09-28 Thread Jose E. Marchesi via Gcc-patches
>> Your patch dealt with board/multilib_flags, but the same problem exists >> for board/cflags and many other flag-containing options. > > What's the use case for that? IIUC board flags are supposed to be ones > that are absolutely required for executables to run with a given board, > such

Re: [PATCH] bpf: use xBPF signed div, mod insns when available

2020-09-22 Thread Jose E. Marchesi via Gcc-patches
The 'mod' and 'div' operators in eBPF are unsigned, with no signed counterpart. xBPF adds two new ALU operations, sdiv and smod, for signed division and modulus, respectively. Update bpf.md with 'define_insn' blocks for signed div and mod to use them when targetting

Re: [PATCH] bpf: use xBPF signed div, mod insns when available

2020-09-22 Thread Jose E. Marchesi via Gcc-patches
Hi Segher! > On Thu, Sep 17, 2020 at 10:15:30AM -0700, David Faust via Gcc-patches wrote: >> The 'mod' and 'div' operators in eBPF are unsigned, with no signed >> counterpart. xBPF adds two new ALU operations, sdiv and smod, for >> signed division and modulus, respectively. Update bpf.md with

Re: [PATCH] bpf: use xBPF signed div, mod insns when available

2020-09-18 Thread Jose E. Marchesi via Gcc-patches
>> The 'mod' and 'div' operators in eBPF are unsigned, with no signed >> counterpart. xBPF adds two new ALU operations, sdiv and smod, for >> signed division and modulus, respectively. Update bpf.md with >> 'define_insn' blocks for signed div and mod to use them when targetting >> xBPF, and add

[COMMITTED 1/2] bpf: use the expected instruction for NOPs

2020-09-14 Thread Jose E. Marchesi via Gcc-patches
o generate the expected instruction for NOP (a `ja 0') and also adds a test to make sure this is the case. Tested in bpf-unknown-none targets. 2020-09-14 Jose E. Marchesi gcc/ * config/bpf/bpf.md ("nop"): Re-define as `ja 0'. gcc/testsuite/ * gcc.target/bpf/nop-1.c: New test.

Re: [PATCH] bpf: generate indirect calls for xBPF

2020-09-04 Thread Jose E. Marchesi via Gcc-patches
Hi David. > This patch updates the BPF back end to generate indirect calls via > the 'call %reg' instruction when targetting xBPF. > > Additionally, the BPF ASM_SPEC is updated to pass along -mxbpf to > gas, where it is now supported. Thanks for the patch. I just installed it on your behalf.

Re: dg-options after board/cflags

2020-09-02 Thread Jose E. Marchesi via Gcc-patches
> On Wed, Sep 2, 2020 at 8:31 AM Jose E. Marchesi via Gcc-patches > wrote: >> >> >> Hi people! >> >> While adding a bpf-sim.exp to dejagnu, I noticed that the flags in >> board/cflags were included in the final compilation line _after_ the >> flag

dg-options after board/cflags

2020-09-02 Thread Jose E. Marchesi via Gcc-patches
Hi people! While adding a bpf-sim.exp to dejagnu, I noticed that the flags in board/cflags were included in the final compilation line _after_ the flags in the test's dg-options. Since the test options are more particular than the board options, I would expect them to be placed after any

Re: [PATCH] bpf: use elfos.h

2020-09-02 Thread Jose E. Marchesi via Gcc-patches
. At > some point it will generate DWARF when generating xBPF (-mxbpf) and > BTF when generating plain eBPF, but for the time being it just > generates stabs. > > 2020-09-01 Jose E. Marchesi > > gcc/ > * config.gcc: Use elfos.h in bpf-*-* targets. > * c

[COMMITTED] bpf: use the default asm_named_section target hook

2020-09-02 Thread Jose E. Marchesi via Gcc-patches
This patch makes the BPF backend to not provide its own implementation of the asm_named_section hook; the default handler works perfectly well. 2020-09-02 Jose E. Marchesi gcc/ * config/bpf/bpf.c (bpf_asm_named_section): Delete. (TARGET_ASM_NAMED_SECTION): Likewise

[PATCH] bpf: use elfos.h

2020-09-01 Thread Jose E. Marchesi via Gcc-patches
DWARF when generating xBPF (-mxbpf) and BTF when generating plain eBPF, but for the time being it just generates stabs. 2020-09-01 Jose E. Marchesi gcc/ * config.gcc: Use elfos.h in bpf-*-* targets. * config/bpf/bpf.h (MAX_OFILE_ALIGNMENT): Remove definition

Re: [COMMITTED 0/4] bpf: backports to releases/gcc-10

2020-08-13 Thread Jose E. Marchesi via Gcc-patches
> On 8/12/20 9:12 PM, Jose E. Marchesi wrote: >> 1) CHERRY_PICK_PREFIX = '(cherry picked from commit ' and I used >> a slightly differnt wording. > > Yes, you used a bit different wording :) > >> 2) If I am not mistaken while reading the script, the CHERRY_PICK

Re: [COMMITTED 0/4] bpf: backports to releases/gcc-10

2020-08-12 Thread Jose E. Marchesi via Gcc-patches
> On 8/12/20 8:19 PM, Jose E. Marchesi wrote: >> Hi Martin. >> >>>> I left the changelog entry dates of the original commits untouched, >>>> and added `(cherry-pick from commit XXX)' lines to the commit >>>> messages. Hope that i

Re: [COMMITTED 0/4] bpf: backports to releases/gcc-10

2020-08-12 Thread Jose E. Marchesi via Gcc-patches
Hi Martin. >> I left the changelog entry dates of the original commits untouched, >> and added `(cherry-pick from commit XXX)' lines to the commit >> messages. Hope that is ok... please let me know otherwise! > > Hello. > > For creating a backport please use contrib/git-backport.py script. >

[COMMITTED 1/4] bpf: add support for the -mxbpf option

2020-08-12 Thread Jose E. Marchesi via Gcc-patches
This patch adds support for a new option -mxbpf. This tells GCC to generate code for an expanded version of BPF that relaxes some of the restrictions imposed by BPF. (cherry pick of 51e10276d6792f67f1d88d90f299e7ac1b1f1f24) 2020-05-19 Jose E. Marchesi gcc/ * config/bpf/bpf.opt

[COMMITTED 0/4] bpf: backports to releases/gcc-10

2020-08-12 Thread Jose E. Marchesi via Gcc-patches
Hi people! Just a few BPF related backports from master to the gcc-10 branch. I left the changelog entry dates of the original commits untouched, and added `(cherry-pick from commit XXX)' lines to the commit messages. Hope that is ok... please let me know otherwise! :) Salud! Jose E. Marchesi

[COMMITTED 2/4] bpf: do not save/restore callee-saved registers in function prolog/epilog

2020-08-12 Thread Jose E. Marchesi via Gcc-patches
in function prologue/epilogue, unless xBPF mode is enabled. (cherry pick of commit 98456a64b0b5c20eeb8f964c7718072ba9b0e568) 2020-05-19 Jose E. Marchesi gcc/ * config/bpf/bpf.c (bpf_compute_frame_layout): Include space for callee saved registers only in xBPF

[COMMITTED 3/4] bpf: more flexible support for kernel helpers

2020-08-12 Thread Jose E. Marchesi via Gcc-patches
be useful for other things. Target tests and documentation updated. (cherry pick of commit af30b83b50953fbbe671d93d44ea6ac2f7a50ce9) 2020-08-06 Jose E. Marchesi gcc/ * config/bpf/bpf-helpers.h (KERNEL_HELPER): Define. (KERNEL_VERSION): Remove. * config/bpf/bpf

[COMMITTED 4/4] bpf: remove trailing whitespaces from source files

2020-08-12 Thread Jose E. Marchesi via Gcc-patches
This patch is a little cleanup that removes trailing whitespaces from the bpf backend source files. (cherry pick of commit e87c540fe43e29663140ed67b98ee437c25696bb) 2020-08-07 Jose E. Marchesi gcc/ * config/bpf/bpf.md: Remove trailing whitespaces. * config/bpf/constraints.md

[COMMITTED] bpf: remove trailing whitespaces from source files

2020-08-07 Thread Jose E. Marchesi via Gcc-patches
This patch is a little cleanup that removes trailing whitespaces from the bpf backend source files. 2020-08-07 Jose E. Marchesi gcc/ * config/bpf/bpf.md: Remove trailing whitespaces. * config/bpf/constraints.md: Likewise. * config/bpf/predicates.md: Likewise. gcc

[COMMITTED] bpf: more flexible support for kernel helpers

2020-08-06 Thread Jose E. Marchesi via Gcc-patches
be useful for other things. Target tests and documentation updated. 2020-08-06 Jose E. Marchesi gcc/ * config/bpf/bpf-helpers.h (KERNEL_HELPER): Define. (KERNEL_VERSION): Remove. * config/bpf/bpf-helpers.def: Delete. * config/bpf/bpf.c

Re: [PATCH v2] libiberty, include: add bsearch_r

2020-06-23 Thread Jose E. Marchesi via Gcc-patches
Hi Nick. libctf wants a bsearch that takes a void * arg pointer to avoid a nonportable use of __thread. bsearch_r is required, not optional, at this point because as far as I can see this obvious-sounding function is not implemented by anyone's libc. We can easily move

[COMMITTED 1/2] bpf: add support for the -mxbpf option

2020-05-19 Thread Jose E. Marchesi via Gcc-patches
This patch adds support for a new option -mxbpf. This tells GCC to generate code for an expanded version of BPF that relaxes some of the restrictions imposed by BPF. 2020-05-19 Jose E. Marchesi gcc/ * config/bpf/bpf.opt (mxbpf): New option. * doc/invoke.texi (Option Summary

[COMMITTED 2/2] bpf: do not save/restore callee-saved registers in function prolog/epilog

2020-05-19 Thread Jose E. Marchesi via Gcc-patches
in function prologue/epilogue, unless xBPF mode is enabled. 2020-05-19 Jose E. Marchesi gcc/ * config/bpf/bpf.c (bpf_compute_frame_layout): Include space for callee saved registers only in xBPF. (bpf_expand_prologue): Save callee saved registers only in xBPF

[COMMITTED 0/2][BPF] Introduce -mxbpf and first extension

2020-05-19 Thread Jose E. Marchesi via Gcc-patches
Hi people! I just committed these two BPF-specific small patches. See each commit for a description. Hope I didn't screw up with the ChangeLog entries in the commit message! :) Salud! Jose E. Marchesi (2): bpf: add support for the -mxbpf option bpf: do not save/restore callee-saved

Re: [PATCH 1/2] Introduce dg-require-target-object-format

2019-11-07 Thread Jose E. Marchesi
On 11/7/19 8:47 AM, Segher Boessenkool wrote: > Hi! > > On Wed, Nov 06, 2019 at 06:21:33PM +0100, Egeyar Bagcioglu wrote: >> gcc/testsuite/ChangeLog: >> 2019-11-06 Egeyar Bagcioglu >> >> * lib/target-supports-dg.exp: Define

Re: GCC wwwdocs move to git done

2019-10-24 Thread Jose E. Marchesi
Hi Joseph. I've done the move of GCC wwwdocs to git (using the previously posted and discussed scripts), including setting up the post-receive hook to do the same things previously covered by the old CVS hooks, and minimal updates to the web pages dealing with the CVS setup

Re: [PATCH V6 05/11] bpf: new GCC port

2019-10-24 Thread Jose E. Marchesi
Hi Gerald. I noticed that https://gcc.gnu.org does not have a news item related to this contribution. Would you mind adding one? (Our web pages are now in GIT, cf. https://gcc.gnu.org/about.html - let me know if you need help.) Done! :)

Re: [PATCH V6 03/11] testsuite: annotate c-torture/compile tests with dg-require-stack-size

2019-09-11 Thread Jose E. Marchesi
On Aug 29, 2019, at 8:13 AM, Jose E. Marchesi wrote: > > This patch annotates tests that make use of a significant a mount of > stack space. Ok. Future changes like this are now obvious to you and you can just maintain them as you see fit. Ok thanks.

Re: [PATCH V6 04/11] testsuite: new require effective target indirect_calls

2019-09-11 Thread Jose E. Marchesi
Hi Mike. Thanks for the review. On Aug 29, 2019, at 8:13 AM, Jose E. Marchesi wrote: > > This patch adds a new dg_require_effective_target procedure to the > testsuite infrastructure: indirect_calls. This new function tells > whether a target supports

Re: [PATCH V6 05/11] bpf: new GCC port

2019-09-09 Thread Jose E. Marchesi
I think the bits are in good enough shape they can go in now. I just committed the port to svn trunk, in a single commit, yay! Many thanks to you, richard, seguer and the other reviewers for the great feedback and suggestions. What got committed is certainly WAY better than what I

Re: [PATCH V6 04/11] testsuite: new require effective target indirect_calls

2019-09-09 Thread Jose E. Marchesi
This patch adds a new dg_require_effective_target procedure to the testsuite infrastructure: indirect_calls. This new function tells whether a target supports calls to non-constant call targets. This patch also annotates the tests in the gcc.c-torture testuite that

Re: [PATCH V6 03/11] testsuite: annotate c-torture/compile tests with dg-require-stack-size

2019-09-09 Thread Jose E. Marchesi
This patch annotates tests that make use of a significant a mount of stack space. Embedded and other restricted targets may have problems compiling and running these tests. Note that the annotations are in many cases not exact. As this implements a solution proposed by Jeff

Re: [PATCH V6 02/11] opt-functions.awk: fix comparison of limit, begin and end

2019-09-09 Thread Jose E. Marchesi
The function integer_range_info makes sure that, if provided, the initial value fills in the especified range. However, it is necessary to convert the values to a numerical context before comparing, to make sure awk is using arithmetical order and not lexicographical order.

Re: [PATCH V6 01/11] Update config.sub and config.guess.

2019-09-09 Thread Jose E. Marchesi
* config.sub: Import upstream version 2019-06-30. * config.guess: Import upstream version 2019-07-24. Just installed this in svn trunk.

Re: [PATCH V6 11/11] bpf: add myself as the maintainer for the eBPF port

2019-09-08 Thread Jose E. Marchesi
> ChangeLog: > > * MAINTAINERS: Add myself as the maintainer of the eBPF port. > Remove myself from Write After Approval section. Approved. As in: Approved by the steering committed assuming the patchset passes technical review. :-) Thanks for

Re: [PATCH V6 05/11] bpf: new GCC port

2019-09-05 Thread Jose E. Marchesi
[Resending this email, because for some reason it seems it didn't reach the list a couple of days ago.] I think the bits are in good enough shape they can go in now. Thanks! I guess I should wait for acceptance of the remaining patches not having an explicit ack? To my recollection,

Re: [PATCH V6 05/11] bpf: new GCC port

2019-08-30 Thread Jose E. Marchesi
> This patch adds a port for the Linux kernel eBPF architecture to GCC. > > ChangeLog: > > * configure.ac: Support for bpf-*-* targets. > * configure: Regenerate. > > contrib/ChangeLog: > > * config-list.mk (LIST): Disable go in bpf-*-* targets.

[PATCH V6 05/11] bpf: new GCC port

2019-08-29 Thread Jose E. Marchesi
This patch adds a port for the Linux kernel eBPF architecture to GCC. ChangeLog: * configure.ac: Support for bpf-*-* targets. * configure: Regenerate. contrib/ChangeLog: * config-list.mk (LIST): Disable go in bpf-*-* targets. gcc/ChangeLog: * config.gcc: Support for bpf-*-*

[PATCH V6 02/11] opt-functions.awk: fix comparison of limit, begin and end

2019-08-29 Thread Jose E. Marchesi
The function integer_range_info makes sure that, if provided, the initial value fills in the especified range. However, it is necessary to convert the values to a numerical context before comparing, to make sure awk is using arithmetical order and not lexicographical order. gcc/ChangeLog:

<    1   2   3   4   5   >