[cfe-dev] [RFC] automatic variable initialization

Reid Kleckner via cfe-dev cfe-dev at lists.llvm.org
Mon Nov 26 18:54:55 PST 2018


On Mon, Nov 26, 2018 at 6:43 PM Kostya Serebryany via cfe-dev <
cfe-dev at lists.llvm.org> wrote:

> On Sat, Nov 17, 2018 at 9:00 AM David Blaikie via cfe-dev <
> cfe-dev at lists.llvm.org> wrote:
>
>> Would it be that drastic to have this require a code change/compiler
>> rebuild to enable? It could be designed so the change is small/easy
>> (changing a constant) but that the default compilers we all ship around (&
>> especially not the official releases) don't allow access to this
>> functionality.
>>
>> Anyone wanting to gather data would have to make this small change,
>> rebuild their compiler, build their target with this feature & gatehr
>> results from there.
>>
>
> This will cripple our ability to do measurements because in many cases we
> can only build things with whatever is the production compiler.
> I'd rather just rename the flag to something like
> -ftrivial-auto-var-init=zero-SCARY-WARNING-ABOUT-VOID-WARRANTY-GOES-HERE
>

Reminds me of -fheinous-gnu-extensions. ;-)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20181126/8703497f/attachment.html>


More information about the cfe-dev mailing list