[PATCH,RFC,V5 4/6] CTF generation for a single compilation unit

2019-09-08 Thread Indu Bhagat
For each translation unit, a CTF container (ctf_container_t) is used to keep the CTF debug info. - ctfout.c hosts the compiler facing routines for CTF generation and emission. - ctfcreate.c contains the CTF format specific CTF creation routines. - ctfutils.c contains helper routines for CTF creati

[PATCH,RFC,V5 6/6] Handle CTF sections when LTO is enabled

2019-09-08 Thread Indu Bhagat
libiberty/ChangeLog: * simple-object.c (handle_lto_debug_sections): Copy CTF section. --- libiberty/ChangeLog | 5 + libiberty/simple-object.c | 3 +++ 2 files changed, 8 insertions(+) diff --git a/libiberty/simple-object.c b/libiberty/simple-object.c index b00c265..96bdcf8 10

[PATCH,RFC,V5 2/6] Add CTF command line options : -gtLEVEL

2019-09-08 Thread Indu Bhagat
-gtLEVEL is used to request CTF debug information and also to specify how much CTF debug information. gcc/ChangeLog: * common.opt: Add CTF debug info options. * doc/invoke.texi: Document the CTF debug info options. * flag-types.h (enum ctf_debug_info_levels): New enum.

[PATCH,RFC,V5 0/6] Support for CTF in GCC

2019-09-08 Thread Indu Bhagat
Hello, This patch series adds support for CTF generation in GCC. [Changes from V4] 1. Patch 4 brings in a number of bug fixes and enhancements. Few of them are: - Use DECL_UID () instead of htab_hash_pointer () for _DECL - Handle boolean and zero-sized bitfields - Do not inform () when

[PATCH,RFC,V5 5/6] Update CTF testsuite

2019-09-08 Thread Indu Bhagat
[Changes from V4] Added new testcases - gcc.dg/debug/ctf/ctf-bitfields-3.c - gcc.dg/debug/ctf/ctf-bitfields-4.c - gcc.dg/debug/ctf/ctf-cvr-quals-4.c - gcc.dg/debug/ctf/ctf-forward-3.c - gcc.dg/debug/ctf/ctf-function-pointers-2.c gcc/testsuite/ChangeLog: * gcc.dg/debug/ctf/ctf-2.c: Ne

[PATCH,RFC,V5 3/6] Setup for CTF generation and emission

2019-09-08 Thread Indu Bhagat
Initialize CTF container when -gtLEVEL is specified. Generate CTF debug info for global decls. Import the CTF header from binutils. gcc/ChangeLog: * Makefile.in: Add ctfout.* files to GTFILES. * cgraphunit.c (symbol_table::finalize_compilation_unit): Generate CTF debug

[PATCH,RFC,V5 1/6] Add new function lang_GNU_GIMPLE

2019-09-08 Thread Indu Bhagat
gcc/ChangeLog: * langhooks.c (lang_GNU_GIMPLE): New Function. * langhooks.h: New Prototype. --- gcc/ChangeLog | 5 + gcc/langhooks.c | 9 + gcc/langhooks.h | 1 + 3 files changed, 15 insertions(+) diff --git a/gcc/langhooks.c b/gcc/langhooks.c index 89fb5bc..66daa9

Re: [PATCH] genemit: Print file+line in the "Splitting with" message

2019-09-08 Thread Jeff Law
On 9/6/19 1:25 PM, Segher Boessenkool wrote: > It's tiresome to have to look in insn-emit.c to see where some split > came from, so let's print that info to the dump file as well. But > don't print the full path, just the basename, for greater readability. > > Testing on powerpc64-linux {-m32,-m6

C++ PATCH for c++/84374 - diagnose invalid uses of decltype(auto)

2019-09-08 Thread Marek Polacek
[dcl.type.auto.deduct]/5 "If the placeholder-type-specifier is of the form type-constraintopt decltype(auto), T shall be the placeholder alone." So, only plain decltype(auto) is allowed. But we aren't diagnosing it in function declarations, because do_auto_deduction is never called for those. Bo

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 w

[PATCH, libstdc++] Improve the performance of std::uniform_int_distribution (fewer divisions)

2019-09-08 Thread Daniel Lemire
Even on recent processors, integer division is relatively expensive. The current implementation of std::uniform_int_distribution typically requires two divisions by invocation: // downscaling const __uctype __uerange = __urange + 1; // __urange can be zero const __uctype _

Re: [PATCH v2 4/6] compiler-gcc.h: add asm_inline definition

2019-09-08 Thread Miguel Ojeda
On Sat, Sep 7, 2019 at 3:11 PM Segher Boessenkool wrote: > > I wouldn't. Please stop using that straw man. I'm not saying version > checks are good, or useful for most things. I am saying they are not. > > Predefined compiler symbols to do version checking (of a feature) is > just a lesser inst

Re: [PATCH] Optimize to_chars

2019-09-08 Thread Antony Polukhin
We've already beaten this topic to death, so let's put a final nail in the coffin: __to_chars_10_impl is quite fast. According to the IACA the main loop takes only 6.0 cycles, the whole function with one iteration takes 10.0 cycles. Replacing the __first[pos] and __first[pos - 1] with __first[0]

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

2019-09-08 Thread Gerald Pfeifer
On Thu, 29 Aug 2019, Jose E. Marchesi wrote: > 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. :-) Thank