[Bug c++/107513] [Feature Request] Implement __attribute__((__nodebug__))

2023-11-01 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107513 --- Comment #7 from Jonathan Wakely --- (In reply to Jonathan Wakely from comment #6) > The patch for PR 96780 added -ffold-simple-inlines which works for some > specific functions. This attribute would extend that to arbitrary functions. I

[Bug c++/107513] [Feature Request] Implement __attribute__((__nodebug__))

2023-10-30 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107513 Jonathan Wakely changed: What|Removed |Added Last reconfirmed||2023-10-31

[Bug c++/107513] [Feature Request] Implement __attribute__((__nodebug__))

2022-11-03 Thread roi.jacobson1 at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107513 --- Comment #5 from Roy Jacobson --- I still think it might be good idea to introduce this for the sake of reducing debug symbols size. I'm less interested in improving debug experience in this case, but obviously any improvement to that is

[Bug c++/107513] [Feature Request] Implement __attribute__((__nodebug__))

2022-11-02 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107513 --- Comment #4 from Jonathan Wakely --- But what does DW_AT_artificial do? Does gdb just ignore it? I've never noticed it helping at all.

[Bug c++/107513] [Feature Request] Implement __attribute__((__nodebug__))

2022-11-02 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107513 --- Comment #3 from Andrew Pinski --- (In reply to Roy Jacobson from comment #2) > I might be using it wrong? But it doesn't seem to do anything: > https://godbolt.org/z/9bdKhz4E7 > > It would be nice to at least avoid having the function's

[Bug c++/107513] [Feature Request] Implement __attribute__((__nodebug__))

2022-11-02 Thread roi.jacobson1 at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107513 --- Comment #2 from Roy Jacobson --- I might be using it wrong? But it doesn't seem to do anything: https://godbolt.org/z/9bdKhz4E7 It would be nice to at least avoid having the function's name in the binary, clang does it with nodebug.

[Bug c++/107513] [Feature Request] Implement __attribute__((__nodebug__))

2022-11-02 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107513 --- Comment #1 from Andrew Pinski --- GCC's artificial attribute should be similar for functions: https://gcc.gnu.org/onlinedocs/gcc-12.2.0/gcc/Common-Function-Attributes.html#index-artificial-function-attribute Which was added in GCC 4.3.0 by