23 Star 30 Fork 165

src-openEuler/gcc
Closed

Create your Gitee Account
Explore and code with more than 14 million developers,Free private repositories !:)
Sign up
文件
This repository doesn't specify license. Please pay attention to the specific project description and its upstream code dependency when using it.
Clone or Download
0013-Sw64-Port-set-raise-FPE-when-DivbyZero-on-Sw_64.patch 980 Bytes
Copy Edit Raw Blame History
swcompiler authored 2024-11-28 08:55 +08:00 . Sw64: Add sw64 architecture support.
From e8813c5a4ba57493f92214f6d97433208ac30d9e Mon Sep 17 00:00:00 2001
From: swcompiler <lc@wxiat.com>
Date: Mon, 25 Nov 2024 16:55:30 +0800
Subject: [PATCH 13/16] Sw64 Port: set raise FPE when DivbyZero on Sw_64
platform
---
intl/dcigettext.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/intl/dcigettext.c b/intl/dcigettext.c
index a8d4a14d2..a828f0419 100644
--- a/intl/dcigettext.c
+++ b/intl/dcigettext.c
@@ -72,8 +72,8 @@ extern int errno;
#ifdef _LIBC
/* Guess whether integer division by zero raises signal SIGFPE.
Set to 1 only if you know for sure. In case of doubt, set to 0. */
-# if defined __alpha__ || defined __arm__ || defined __i386__ \
- || defined __m68k__ || defined __s390__
+#if defined __alpha__ || defined __arm__ || defined __i386__ \
+ || defined __m68k__ || defined __s390__ || defined __sw_64__
# define INTDIV0_RAISES_SIGFPE 1
# else
# define INTDIV0_RAISES_SIGFPE 0
--
2.25.1
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/src-openeuler/gcc.git
git@gitee.com:src-openeuler/gcc.git
src-openeuler
gcc
gcc
master

Search