[Bug middle-end/115527] -ftrivial-auto-var-init appears to clobber explicit initializer

2024-07-15 Thread qinzhao at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115527 --- Comment #6 from qinzhao at gcc dot gnu.org --- This is a bug in gimple-fold.cc, when folding __builtin_clear_padding. The problematic code is in the routine "clear_padding_type" when the TYPE is ARRAY_TYPE. /* For sufficiently la

[Bug middle-end/115527] -ftrivial-auto-var-init appears to clobber explicit initializer

2024-07-12 Thread qinzhao at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115527 --- Comment #5 from qinzhao at gcc dot gnu.org --- the following code in gimple-fold.cc has issue: 4440 tree dst = build2_loc (buf->loc, MEM_REF, atype, buf->base, 4441 build_int_cst (buf->alias_type, 4

[Bug middle-end/115527] -ftrivial-auto-var-init appears to clobber explicit initializer

2024-07-12 Thread qinzhao at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115527 --- Comment #4 from qinzhao at gcc dot gnu.org --- when checking the expanded IR for __builtin_clear_padding in the below: the builtin __builtin_clear_padding (&o, 0B); was expanded as the following sequence D.4430 = &o + 0; _2

[Bug middle-end/115527] -ftrivial-auto-var-init appears to clobber explicit initializer

2024-07-12 Thread qinzhao at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115527 --- Comment #3 from qinzhao at gcc dot gnu.org --- I believe that this is a bug in __builtin_clear_padding. when I change the testing case to: struct inner { double a; char b; long l; }; struct outer { struct inner in_array[3];

[Bug middle-end/115527] -ftrivial-auto-var-init appears to clobber explicit initializer

2024-06-21 Thread sjames at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115527 Sam James changed: What|Removed |Added Status|NEW |ASSIGNED

[Bug middle-end/115527] -ftrivial-auto-var-init appears to clobber explicit initializer

2024-06-18 Thread qinzhao at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115527 qinzhao at gcc dot gnu.org changed: What|Removed |Added CC||qinzhao at gcc dot gnu.org

[Bug middle-end/115527] -ftrivial-auto-var-init appears to clobber explicit initializer

2024-06-17 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115527 Andrew Pinski changed: What|Removed |Added Last reconfirmed||2024-06-17 Status|UNCONFIRM