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
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
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
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];
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115527
Sam James changed:
What|Removed |Added
Status|NEW |ASSIGNED
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
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115527
Andrew Pinski changed:
What|Removed |Added
Last reconfirmed||2024-06-17
Status|UNCONFIRM