[gcc r15-2384] Revert "PR116080: Fix tail call dejagnu checks"

2024-07-29 Thread Andi Kleen via Gcc-cvs
https://gcc.gnu.org/g:a7d6f7327e9211fbb4a800c06d00c4555dbffcec commit r15-2384-ga7d6f7327e9211fbb4a800c06d00c4555dbffcec Author: Andi Kleen Date: Mon Jul 29 10:17:43 2024 -0700 Revert "PR116080: Fix tail call dejagnu checks" This reverts commit

gcc-wwwdocs branch master updated. 823b04aa91ca48a9f1d73b1fa2eda4d7b34400cf

2024-07-28 Thread Andi Kleen via Gcc-cvs-wwwdocs
This is an automated email from the git hooks/post-receive script. It was generated because a ref change was pushed to the repository containing the project "gcc-wwwdocs". The branch, master has been updated via 823b04aa91ca48a9f1d73b1fa2eda4d7b34400cf (commit) from

[gcc r15-2340] PR116019: Improve tail call error message

2024-07-26 Thread Andi Kleen via Gcc-cvs
https://gcc.gnu.org/g:899ee4815424a73a2b9d899591fab3fcc4520b61 commit r15-2340-g899ee4815424a73a2b9d899591fab3fcc4520b61 Author: Andi Kleen Date: Thu Jul 25 13:54:50 2024 -0700 PR116019: Improve tail call error message The "tail call must be the same type" message is common on

[gcc r15-2339] PR116080: Fix tail call dejagnu checks

2024-07-26 Thread Andi Kleen via Gcc-cvs
https://gcc.gnu.org/g:ee41cd863b7c38ee3bc415ea7154954aa6facca3 commit r15-2339-gee41cd863b7c38ee3bc415ea7154954aa6facca3 Author: Andi Kleen Date: Wed Jul 24 20:18:56 2024 -0700 PR116080: Fix tail call dejagnu checks - Run the target_effective tail_call checks without optimization

[gcc r15-2234] Add documentation for musttail attribute

2024-07-23 Thread Andi Kleen via Gcc-cvs
https://gcc.gnu.org/g:8daae81113eeff37b4ae2e08a9797295fbc8b81e commit r15-2234-g8daae81113eeff37b4ae2e08a9797295fbc8b81e Author: Andi Kleen Date: Tue Jan 23 23:38:23 2024 -0800 Add documentation for musttail attribute gcc/ChangeLog: PR c/83324 *

[gcc r15-2233] Add tests for C/C++ musttail attributes

2024-07-23 Thread Andi Kleen via Gcc-cvs
https://gcc.gnu.org/g:8d1af8f904a0c08656d976cbf8ca56dba35197b0 commit r15-2233-g8d1af8f904a0c08656d976cbf8ca56dba35197b0 Author: Andi Kleen Date: Tue Jan 23 23:54:56 2024 -0800 Add tests for C/C++ musttail attributes Some adopted from the existing C musttail plugin tests.

[gcc r15-2232] C: Implement musttail attribute for returns

2024-07-23 Thread Andi Kleen via Gcc-cvs
https://gcc.gnu.org/g:78bbdbd5352df527feccf0a8c2f862f25a2e88b4 commit r15-2232-g78bbdbd5352df527feccf0a8c2f862f25a2e88b4 Author: Andi Kleen Date: Wed Jan 24 07:44:23 2024 -0800 C: Implement musttail attribute for returns Implement a C23 clang compatible musttail attribute similar

[gcc r15-2231] C++: Support clang compatible [[musttail]] (PR83324)

2024-07-23 Thread Andi Kleen via Gcc-cvs
https://gcc.gnu.org/g:2bd8177256b6d87f6e75819218cf22c2c0bfc1ac commit r15-2231-g2bd8177256b6d87f6e75819218cf22c2c0bfc1ac Author: Andi Kleen Date: Tue Jan 23 23:44:48 2024 -0800 C++: Support clang compatible [[musttail]] (PR83324) This patch implements a clang compatible

[gcc r15-2180] Revert "Add documentation for musttail attribute"

2024-07-20 Thread Andi Kleen via Gcc-cvs
https://gcc.gnu.org/g:4a46ba2d905ed40116fb7e7a34809307dc8e37be commit r15-2180-g4a46ba2d905ed40116fb7e7a34809307dc8e37be Author: Andi Kleen Date: Sat Jul 20 16:09:41 2024 -0700 Revert "Add documentation for musttail attribute" This reverts commit

[gcc r15-2179] Revert "Add tests for C/C++ musttail attributes"

2024-07-20 Thread Andi Kleen via Gcc-cvs
https://gcc.gnu.org/g:8805ad29924f43d2005784efc8f7d29f10b7f6d9 commit r15-2179-g8805ad29924f43d2005784efc8f7d29f10b7f6d9 Author: Andi Kleen Date: Sat Jul 20 16:09:25 2024 -0700 Revert "Add tests for C/C++ musttail attributes" This reverts commit

[gcc r15-2177] Revert "C++: Support clang compatible [[musttail]] (PR83324)"

2024-07-20 Thread Andi Kleen via Gcc-cvs
https://gcc.gnu.org/g:ff6994e483be5bd340bfacc50d3441bd21aba1c4 commit r15-2177-gff6994e483be5bd340bfacc50d3441bd21aba1c4 Author: Andi Kleen Date: Sat Jul 20 16:07:41 2024 -0700 Revert "C++: Support clang compatible [[musttail]] (PR83324)" This reverts commit

[gcc r15-2178] Revert "C: Implement musttail attribute for returns"

2024-07-20 Thread Andi Kleen via Gcc-cvs
https://gcc.gnu.org/g:53660b102e69ddc6d9add22abaf03ce791babb44 commit r15-2178-g53660b102e69ddc6d9add22abaf03ce791babb44 Author: Andi Kleen Date: Sat Jul 20 16:09:07 2024 -0700 Revert "C: Implement musttail attribute for returns" This reverts commit

[gcc r15-2171] Add tests for C/C++ musttail attributes

2024-07-20 Thread Andi Kleen via Gcc-cvs
https://gcc.gnu.org/g:37c4703ce84722b9c24db3e8e6d57ab6d3a7b5eb commit r15-2171-g37c4703ce84722b9c24db3e8e6d57ab6d3a7b5eb Author: Andi Kleen Date: Tue Jan 23 23:54:56 2024 -0800 Add tests for C/C++ musttail attributes Some adopted from the existing C musttail plugin tests.

gcc-wwwdocs branch master updated. 5ae0f1dc042d644f3831a4dacfd0977a48491077

2024-07-20 Thread Andi Kleen via Gcc-cvs-wwwdocs
This is an automated email from the git hooks/post-receive script. It was generated because a ref change was pushed to the repository containing the project "gcc-wwwdocs". The branch, master has been updated via 5ae0f1dc042d644f3831a4dacfd0977a48491077 (commit) from

[gcc r15-2170] C: Implement musttail attribute for returns

2024-07-20 Thread Andi Kleen via Gcc-cvs
https://gcc.gnu.org/g:7db47f7b915c5f5d645fa536547e26b92290afe3 commit r15-2170-g7db47f7b915c5f5d645fa536547e26b92290afe3 Author: Andi Kleen Date: Wed Jan 24 07:44:23 2024 -0800 C: Implement musttail attribute for returns Implement a C23 clang compatible musttail attribute similar

[gcc r15-2172] Add documentation for musttail attribute

2024-07-20 Thread Andi Kleen via Gcc-cvs
https://gcc.gnu.org/g:56f824cc206ff00d466aaeb11211d8005c4668bc commit r15-2172-g56f824cc206ff00d466aaeb11211d8005c4668bc Author: Andi Kleen Date: Tue Jan 23 23:38:23 2024 -0800 Add documentation for musttail attribute gcc/ChangeLog: PR c/83324 *

[gcc r15-2169] C++: Support clang compatible [[musttail]] (PR83324)

2024-07-20 Thread Andi Kleen via Gcc-cvs
https://gcc.gnu.org/g:59dd1d7ab21ad9a7ebf641ec9aeea609c003ad2f commit r15-2169-g59dd1d7ab21ad9a7ebf641ec9aeea609c003ad2f Author: Andi Kleen Date: Tue Jan 23 23:44:48 2024 -0800 C++: Support clang compatible [[musttail]] (PR83324) This patch implements a clang compatible

[gcc r15-2168] Add a musttail generic attribute to the c-attribs table

2024-07-20 Thread Andi Kleen via Gcc-cvs
https://gcc.gnu.org/g:5c4c1fe6df0f752764cdfd7404a60bfd2b4f5057 commit r15-2168-g5c4c1fe6df0f752764cdfd7404a60bfd2b4f5057 Author: Andi Kleen Date: Wed May 15 19:38:43 2024 -0700 Add a musttail generic attribute to the c-attribs table The actual handling is directly in the parser

[gcc r15-2126] Mark expand musttail error messages for translation

2024-07-17 Thread Andi Kleen via Gcc-cvs
https://gcc.gnu.org/g:d062b0abf45cd54057352fc4b7827a3b1b9a160a commit r15-2126-gd062b0abf45cd54057352fc4b7827a3b1b9a160a Author: Andi Kleen Date: Fri Jun 21 11:19:12 2024 -0700 Mark expand musttail error messages for translation The musttail error messages are reported to the

[gcc r15-2125] Give better error messages for musttail

2024-07-17 Thread Andi Kleen via Gcc-cvs
https://gcc.gnu.org/g:81824596361cf4919d6dc026155160581c99b860 commit r15-2125-g81824596361cf4919d6dc026155160581c99b860 Author: Andi Kleen Date: Tue May 21 07:01:57 2024 -0700 Give better error messages for musttail When musttail is set, make tree-tailcall give error messages

[gcc r15-2124] Enable musttail tail conversion even when not optimizing

2024-07-17 Thread Andi Kleen via Gcc-cvs
https://gcc.gnu.org/g:b738a63e528db410a1c51fc27db37fe22f0cb397 commit r15-2124-gb738a63e528db410a1c51fc27db37fe22f0cb397 Author: Andi Kleen Date: Wed May 15 19:57:22 2024 -0700 Enable musttail tail conversion even when not optimizing Enable the tailcall optimization for non

[gcc r15-2123] Fix pro_and_epilogue for sibcalls at -O0 (PR115255)

2024-07-17 Thread Andi Kleen via Gcc-cvs
https://gcc.gnu.org/g:983daf0e5fdaada5b930374c21455d42d34350be commit r15-2123-g983daf0e5fdaada5b930374c21455d42d34350be Author: Andi Kleen Date: Sat Jun 1 22:04:41 2024 -0700 Fix pro_and_epilogue for sibcalls at -O0 (PR115255) Some of the cfg fixups in pro_and_epilogue for

[gcc r15-2122] Improve must tail in RTL backend

2024-07-17 Thread Andi Kleen via Gcc-cvs
https://gcc.gnu.org/g:a6502accf381358173b19e615fdeb0aa17949c93 commit r15-2122-ga6502accf381358173b19e615fdeb0aa17949c93 Author: Andi Kleen Date: Tue Jan 23 23:42:08 2024 -0800 Improve must tail in RTL backend - Give error messages for all causes of non sibling call generation

[gcc r15-1237] Fix error message

2024-06-12 Thread Andi Kleen via Gcc-cvs
https://gcc.gnu.org/g:64cd70e315ed2cf0653cfdde96ae80c3f90a07f4 commit r15-1237-g64cd70e315ed2cf0653cfdde96ae80c3f90a07f4 Author: Andi Kleen Date: Wed Jun 12 09:15:47 2024 -0700 Fix error message gcc/cp/ChangeLog: * parser.cc (cp_parser_asm_string_expression): Use

[gcc r15-1236] Parse close paren even when constexpr extraction fails

2024-06-12 Thread Andi Kleen via Gcc-cvs
https://gcc.gnu.org/g:d0379809a45f77d2dedb93a443aa1dd96d13c6e5 commit r15-1236-gd0379809a45f77d2dedb93a443aa1dd96d13c6e5 Author: Andi Kleen Date: Wed Jun 12 09:11:46 2024 -0700 Parse close paren even when constexpr extraction fails To get better error recovery.

[gcc r15-1235] Remove const char * support for asm constexpr

2024-06-12 Thread Andi Kleen via Gcc-cvs
https://gcc.gnu.org/g:6f1f1657cd7a8472b4a4aeef60f1c59606ee011b commit r15-1235-g6f1f1657cd7a8472b4a4aeef60f1c59606ee011b Author: Andi Kleen Date: Wed Jun 12 09:09:37 2024 -0700 Remove const char * support for asm constexpr asm constexpr now only accepts the same string types as

[gcc r15-1214] Move cexpr_stree tree string build into utility function

2024-06-12 Thread Andi Kleen via Gcc-cvs
https://gcc.gnu.org/g:bd6bc352d96304a13da63fed6aeb1615be535fd7 commit r15-1214-gbd6bc352d96304a13da63fed6aeb1615be535fd7 Author: Andi Kleen Date: Wed Jun 12 06:59:37 2024 -0700 Move cexpr_stree tree string build into utility function No semantics changes.

[gcc r15-1181] C++: Support constexpr strings for asm statements

2024-06-11 Thread Andi Kleen via Gcc-cvs
https://gcc.gnu.org/g:53ac88cedf9348b0139fa92c3257b877694f6194 commit r15-1181-g53ac88cedf9348b0139fa92c3257b877694f6194 Author: Andi Kleen Date: Wed Jan 24 04:27:13 2024 -0800 C++: Support constexpr strings for asm statements Some programing styles use a lot of inline assembler,

[gcc r15-1180] Factor out static_assert constexpr string extraction for reuse

2024-06-11 Thread Andi Kleen via Gcc-cvs
https://gcc.gnu.org/g:6ef8c905e0064c4dfb7ca302355fc20cb96b147b commit r15-1180-g6ef8c905e0064c4dfb7ca302355fc20cb96b147b Author: Andi Kleen Date: Sun May 5 22:40:20 2024 -0700 Factor out static_assert constexpr string extraction for reuse The only semantics changes are slightly

Re: What is the purpose of these two fixincludes?

2024-06-05 Thread Andi Kleen via Gcc
FX Coudert via Gcc writes: > Hi, > > I am trying to reduce the number of unneeded fixincludes that are used > on darwin (because fixincluded headers make it impossible to change > SDK once the compiler is built, which is common practice in the macOS > world, and quite useful). It's the same

Re: AutoFDO tools for GCC

2024-03-26 Thread Andi Kleen via Gcc
On Tue, Mar 26, 2024 at 08:45:22AM +0100, Richard Biener wrote: > On Mon, Mar 25, 2024 at 9:54 PM Eugene Rozenfeld via Gcc > wrote: > > > > Hello, > > > > I've been the AutoFDO maintainer for the last 1.5 years. I've resurrected > > autoprofiledbootstrap build and made a number of other

Re: New feature: -fdump-gimple-nodes (once more, with feeling)

2024-02-13 Thread Andi Kleen via Gcc
Robert Dubner writes: > There didn't seem to be any such functionality in GCC. I found a routine > in print-tree.cc which printed out a single node, but I needed to > understand the entire tree of nodes for a function. FWIW the standard way to do this is to run the compiler in gdb with the

[PATCH] Update perf auto profile script

2023-05-30 Thread Andi Kleen via Gcc-patches
- Fix gen_autofdo_event: The download URL for the Intel Perfmon Event list has changed, as well as the JSON format. Also it now uses pattern matching to match CPUs. Update the script to support all of this. - Regenerate gcc-auto-profile with the latest published Intel model numbers, so it

Re: [EXTERNAL] [PATCH] contrib: modernize gen_autofdo_event.py

2022-08-06 Thread Andi Kleen via Gcc-patches
On 8/6/2022 1:07 AM, Eugene Rozenfeld wrote: The changes look good to me. Also adding Andi, the author of the script. Looks all good to me too. -Andi

Re: [PATCH] Add instruction level discriminator support.

2022-06-12 Thread Andi Kleen via Gcc-patches
Eugene Rozenfeld via Gcc-patches writes: > { > diff --git a/gcc/cp/module.cc b/gcc/cp/module.cc > index d1dc73724d1..5ed6b7b0f94 100644 > --- a/gcc/cp/module.cc > +++ b/gcc/cp/module.cc > @@ -15587,6 +15587,8 @@ module_state::write_location (bytes_out , > location_t loc) >

Re: [PATCH] Add divide by zero side effect.

2022-05-27 Thread Andi Kleen via Gcc-patches
Andrew MacLeod via Gcc-patches writes: > > diff --git a/gcc/gimple-range-side-effect.cc b/gcc/gimple-range-side-effect.cc > index 2c8c77dc569..548e4bea313 100644 > --- a/gcc/gimple-range-side-effect.cc > +++ b/gcc/gimple-range-side-effect.cc > @@ -116,6 +116,23 @@

Re: [PATCH] gcov-profile/71672 Fix indirect call inlining with AutoFDO

2021-07-30 Thread Andi Kleen via Gcc-patches
On 7/30/2021 12:08 AM, Eugene Rozenfeld wrote: This patch has the following changes: Great thanks. Thanks for working on this. Looks all good to me (except I guess the patches could be split up for commit) -Andi

Re: [PATCH] Update gen_autofdo_event.py and gcc-auto-profile

2021-07-01 Thread Andi Kleen via Gcc-patches
On 7/1/2021 4:40 PM, Eugene Rozenfeld wrote: gen_autofdo_event.py was stumbling on models with stepping so I updated the script to handle this case similar to the code in https://github.com/andikleen/pmu-tools/blob/c6a5f63aede19def8886d6a8b74d7a55c38ca947/event_download.py The second change

Re: State of AutoFDO in GCC

2021-05-10 Thread Andi Kleen via Gcc
On Mon, May 10, 2021 at 04:55:50PM +, Joseph Myers wrote: > On Mon, 10 May 2021, Andi Kleen via Gcc wrote: > > > It's difficult to find now because it was a branch in the old SVN that > > wasn't > > converted. Sadly the great git conversion was quite lossy. &g

Re: State of AutoFDO in GCC

2021-05-10 Thread Andi Kleen via Gcc
On 5/9/2021 10:01 AM, Jan Hubicka wrote: With my tests, AutoFDO could achieve almost half of the effect of instrumentation FDO on real applications such as MySQL 8.0.20 . Likely this could be improved with some of the missing changes. Apparently discriminator support is worth quite a bit

Re: State of AutoFDO in GCC

2021-05-09 Thread Andi Kleen via Gcc
With my tests, AutoFDO could achieve almost half of the effect of instrumentation FDO on real applications such as MySQL 8.0.20 . Likely this could be improved with some of the missing changes. Apparently discriminator support is worth quite a bit especially on dense C++ code bases.

Re: RFC: attributes for marking security boundaries (system calls/ioctls, user vs kernel pointers etc)

2021-04-30 Thread Andi Kleen via Gcc
David Malcolm via Gcc writes: > I think I want a way for the user to be able to mark security > boundaries in their code: for example: > * in the Linux kernel the boundary between untrusted user-space data > and kernel data, or, > * for a user-space daemon, the boundary between data coming from

Re: [EXTERNAL] Re: State of AutoFDO in GCC

2021-04-30 Thread Andi Kleen via Gcc
Eugene Rozenfeld via Gcc writes: > Is the format produced by create_gcov and expected by GCC under > -fauto-rpofile documented somewhere? How is it different from .gcda > used in FDO, e.g., as described here: > http://src.gnu-darwin.org/src/contrib/gcc/gcov-io.h.html? I believe it's very

Re: State of AutoFDO in GCC

2021-04-30 Thread Andi Kleen via Gcc
172060...@hdu.edu.cn writes: > Hi all, > > I`m using GCC 9.3 AutoFDO and the old version create_gcov on arm64 > and it works well. Actually it support not only LBR like mode but > also inst_retired even cycles event, which`s the early implementation > of AutoFDO[1]. There is no difference in

Re: State of AutoFDO in GCC

2021-04-28 Thread Andi Kleen via Gcc
On Mon, Apr 26, 2021 at 06:40:56PM +, Hongtao Yu wrote: >Andi, thanks for pointing out the perf script issues. Can you please >elaborate a bit on the exact issue you have seen? We’ve been using >specific output of perf script such as mmap, LBR and callstack events >filtered by

Re: State of AutoFDO in GCC

2021-04-26 Thread Andi Kleen via Gcc
On Mon, Apr 26, 2021 at 06:40:56PM +, Hongtao Yu wrote: >Andi, thanks for pointing out the perf script issues. Can you please >elaborate a bit on the exact issue you have seen? We’ve been using >specific output of perf script such as mmap, LBR and callstack events >filtered by

Re: State of AutoFDO in GCC

2021-04-26 Thread Andi Kleen via Gcc
>There are multiple directional changes in this new tool: >1) it uses perf-script trace output (in text) as input profile data;  I suspect this will break regularly too (I personally did numerous changes to perf script output, and also wrote a lot of parsing scripts) The perf script

Re: State of AutoFDO in GCC

2021-04-26 Thread Andi Kleen via Gcc
Jan Hubicka writes: > > Is there a way to get this working w/o using older perf? It's usually rather simple to fix up autofdo for new perf. I did it before here https://github.com/andikleen/autofdo/commits/perf4-3 I think it would work always if it just ignored unknown records (which is quite

Re: [PATCH] gcov: Use system IO buffering

2021-04-22 Thread Andi Kleen via Gcc-patches
Martin Liška writes: > Hey. > > I/O buffering in gcov seems duplicite to what modern C library can provide. > The patch is a simplification and can provide easier interface for system > that don't have a filesystem and would like using GCOV. > > I'm going to install the patch after 11.1 if there

Re: Is it very hard to implement Zero-overhead deterministic exceptions: Throwing values??

2020-06-14 Thread Andi Kleen via Gcc
sotrdg sotrdg via Gcc writes: > http://open-std.org/JTC1/SC22/WG21/docs/papers/2018/p0709r0.pdf > > I really want this feature. How, it looks like this requires changes > on RTL, gimple and C++ front-end. Is that very hard to implement it? If you're asking about setjmp/longjmp exceptions, you

Re: [PATCH] contrib/gen_autofdo_event.py: Allow for it to work if there are more than 3 hyphens in Family-model

2020-05-24 Thread Andi Kleen via Gcc-patches
Javad Karabi via Gcc-patches writes: > > diff --git a/contrib/gen_autofdo_event.py b/contrib/gen_autofdo_event.py > index c97460c61c6..cd77a8686d9 100755 > --- a/contrib/gen_autofdo_event.py > +++ b/contrib/gen_autofdo_event.py > @@ -94,7 +94,7 @@ for j in u: > n = j.rstrip().split(',') >