Projects
openEuler:24.03:SP1:Everything
gcc
_service:tar_scm:0045-LoongArch-Fix-runtime-err...
Sign Up
Log In
Username
Password
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File _service:tar_scm:0045-LoongArch-Fix-runtime-error-in-a-gcc-build-with-with.patch of Package gcc
From fa28ce4ac91691595e14838be49c9dd42b153b7f Mon Sep 17 00:00:00 2001 From: Guo Jie <guojie@loongson.cn> Date: Thu, 23 Nov 2023 11:05:56 +0800 Subject: [PATCH 045/188] LoongArch: Fix runtime error in a gcc build with --with-build-config=bootstrap-ubsan gcc/ChangeLog: * config/loongarch/loongarch.cc (loongarch_split_plus_constant): avoid left shift of negative value -0x8000. --- gcc/config/loongarch/loongarch.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gcc/config/loongarch/loongarch.cc b/gcc/config/loongarch/loongarch.cc index 048d3802b..ecceca22d 100644 --- a/gcc/config/loongarch/loongarch.cc +++ b/gcc/config/loongarch/loongarch.cc @@ -4265,7 +4265,7 @@ loongarch_split_plus_constant (rtx *op, machine_mode mode) else if (loongarch_addu16i_imm12_operand_p (v, mode)) a = (v & ~HWIT_UC_0xFFF) + ((v & 0x800) << 1); else if (mode == DImode && DUAL_ADDU16I_OPERAND (v)) - a = (v > 0 ? 0x7fff : -0x8000) << 16; + a = (v > 0 ? 0x7fff0000 : ~0x7fffffff); else gcc_unreachable (); -- 2.43.0
Locations
Projects
Search
Status Monitor
Help
Open Build Service
OBS Manuals
API Documentation
OBS Portal
Reporting a Bug
Contact
Mailing List
Forums
Chat (IRC)
Twitter
Open Build Service (OBS)
is an
openSUSE project
.
浙ICP备2022010568号-2