Make "#pragma clang attribute" support uninitialized attribute.
Summary: When using -ftrivial-auto-var-init=* options to initiate automatic variables in a file, to disable initialization on some variables, currently we have to manually annotate the variables with uninitialized attribute, such as int dont_initialize_me __attribute((uninitialized)); Making pragma clang attribute to support this attribute would make annotating variables much easier, and could be particular useful for bisection efforts, e.g. void use(void*); void buggy() { int arr[256]; int boom; float bam; struct { int oops; } oops; union { int oof; float aaaaa; } oof; use(&arr); use(&boom); use(&bam); use(&oops); use(&oof); } Reviewers: jfb, rjmccall, aaron.ballman Reviewed By: jfb, aaron.ballman Subscribers: aaron.ballman, george.burgess.iv, dexonsmith, MaskRay, phosek, hubert.reinterpretcast, gbiv, manojgupta, llozano, srhines, cfe-commits Tags: #clang Differential Revision: https://reviews.llvm.org/D78693
Loading
Please sign in to comment