head 1.3; access; symbols netbsd-11-0-RC4:1.3 netbsd-11-0-RC3:1.3 netbsd-11-0-RC2:1.3 netbsd-11-0-RC1:1.3 gcc-14-3-0:1.1.1.2 perseant-exfatfs-base-20250801:1.3 netbsd-11:1.3.0.4 netbsd-11-base:1.3 gcc-12-5-0:1.1.1.2 netbsd-10-1-RELEASE:1.2 perseant-exfatfs-base-20240630:1.3 gcc-12-4-0:1.1.1.2 perseant-exfatfs:1.3.0.2 perseant-exfatfs-base:1.3 netbsd-10-0-RELEASE:1.2 netbsd-10-0-RC6:1.2 netbsd-10-0-RC5:1.2 netbsd-10-0-RC4:1.2 netbsd-10-0-RC3:1.2 netbsd-10-0-RC2:1.2 netbsd-10-0-RC1:1.2 gcc-12-3-0:1.1.1.2 gcc-10-5-0:1.1.1.2 netbsd-10:1.2.0.6 netbsd-10-base:1.2 gcc-10-4-0:1.1.1.2 cjep_sun2x-base1:1.2 cjep_sun2x:1.2.0.4 cjep_sun2x-base:1.2 cjep_staticlib_x-base1:1.2 cjep_staticlib_x:1.2.0.2 cjep_staticlib_x-base:1.2 gcc-10-3-0:1.1.1.2 gcc-9-3-0:1.1.1.1 FSF:1.1.1; locks; strict; comment @# @; 1.3 date 2023.07.31.01.44.57; author mrg; state Exp; branches; next 1.2; commitid q79F5Opf0FLsyTyE; 1.2 date 2021.04.11.23.54.28; author mrg; state Exp; branches; next 1.1; commitid wJn7ggfUTEMOWVOC; 1.1 date 2020.09.05.07.52.57; author mrg; state Exp; branches 1.1.1.1; next ; commitid ZRYA7IOuwfMjAPmC; 1.1.1.1 date 2020.09.05.07.52.57; author mrg; state Exp; branches; next 1.1.1.2; commitid ZRYA7IOuwfMjAPmC; 1.1.1.2 date 2021.04.10.22.09.21; author mrg; state Exp; branches; next ; commitid eC4g0MRpqTvEkNOC; desc @@ 1.3 log @make this actually be GCC 12.3.0's libsanitizer. the libsanitizer we used with GCC 9 and GCC 10 was significantly ahead of the GCC 9 and GCC 10 provided versions. @ text @//===-- sanitizer_syscall_linux_arm.inc -------------------------*- C++ -*-===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. // See https://llvm.org/LICENSE.txt for license information. // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception // //===----------------------------------------------------------------------===// // // Implementations of internal_syscall and internal_iserror for Linux/arm. // //===----------------------------------------------------------------------===// #define SYSCALL(name) __NR_ ## name static uptr __internal_syscall(u32 nr) { register u32 r8 asm("r7") = nr; register u32 r0 asm("r0"); asm volatile("swi #0" : "=r"(r0) : "r"(r8) : "memory", "cc"); return r0; } #define __internal_syscall0(n) \ (__internal_syscall)(n) static uptr __internal_syscall(u32 nr, u32 arg1) { register u32 r8 asm("r7") = nr; register u32 r0 asm("r0") = arg1; asm volatile("swi #0" : "=r"(r0) : "r"(r8), "0"(r0) : "memory", "cc"); return r0; } #define __internal_syscall1(n, a1) \ (__internal_syscall)(n, (u32)(a1)) static uptr __internal_syscall(u32 nr, u32 arg1, long arg2) { register u32 r8 asm("r7") = nr; register u32 r0 asm("r0") = arg1; register u32 r1 asm("r1") = arg2; asm volatile("swi #0" : "=r"(r0) : "r"(r8), "0"(r0), "r"(r1) : "memory", "cc"); return r0; } #define __internal_syscall2(n, a1, a2) \ (__internal_syscall)(n, (u32)(a1), (long)(a2)) static uptr __internal_syscall(u32 nr, u32 arg1, long arg2, long arg3) { register u32 r8 asm("r7") = nr; register u32 r0 asm("r0") = arg1; register u32 r1 asm("r1") = arg2; register u32 r2 asm("r2") = arg3; asm volatile("swi #0" : "=r"(r0) : "r"(r8), "0"(r0), "r"(r1), "r"(r2) : "memory", "cc"); return r0; } #define __internal_syscall3(n, a1, a2, a3) \ (__internal_syscall)(n, (u32)(a1), (long)(a2), (long)(a3)) static uptr __internal_syscall(u32 nr, u32 arg1, long arg2, long arg3, u32 arg4) { register u32 r8 asm("r7") = nr; register u32 r0 asm("r0") = arg1; register u32 r1 asm("r1") = arg2; register u32 r2 asm("r2") = arg3; register u32 r3 asm("r3") = arg4; asm volatile("swi #0" : "=r"(r0) : "r"(r8), "0"(r0), "r"(r1), "r"(r2), "r"(r3) : "memory", "cc"); return r0; } #define __internal_syscall4(n, a1, a2, a3, a4) \ (__internal_syscall)(n, (u32)(a1), (long)(a2), (long)(a3), (long)(a4)) static uptr __internal_syscall(u32 nr, u32 arg1, long arg2, long arg3, u32 arg4, long arg5) { register u32 r8 asm("r7") = nr; register u32 r0 asm("r0") = arg1; register u32 r1 asm("r1") = arg2; register u32 r2 asm("r2") = arg3; register u32 r3 asm("r3") = arg4; register u32 r4 asm("r4") = arg5; asm volatile("swi #0" : "=r"(r0) : "r"(r8), "0"(r0), "r"(r1), "r"(r2), "r"(r3), "r"(r4) : "memory", "cc"); return r0; } #define __internal_syscall5(n, a1, a2, a3, a4, a5) \ (__internal_syscall)(n, (u32)(a1), (long)(a2), (long)(a3), (long)(a4), \ (u32)(a5)) static uptr __internal_syscall(u32 nr, u32 arg1, long arg2, long arg3, u32 arg4, long arg5, long arg6) { register u32 r8 asm("r7") = nr; register u32 r0 asm("r0") = arg1; register u32 r1 asm("r1") = arg2; register u32 r2 asm("r2") = arg3; register u32 r3 asm("r3") = arg4; register u32 r4 asm("r4") = arg5; register u32 r5 asm("r5") = arg6; asm volatile("swi #0" : "=r"(r0) : "r"(r8), "0"(r0), "r"(r1), "r"(r2), "r"(r3), "r"(r4), "r"(r5) : "memory", "cc"); return r0; } #define __internal_syscall6(n, a1, a2, a3, a4, a5, a6) \ (__internal_syscall)(n, (u32)(a1), (long)(a2), (long)(a3), (long)(a4), \ (u32)(a5), (long)(a6)) #define __SYSCALL_NARGS_X(a1, a2, a3, a4, a5, a6, a7, a8, n, ...) n #define __SYSCALL_NARGS(...) \ __SYSCALL_NARGS_X(__VA_ARGS__, 7, 6, 5, 4, 3, 2, 1, 0, ) #define __SYSCALL_CONCAT_X(a, b) a##b #define __SYSCALL_CONCAT(a, b) __SYSCALL_CONCAT_X(a, b) #define __SYSCALL_DISP(b, ...) \ __SYSCALL_CONCAT(b, __SYSCALL_NARGS(__VA_ARGS__))(__VA_ARGS__) #define internal_syscall(...) __SYSCALL_DISP(__internal_syscall, __VA_ARGS__) // Helper function used to avoid cobbler errno. bool internal_iserror(uptr retval, int *rverrno) { if (retval >= (uptr)-4095) { if (rverrno) *rverrno = -retval; return true; } return false; } @ 1.2 log @revert sanitizer back to the version we were using with GCC 9, since that one was already newer than the GCC 10 version. @ text @d3 3 a5 2 // This file is distributed under the University of Illinois Open Source // License. See LICENSE.TXT for details. @ 1.1 log @Initial revision @ text @@ 1.1.1.1 log @initial import of GCC 9.3.0. changes include: - live patching support - shell completion help - generally better diagnostic output (less verbose/more useful) - diagnostics and optimisation choices can be emitted in json - asan memory usage reduction - many general, and specific to switch, inter-procedure, profile and link-time optimisations. from the release notes: "Overall compile time of Firefox 66 and LibreOffice 6.2.3 on an 8-core machine was reduced by about 5% compared to GCC 8.3" - OpenMP 5.0 support - better spell-guesser - partial experimental support for c2x and c++2a - c++17 is no longer experimental - arm AAPCS GCC 6-8 structure passing bug fixed, may cause incompatibility (restored compat with GCC 5 and earlier.) - openrisc support @ text @@ 1.1.1.2 log @initial import of GCC 10.3.0. main changes include: caveats: - ABI issue between c++14 and c++17 fixed - profile mode is removed from libstdc++ - -fno-common is now the default new features: - new flags -fallocation-dce, -fprofile-partial-training, -fprofile-reproducible, -fprofile-prefix-path, and -fanalyzer - many new compile and link time optimisations - enhanced drive optimisations - openacc 2.6 support - openmp 5.0 features - new warnings: -Wstring-compare and -Wzero-length-bounds - extended warnings: -Warray-bounds, -Wformat-overflow, -Wrestrict, -Wreturn-local-addr, -Wstringop-overflow, -Warith-conversion, -Wmismatched-tags, and -Wredundant-tags - some likely C2X features implemented - more C++20 implemented - many new arm & intel CPUs known hundreds of reported bugs are fixed. full list of changes can be found at: https://gcc.gnu.org/gcc-10/changes.html @ text @d3 2 a4 3 // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. // See https://llvm.org/LICENSE.txt for license information. // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception @