[PATCH] D64742: Allow using -ftrivial-auto-var-init=zero in C mode without extra flags

Mehdi AMINI via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Mon Oct 21 11:24:31 PDT 2019


mehdi_amini added a comment.

In D64742#1606244 <https://reviews.llvm.org/D64742#1606244>, @glider wrote:

> As a data point, Linus Torvalds suggested that we need a similar feature for GCC so that the "kernel C standard" mandates zero-initialization for locals: https://lkml.org/lkml/2019/7/28/206


I'm wondering why they never pushed all the way for a `-std=linux-c` flag instead, and produced a documentation with the behavior they want with respect to the base C standard they align on.


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D64742/new/

https://reviews.llvm.org/D64742





More information about the cfe-commits mailing list