[PATCH v1 0/1] arm: avoid UB in arm_gen_constant [PR123390]
Richard Earnshaw via Sourceware Forge
forge-bot+rearnsha@forge-stage.sourceware.org
Tue Jan 6 14:19:44 GMT 2026
Hi gcc-patches mailing list,
Richard Earnshaw <rearnsha@arm.com> has requested that the following forgejo pull request
be published on the mailing list.
Created on: 2026-01-06 14:18:46+00:00
Latest update: 2026-01-06 14:19:45+00:00
Changes: 1 changed files, 39 additions, 28 deletions
Head revision: rearnsha/gcc-TEST ref gen-const-fix commit ed82cdb402b034a5284e9e5ba313a936953dff7f
Base revision: gcc/gcc-TEST ref master commit 56dd47c073cabf00771280273bae133a4864c9f6 r16-6519-g56dd47c073cabf
Merge base: 56dd47c073cabf00771280273bae133a4864c9f6
Full diff url: https://forge.sourceware.org/gcc/gcc-TEST/pulls/133.diff
Discussion: https://forge.sourceware.org/gcc/gcc-TEST/pulls/133
Requested Reviewers:
To avoid having potentially UB in arm_gen_const, use the macros
from hwint.h to correctly type literal values.
gcc/ChangeLog:
PR target/123390
* config/arm/arm.cc (arm_gen_constant): Fix types of HWI literals.
(arm_const_double_prefer_rsbs_rsc): Likewise.
Thanks for taking the time to contribute to GCC!
Please be advised that https://forge.sourceware.org/ is currently a trial
that is being used by the GCC community to experiment with a new workflow
based on pull requests.
Pull requests sent here may be forgotten or ignored. Patches that you want to
propose for inclusion in GCC should use the existing email-based workflow,
see https://gcc.gnu.org/contribute.html
Changed files:
- M: gcc/config/arm/arm.cc
Richard Earnshaw (1):
arm: avoid UB in arm_gen_constant [PR123390]
gcc/config/arm/arm.cc | 67 +++++++++++++++++++++++++------------------
1 file changed, 39 insertions(+), 28 deletions(-)
--
2.52.0
More information about the Gcc-patches
mailing list