[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: alternative udata checking
- From: Florian Weimer <fw@...>
- Date: Sun, 04 Dec 2011 12:56:33 +0100
* Jakub Piotr Cłapa:
> Why would changing to array notation change the mergability of these
> symbols? I have seen gcc guessing that a static array is constant
> (without the const declaration) so it can optimize more (which I guess
> also means removing duplicates).
If GCC merges distinct static variables, that's a bug. Objects are
guaranteed to have unique addresses.