Re: [PATCH] dwarf2asm: Use constexpr for eh_data_format_name initialization for C++14

2024-09-18 Thread Jeff Law
On 9/18/24 11:00 AM, Jakub Jelinek wrote: On Wed, Sep 18, 2024 at 10:51:49AM -0600, Jeff Law wrote: On 9/18/24 10:04 AM, Jakub Jelinek wrote: Hi! Similarly to the previous patch, dwarf2asm.cc had HAVE_DESIGNATED_INITIALIZERS support, and as fallback a huge switch. The switch from what I can

Re: [PATCH] dwarf2asm: Use constexpr for eh_data_format_name initialization for C++14

2024-09-18 Thread Jakub Jelinek
On Wed, Sep 18, 2024 at 10:51:49AM -0600, Jeff Law wrote: > On 9/18/24 10:04 AM, Jakub Jelinek wrote: > > Hi! > > > > Similarly to the previous patch, dwarf2asm.cc had > > HAVE_DESIGNATED_INITIALIZERS support, and as fallback a huge switch. > > The switch from what I can see is expanded as a jump

Re: [PATCH] dwarf2asm: Use constexpr for eh_data_format_name initialization for C++14

2024-09-18 Thread Jeff Law
On 9/18/24 10:04 AM, Jakub Jelinek wrote: Hi! Similarly to the previous patch, dwarf2asm.cc had HAVE_DESIGNATED_INITIALIZERS support, and as fallback a huge switch. The switch from what I can see is expanded as a jump table with 256 label pointers and code at those labels then loads addresses

[PATCH] dwarf2asm: Use constexpr for eh_data_format_name initialization for C++14

2024-09-18 Thread Jakub Jelinek
Hi! Similarly to the previous patch, dwarf2asm.cc had HAVE_DESIGNATED_INITIALIZERS support, and as fallback a huge switch. The switch from what I can see is expanded as a jump table with 256 label pointers and code at those labels then loads addresses of string literals. The following patch instea