diff options
author | Qing Zhao <qing.zhao@oracle.com> | 2025-04-14 19:41:12 +0000 |
---|---|---|
committer | Qing Zhao <qing.zhao@oracle.com> | 2025-04-15 20:38:17 +0000 |
commit | 727f330f9ac661339af1121fc5c9b67dd0d35872 (patch) | |
tree | c0b708fb5d601d81d8f26acd614ace9fc800e6cf /libjava | |
parent | 99835bd68e5360b0b3c8ad9c61ea23f70ad3dce6 (diff) | |
download | gcc-727f330f9ac661339af1121fc5c9b67dd0d35872.zip gcc-727f330f9ac661339af1121fc5c9b67dd0d35872.tar.gz gcc-727f330f9ac661339af1121fc5c9b67dd0d35872.tar.bz2 |
c: Fully fold each parameter for call to .ACCESS_WITH_SIZE [PR119717]
C_MAYBE_CONST_EXPR is a C FE operator that will be removed by c_fully_fold.
In c_fully_fold, it assumes that operands of function calls have already
been folded. However, when we build call to .ACCESS_WITH_SIZE, all its
operands are not fully folded. therefore the C FE specific operator is
passed to middle-end.
In order to fix this issue, fully fold the parameters before building the
call to .ACCESS_WITH_SIZE.
PR c/119717
gcc/c/ChangeLog:
* c-typeck.cc (build_access_with_size_for_counted_by): Fully fold the
parameters for call to .ACCESS_WITH_SIZE.
gcc/testsuite/ChangeLog:
* gcc.dg/pr119717.c: New test.
Diffstat (limited to 'libjava')
0 files changed, 0 insertions, 0 deletions