!246 [Backport] libsanitizer: cherry-pick 9cf13067cb5088626ba7 from upstream
From: @li-yancheng Reviewed-by: @benniaobufeijiushiji Signed-off-by: @benniaobufeijiushiji
This commit is contained in:
commit
25a7512d71
@ -0,0 +1,46 @@
|
|||||||
|
From 655fcd3bad37d6d601c869a6471284cc8255e220 Mon Sep 17 00:00:00 2001
|
||||||
|
From: liyancheng <412998149@qq.com>
|
||||||
|
Date: Wed, 23 Nov 2022 21:12:51 +0800
|
||||||
|
Subject: [PATCH] [Backport] libsanitizer: cherry-pick 9cf13067cb5088626ba7
|
||||||
|
from upstream
|
||||||
|
|
||||||
|
[Reference] https://gcc.gnu.org/git/gitweb.cgi?p=gcc.git;h=2701442d0cf6292f6624443c15813d6d1a3562fe
|
||||||
|
|
||||||
|
9cf13067cb5088626ba7ee1ec4c42ec59c7995a0
|
||||||
|
[sanitizer] Remove #include <linux/fs.h> to resolve fsconfig_command/mount_attr conflict with glibc 2.36
|
||||||
|
---
|
||||||
|
.../sanitizer_platform_limits_posix.cpp | 10 ++++++----
|
||||||
|
1 file changed, 6 insertions(+), 4 deletions(-)
|
||||||
|
|
||||||
|
diff --git a/libsanitizer/sanitizer_common/sanitizer_platform_limits_posix.cpp b/libsanitizer/sanitizer_common/sanitizer_platform_limits_posix.cpp
|
||||||
|
index aa845df4d..8b4162bcd 100644
|
||||||
|
--- a/libsanitizer/sanitizer_common/sanitizer_platform_limits_posix.cpp
|
||||||
|
+++ b/libsanitizer/sanitizer_common/sanitizer_platform_limits_posix.cpp
|
||||||
|
@@ -72,7 +72,9 @@
|
||||||
|
#include <sys/vt.h>
|
||||||
|
#include <linux/cdrom.h>
|
||||||
|
#include <linux/fd.h>
|
||||||
|
+#if SANITIZER_ANDROID
|
||||||
|
#include <linux/fs.h>
|
||||||
|
+#endif
|
||||||
|
#include <linux/hdreg.h>
|
||||||
|
#include <linux/input.h>
|
||||||
|
#include <linux/ioctl.h>
|
||||||
|
@@ -833,10 +835,10 @@ unsigned struct_ElfW_Phdr_sz = sizeof(Elf_Phdr);
|
||||||
|
unsigned IOCTL_EVIOCGPROP = IOCTL_NOT_PRESENT;
|
||||||
|
unsigned IOCTL_EVIOCSKEYCODE_V2 = IOCTL_NOT_PRESENT;
|
||||||
|
#endif
|
||||||
|
- unsigned IOCTL_FS_IOC_GETFLAGS = FS_IOC_GETFLAGS;
|
||||||
|
- unsigned IOCTL_FS_IOC_GETVERSION = FS_IOC_GETVERSION;
|
||||||
|
- unsigned IOCTL_FS_IOC_SETFLAGS = FS_IOC_SETFLAGS;
|
||||||
|
- unsigned IOCTL_FS_IOC_SETVERSION = FS_IOC_SETVERSION;
|
||||||
|
+ unsigned IOCTL_FS_IOC_GETFLAGS = _IOR('f', 1, long);
|
||||||
|
+ unsigned IOCTL_FS_IOC_GETVERSION = _IOR('v', 1, long);
|
||||||
|
+ unsigned IOCTL_FS_IOC_SETFLAGS = _IOW('f', 2, long);
|
||||||
|
+ unsigned IOCTL_FS_IOC_SETVERSION = _IOW('v', 2, long);
|
||||||
|
unsigned IOCTL_GIO_CMAP = GIO_CMAP;
|
||||||
|
unsigned IOCTL_GIO_FONT = GIO_FONT;
|
||||||
|
unsigned IOCTL_GIO_UNIMAP = GIO_UNIMAP;
|
||||||
|
--
|
||||||
|
2.25.1
|
||||||
|
|
||||||
11
gcc.spec
11
gcc.spec
@ -61,7 +61,7 @@
|
|||||||
Summary: Various compilers (C, C++, Objective-C, ...)
|
Summary: Various compilers (C, C++, Objective-C, ...)
|
||||||
Name: gcc
|
Name: gcc
|
||||||
Version: %{gcc_version}
|
Version: %{gcc_version}
|
||||||
Release: 21
|
Release: 22
|
||||||
License: GPLv3+ and GPLv3+ with exceptions and GPLv2+ with exceptions and LGPLv2+ and BSD
|
License: GPLv3+ and GPLv3+ with exceptions and GPLv2+ with exceptions and LGPLv2+ and BSD
|
||||||
URL: https://gcc.gnu.org
|
URL: https://gcc.gnu.org
|
||||||
|
|
||||||
@ -202,6 +202,7 @@ Patch85: 0085-loop-distribution-Bugfix-for-loop-distribution.patch
|
|||||||
Patch86: 0086-semi-relayout-Bugfix-for-struct-semi-relayout.patch
|
Patch86: 0086-semi-relayout-Bugfix-for-struct-semi-relayout.patch
|
||||||
Patch87: 0087-Backport-tree-optimization-97238-fix-typo-causing-IC.patch
|
Patch87: 0087-Backport-tree-optimization-97238-fix-typo-causing-IC.patch
|
||||||
Patch88: 0088-Backport-fix-typo-causing-ICE.patch
|
Patch88: 0088-Backport-fix-typo-causing-ICE.patch
|
||||||
|
Patch89: 0089-Backport-libsanitizer-cherry-pick-9cf13067cb5088626b.patch
|
||||||
|
|
||||||
%global gcc_target_platform %{_arch}-linux-gnu
|
%global gcc_target_platform %{_arch}-linux-gnu
|
||||||
|
|
||||||
@ -744,6 +745,7 @@ not stable, so plugins must be rebuilt any time GCC is updated.
|
|||||||
%patch86 -p1
|
%patch86 -p1
|
||||||
%patch87 -p1
|
%patch87 -p1
|
||||||
%patch88 -p1
|
%patch88 -p1
|
||||||
|
%patch89 -p1
|
||||||
|
|
||||||
%build
|
%build
|
||||||
|
|
||||||
@ -2767,6 +2769,13 @@ end
|
|||||||
%doc rpm.doc/changelogs/libcc1/ChangeLog*
|
%doc rpm.doc/changelogs/libcc1/ChangeLog*
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Tue Jan 10 2023 liyancheng <412998149@qq.com> - 10.3.1-22
|
||||||
|
- Type:Sync
|
||||||
|
- ID:NA
|
||||||
|
- SUG:NA
|
||||||
|
- DESC:Sync patch from openeuler/gcc
|
||||||
|
Fix conflict with glibc 2.36.
|
||||||
|
|
||||||
* Fri Dec 30 2022 Xiong Zhou <xiongzhou4@huawei.com> - 10.3.1-21
|
* Fri Dec 30 2022 Xiong Zhou <xiongzhou4@huawei.com> - 10.3.1-21
|
||||||
- Type:Sync
|
- Type:Sync
|
||||||
- ID:NA
|
- ID:NA
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user