This is the mail archive of the libc-alpha@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH v3 1/7] Fix __libc_signal_block_all on sparc64


On Thu, 12 Dec 2019, Andreas Schwab wrote:

> On Dez 12 2019, Adhemerval Zanella wrote:
> 
> > Well I am seeing such behaviour with gcc 9.2.1 on x86_64 at least:
> 
> That's a missed optimisation bug in gcc then.  There should not be a
> difference between a const compound literal and a static const object,
> if only constant expressions are used for initialisation.

There's a note at the bottom of https://gcc.gnu.org/c99status.html 
specifically about this ("const-qualified compound literals could share 
storage with each other and with string literals, but currently don't.").

-- 
Joseph S. Myers
joseph@codesourcery.com


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]