CVS commit: src/external/gpl3/gcc/dist/libsanitizer/tsan
Module Name:src Committed By: mrg Date: Sun Feb 25 01:12:16 UTC 2024 Modified Files: src/external/gpl3/gcc/dist/libsanitizer/tsan: tsan_rtl.h Log Message: add some missing alignment. To generate a diff of this commit: cvs rdiff -u -r1.3 -r1.4 \ src/external/gpl3/gcc/dist/libsanitizer/tsan/tsan_rtl.h Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
CVS commit: src/external/gpl3/gcc/dist/libsanitizer/tsan
Module Name:src Committed By: mrg Date: Sun Feb 25 01:12:16 UTC 2024 Modified Files: src/external/gpl3/gcc/dist/libsanitizer/tsan: tsan_rtl.h Log Message: add some missing alignment. To generate a diff of this commit: cvs rdiff -u -r1.3 -r1.4 \ src/external/gpl3/gcc/dist/libsanitizer/tsan/tsan_rtl.h Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. Modified files: Index: src/external/gpl3/gcc/dist/libsanitizer/tsan/tsan_rtl.h diff -u src/external/gpl3/gcc/dist/libsanitizer/tsan/tsan_rtl.h:1.3 src/external/gpl3/gcc/dist/libsanitizer/tsan/tsan_rtl.h:1.4 --- src/external/gpl3/gcc/dist/libsanitizer/tsan/tsan_rtl.h:1.3 Sun Jul 30 05:51:42 2023 +++ src/external/gpl3/gcc/dist/libsanitizer/tsan/tsan_rtl.h Sun Feb 25 01:12:16 2024 @@ -132,7 +132,7 @@ struct ScopedGlobalProcessor { // This struct is stored in TLS. struct ThreadState { - FastState fast_state; + FastState fast_state ALIGNED(SANITIZER_CACHE_LINE_SIZE); // Synch epoch represents the threads's epoch before the last synchronization // action. It allows to reduce number of shadow state updates. // For example, fast_synch_epoch=100, last write to addr X was at epoch=150,
CVS commit: src/external/gpl3/gcc/dist/libsanitizer/sanitizer_common
Module Name:src Committed By: mrg Date: Sun Oct 22 00:08:50 UTC 2023 Modified Files: src/external/gpl3/gcc/dist/libsanitizer/sanitizer_common: sanitizer_asm.h Log Message: enable NO_EXEC_STACK_DIRECTIVE on netbsd. To generate a diff of this commit: cvs rdiff -u -r1.3 -r1.4 \ src/external/gpl3/gcc/dist/libsanitizer/sanitizer_common/sanitizer_asm.h Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
CVS commit: src/external/gpl3/gcc/dist/libsanitizer/sanitizer_common
Module Name:src Committed By: mrg Date: Sun Oct 22 00:08:50 UTC 2023 Modified Files: src/external/gpl3/gcc/dist/libsanitizer/sanitizer_common: sanitizer_asm.h Log Message: enable NO_EXEC_STACK_DIRECTIVE on netbsd. To generate a diff of this commit: cvs rdiff -u -r1.3 -r1.4 \ src/external/gpl3/gcc/dist/libsanitizer/sanitizer_common/sanitizer_asm.h Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. Modified files: Index: src/external/gpl3/gcc/dist/libsanitizer/sanitizer_common/sanitizer_asm.h diff -u src/external/gpl3/gcc/dist/libsanitizer/sanitizer_common/sanitizer_asm.h:1.3 src/external/gpl3/gcc/dist/libsanitizer/sanitizer_common/sanitizer_asm.h:1.4 --- src/external/gpl3/gcc/dist/libsanitizer/sanitizer_common/sanitizer_asm.h:1.3 Sun Jul 30 05:51:42 2023 +++ src/external/gpl3/gcc/dist/libsanitizer/sanitizer_common/sanitizer_asm.h Sun Oct 22 00:08:50 2023 @@ -59,7 +59,8 @@ #endif #if defined(__ELF__) && (defined(__GNU__) || defined(__FreeBSD__) || \ - defined(__Fuchsia__) || defined(__linux__)) + defined(__Fuchsia__) || defined(__linux__) || \ + defined(__NetBSD__)) // clang-format off #define NO_EXEC_STACK_DIRECTIVE .section .note.GNU-stack,"",%progbits // clang-format on
CVS commit: src/external/gpl3/gcc/dist/libstdc++-v3/config/locale/dragonfly
Module Name:src Committed By: rin Date: Thu Sep 14 03:50:58 UTC 2023 Modified Files: src/external/gpl3/gcc/dist/libstdc++-v3/config/locale/dragonfly: c_locale.h Log Message: gcc: c_locale.h (c++locale.h): Drop unnecessary include This has no longer been required since rev 1.6: http://cvsweb.netbsd.org/bsdweb.cgi/src/external/gpl3/gcc/dist/libstdc++-v3/config/locale/dragonfly/c_locale.h#rev1.6 where __convert_from_v() migrated to .cc file, and direct call for vsnprintf_l(3) from this header file was removed. To generate a diff of this commit: cvs rdiff -u -r1.7 -r1.8 \ src/external/gpl3/gcc/dist/libstdc++-v3/config/locale/dragonfly/c_locale.h Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. Modified files: Index: src/external/gpl3/gcc/dist/libstdc++-v3/config/locale/dragonfly/c_locale.h diff -u src/external/gpl3/gcc/dist/libstdc++-v3/config/locale/dragonfly/c_locale.h:1.7 src/external/gpl3/gcc/dist/libstdc++-v3/config/locale/dragonfly/c_locale.h:1.8 --- src/external/gpl3/gcc/dist/libstdc++-v3/config/locale/dragonfly/c_locale.h:1.7 Sun Jul 30 05:51:43 2023 +++ src/external/gpl3/gcc/dist/libstdc++-v3/config/locale/dragonfly/c_locale.h Thu Sep 14 03:50:58 2023 @@ -44,8 +44,6 @@ #include #ifndef __NetBSD__ #include -#else -#include #endif #define _GLIBCXX_NUM_CATEGORIES 0
CVS commit: src/external/gpl3/gcc/dist/libstdc++-v3/config/locale/dragonfly
Module Name:src Committed By: rin Date: Thu Sep 14 03:50:58 UTC 2023 Modified Files: src/external/gpl3/gcc/dist/libstdc++-v3/config/locale/dragonfly: c_locale.h Log Message: gcc: c_locale.h (c++locale.h): Drop unnecessary include This has no longer been required since rev 1.6: http://cvsweb.netbsd.org/bsdweb.cgi/src/external/gpl3/gcc/dist/libstdc++-v3/config/locale/dragonfly/c_locale.h#rev1.6 where __convert_from_v() migrated to .cc file, and direct call for vsnprintf_l(3) from this header file was removed. To generate a diff of this commit: cvs rdiff -u -r1.7 -r1.8 \ src/external/gpl3/gcc/dist/libstdc++-v3/config/locale/dragonfly/c_locale.h Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
CVS commit: src/external/gpl3/gcc/dist/gcc
Module Name:src Committed By: christos Date: Sun Sep 3 18:47:45 UTC 2023 Modified Files: src/external/gpl3/gcc/dist/gcc: ubsan.cc Log Message: remap generated ubsan filename string labels. fixes reproducible builds. reported by wiz@ To generate a diff of this commit: cvs rdiff -u -r1.1.1.1 -r1.2 src/external/gpl3/gcc/dist/gcc/ubsan.cc Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. Modified files: Index: src/external/gpl3/gcc/dist/gcc/ubsan.cc diff -u src/external/gpl3/gcc/dist/gcc/ubsan.cc:1.1.1.1 src/external/gpl3/gcc/dist/gcc/ubsan.cc:1.2 --- src/external/gpl3/gcc/dist/gcc/ubsan.cc:1.1.1.1 Sun Jul 30 01:20:53 2023 +++ src/external/gpl3/gcc/dist/gcc/ubsan.cc Sun Sep 3 14:47:45 2023 @@ -49,6 +49,7 @@ along with GCC; see the file COPYING3. #include "tree-cfg.h" #include "gimple-fold.h" #include "varasm.h" +#include "file-prefix-map.h" /* Map from a tree to a VAR_DECL tree. */ @@ -304,8 +305,9 @@ ubsan_source_location (location_t loc) else { /* Fill in the values from LOC. */ - size_t len = strlen (xloc.file) + 1; - str = build_string (len, xloc.file); + const char *file = remap_debug_filename (xloc.file); + size_t len = strlen (file) + 1; + str = build_string (len, file); TREE_TYPE (str) = build_array_type_nelts (char_type_node, len); TREE_READONLY (str) = 1; TREE_STATIC (str) = 1;
CVS commit: src/external/gpl3/gcc/dist/gcc
Module Name:src Committed By: christos Date: Sun Sep 3 18:47:45 UTC 2023 Modified Files: src/external/gpl3/gcc/dist/gcc: ubsan.cc Log Message: remap generated ubsan filename string labels. fixes reproducible builds. reported by wiz@ To generate a diff of this commit: cvs rdiff -u -r1.1.1.1 -r1.2 src/external/gpl3/gcc/dist/gcc/ubsan.cc Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
CVS commit: src/external/gpl3/gcc/dist/gcc/config/vax
Module Name:src Committed By: rin Date: Thu Aug 17 03:08:15 UTC 2023 Modified Files: src/external/gpl3/gcc/dist/gcc/config/vax: vax.cc Log Message: gcc/vax: XXX: Forcibly disable gas(1) directives for CFI table Otherwise, wired relocation occur for readonly section `.eh_frame', by which libc.so cannot link: warning: dynamic relocation to `?' in readonly section `.eh_frame' warning: creating DT_TEXTREL in a shared object .eh_frame_hdr refers to overlapping FDEs final link failed: bad value This workaround has been introduced by vax.c, v1.15: http://cvsweb.netbsd.org/bsdweb.cgi/src/external/gpl3/gcc/dist/gcc/config/vax/Attic/vax.c#rev1.15 but accidentally lost during GCC 12.3.0 merge. To generate a diff of this commit: cvs rdiff -u -r1.1.1.1 -r1.2 src/external/gpl3/gcc/dist/gcc/config/vax/vax.cc Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
CVS commit: src/external/gpl3/gcc/dist/gcc/config/vax
Module Name:src Committed By: rin Date: Thu Aug 17 03:08:15 UTC 2023 Modified Files: src/external/gpl3/gcc/dist/gcc/config/vax: vax.cc Log Message: gcc/vax: XXX: Forcibly disable gas(1) directives for CFI table Otherwise, wired relocation occur for readonly section `.eh_frame', by which libc.so cannot link: warning: dynamic relocation to `?' in readonly section `.eh_frame' warning: creating DT_TEXTREL in a shared object .eh_frame_hdr refers to overlapping FDEs final link failed: bad value This workaround has been introduced by vax.c, v1.15: http://cvsweb.netbsd.org/bsdweb.cgi/src/external/gpl3/gcc/dist/gcc/config/vax/Attic/vax.c#rev1.15 but accidentally lost during GCC 12.3.0 merge. To generate a diff of this commit: cvs rdiff -u -r1.1.1.1 -r1.2 src/external/gpl3/gcc/dist/gcc/config/vax/vax.cc Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. Modified files: Index: src/external/gpl3/gcc/dist/gcc/config/vax/vax.cc diff -u src/external/gpl3/gcc/dist/gcc/config/vax/vax.cc:1.1.1.1 src/external/gpl3/gcc/dist/gcc/config/vax/vax.cc:1.2 --- src/external/gpl3/gcc/dist/gcc/config/vax/vax.cc:1.1.1.1 Sun Jul 30 05:21:07 2023 +++ src/external/gpl3/gcc/dist/gcc/config/vax/vax.cc Thu Aug 17 03:08:15 2023 @@ -152,6 +152,11 @@ vax_option_override (void) if (TARGET_G_FLOAT) REAL_MODE_FORMAT (DFmode) = _g_format; + /* XXX For NetBSD, disable gas(1) directives for CFI tables. + Otherwise, wired relocations occur for readonly section + `.eh_frame', by which libc.so cannot link. */ + flag_dwarf2_cfi_asm = 0; + #ifdef SUBTARGET_OVERRIDE_OPTIONS SUBTARGET_OVERRIDE_OPTIONS; #endif
CVS commit: src/external/gpl3/gcc/dist/gcc/config/vax
Module Name:src Committed By: rin Date: Thu Aug 17 02:55:25 UTC 2023 Modified Files: src/external/gpl3/gcc/dist/gcc/config/vax: netbsd-elf.h Log Message: gcc/vax: Restore NetBSD-specific extra specs, lost during merge To generate a diff of this commit: cvs rdiff -u -r1.11 -r1.12 \ src/external/gpl3/gcc/dist/gcc/config/vax/netbsd-elf.h Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. Modified files: Index: src/external/gpl3/gcc/dist/gcc/config/vax/netbsd-elf.h diff -u src/external/gpl3/gcc/dist/gcc/config/vax/netbsd-elf.h:1.11 src/external/gpl3/gcc/dist/gcc/config/vax/netbsd-elf.h:1.12 --- src/external/gpl3/gcc/dist/gcc/config/vax/netbsd-elf.h:1.11 Thu Aug 3 01:36:54 2023 +++ src/external/gpl3/gcc/dist/gcc/config/vax/netbsd-elf.h Thu Aug 17 02:55:25 2023 @@ -45,8 +45,9 @@ along with GCC; see the file COPYING3. #undef LINK_SPEC #define LINK_SPEC NETBSD_LINK_SPEC_ELF -#define EXTRA_SPECS\ - { "netbsd_entry_point", NETBSD_ENTRY_POINT }, +#undef EXTRA_SPECS +#define EXTRA_SPECS NETBSD_SUBTARGET_EXTRA_SPECS +#undef SUBTARGET_EXTRA_SPECS #undef INTPTR_TYPE #define INTPTR_TYPE "long int"
CVS commit: src/external/gpl3/gcc/dist/gcc/config/vax
Module Name:src Committed By: rin Date: Thu Aug 17 02:55:25 UTC 2023 Modified Files: src/external/gpl3/gcc/dist/gcc/config/vax: netbsd-elf.h Log Message: gcc/vax: Restore NetBSD-specific extra specs, lost during merge To generate a diff of this commit: cvs rdiff -u -r1.11 -r1.12 \ src/external/gpl3/gcc/dist/gcc/config/vax/netbsd-elf.h Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
CVS commit: src/external/gpl3/gcc/dist/libsanitizer/lsan
Module Name:src Committed By: mrg Date: Fri Aug 11 06:25:17 UTC 2023 Modified Files: src/external/gpl3/gcc/dist/libsanitizer/lsan: lsan_allocator.h Log Message: make this more like the old lsan_allocator.h change. adds sh3 and vax build support. To generate a diff of this commit: cvs rdiff -u -r1.9 -r1.10 \ src/external/gpl3/gcc/dist/libsanitizer/lsan/lsan_allocator.h Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
CVS commit: src/external/gpl3/gcc/dist/libsanitizer/lsan
Module Name:src Committed By: mrg Date: Fri Aug 11 06:25:17 UTC 2023 Modified Files: src/external/gpl3/gcc/dist/libsanitizer/lsan: lsan_allocator.h Log Message: make this more like the old lsan_allocator.h change. adds sh3 and vax build support. To generate a diff of this commit: cvs rdiff -u -r1.9 -r1.10 \ src/external/gpl3/gcc/dist/libsanitizer/lsan/lsan_allocator.h Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. Modified files: Index: src/external/gpl3/gcc/dist/libsanitizer/lsan/lsan_allocator.h diff -u src/external/gpl3/gcc/dist/libsanitizer/lsan/lsan_allocator.h:1.9 src/external/gpl3/gcc/dist/libsanitizer/lsan/lsan_allocator.h:1.10 --- src/external/gpl3/gcc/dist/libsanitizer/lsan/lsan_allocator.h:1.9 Fri Aug 4 19:25:06 2023 +++ src/external/gpl3/gcc/dist/libsanitizer/lsan/lsan_allocator.h Fri Aug 11 06:25:17 2023 @@ -51,10 +51,14 @@ struct ChunkMetadata { #if defined(__mips64) || defined(__aarch64__) || defined(__i386__) || \ defined(__arm__) || SANITIZER_RISCV64 || defined(__hexagon__) || \ -((defined(__hppa__) || defined(__sparc__)) && !defined(_LP64)) || \ -defined(__mips_o32) || defined(__mips_n32) || defined(__m68k__) || \ -(defined(__riscv__) && !defined(_LP64)) || \ -(defined(__powerpc__) && !defined(__powerpc64__)) +((defined(__sparc__) || \ + defined(__powerpc__) || \ + defined(__m68k__) || \ + defined(__hppa__) || \ + defined(__sh3__) || \ + defined(__vax__) || \ + defined(__riscv) || \ + defined(__mips__)) && !defined(_LP64)) template struct AP32 { static const uptr kSpaceBeg = 0; @@ -70,8 +74,8 @@ template using PrimaryAllocatorASVT = SizeClassAllocator32>; using PrimaryAllocator = PrimaryAllocatorASVT; #elif defined(__x86_64__) || defined(__powerpc64__) || defined(__s390x__) || \ - defined(__alpha__) || defined(__sparc64__) || defined(__ia64__) || \ - defined(__powerpc64__) || (defined(__riscv__) && !defined(_LP64)) + defined(__sparc64__) || defined(__ia64__) || defined(__alpha__) || \ + defined(__mips64) || defined(__riscv) # if SANITIZER_FUCHSIA const uptr kAllocatorSpace = ~(uptr)0; const uptr kAllocatorSize = 0x400ULL; // 4T.
CVS commit: src/external/gpl3/gcc/dist/libsanitizer/lsan
Module Name:src Committed By: mrg Date: Fri Aug 4 19:25:06 UTC 2023 Modified Files: src/external/gpl3/gcc/dist/libsanitizer/lsan: lsan_allocator.h Log Message: allow this to build on powerpc*. To generate a diff of this commit: cvs rdiff -u -r1.8 -r1.9 \ src/external/gpl3/gcc/dist/libsanitizer/lsan/lsan_allocator.h Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. Modified files: Index: src/external/gpl3/gcc/dist/libsanitizer/lsan/lsan_allocator.h diff -u src/external/gpl3/gcc/dist/libsanitizer/lsan/lsan_allocator.h:1.8 src/external/gpl3/gcc/dist/libsanitizer/lsan/lsan_allocator.h:1.9 --- src/external/gpl3/gcc/dist/libsanitizer/lsan/lsan_allocator.h:1.8 Fri Aug 4 07:40:04 2023 +++ src/external/gpl3/gcc/dist/libsanitizer/lsan/lsan_allocator.h Fri Aug 4 19:25:06 2023 @@ -53,7 +53,8 @@ struct ChunkMetadata { defined(__arm__) || SANITIZER_RISCV64 || defined(__hexagon__) || \ ((defined(__hppa__) || defined(__sparc__)) && !defined(_LP64)) || \ defined(__mips_o32) || defined(__mips_n32) || defined(__m68k__) || \ -(defined(__riscv__) && !defined(_LP64)) +(defined(__riscv__) && !defined(_LP64)) || \ +(defined(__powerpc__) && !defined(__powerpc64__)) template struct AP32 { static const uptr kSpaceBeg = 0; @@ -70,7 +71,7 @@ using PrimaryAllocatorASVT = SizeClassAl using PrimaryAllocator = PrimaryAllocatorASVT; #elif defined(__x86_64__) || defined(__powerpc64__) || defined(__s390x__) || \ defined(__alpha__) || defined(__sparc64__) || defined(__ia64__) || \ - (defined(__riscv__) && !defined(_LP64)) + defined(__powerpc64__) || (defined(__riscv__) && !defined(_LP64)) # if SANITIZER_FUCHSIA const uptr kAllocatorSpace = ~(uptr)0; const uptr kAllocatorSize = 0x400ULL; // 4T.
CVS commit: src/external/gpl3/gcc/dist/libsanitizer/lsan
Module Name:src Committed By: mrg Date: Fri Aug 4 19:25:06 UTC 2023 Modified Files: src/external/gpl3/gcc/dist/libsanitizer/lsan: lsan_allocator.h Log Message: allow this to build on powerpc*. To generate a diff of this commit: cvs rdiff -u -r1.8 -r1.9 \ src/external/gpl3/gcc/dist/libsanitizer/lsan/lsan_allocator.h Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
CVS commit: src/external/gpl3/gcc/dist/gcc/config/vax
Module Name:src Committed By: mrg Date: Tue Aug 1 06:05:14 UTC 2023 Modified Files: src/external/gpl3/gcc/dist/gcc/config/vax: vax.h Log Message: fix merge botch. To generate a diff of this commit: cvs rdiff -u -r1.13 -r1.14 src/external/gpl3/gcc/dist/gcc/config/vax/vax.h Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. Modified files: Index: src/external/gpl3/gcc/dist/gcc/config/vax/vax.h diff -u src/external/gpl3/gcc/dist/gcc/config/vax/vax.h:1.13 src/external/gpl3/gcc/dist/gcc/config/vax/vax.h:1.14 --- src/external/gpl3/gcc/dist/gcc/config/vax/vax.h:1.13 Sun Jul 30 05:51:30 2023 +++ src/external/gpl3/gcc/dist/gcc/config/vax/vax.h Tue Aug 1 06:05:13 2023 @@ -350,10 +350,6 @@ enum reg_class { NO_REGS, ALL_REGS, LIM_ RETURN_ADDRESS_OFFSET)) \ : (rtx) 0) -/* A C expression that is nonzero if X is a legitimate immediate operand - on the target machine when generating position independent code. */ - -#define LEGITIMATE_PIC_OPERAND_P(X) legitimate_pic_operand_p (X) /* Addressing modes, and classification of registers for them. */
CVS commit: src/external/gpl3/gcc/dist/gcc/config/vax
Module Name:src Committed By: mrg Date: Tue Aug 1 06:05:14 UTC 2023 Modified Files: src/external/gpl3/gcc/dist/gcc/config/vax: vax.h Log Message: fix merge botch. To generate a diff of this commit: cvs rdiff -u -r1.13 -r1.14 src/external/gpl3/gcc/dist/gcc/config/vax/vax.h Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
CVS commit: src/external/gpl3/gcc/dist/gcc
Module Name:src Committed By: mrg Date: Tue Aug 1 06:04:42 UTC 2023 Added Files: src/external/gpl3/gcc/dist/gcc: regsub.cc Removed Files: src/external/gpl3/gcc/dist/gcc: regsub.c Log Message: rename our local .c that is c++ to .cc like upstream has. To generate a diff of this commit: cvs rdiff -u -r1.4 -r0 src/external/gpl3/gcc/dist/gcc/regsub.c cvs rdiff -u -r0 -r1.1 src/external/gpl3/gcc/dist/gcc/regsub.cc Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. Added files: Index: src/external/gpl3/gcc/dist/gcc/regsub.cc diff -u /dev/null src/external/gpl3/gcc/dist/gcc/regsub.cc:1.1 --- /dev/null Tue Aug 1 06:04:42 2023 +++ src/external/gpl3/gcc/dist/gcc/regsub.cc Tue Aug 1 06:04:42 2023 @@ -0,0 +1,164 @@ +/* $NetBSD: regsub.cc,v 1.1 2023/08/01 06:04:42 mrg Exp $ */ + +/*- + * Copyright (c) 2015 The NetBSD Foundation, Inc. + * All rights reserved. + * + * This code is derived from software contributed to The NetBSD Foundation + * by Christos Zoulas. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions + * are met: + * 1. Redistributions of source code must retain the above copyright + *notice, this list of conditions and the following disclaimer. + * 2. Redistributions in binary form must reproduce the above copyright + *notice, this list of conditions and the following disclaimer in the + *documentation and/or other materials provided with the distribution. + * + * THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS + * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED + * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR + * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS + * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + * POSSIBILITY OF SUCH DAMAGE. + */ + +extern "C" { + +#include +#include +#include +#include +#include + +struct str { + char *s_ptr; + size_t s_max; + size_t s_len; + int s_fixed; +}; + +#define REINCR 64 + +static int +addspace(struct str *s, size_t len) +{ + void *v; + + if (s->s_max - s->s_len > len) + return 0; + + if (s->s_fixed) + return -1; + + s->s_max += len + REINCR; + + v = realloc(s->s_ptr, s->s_max); + if (v == NULL) + return -1; + s->s_ptr = (char *)v; + + return 0; +} + +static void +addchar(struct str *s, int c) +{ + if (addspace(s, 1) == -1) + s->s_len++; + else + s->s_ptr[s->s_len++] = c; + if (c == 0) { + --s->s_len; + s->s_ptr[s->s_max - 1] = c; + } +} + +static void +addnstr(struct str *s, const char *buf, size_t len) +{ + if (addspace(s, len) != -1) + memcpy(s->s_ptr + s->s_len, buf, len); + s->s_len += len; +} + +static int +initstr(struct str *s, char *buf, size_t len) +{ + s->s_max = len; + s->s_ptr = (char *)(buf == NULL ? malloc(len) : buf); + s->s_fixed = buf != NULL; + s->s_len = 0; + return s->s_ptr == NULL ? -1 : 0; +} + +static ssize_t +regsub1(char **buf, size_t len, const char *sub, +const regmatch_t *rm, const char *str) +{ +ssize_t i; +char c; + struct str s; + + if (initstr(, *buf, len) == -1) + return -1; + +while ((c = *sub++) != '\0') { + + switch (c) { + case '&': + i = 0; + break; + case '\\': + if (isdigit((unsigned char)*sub)) +i = *sub++ - '0'; + else +i = -1; + break; + default: + i = -1; + break; + } + +if (i == -1) { +if (c == '\\' && (*sub == '\\' || *sub == '&')) +c = *sub++; + addchar(, c); +} else if (rm[i].rm_so != -1 && rm[i].rm_eo != -1) { +size_t l = (size_t)(rm[i].rm_eo - rm[i].rm_so); + addnstr(, str + rm[i].rm_so, l); +} +} + + addchar(, '\0'); + if (!s.s_fixed) { + if (s.s_len >= s.s_max) { + free(s.s_ptr); + return -1; + } + *buf = s.s_ptr; + } + return s.s_len; +} + +ssize_t +regnsub(char *buf, size_t len, const char *sub, const regmatch_t *rm, +const char *str) +{ + return regsub1(, len, sub, rm, str); +} + +ssize_t +regasub(char **buf, const char *sub, const regmatch_t *rm, const char *str) +{ + *buf = NULL; + return regsub1(buf, REINCR, sub, rm, str); +} + +}
CVS commit: src/external/gpl3/gcc/dist/gcc
Module Name:src Committed By: mrg Date: Tue Aug 1 06:04:42 UTC 2023 Added Files: src/external/gpl3/gcc/dist/gcc: regsub.cc Removed Files: src/external/gpl3/gcc/dist/gcc: regsub.c Log Message: rename our local .c that is c++ to .cc like upstream has. To generate a diff of this commit: cvs rdiff -u -r1.4 -r0 src/external/gpl3/gcc/dist/gcc/regsub.c cvs rdiff -u -r0 -r1.1 src/external/gpl3/gcc/dist/gcc/regsub.cc Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
CVS commit: src/external/gpl3/gcc/dist/libgomp
Module Name:src Committed By: mrg Date: Mon Jul 31 01:46:59 UTC 2023 Modified Files: src/external/gpl3/gcc/dist/libgomp: fortran.c Log Message: add missing void to function prototype (not C++ here.) To generate a diff of this commit: cvs rdiff -u -r1.1.1.12 -r1.2 src/external/gpl3/gcc/dist/libgomp/fortran.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
CVS commit: src/external/gpl3/gcc/dist/gcc/config
Module Name:src Committed By: mrg Date: Mon Jul 31 01:46:32 UTC 2023 Modified Files: src/external/gpl3/gcc/dist/gcc/config: netbsd.h Log Message: compiler include dir is gcc-12 here. To generate a diff of this commit: cvs rdiff -u -r1.39 -r1.40 src/external/gpl3/gcc/dist/gcc/config/netbsd.h Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
CVS commit: src/external/gpl3/gcc/dist/libgomp
Module Name:src Committed By: mrg Date: Mon Jul 31 01:46:59 UTC 2023 Modified Files: src/external/gpl3/gcc/dist/libgomp: fortran.c Log Message: add missing void to function prototype (not C++ here.) To generate a diff of this commit: cvs rdiff -u -r1.1.1.12 -r1.2 src/external/gpl3/gcc/dist/libgomp/fortran.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. Modified files: Index: src/external/gpl3/gcc/dist/libgomp/fortran.c diff -u src/external/gpl3/gcc/dist/libgomp/fortran.c:1.1.1.12 src/external/gpl3/gcc/dist/libgomp/fortran.c:1.2 --- src/external/gpl3/gcc/dist/libgomp/fortran.c:1.1.1.12 Sun Jul 30 05:21:15 2023 +++ src/external/gpl3/gcc/dist/libgomp/fortran.c Mon Jul 31 01:46:58 2023 @@ -781,7 +781,7 @@ omp_set_default_allocator_ (const intptr } intptr_t -omp_get_default_allocator_ () +omp_get_default_allocator_ (void) { return (intptr_t) omp_get_default_allocator (); }
CVS commit: src/external/gpl3/gcc/dist/gcc/config
Module Name:src Committed By: mrg Date: Mon Jul 31 01:46:32 UTC 2023 Modified Files: src/external/gpl3/gcc/dist/gcc/config: netbsd.h Log Message: compiler include dir is gcc-12 here. To generate a diff of this commit: cvs rdiff -u -r1.39 -r1.40 src/external/gpl3/gcc/dist/gcc/config/netbsd.h Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. Modified files: Index: src/external/gpl3/gcc/dist/gcc/config/netbsd.h diff -u src/external/gpl3/gcc/dist/gcc/config/netbsd.h:1.39 src/external/gpl3/gcc/dist/gcc/config/netbsd.h:1.40 --- src/external/gpl3/gcc/dist/gcc/config/netbsd.h:1.39 Sun Jul 30 05:51:22 2023 +++ src/external/gpl3/gcc/dist/gcc/config/netbsd.h Mon Jul 31 01:46:31 2023 @@ -63,7 +63,7 @@ along with GCC; see the file COPYING3. * XXX figure out a better way to do this */ #undef GCC_INCLUDE_DIR -#define GCC_INCLUDE_DIR "/usr/include/gcc-10" +#define GCC_INCLUDE_DIR "/usr/include/gcc-12" /* Under NetBSD, the normal location of the various *crt*.o files is the /usr/lib directory. */
CVS commit: src/external/gpl3/gcc/dist/libstdc++-v3/include
Module Name:src Committed By: mrg Date: Mon Jul 31 01:46:04 UTC 2023 Modified Files: src/external/gpl3/gcc/dist/libstdc++-v3/include/bits: uniform_int_dist.h src/external/gpl3/gcc/dist/libstdc++-v3/include/ext: numeric_traits.h Log Message: catch up two places with our local s/__is_signed/__is_signed_val/ change. To generate a diff of this commit: cvs rdiff -u -r1.1.1.10 -r1.2 \ src/external/gpl3/gcc/dist/libstdc++-v3/include/bits/uniform_int_dist.h cvs rdiff -u -r1.11 -r1.12 \ src/external/gpl3/gcc/dist/libstdc++-v3/include/ext/numeric_traits.h Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
CVS commit: src/external/gpl3/gcc/dist/libstdc++-v3/include
Module Name:src Committed By: mrg Date: Mon Jul 31 01:46:04 UTC 2023 Modified Files: src/external/gpl3/gcc/dist/libstdc++-v3/include/bits: uniform_int_dist.h src/external/gpl3/gcc/dist/libstdc++-v3/include/ext: numeric_traits.h Log Message: catch up two places with our local s/__is_signed/__is_signed_val/ change. To generate a diff of this commit: cvs rdiff -u -r1.1.1.10 -r1.2 \ src/external/gpl3/gcc/dist/libstdc++-v3/include/bits/uniform_int_dist.h cvs rdiff -u -r1.11 -r1.12 \ src/external/gpl3/gcc/dist/libstdc++-v3/include/ext/numeric_traits.h Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. Modified files: Index: src/external/gpl3/gcc/dist/libstdc++-v3/include/bits/uniform_int_dist.h diff -u src/external/gpl3/gcc/dist/libstdc++-v3/include/bits/uniform_int_dist.h:1.1.1.10 src/external/gpl3/gcc/dist/libstdc++-v3/include/bits/uniform_int_dist.h:1.2 --- src/external/gpl3/gcc/dist/libstdc++-v3/include/bits/uniform_int_dist.h:1.1.1.10 Sun Jul 30 05:21:19 2023 +++ src/external/gpl3/gcc/dist/libstdc++-v3/include/bits/uniform_int_dist.h Mon Jul 31 01:46:04 2023 @@ -247,8 +247,8 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION { using _Up_traits = __gnu_cxx::__int_traits<_Up>; using _Wp_traits = __gnu_cxx::__int_traits<_Wp>; - static_assert(!_Up_traits::__is_signed, "U must be unsigned"); - static_assert(!_Wp_traits::__is_signed, "W must be unsigned"); + static_assert(!_Up_traits::__is_signed_val, "U must be unsigned"); + static_assert(!_Wp_traits::__is_signed_val, "W must be unsigned"); static_assert(_Wp_traits::__digits == (2 * _Up_traits::__digits), "W must be twice as wide as U"); Index: src/external/gpl3/gcc/dist/libstdc++-v3/include/ext/numeric_traits.h diff -u src/external/gpl3/gcc/dist/libstdc++-v3/include/ext/numeric_traits.h:1.11 src/external/gpl3/gcc/dist/libstdc++-v3/include/ext/numeric_traits.h:1.12 --- src/external/gpl3/gcc/dist/libstdc++-v3/include/ext/numeric_traits.h:1.11 Sun Jul 30 05:51:44 2023 +++ src/external/gpl3/gcc/dist/libstdc++-v3/include/ext/numeric_traits.h Mon Jul 31 01:46:04 2023 @@ -210,7 +210,7 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION struct __numeric_traits_floating<__ibm128> { static const int __max_digits10 = 33; - static const bool __is_signed = true; + static const bool __is_signed_val = true; static const int __digits10 = 31; static const int __max_exponent10 = 308; }; @@ -224,7 +224,7 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION struct __numeric_traits_floating<__ieee128> { static const int __max_digits10 = 36; - static const bool __is_signed = true; + static const bool __is_signed_val = true; static const int __digits10 = 33; static const int __max_exponent10 = 4932; };
CVS commit: src/external/gpl3/gcc/dist/libsanitizer
Module Name:src Committed By: mrg Date: Mon Jul 31 01:44:58 UTC 2023 Modified Files: src/external/gpl3/gcc/dist/libsanitizer: configure.ac merge.sh src/external/gpl3/gcc/dist/libsanitizer/asan: asan_activation.h asan_activation_flags.inc asan_allocator.h asan_descriptions.h asan_errors.h asan_fake_stack.h asan_flags.h asan_flags.inc asan_init_version.h asan_interceptors_memintrinsics.h asan_interface.inc asan_interface_internal.h asan_mapping_sparc64.h asan_premap_shadow.h asan_report.h asan_scariness_score.h asan_stats.h asan_suppressions.h src/external/gpl3/gcc/dist/libsanitizer/builtins: assembly.h src/external/gpl3/gcc/dist/libsanitizer/include/sanitizer: allocator_interface.h coverage_interface.h linux_syscall_hooks.h lsan_interface.h msan_interface.h scudo_interface.h src/external/gpl3/gcc/dist/libsanitizer/interception: Makefile.am interception_linux.h interception_mac.h interception_win.h src/external/gpl3/gcc/dist/libsanitizer/lsan: libtool-version lsan.h lsan_flags.inc src/external/gpl3/gcc/dist/libsanitizer/sanitizer_common: sancov_flags.h sancov_flags.inc sanitizer_addrhashmap.h sanitizer_allocator_checks.h sanitizer_allocator_interface.h sanitizer_allocator_internal.h sanitizer_allocator_local_cache.h sanitizer_allocator_primary32.h sanitizer_allocator_report.h sanitizer_allocator_size_class_map.h sanitizer_allocator_stats.h sanitizer_atomic.h sanitizer_atomic_clang.h sanitizer_atomic_clang_mips.h sanitizer_atomic_clang_other.h sanitizer_atomic_clang_x86.h sanitizer_atomic_msvc.h sanitizer_bitvector.h sanitizer_bvgraph.h sanitizer_common_interceptors_format.inc sanitizer_common_interceptors_ioctl.inc sanitizer_common_interceptors_netbsd_compat.inc sanitizer_common_interface.inc sanitizer_common_interface_posix.inc sanitizer_coverage_interface.inc sanitizer_dbghelp.h sanitizer_deadlock_detector.h sanitizer_deadlock_detector_interface.h sanitizer_errno.h sanitizer_errno_codes.h sanitizer_file.h sanitizer_flags.h sanitizer_flags.inc sanitizer_freebsd.h sanitizer_fuchsia.h sanitizer_interface_internal.h sanitizer_lfstack.h sanitizer_libc.h sanitizer_libignore.h sanitizer_list.h sanitizer_malloc_mac.inc sanitizer_persistent_allocator.h sanitizer_placement_new.h sanitizer_platform_limits_netbsd.h sanitizer_platform_limits_solaris.h sanitizer_quarantine.h sanitizer_report_decorator.h sanitizer_ring_buffer.h sanitizer_signal_interceptors.inc sanitizer_stackdepot.h sanitizer_stackdepotbase.h sanitizer_stacktrace.h sanitizer_stacktrace_printer.h sanitizer_stoptheworld.h sanitizer_suppressions.h sanitizer_symbolizer.h sanitizer_symbolizer_fuchsia.h sanitizer_symbolizer_libbacktrace.h sanitizer_symbolizer_mac.h sanitizer_syscall_generic.inc sanitizer_syscall_linux_aarch64.inc sanitizer_syscall_linux_arm.inc sanitizer_syscall_linux_x86_64.inc sanitizer_tls_get_addr.h sanitizer_vector.h sanitizer_win.h sanitizer_win_defs.h sanitizer_win_dll_thunk.h sanitizer_win_weak_interception.h src/external/gpl3/gcc/dist/libsanitizer/tsan: libtool-version tsan_clock.h tsan_defs.h tsan_dense_alloc.h tsan_fd.h tsan_flags.h tsan_ignoreset.h tsan_interface_ann.h tsan_interface_java.h tsan_mutexset.h tsan_report.h tsan_rtl_aarch64.S tsan_rtl_amd64.S tsan_rtl_ppc64.S tsan_stack_trace.h tsan_suppressions.h tsan_symbolize.h tsan_sync.h tsan_trace.h src/external/gpl3/gcc/dist/libsanitizer/ubsan: Makefile.am libtool-version ubsan_diag.h ubsan_flags.h ubsan_flags.inc ubsan_handlers_cxx.h ubsan_init.h ubsan_interface.inc ubsan_monitor.h ubsan_platform.h ubsan_signals_standalone.h ubsan_type_hash.h ubsan_value.h Added Files: src/external/gpl3/gcc/dist/libsanitizer/asan: asan_activation.cpp asan_allocator.cpp asan_debugging.cpp asan_descriptions.cpp asan_errors.cpp asan_fake_stack.cpp asan_flags.cpp asan_fuchsia.cpp asan_globals.cpp asan_globals_win.cpp asan_interceptors.cpp asan_interceptors_memintrinsics.cpp asan_linux.cpp asan_mac.cpp asan_malloc_linux.cpp asan_malloc_mac.cpp asan_malloc_win.cpp asan_memory_profile.cpp asan_new_delete.cpp asan_poisoning.cpp asan_posix.cpp asan_preinit.cpp asan_premap_shadow.cpp asan_report.cpp asan_rtl.cpp asan_shadow_setup.cpp asan_stack.cpp asan_stats.cpp
CVS commit: src/external/gpl3/gcc/dist/libsanitizer
Module Name:src Committed By: mrg Date: Mon Jul 31 01:44:58 UTC 2023 Modified Files: src/external/gpl3/gcc/dist/libsanitizer: configure.ac merge.sh src/external/gpl3/gcc/dist/libsanitizer/asan: asan_activation.h asan_activation_flags.inc asan_allocator.h asan_descriptions.h asan_errors.h asan_fake_stack.h asan_flags.h asan_flags.inc asan_init_version.h asan_interceptors_memintrinsics.h asan_interface.inc asan_interface_internal.h asan_mapping_sparc64.h asan_premap_shadow.h asan_report.h asan_scariness_score.h asan_stats.h asan_suppressions.h src/external/gpl3/gcc/dist/libsanitizer/builtins: assembly.h src/external/gpl3/gcc/dist/libsanitizer/include/sanitizer: allocator_interface.h coverage_interface.h linux_syscall_hooks.h lsan_interface.h msan_interface.h scudo_interface.h src/external/gpl3/gcc/dist/libsanitizer/interception: Makefile.am interception_linux.h interception_mac.h interception_win.h src/external/gpl3/gcc/dist/libsanitizer/lsan: libtool-version lsan.h lsan_flags.inc src/external/gpl3/gcc/dist/libsanitizer/sanitizer_common: sancov_flags.h sancov_flags.inc sanitizer_addrhashmap.h sanitizer_allocator_checks.h sanitizer_allocator_interface.h sanitizer_allocator_internal.h sanitizer_allocator_local_cache.h sanitizer_allocator_primary32.h sanitizer_allocator_report.h sanitizer_allocator_size_class_map.h sanitizer_allocator_stats.h sanitizer_atomic.h sanitizer_atomic_clang.h sanitizer_atomic_clang_mips.h sanitizer_atomic_clang_other.h sanitizer_atomic_clang_x86.h sanitizer_atomic_msvc.h sanitizer_bitvector.h sanitizer_bvgraph.h sanitizer_common_interceptors_format.inc sanitizer_common_interceptors_ioctl.inc sanitizer_common_interceptors_netbsd_compat.inc sanitizer_common_interface.inc sanitizer_common_interface_posix.inc sanitizer_coverage_interface.inc sanitizer_dbghelp.h sanitizer_deadlock_detector.h sanitizer_deadlock_detector_interface.h sanitizer_errno.h sanitizer_errno_codes.h sanitizer_file.h sanitizer_flags.h sanitizer_flags.inc sanitizer_freebsd.h sanitizer_fuchsia.h sanitizer_interface_internal.h sanitizer_lfstack.h sanitizer_libc.h sanitizer_libignore.h sanitizer_list.h sanitizer_malloc_mac.inc sanitizer_persistent_allocator.h sanitizer_placement_new.h sanitizer_platform_limits_netbsd.h sanitizer_platform_limits_solaris.h sanitizer_quarantine.h sanitizer_report_decorator.h sanitizer_ring_buffer.h sanitizer_signal_interceptors.inc sanitizer_stackdepot.h sanitizer_stackdepotbase.h sanitizer_stacktrace.h sanitizer_stacktrace_printer.h sanitizer_stoptheworld.h sanitizer_suppressions.h sanitizer_symbolizer.h sanitizer_symbolizer_fuchsia.h sanitizer_symbolizer_libbacktrace.h sanitizer_symbolizer_mac.h sanitizer_syscall_generic.inc sanitizer_syscall_linux_aarch64.inc sanitizer_syscall_linux_arm.inc sanitizer_syscall_linux_x86_64.inc sanitizer_tls_get_addr.h sanitizer_vector.h sanitizer_win.h sanitizer_win_defs.h sanitizer_win_dll_thunk.h sanitizer_win_weak_interception.h src/external/gpl3/gcc/dist/libsanitizer/tsan: libtool-version tsan_clock.h tsan_defs.h tsan_dense_alloc.h tsan_fd.h tsan_flags.h tsan_ignoreset.h tsan_interface_ann.h tsan_interface_java.h tsan_mutexset.h tsan_report.h tsan_rtl_aarch64.S tsan_rtl_amd64.S tsan_rtl_ppc64.S tsan_stack_trace.h tsan_suppressions.h tsan_symbolize.h tsan_sync.h tsan_trace.h src/external/gpl3/gcc/dist/libsanitizer/ubsan: Makefile.am libtool-version ubsan_diag.h ubsan_flags.h ubsan_flags.inc ubsan_handlers_cxx.h ubsan_init.h ubsan_interface.inc ubsan_monitor.h ubsan_platform.h ubsan_signals_standalone.h ubsan_type_hash.h ubsan_value.h Added Files: src/external/gpl3/gcc/dist/libsanitizer/asan: asan_activation.cpp asan_allocator.cpp asan_debugging.cpp asan_descriptions.cpp asan_errors.cpp asan_fake_stack.cpp asan_flags.cpp asan_fuchsia.cpp asan_globals.cpp asan_globals_win.cpp asan_interceptors.cpp asan_interceptors_memintrinsics.cpp asan_linux.cpp asan_mac.cpp asan_malloc_linux.cpp asan_malloc_mac.cpp asan_malloc_win.cpp asan_memory_profile.cpp asan_new_delete.cpp asan_poisoning.cpp asan_posix.cpp asan_preinit.cpp asan_premap_shadow.cpp asan_report.cpp asan_rtl.cpp asan_shadow_setup.cpp asan_stack.cpp asan_stats.cpp
CVS commit: src/external/gpl3/gcc/dist/libiberty
Module Name:src Committed By: mrg Date: Sun Jul 30 06:24:25 UTC 2023 Modified Files: src/external/gpl3/gcc/dist/libiberty: make-temp-file.c Log Message: fix merge botch. To generate a diff of this commit: cvs rdiff -u -r1.8 -r1.9 \ src/external/gpl3/gcc/dist/libiberty/make-temp-file.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. Modified files: Index: src/external/gpl3/gcc/dist/libiberty/make-temp-file.c diff -u src/external/gpl3/gcc/dist/libiberty/make-temp-file.c:1.8 src/external/gpl3/gcc/dist/libiberty/make-temp-file.c:1.9 --- src/external/gpl3/gcc/dist/libiberty/make-temp-file.c:1.8 Sun Jul 30 05:51:39 2023 +++ src/external/gpl3/gcc/dist/libiberty/make-temp-file.c Sun Jul 30 06:24:25 2023 @@ -143,7 +143,7 @@ choose_tmpdir (void) /* Try /tmp, then /var/tmp. */ base = try_dir (tmp, base); - base = try_dir (usrtmp, base); + base = try_dir (vartmp, base); /* If all else fails, use the current directory! */ if (base == 0)
CVS commit: src/external/gpl3/gcc/dist/libiberty
Module Name:src Committed By: mrg Date: Sun Jul 30 06:24:25 UTC 2023 Modified Files: src/external/gpl3/gcc/dist/libiberty: make-temp-file.c Log Message: fix merge botch. To generate a diff of this commit: cvs rdiff -u -r1.8 -r1.9 \ src/external/gpl3/gcc/dist/libiberty/make-temp-file.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
CVS commit: src/external/gpl3/gcc/dist
Module Name:src Committed By: mrg Date: Sun Jul 30 06:15:17 UTC 2023 Modified Files: src/external/gpl3/gcc/dist/gcc: cfgexpand.cc cppbuiltin.cc cppdefault.cc dse.cc expr.cc file-prefix-map.cc gcc.cc genemit.cc genrecog.cc ggc-common.cc ipa-inline.cc opts-global.cc opts.cc reload.cc targhooks.cc tree-cfg.cc tree-ssa-ccp.cc src/external/gpl3/gcc/dist/gcc/c-family: c-cppbuiltin.cc c-format.cc c-opts.cc src/external/gpl3/gcc/dist/gcc/common/config/aarch64: aarch64-common.cc src/external/gpl3/gcc/dist/gcc/common/config/arm: arm-common.cc src/external/gpl3/gcc/dist/gcc/config: host-darwin.cc src/external/gpl3/gcc/dist/gcc/config/aarch64: aarch64-builtins.cc driver-aarch64.cc src/external/gpl3/gcc/dist/gcc/config/i386: i386.h netbsd-elf.h netbsd64.h src/external/gpl3/gcc/dist/gcc/config/mips: mips.cc src/external/gpl3/gcc/dist/gcc/config/pa: pa.cc src/external/gpl3/gcc/dist/gcc/config/rs6000: rs6000-logue.cc rs6000.cc src/external/gpl3/gcc/dist/libcpp: files.cc lex.cc macro.cc Log Message: GCC 12.3.0: merge our old changes into the renamed .cc files. To generate a diff of this commit: cvs rdiff -u -r1.1.1.1 -r1.2 src/external/gpl3/gcc/dist/gcc/cfgexpand.cc \ src/external/gpl3/gcc/dist/gcc/cppbuiltin.cc \ src/external/gpl3/gcc/dist/gcc/cppdefault.cc \ src/external/gpl3/gcc/dist/gcc/dse.cc \ src/external/gpl3/gcc/dist/gcc/expr.cc \ src/external/gpl3/gcc/dist/gcc/file-prefix-map.cc \ src/external/gpl3/gcc/dist/gcc/gcc.cc \ src/external/gpl3/gcc/dist/gcc/genemit.cc \ src/external/gpl3/gcc/dist/gcc/genrecog.cc \ src/external/gpl3/gcc/dist/gcc/ggc-common.cc \ src/external/gpl3/gcc/dist/gcc/ipa-inline.cc \ src/external/gpl3/gcc/dist/gcc/opts-global.cc \ src/external/gpl3/gcc/dist/gcc/opts.cc \ src/external/gpl3/gcc/dist/gcc/reload.cc \ src/external/gpl3/gcc/dist/gcc/targhooks.cc \ src/external/gpl3/gcc/dist/gcc/tree-cfg.cc \ src/external/gpl3/gcc/dist/gcc/tree-ssa-ccp.cc cvs rdiff -u -r1.1.1.1 -r1.2 \ src/external/gpl3/gcc/dist/gcc/c-family/c-cppbuiltin.cc \ src/external/gpl3/gcc/dist/gcc/c-family/c-format.cc \ src/external/gpl3/gcc/dist/gcc/c-family/c-opts.cc cvs rdiff -u -r1.1.1.1 -r1.2 \ src/external/gpl3/gcc/dist/gcc/common/config/aarch64/aarch64-common.cc cvs rdiff -u -r1.1.1.1 -r1.2 \ src/external/gpl3/gcc/dist/gcc/common/config/arm/arm-common.cc cvs rdiff -u -r1.1.1.1 -r1.2 \ src/external/gpl3/gcc/dist/gcc/config/host-darwin.cc cvs rdiff -u -r1.1.1.1 -r1.2 \ src/external/gpl3/gcc/dist/gcc/config/aarch64/aarch64-builtins.cc \ src/external/gpl3/gcc/dist/gcc/config/aarch64/driver-aarch64.cc cvs rdiff -u -r1.16 -r1.17 src/external/gpl3/gcc/dist/gcc/config/i386/i386.h \ src/external/gpl3/gcc/dist/gcc/config/i386/netbsd-elf.h \ src/external/gpl3/gcc/dist/gcc/config/i386/netbsd64.h cvs rdiff -u -r1.1.1.1 -r1.2 \ src/external/gpl3/gcc/dist/gcc/config/mips/mips.cc cvs rdiff -u -r1.1.1.1 -r1.2 src/external/gpl3/gcc/dist/gcc/config/pa/pa.cc cvs rdiff -u -r1.1.1.1 -r1.2 \ src/external/gpl3/gcc/dist/gcc/config/rs6000/rs6000-logue.cc \ src/external/gpl3/gcc/dist/gcc/config/rs6000/rs6000.cc cvs rdiff -u -r1.1.1.1 -r1.2 src/external/gpl3/gcc/dist/libcpp/files.cc \ src/external/gpl3/gcc/dist/libcpp/lex.cc \ src/external/gpl3/gcc/dist/libcpp/macro.cc Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. Modified files: Index: src/external/gpl3/gcc/dist/gcc/cfgexpand.cc diff -u src/external/gpl3/gcc/dist/gcc/cfgexpand.cc:1.1.1.1 src/external/gpl3/gcc/dist/gcc/cfgexpand.cc:1.2 --- src/external/gpl3/gcc/dist/gcc/cfgexpand.cc:1.1.1.1 Sun Jul 30 05:20:50 2023 +++ src/external/gpl3/gcc/dist/gcc/cfgexpand.cc Sun Jul 30 06:15:16 2023 @@ -1909,7 +1909,9 @@ stack_protect_classify_type (tree type) else len = tree_to_uhwi (TYPE_SIZE_UNIT (type)); - if (len < max) + if (len == 0) + ret = SPCT_HAS_ARRAY; + else if (len < max) ret = SPCT_HAS_SMALL_CHAR_ARRAY | SPCT_HAS_ARRAY; else ret = SPCT_HAS_LARGE_CHAR_ARRAY | SPCT_HAS_ARRAY; Index: src/external/gpl3/gcc/dist/gcc/cppbuiltin.cc diff -u src/external/gpl3/gcc/dist/gcc/cppbuiltin.cc:1.1.1.1 src/external/gpl3/gcc/dist/gcc/cppbuiltin.cc:1.2 --- src/external/gpl3/gcc/dist/gcc/cppbuiltin.cc:1.1.1.1 Sun Jul 30 05:20:45 2023 +++ src/external/gpl3/gcc/dist/gcc/cppbuiltin.cc Sun Jul 30 06:15:16 2023 @@ -96,6 +96,12 @@ define_builtin_macros_for_compilation_fl if (flag_sanitize & SANITIZE_HWADDRESS) cpp_define (pfile, "__SANITIZE_HWADDRESS__"); + if (flag_sanitize & SANITIZE_UNDEFINED) +cpp_define (pfile, "__SANITIZE_UNDEFINED__"); + + if (flag_sanitize & SANITIZE_LEAK) +cpp_define (pfile, "__SANITIZE_LEAK__"); + if (flag_sanitize & SANITIZE_THREAD) cpp_define (pfile,
CVS commit: src/external/gpl3/gcc/dist
Module Name:src Committed By: mrg Date: Sun Jul 30 06:15:17 UTC 2023 Modified Files: src/external/gpl3/gcc/dist/gcc: cfgexpand.cc cppbuiltin.cc cppdefault.cc dse.cc expr.cc file-prefix-map.cc gcc.cc genemit.cc genrecog.cc ggc-common.cc ipa-inline.cc opts-global.cc opts.cc reload.cc targhooks.cc tree-cfg.cc tree-ssa-ccp.cc src/external/gpl3/gcc/dist/gcc/c-family: c-cppbuiltin.cc c-format.cc c-opts.cc src/external/gpl3/gcc/dist/gcc/common/config/aarch64: aarch64-common.cc src/external/gpl3/gcc/dist/gcc/common/config/arm: arm-common.cc src/external/gpl3/gcc/dist/gcc/config: host-darwin.cc src/external/gpl3/gcc/dist/gcc/config/aarch64: aarch64-builtins.cc driver-aarch64.cc src/external/gpl3/gcc/dist/gcc/config/i386: i386.h netbsd-elf.h netbsd64.h src/external/gpl3/gcc/dist/gcc/config/mips: mips.cc src/external/gpl3/gcc/dist/gcc/config/pa: pa.cc src/external/gpl3/gcc/dist/gcc/config/rs6000: rs6000-logue.cc rs6000.cc src/external/gpl3/gcc/dist/libcpp: files.cc lex.cc macro.cc Log Message: GCC 12.3.0: merge our old changes into the renamed .cc files. To generate a diff of this commit: cvs rdiff -u -r1.1.1.1 -r1.2 src/external/gpl3/gcc/dist/gcc/cfgexpand.cc \ src/external/gpl3/gcc/dist/gcc/cppbuiltin.cc \ src/external/gpl3/gcc/dist/gcc/cppdefault.cc \ src/external/gpl3/gcc/dist/gcc/dse.cc \ src/external/gpl3/gcc/dist/gcc/expr.cc \ src/external/gpl3/gcc/dist/gcc/file-prefix-map.cc \ src/external/gpl3/gcc/dist/gcc/gcc.cc \ src/external/gpl3/gcc/dist/gcc/genemit.cc \ src/external/gpl3/gcc/dist/gcc/genrecog.cc \ src/external/gpl3/gcc/dist/gcc/ggc-common.cc \ src/external/gpl3/gcc/dist/gcc/ipa-inline.cc \ src/external/gpl3/gcc/dist/gcc/opts-global.cc \ src/external/gpl3/gcc/dist/gcc/opts.cc \ src/external/gpl3/gcc/dist/gcc/reload.cc \ src/external/gpl3/gcc/dist/gcc/targhooks.cc \ src/external/gpl3/gcc/dist/gcc/tree-cfg.cc \ src/external/gpl3/gcc/dist/gcc/tree-ssa-ccp.cc cvs rdiff -u -r1.1.1.1 -r1.2 \ src/external/gpl3/gcc/dist/gcc/c-family/c-cppbuiltin.cc \ src/external/gpl3/gcc/dist/gcc/c-family/c-format.cc \ src/external/gpl3/gcc/dist/gcc/c-family/c-opts.cc cvs rdiff -u -r1.1.1.1 -r1.2 \ src/external/gpl3/gcc/dist/gcc/common/config/aarch64/aarch64-common.cc cvs rdiff -u -r1.1.1.1 -r1.2 \ src/external/gpl3/gcc/dist/gcc/common/config/arm/arm-common.cc cvs rdiff -u -r1.1.1.1 -r1.2 \ src/external/gpl3/gcc/dist/gcc/config/host-darwin.cc cvs rdiff -u -r1.1.1.1 -r1.2 \ src/external/gpl3/gcc/dist/gcc/config/aarch64/aarch64-builtins.cc \ src/external/gpl3/gcc/dist/gcc/config/aarch64/driver-aarch64.cc cvs rdiff -u -r1.16 -r1.17 src/external/gpl3/gcc/dist/gcc/config/i386/i386.h \ src/external/gpl3/gcc/dist/gcc/config/i386/netbsd-elf.h \ src/external/gpl3/gcc/dist/gcc/config/i386/netbsd64.h cvs rdiff -u -r1.1.1.1 -r1.2 \ src/external/gpl3/gcc/dist/gcc/config/mips/mips.cc cvs rdiff -u -r1.1.1.1 -r1.2 src/external/gpl3/gcc/dist/gcc/config/pa/pa.cc cvs rdiff -u -r1.1.1.1 -r1.2 \ src/external/gpl3/gcc/dist/gcc/config/rs6000/rs6000-logue.cc \ src/external/gpl3/gcc/dist/gcc/config/rs6000/rs6000.cc cvs rdiff -u -r1.1.1.1 -r1.2 src/external/gpl3/gcc/dist/libcpp/files.cc \ src/external/gpl3/gcc/dist/libcpp/lex.cc \ src/external/gpl3/gcc/dist/libcpp/macro.cc Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
CVS commit: src/external/gpl3/gcc/dist
Module Name:src Committed By: mrg Date: Sun Jul 30 05:51:45 UTC 2023 Modified Files: src/external/gpl3/gcc/dist: LAST_UPDATED MD5SUMS NEWS config.guess config.sub configure configure.ac src/external/gpl3/gcc/dist/INSTALL: binaries.html build.html configure.html download.html finalinstall.html gfdl.html index.html prerequisites.html specific.html test.html src/external/gpl3/gcc/dist/fixincludes: configure src/external/gpl3/gcc/dist/gcc: ChangeLog Makefile.in common.opt config.gcc config.host configure configure.ac debug.h file-prefix-map.h gcc.h genmultilib graphite.h hwint.h output.h system.h target-def.h tree.h src/external/gpl3/gcc/dist/gcc/c: Make-lang.in src/external/gpl3/gcc/dist/gcc/c-family: c-format.h c.opt src/external/gpl3/gcc/dist/gcc/config: freebsd-spec.h netbsd-elf.h netbsd-stdint.h netbsd.h t-linux t-netbsd x-netbsd src/external/gpl3/gcc/dist/gcc/config/aarch64: aarch64-netbsd.h aarch64.h t-aarch64 t-aarch64-netbsd src/external/gpl3/gcc/dist/gcc/config/alpha: alpha.h elf.h netbsd.h t-alpha src/external/gpl3/gcc/dist/gcc/config/arc: arc-modes.def arc-protos.h arc.h arc.md arc.opt t-arc src/external/gpl3/gcc/dist/gcc/config/arm: arm.h arm.md bpabi.h elf.h freebsd.h netbsd-eabi.h netbsd-elf.h t-arm thumb2.md src/external/gpl3/gcc/dist/gcc/config/i386: constraints.md cpuid.h i386-opts.h i386-protos.h i386.h i386.md i386.opt netbsd-elf.h netbsd64.h pmm_malloc.h predicates.md t-djgpp src/external/gpl3/gcc/dist/gcc/config/m68k: constraints.md m68k.md netbsd-elf.h src/external/gpl3/gcc/dist/gcc/config/mips: netbsd.h t-mips src/external/gpl3/gcc/dist/gcc/config/or1k: constraints.md elf.h or1k-protos.h or1k.h or1k.md or1k.opt predicates.md t-or1k src/external/gpl3/gcc/dist/gcc/config/pa: pa-netbsd.h pa.h pa32-netbsd.h t-pa src/external/gpl3/gcc/dist/gcc/config/riscv: constraints.md elf.h generic.md linux.h peephole.md predicates.md riscv-ftypes.def riscv-modes.def riscv-protos.h riscv.h riscv.md riscv.opt sync.md src/external/gpl3/gcc/dist/gcc/config/rs6000: netbsd.h ppc-asm.h sysv4.h t-netbsd t-rs6000 vxworksae.h src/external/gpl3/gcc/dist/gcc/config/sh: netbsd-elf.h sh.md t-sh src/external/gpl3/gcc/dist/gcc/config/sparc: constraints.md netbsd-elf.h predicates.md sparc.md sync.md src/external/gpl3/gcc/dist/gcc/config/vax: builtins.md constraints.md elf.h netbsd-elf.h predicates.md vax-protos.h vax.h vax.md src/external/gpl3/gcc/dist/gcc/cp: Make-lang.in cfns.gperf cfns.h src/external/gpl3/gcc/dist/gcc/doc: cpp.1 cpp.info cpp.texi cppenv.texi cppinternals.info cppopts.texi extend.texi fsf-funding.7 g++.1 gcc.1 gcc.info gccinstall.info gccint.info gcov-tool.1 gcov.1 gcov.texi gfdl.7 gfortran.1 gpl.7 invoke.texi src/external/gpl3/gcc/dist/gcc/ginclude: stddef.h unwind-arm-common.h src/external/gpl3/gcc/dist/gcc/objc: Make-lang.in src/external/gpl3/gcc/dist/gcc/objcp: Make-lang.in src/external/gpl3/gcc/dist/include: ansidecl.h objalloc.h src/external/gpl3/gcc/dist/intl: configure src/external/gpl3/gcc/dist/libbacktrace: configure src/external/gpl3/gcc/dist/libcpp: Makefile.in configure configure.ac internal.h src/external/gpl3/gcc/dist/libcpp/include: cpplib.h src/external/gpl3/gcc/dist/libdecnumber: configure src/external/gpl3/gcc/dist/libgcc: Makefile.in config.host configure emutls.c gthr-posix.h unwind-compat.c unwind-dw2-fde-dip.c unwind-dw2-fde.c unwind-dw2.c unwind-generic.h unwind-seh.c unwind-sjlj.c src/external/gpl3/gcc/dist/libgcc/config/alpha: qrnnd.S src/external/gpl3/gcc/dist/libgcc/config/arm: pr-support.c src/external/gpl3/gcc/dist/libgcc/config/c6x: pr-support.c src/external/gpl3/gcc/dist/libgcc/config/cr16: unwind-cr16.c src/external/gpl3/gcc/dist/libgcc/config/i386: morestack.S src/external/gpl3/gcc/dist/libgcc/config/ia64: unwind-ia64.c src/external/gpl3/gcc/dist/libgcc/config/m68k: lb1sf68.S src/external/gpl3/gcc/dist/libgcc/config/or1k: linux-unwind.h sfp-machine.h t-or1k src/external/gpl3/gcc/dist/libgcc/config/riscv: t-elf src/external/gpl3/gcc/dist/libgcc/config/xtensa: unwind-dw2-xtensa.c src/external/gpl3/gcc/dist/libgomp: Makefile.am Makefile.in acc_prof.h configure configure.ac libgomp.info src/external/gpl3/gcc/dist/libiberty: Makefile.in configure configure.ac cp-demangle.c floatformat.c make-temp-file.c objalloc.c sha1.c
CVS commit: src/external/gpl3/gcc/dist
Module Name:src Committed By: mrg Date: Sun Jul 30 05:51:45 UTC 2023 Modified Files: src/external/gpl3/gcc/dist: LAST_UPDATED MD5SUMS NEWS config.guess config.sub configure configure.ac src/external/gpl3/gcc/dist/INSTALL: binaries.html build.html configure.html download.html finalinstall.html gfdl.html index.html prerequisites.html specific.html test.html src/external/gpl3/gcc/dist/fixincludes: configure src/external/gpl3/gcc/dist/gcc: ChangeLog Makefile.in common.opt config.gcc config.host configure configure.ac debug.h file-prefix-map.h gcc.h genmultilib graphite.h hwint.h output.h system.h target-def.h tree.h src/external/gpl3/gcc/dist/gcc/c: Make-lang.in src/external/gpl3/gcc/dist/gcc/c-family: c-format.h c.opt src/external/gpl3/gcc/dist/gcc/config: freebsd-spec.h netbsd-elf.h netbsd-stdint.h netbsd.h t-linux t-netbsd x-netbsd src/external/gpl3/gcc/dist/gcc/config/aarch64: aarch64-netbsd.h aarch64.h t-aarch64 t-aarch64-netbsd src/external/gpl3/gcc/dist/gcc/config/alpha: alpha.h elf.h netbsd.h t-alpha src/external/gpl3/gcc/dist/gcc/config/arc: arc-modes.def arc-protos.h arc.h arc.md arc.opt t-arc src/external/gpl3/gcc/dist/gcc/config/arm: arm.h arm.md bpabi.h elf.h freebsd.h netbsd-eabi.h netbsd-elf.h t-arm thumb2.md src/external/gpl3/gcc/dist/gcc/config/i386: constraints.md cpuid.h i386-opts.h i386-protos.h i386.h i386.md i386.opt netbsd-elf.h netbsd64.h pmm_malloc.h predicates.md t-djgpp src/external/gpl3/gcc/dist/gcc/config/m68k: constraints.md m68k.md netbsd-elf.h src/external/gpl3/gcc/dist/gcc/config/mips: netbsd.h t-mips src/external/gpl3/gcc/dist/gcc/config/or1k: constraints.md elf.h or1k-protos.h or1k.h or1k.md or1k.opt predicates.md t-or1k src/external/gpl3/gcc/dist/gcc/config/pa: pa-netbsd.h pa.h pa32-netbsd.h t-pa src/external/gpl3/gcc/dist/gcc/config/riscv: constraints.md elf.h generic.md linux.h peephole.md predicates.md riscv-ftypes.def riscv-modes.def riscv-protos.h riscv.h riscv.md riscv.opt sync.md src/external/gpl3/gcc/dist/gcc/config/rs6000: netbsd.h ppc-asm.h sysv4.h t-netbsd t-rs6000 vxworksae.h src/external/gpl3/gcc/dist/gcc/config/sh: netbsd-elf.h sh.md t-sh src/external/gpl3/gcc/dist/gcc/config/sparc: constraints.md netbsd-elf.h predicates.md sparc.md sync.md src/external/gpl3/gcc/dist/gcc/config/vax: builtins.md constraints.md elf.h netbsd-elf.h predicates.md vax-protos.h vax.h vax.md src/external/gpl3/gcc/dist/gcc/cp: Make-lang.in cfns.gperf cfns.h src/external/gpl3/gcc/dist/gcc/doc: cpp.1 cpp.info cpp.texi cppenv.texi cppinternals.info cppopts.texi extend.texi fsf-funding.7 g++.1 gcc.1 gcc.info gccinstall.info gccint.info gcov-tool.1 gcov.1 gcov.texi gfdl.7 gfortran.1 gpl.7 invoke.texi src/external/gpl3/gcc/dist/gcc/ginclude: stddef.h unwind-arm-common.h src/external/gpl3/gcc/dist/gcc/objc: Make-lang.in src/external/gpl3/gcc/dist/gcc/objcp: Make-lang.in src/external/gpl3/gcc/dist/include: ansidecl.h objalloc.h src/external/gpl3/gcc/dist/intl: configure src/external/gpl3/gcc/dist/libbacktrace: configure src/external/gpl3/gcc/dist/libcpp: Makefile.in configure configure.ac internal.h src/external/gpl3/gcc/dist/libcpp/include: cpplib.h src/external/gpl3/gcc/dist/libdecnumber: configure src/external/gpl3/gcc/dist/libgcc: Makefile.in config.host configure emutls.c gthr-posix.h unwind-compat.c unwind-dw2-fde-dip.c unwind-dw2-fde.c unwind-dw2.c unwind-generic.h unwind-seh.c unwind-sjlj.c src/external/gpl3/gcc/dist/libgcc/config/alpha: qrnnd.S src/external/gpl3/gcc/dist/libgcc/config/arm: pr-support.c src/external/gpl3/gcc/dist/libgcc/config/c6x: pr-support.c src/external/gpl3/gcc/dist/libgcc/config/cr16: unwind-cr16.c src/external/gpl3/gcc/dist/libgcc/config/i386: morestack.S src/external/gpl3/gcc/dist/libgcc/config/ia64: unwind-ia64.c src/external/gpl3/gcc/dist/libgcc/config/m68k: lb1sf68.S src/external/gpl3/gcc/dist/libgcc/config/or1k: linux-unwind.h sfp-machine.h t-or1k src/external/gpl3/gcc/dist/libgcc/config/riscv: t-elf src/external/gpl3/gcc/dist/libgcc/config/xtensa: unwind-dw2-xtensa.c src/external/gpl3/gcc/dist/libgomp: Makefile.am Makefile.in acc_prof.h configure configure.ac libgomp.info src/external/gpl3/gcc/dist/libiberty: Makefile.in configure configure.ac cp-demangle.c floatformat.c make-temp-file.c objalloc.c sha1.c
CVS commit: src/external/gpl3/gcc/dist/gcc/config/sh
Module Name:src Committed By: rin Date: Tue Jul 18 02:50:18 UTC 2023 Modified Files: src/external/gpl3/gcc/dist/gcc/config/sh: sh.md Log Message: gcc: Fix peephole optimization bug for sh3 (PR port-sh3/56311) Cherry-picked from upstream: https://gcc.gnu.org/git/gitweb.cgi?p=gcc.git;h=4dbb3af1efe55174a714d15c2994cf2842ef8c28 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101469 Now, the PR confirmed fixed. No regression observed for full ATF run on landisk (compared with GCC built with this peephole optimization being removed by hand). We thank Oleg Endo, the author of the upstream commit. Also thanks hgutch@ and uwe@ for analysis. To generate a diff of this commit: cvs rdiff -u -r1.2 -r1.3 src/external/gpl3/gcc/dist/gcc/config/sh/sh.md Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. Modified files: Index: src/external/gpl3/gcc/dist/gcc/config/sh/sh.md diff -u src/external/gpl3/gcc/dist/gcc/config/sh/sh.md:1.2 src/external/gpl3/gcc/dist/gcc/config/sh/sh.md:1.3 --- src/external/gpl3/gcc/dist/gcc/config/sh/sh.md:1.2 Mon Jul 5 10:34:25 2021 +++ src/external/gpl3/gcc/dist/gcc/config/sh/sh.md Tue Jul 18 02:50:18 2023 @@ -10681,6 +10681,45 @@ && peep2_reg_dead_p (2, operands[1]) && peep2_reg_dead_p (3, operands[0])" [(const_int 0)] { + if (MEM_P (operands[3]) && reg_overlap_mentioned_p (operands[0], operands[3])) +{ + // Take care when the eliminated operand[0] register is part of + // the destination memory address. + rtx addr = XEXP (operands[3], 0); + + if (REG_P (addr)) + operands[3] = replace_equiv_address (operands[3], operands[1]); + + else if (GET_CODE (addr) == PLUS && REG_P (XEXP (addr, 0)) + && CONST_INT_P (XEXP (addr, 1)) + && REGNO (operands[0]) == REGNO (XEXP (addr, 0))) + operands[3] = replace_equiv_address (operands[3], + gen_rtx_PLUS (SImode, operands[1], XEXP (addr, 1))); + + else if (GET_CODE (addr) == PLUS && REG_P (XEXP (addr, 0)) + && REG_P (XEXP (addr, 1))) +{ + // register + register address @(R0, Rn) + // can change only the Rn in the address, not R0. + if (REGNO (operands[0]) == REGNO (XEXP (addr, 0)) + && REGNO (XEXP (addr, 0)) != 0) + { + operands[3] = replace_equiv_address (operands[3], + gen_rtx_PLUS (SImode, operands[1], XEXP (addr, 1))); + } + else if (REGNO (operands[0]) == REGNO (XEXP (addr, 1)) + && REGNO (XEXP (addr, 1)) != 0) +{ + operands[3] = replace_equiv_address (operands[3], + gen_rtx_PLUS (SImode, XEXP (addr, 0), operands[1])); +} + else +FAIL; +} + else +FAIL; +} + emit_insn (gen_addsi3 (operands[1], operands[1], operands[2])); sh_peephole_emit_move_insn (operands[3], operands[1]); })
CVS commit: src/external/gpl3/gcc/dist/gcc/config/sh
Module Name:src Committed By: rin Date: Tue Jul 18 02:50:18 UTC 2023 Modified Files: src/external/gpl3/gcc/dist/gcc/config/sh: sh.md Log Message: gcc: Fix peephole optimization bug for sh3 (PR port-sh3/56311) Cherry-picked from upstream: https://gcc.gnu.org/git/gitweb.cgi?p=gcc.git;h=4dbb3af1efe55174a714d15c2994cf2842ef8c28 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101469 Now, the PR confirmed fixed. No regression observed for full ATF run on landisk (compared with GCC built with this peephole optimization being removed by hand). We thank Oleg Endo, the author of the upstream commit. Also thanks hgutch@ and uwe@ for analysis. To generate a diff of this commit: cvs rdiff -u -r1.2 -r1.3 src/external/gpl3/gcc/dist/gcc/config/sh/sh.md Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
CVS commit: src/external/gpl3/gcc/dist
Module Name:src Committed By: mrg Date: Tue Jul 11 00:40:43 UTC 2023 Modified Files: src/external/gpl3/gcc/dist: LAST_UPDATED MD5SUMS NEWS src/external/gpl3/gcc/dist/INSTALL: binaries.html build.html configure.html download.html finalinstall.html gfdl.html index.html old.html prerequisites.html specific.html test.html src/external/gpl3/gcc/dist/gcc: ChangeLog builtins.c config.gcc expr.c gcc.c ira-color.c tree-ssa-ccp.c tree.c tree.h varasm.c src/external/gpl3/gcc/dist/gcc/config/aarch64: aarch64.h driver-aarch64.c src/external/gpl3/gcc/dist/gcc/config/rs6000: rs6000-logue.c rs6000.c src/external/gpl3/gcc/dist/gcc/cp: decl.c src/external/gpl3/gcc/dist/gcc/doc: cpp.1 cpp.info cppinternals.info cppopts.texi extend.texi fsf-funding.7 g++.1 gcc.1 gcc.info gccinstall.info gccint.info gcov-tool.1 gcov.1 gfdl.7 gfortran.1 gpl.7 invoke.texi src/external/gpl3/gcc/dist/libgcc: config.host src/external/gpl3/gcc/dist/libgomp: libgomp.info src/external/gpl3/gcc/dist/libsanitizer: ChangeLog configure.tgt Log Message: merge GCC 10.5.0. To generate a diff of this commit: cvs rdiff -u -r1.17 -r1.18 src/external/gpl3/gcc/dist/LAST_UPDATED \ src/external/gpl3/gcc/dist/MD5SUMS cvs rdiff -u -r1.15 -r1.16 src/external/gpl3/gcc/dist/NEWS cvs rdiff -u -r1.12 -r1.13 src/external/gpl3/gcc/dist/INSTALL/binaries.html \ src/external/gpl3/gcc/dist/INSTALL/finalinstall.html \ src/external/gpl3/gcc/dist/INSTALL/gfdl.html \ src/external/gpl3/gcc/dist/INSTALL/index.html \ src/external/gpl3/gcc/dist/INSTALL/old.html \ src/external/gpl3/gcc/dist/INSTALL/test.html cvs rdiff -u -r1.14 -r1.15 src/external/gpl3/gcc/dist/INSTALL/build.html \ src/external/gpl3/gcc/dist/INSTALL/configure.html \ src/external/gpl3/gcc/dist/INSTALL/prerequisites.html cvs rdiff -u -r1.13 -r1.14 src/external/gpl3/gcc/dist/INSTALL/download.html \ src/external/gpl3/gcc/dist/INSTALL/specific.html cvs rdiff -u -r1.23 -r1.24 src/external/gpl3/gcc/dist/gcc/ChangeLog cvs rdiff -u -r1.19 -r1.20 src/external/gpl3/gcc/dist/gcc/builtins.c cvs rdiff -u -r1.71 -r1.72 src/external/gpl3/gcc/dist/gcc/config.gcc cvs rdiff -u -r1.18 -r1.19 src/external/gpl3/gcc/dist/gcc/expr.c cvs rdiff -u -r1.24 -r1.25 src/external/gpl3/gcc/dist/gcc/gcc.c cvs rdiff -u -r1.9 -r1.10 src/external/gpl3/gcc/dist/gcc/ira-color.c cvs rdiff -u -r1.15 -r1.16 src/external/gpl3/gcc/dist/gcc/tree-ssa-ccp.c cvs rdiff -u -r1.4 -r1.5 src/external/gpl3/gcc/dist/gcc/tree.c \ src/external/gpl3/gcc/dist/gcc/tree.h cvs rdiff -u -r1.13 -r1.14 src/external/gpl3/gcc/dist/gcc/varasm.c cvs rdiff -u -r1.3 -r1.4 \ src/external/gpl3/gcc/dist/gcc/config/aarch64/aarch64.h cvs rdiff -u -r1.13 -r1.14 \ src/external/gpl3/gcc/dist/gcc/config/aarch64/driver-aarch64.c cvs rdiff -u -r1.3 -r1.4 \ src/external/gpl3/gcc/dist/gcc/config/rs6000/rs6000-logue.c cvs rdiff -u -r1.31 -r1.32 \ src/external/gpl3/gcc/dist/gcc/config/rs6000/rs6000.c cvs rdiff -u -r1.9 -r1.10 src/external/gpl3/gcc/dist/gcc/cp/decl.c cvs rdiff -u -r1.16 -r1.17 src/external/gpl3/gcc/dist/gcc/doc/cpp.1 \ src/external/gpl3/gcc/dist/gcc/doc/gccint.info \ src/external/gpl3/gcc/dist/gcc/doc/gcov.1 cvs rdiff -u -r1.15 -r1.16 src/external/gpl3/gcc/dist/gcc/doc/cpp.info \ src/external/gpl3/gcc/dist/gcc/doc/gcc.info cvs rdiff -u -r1.17 -r1.18 \ src/external/gpl3/gcc/dist/gcc/doc/cppinternals.info \ src/external/gpl3/gcc/dist/gcc/doc/g++.1 \ src/external/gpl3/gcc/dist/gcc/doc/gcc.1 \ src/external/gpl3/gcc/dist/gcc/doc/gccinstall.info cvs rdiff -u -r1.9 -r1.10 src/external/gpl3/gcc/dist/gcc/doc/cppopts.texi \ src/external/gpl3/gcc/dist/gcc/doc/extend.texi cvs rdiff -u -r1.14 -r1.15 src/external/gpl3/gcc/dist/gcc/doc/fsf-funding.7 \ src/external/gpl3/gcc/dist/gcc/doc/gfdl.7 \ src/external/gpl3/gcc/dist/gcc/doc/gpl.7 cvs rdiff -u -r1.10 -r1.11 src/external/gpl3/gcc/dist/gcc/doc/gcov-tool.1 cvs rdiff -u -r1.13 -r1.14 src/external/gpl3/gcc/dist/gcc/doc/gfortran.1 cvs rdiff -u -r1.22 -r1.23 src/external/gpl3/gcc/dist/gcc/doc/invoke.texi cvs rdiff -u -r1.32 -r1.33 src/external/gpl3/gcc/dist/libgcc/config.host cvs rdiff -u -r1.14 -r1.15 src/external/gpl3/gcc/dist/libgomp/libgomp.info cvs rdiff -u -r1.3 -r1.4 src/external/gpl3/gcc/dist/libsanitizer/ChangeLog cvs rdiff -u -r1.9 -r1.10 \ src/external/gpl3/gcc/dist/libsanitizer/configure.tgt Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. diffs are larger than 1MB and have been omitted
CVS commit: src/external/gpl3/gcc/dist
Module Name:src Committed By: mrg Date: Tue Jul 11 00:40:43 UTC 2023 Modified Files: src/external/gpl3/gcc/dist: LAST_UPDATED MD5SUMS NEWS src/external/gpl3/gcc/dist/INSTALL: binaries.html build.html configure.html download.html finalinstall.html gfdl.html index.html old.html prerequisites.html specific.html test.html src/external/gpl3/gcc/dist/gcc: ChangeLog builtins.c config.gcc expr.c gcc.c ira-color.c tree-ssa-ccp.c tree.c tree.h varasm.c src/external/gpl3/gcc/dist/gcc/config/aarch64: aarch64.h driver-aarch64.c src/external/gpl3/gcc/dist/gcc/config/rs6000: rs6000-logue.c rs6000.c src/external/gpl3/gcc/dist/gcc/cp: decl.c src/external/gpl3/gcc/dist/gcc/doc: cpp.1 cpp.info cppinternals.info cppopts.texi extend.texi fsf-funding.7 g++.1 gcc.1 gcc.info gccinstall.info gccint.info gcov-tool.1 gcov.1 gfdl.7 gfortran.1 gpl.7 invoke.texi src/external/gpl3/gcc/dist/libgcc: config.host src/external/gpl3/gcc/dist/libgomp: libgomp.info src/external/gpl3/gcc/dist/libsanitizer: ChangeLog configure.tgt Log Message: merge GCC 10.5.0. To generate a diff of this commit: cvs rdiff -u -r1.17 -r1.18 src/external/gpl3/gcc/dist/LAST_UPDATED \ src/external/gpl3/gcc/dist/MD5SUMS cvs rdiff -u -r1.15 -r1.16 src/external/gpl3/gcc/dist/NEWS cvs rdiff -u -r1.12 -r1.13 src/external/gpl3/gcc/dist/INSTALL/binaries.html \ src/external/gpl3/gcc/dist/INSTALL/finalinstall.html \ src/external/gpl3/gcc/dist/INSTALL/gfdl.html \ src/external/gpl3/gcc/dist/INSTALL/index.html \ src/external/gpl3/gcc/dist/INSTALL/old.html \ src/external/gpl3/gcc/dist/INSTALL/test.html cvs rdiff -u -r1.14 -r1.15 src/external/gpl3/gcc/dist/INSTALL/build.html \ src/external/gpl3/gcc/dist/INSTALL/configure.html \ src/external/gpl3/gcc/dist/INSTALL/prerequisites.html cvs rdiff -u -r1.13 -r1.14 src/external/gpl3/gcc/dist/INSTALL/download.html \ src/external/gpl3/gcc/dist/INSTALL/specific.html cvs rdiff -u -r1.23 -r1.24 src/external/gpl3/gcc/dist/gcc/ChangeLog cvs rdiff -u -r1.19 -r1.20 src/external/gpl3/gcc/dist/gcc/builtins.c cvs rdiff -u -r1.71 -r1.72 src/external/gpl3/gcc/dist/gcc/config.gcc cvs rdiff -u -r1.18 -r1.19 src/external/gpl3/gcc/dist/gcc/expr.c cvs rdiff -u -r1.24 -r1.25 src/external/gpl3/gcc/dist/gcc/gcc.c cvs rdiff -u -r1.9 -r1.10 src/external/gpl3/gcc/dist/gcc/ira-color.c cvs rdiff -u -r1.15 -r1.16 src/external/gpl3/gcc/dist/gcc/tree-ssa-ccp.c cvs rdiff -u -r1.4 -r1.5 src/external/gpl3/gcc/dist/gcc/tree.c \ src/external/gpl3/gcc/dist/gcc/tree.h cvs rdiff -u -r1.13 -r1.14 src/external/gpl3/gcc/dist/gcc/varasm.c cvs rdiff -u -r1.3 -r1.4 \ src/external/gpl3/gcc/dist/gcc/config/aarch64/aarch64.h cvs rdiff -u -r1.13 -r1.14 \ src/external/gpl3/gcc/dist/gcc/config/aarch64/driver-aarch64.c cvs rdiff -u -r1.3 -r1.4 \ src/external/gpl3/gcc/dist/gcc/config/rs6000/rs6000-logue.c cvs rdiff -u -r1.31 -r1.32 \ src/external/gpl3/gcc/dist/gcc/config/rs6000/rs6000.c cvs rdiff -u -r1.9 -r1.10 src/external/gpl3/gcc/dist/gcc/cp/decl.c cvs rdiff -u -r1.16 -r1.17 src/external/gpl3/gcc/dist/gcc/doc/cpp.1 \ src/external/gpl3/gcc/dist/gcc/doc/gccint.info \ src/external/gpl3/gcc/dist/gcc/doc/gcov.1 cvs rdiff -u -r1.15 -r1.16 src/external/gpl3/gcc/dist/gcc/doc/cpp.info \ src/external/gpl3/gcc/dist/gcc/doc/gcc.info cvs rdiff -u -r1.17 -r1.18 \ src/external/gpl3/gcc/dist/gcc/doc/cppinternals.info \ src/external/gpl3/gcc/dist/gcc/doc/g++.1 \ src/external/gpl3/gcc/dist/gcc/doc/gcc.1 \ src/external/gpl3/gcc/dist/gcc/doc/gccinstall.info cvs rdiff -u -r1.9 -r1.10 src/external/gpl3/gcc/dist/gcc/doc/cppopts.texi \ src/external/gpl3/gcc/dist/gcc/doc/extend.texi cvs rdiff -u -r1.14 -r1.15 src/external/gpl3/gcc/dist/gcc/doc/fsf-funding.7 \ src/external/gpl3/gcc/dist/gcc/doc/gfdl.7 \ src/external/gpl3/gcc/dist/gcc/doc/gpl.7 cvs rdiff -u -r1.10 -r1.11 src/external/gpl3/gcc/dist/gcc/doc/gcov-tool.1 cvs rdiff -u -r1.13 -r1.14 src/external/gpl3/gcc/dist/gcc/doc/gfortran.1 cvs rdiff -u -r1.22 -r1.23 src/external/gpl3/gcc/dist/gcc/doc/invoke.texi cvs rdiff -u -r1.32 -r1.33 src/external/gpl3/gcc/dist/libgcc/config.host cvs rdiff -u -r1.14 -r1.15 src/external/gpl3/gcc/dist/libgomp/libgomp.info cvs rdiff -u -r1.3 -r1.4 src/external/gpl3/gcc/dist/libsanitizer/ChangeLog cvs rdiff -u -r1.9 -r1.10 \ src/external/gpl3/gcc/dist/libsanitizer/configure.tgt Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
CVS commit: src/external/gpl3/gcc/dist/libsanitizer/sanitizer_common
Module Name:src Committed By: hannken Date: Thu Apr 6 09:49:12 UTC 2023 Modified Files: src/external/gpl3/gcc/dist/libsanitizer/sanitizer_common: sanitizer_mutex.h Log Message: Fix StaticSpinMutex::CheckLocked() on sparc32. The lock gets set with atomic_exchange() -> __sync_lock_test_and_set() which sets the value to 255 instead of 1. Check for a taken lock with "!= 0" instead of "== 1". This should work on all architectures. Ok: Matthew Green To generate a diff of this commit: cvs rdiff -u -r1.2 -r1.3 \ src/external/gpl3/gcc/dist/libsanitizer/sanitizer_common/sanitizer_mutex.h Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. Modified files: Index: src/external/gpl3/gcc/dist/libsanitizer/sanitizer_common/sanitizer_mutex.h diff -u src/external/gpl3/gcc/dist/libsanitizer/sanitizer_common/sanitizer_mutex.h:1.2 src/external/gpl3/gcc/dist/libsanitizer/sanitizer_common/sanitizer_mutex.h:1.3 --- src/external/gpl3/gcc/dist/libsanitizer/sanitizer_common/sanitizer_mutex.h:1.2 Sun Apr 11 23:54:27 2021 +++ src/external/gpl3/gcc/dist/libsanitizer/sanitizer_common/sanitizer_mutex.h Thu Apr 6 09:49:12 2023 @@ -39,7 +39,7 @@ class StaticSpinMutex { } void CheckLocked() { -CHECK_EQ(atomic_load(_, memory_order_relaxed), 1); +CHECK_NE(atomic_load(_, memory_order_relaxed), 0); } private:
CVS commit: src/external/gpl3/gcc/dist/libsanitizer/sanitizer_common
Module Name:src Committed By: hannken Date: Thu Apr 6 09:49:12 UTC 2023 Modified Files: src/external/gpl3/gcc/dist/libsanitizer/sanitizer_common: sanitizer_mutex.h Log Message: Fix StaticSpinMutex::CheckLocked() on sparc32. The lock gets set with atomic_exchange() -> __sync_lock_test_and_set() which sets the value to 255 instead of 1. Check for a taken lock with "!= 0" instead of "== 1". This should work on all architectures. Ok: Matthew Green To generate a diff of this commit: cvs rdiff -u -r1.2 -r1.3 \ src/external/gpl3/gcc/dist/libsanitizer/sanitizer_common/sanitizer_mutex.h Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
CVS commit: src/external/gpl3/gcc/dist/gcc/config/aarch64
Module Name:src Committed By: mrg Date: Mon Feb 20 01:16:38 UTC 2023 Modified Files: src/external/gpl3/gcc/dist/gcc/config/aarch64: aarch64-netbsd.h Log Message: add author info to this file. To generate a diff of this commit: cvs rdiff -u -r1.6 -r1.7 \ src/external/gpl3/gcc/dist/gcc/config/aarch64/aarch64-netbsd.h Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
CVS commit: src/external/gpl3/gcc/dist/gcc/config/aarch64
Module Name:src Committed By: mrg Date: Mon Feb 20 01:16:38 UTC 2023 Modified Files: src/external/gpl3/gcc/dist/gcc/config/aarch64: aarch64-netbsd.h Log Message: add author info to this file. To generate a diff of this commit: cvs rdiff -u -r1.6 -r1.7 \ src/external/gpl3/gcc/dist/gcc/config/aarch64/aarch64-netbsd.h Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. Modified files: Index: src/external/gpl3/gcc/dist/gcc/config/aarch64/aarch64-netbsd.h diff -u src/external/gpl3/gcc/dist/gcc/config/aarch64/aarch64-netbsd.h:1.6 src/external/gpl3/gcc/dist/gcc/config/aarch64/aarch64-netbsd.h:1.7 --- src/external/gpl3/gcc/dist/gcc/config/aarch64/aarch64-netbsd.h:1.6 Tue Jul 13 06:56:24 2021 +++ src/external/gpl3/gcc/dist/gcc/config/aarch64/aarch64-netbsd.h Mon Feb 20 01:16:38 2023 @@ -1,5 +1,7 @@ /* Definitions for AArch64 running NetBSD Copyright (C) 2016-2020 Free Software Foundation, Inc. + Contributed by Matthew Green (m...@eterna.com.au) and Christos Zoulas + (chris...@netbsd.org.) This file is part of GCC.
CVS commit: src/external/gpl3/gcc/dist/libiberty
Module Name:src Committed By: christos Date: Sat Aug 27 08:30:04 UTC 2022 Modified Files: src/external/gpl3/gcc/dist/libiberty: floatformat.c Log Message: pass lint on vax (avoid zerodivide) To generate a diff of this commit: cvs rdiff -u -r1.9 -r1.10 src/external/gpl3/gcc/dist/libiberty/floatformat.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. Modified files: Index: src/external/gpl3/gcc/dist/libiberty/floatformat.c diff -u src/external/gpl3/gcc/dist/libiberty/floatformat.c:1.9 src/external/gpl3/gcc/dist/libiberty/floatformat.c:1.10 --- src/external/gpl3/gcc/dist/libiberty/floatformat.c:1.9 Sat Apr 10 20:02:20 2021 +++ src/external/gpl3/gcc/dist/libiberty/floatformat.c Sat Aug 27 04:30:04 2022 @@ -53,9 +53,14 @@ Foundation, Inc., 51 Franklin Street - F #ifdef DBL_QNAN #define NAN DBL_QNAN #else +#ifdef __lint__ +static double zero = 0.0; +#define NAN (0.0 / zero) +#else #define NAN (0.0 / 0.0) #endif #endif +#endif static int mant_bits_set (const struct floatformat *, const unsigned char *); static unsigned long get_field (const unsigned char *,
CVS commit: src/external/gpl3/gcc/dist/libiberty
Module Name:src Committed By: christos Date: Sat Aug 27 08:30:04 UTC 2022 Modified Files: src/external/gpl3/gcc/dist/libiberty: floatformat.c Log Message: pass lint on vax (avoid zerodivide) To generate a diff of this commit: cvs rdiff -u -r1.9 -r1.10 src/external/gpl3/gcc/dist/libiberty/floatformat.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
CVS commit: src/external/gpl3/gcc/dist/gcc/config/rs6000
Module Name:src Committed By: rin Date: Sun Jul 24 10:53:18 UTC 2022 Modified Files: src/external/gpl3/gcc/dist/gcc/config/rs6000: rs6000.c Log Message: Revert our local fix for GCC 10.3 introduced in rev. 1.25: http://cvsweb.netbsd.org/bsdweb.cgi/src/external/gpl3/gcc/dist/gcc/config/rs6000/rs6000.c#rev1.25 The problem has been fixed differently by upstream: - master: https://gcc.gnu.org/git/?p=gcc.git;a=commit;h=77eccbf39ed55297802bb66dff5f62507a7239e3 - gcc-10: https://gcc.gnu.org/git/?p=gcc.git;a=commit;h=6142d65f4f528067f31e86bb97c07a661f2d66e7 No regression observed for ATF on oea (sandpoint), booke (evbppc), and 405 (evbppc). The system boots successfully on 403 (evbppc). To generate a diff of this commit: cvs rdiff -u -r1.30 -r1.31 \ src/external/gpl3/gcc/dist/gcc/config/rs6000/rs6000.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
CVS commit: src/external/gpl3/gcc/dist/gcc/config/rs6000
Module Name:src Committed By: rin Date: Sun Jul 24 10:53:18 UTC 2022 Modified Files: src/external/gpl3/gcc/dist/gcc/config/rs6000: rs6000.c Log Message: Revert our local fix for GCC 10.3 introduced in rev. 1.25: http://cvsweb.netbsd.org/bsdweb.cgi/src/external/gpl3/gcc/dist/gcc/config/rs6000/rs6000.c#rev1.25 The problem has been fixed differently by upstream: - master: https://gcc.gnu.org/git/?p=gcc.git;a=commit;h=77eccbf39ed55297802bb66dff5f62507a7239e3 - gcc-10: https://gcc.gnu.org/git/?p=gcc.git;a=commit;h=6142d65f4f528067f31e86bb97c07a661f2d66e7 No regression observed for ATF on oea (sandpoint), booke (evbppc), and 405 (evbppc). The system boots successfully on 403 (evbppc). To generate a diff of this commit: cvs rdiff -u -r1.30 -r1.31 \ src/external/gpl3/gcc/dist/gcc/config/rs6000/rs6000.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. Modified files: Index: src/external/gpl3/gcc/dist/gcc/config/rs6000/rs6000.c diff -u src/external/gpl3/gcc/dist/gcc/config/rs6000/rs6000.c:1.30 src/external/gpl3/gcc/dist/gcc/config/rs6000/rs6000.c:1.31 --- src/external/gpl3/gcc/dist/gcc/config/rs6000/rs6000.c:1.30 Fri Jul 22 20:22:35 2022 +++ src/external/gpl3/gcc/dist/gcc/config/rs6000/rs6000.c Sun Jul 24 10:53:17 2022 @@ -5707,9 +5707,7 @@ rs6000_file_start (void) #ifdef USING_ELFOS_H rs6000_machine = rs6000_machine_from_flags (); - if (!(rs6000_default_cpu && rs6000_default_cpu[0]) - && !global_options_set.x_rs6000_cpu_index) -emit_asm_machine (); + emit_asm_machine (); #endif if (DEFAULT_ABI == ABI_ELFv2)
CVS commit: src/external/gpl3/gcc/dist
Module Name:src Committed By: mrg Date: Fri Jul 22 20:22:38 UTC 2022 Modified Files: src/external/gpl3/gcc/dist: LAST_UPDATED MD5SUMS NEWS configure configure.ac src/external/gpl3/gcc/dist/INSTALL: binaries.html build.html configure.html download.html finalinstall.html gfdl.html index.html old.html prerequisites.html specific.html test.html src/external/gpl3/gcc/dist/gcc: ChangeLog Makefile.in builtins.c cfgexpand.c config.gcc configure configure.ac dse.c dwarf2out.c expr.c fold-const.c gcc.c gimplify.c reload.c rtlanal.c tree-cfg.c tree.c tree.h var-tracking.c varasm.c src/external/gpl3/gcc/dist/gcc/c-family: c-opts.c src/external/gpl3/gcc/dist/gcc/common/config/arm: arm-common.c src/external/gpl3/gcc/dist/gcc/config/arm: arm.c arm.h arm.md src/external/gpl3/gcc/dist/gcc/config/i386: i386.c i386.md src/external/gpl3/gcc/dist/gcc/config/mips: mips.c src/external/gpl3/gcc/dist/gcc/config/riscv: riscv.opt src/external/gpl3/gcc/dist/gcc/config/rs6000: ppc-asm.h rs6000-logue.c rs6000.c src/external/gpl3/gcc/dist/gcc/config/sparc: sparc.md src/external/gpl3/gcc/dist/gcc/cp: decl.c except.c src/external/gpl3/gcc/dist/gcc/doc: cpp.1 cpp.info cpp.texi cppinternals.info extend.texi fsf-funding.7 g++.1 gcc.1 gcc.info gccinstall.info gccint.info gcov-tool.1 gcov.1 gfdl.7 gfortran.1 gpl.7 invoke.texi src/external/gpl3/gcc/dist/intl: configure src/external/gpl3/gcc/dist/libcpp: lex.c macro.c src/external/gpl3/gcc/dist/libgcc: config.host emutls.c src/external/gpl3/gcc/dist/libgomp: libgomp.info src/external/gpl3/gcc/dist/libiberty: configure configure.ac src/external/gpl3/gcc/dist/libsanitizer: ChangeLog src/external/gpl3/gcc/dist/libsanitizer/sanitizer_common: sanitizer_common_interceptors_ioctl.inc src/external/gpl3/gcc/dist/libstdc++-v3/include/bits: locale_facets_nonio.h stl_pair.h src/external/gpl3/gcc/dist/libstdc++-v3/include/ext: rope src/external/gpl3/gcc/dist/libstdc++-v3/include/std: complex mutex src/external/gpl3/gcc/dist/libstdc++-v3/libsupc++: exception_ptr.h nested_exception.h Removed Files: src/external/gpl3/gcc/dist: .gitattributes src/external/gpl3/gcc/dist/libgcc/config/i386: libgcc-darwin.10.4.ver libgcc-darwin.10.5.ver src/external/gpl3/gcc/dist/libgcc/config/rs6000: libgcc-darwin.10.4.ver libgcc-darwin.10.5.ver src/external/gpl3/gcc/dist/libgomp: .gitattributes Log Message: merge GCC 10.4.0. To generate a diff of this commit: cvs rdiff -u -r1.1.1.2 -r0 src/external/gpl3/gcc/dist/.gitattributes cvs rdiff -u -r1.16 -r1.17 src/external/gpl3/gcc/dist/LAST_UPDATED \ src/external/gpl3/gcc/dist/MD5SUMS src/external/gpl3/gcc/dist/configure cvs rdiff -u -r1.14 -r1.15 src/external/gpl3/gcc/dist/NEWS cvs rdiff -u -r1.15 -r1.16 src/external/gpl3/gcc/dist/configure.ac cvs rdiff -u -r1.11 -r1.12 src/external/gpl3/gcc/dist/INSTALL/binaries.html \ src/external/gpl3/gcc/dist/INSTALL/finalinstall.html \ src/external/gpl3/gcc/dist/INSTALL/gfdl.html \ src/external/gpl3/gcc/dist/INSTALL/index.html \ src/external/gpl3/gcc/dist/INSTALL/old.html \ src/external/gpl3/gcc/dist/INSTALL/test.html cvs rdiff -u -r1.13 -r1.14 src/external/gpl3/gcc/dist/INSTALL/build.html \ src/external/gpl3/gcc/dist/INSTALL/configure.html \ src/external/gpl3/gcc/dist/INSTALL/prerequisites.html cvs rdiff -u -r1.12 -r1.13 src/external/gpl3/gcc/dist/INSTALL/download.html \ src/external/gpl3/gcc/dist/INSTALL/specific.html cvs rdiff -u -r1.22 -r1.23 src/external/gpl3/gcc/dist/gcc/ChangeLog cvs rdiff -u -r1.23 -r1.24 src/external/gpl3/gcc/dist/gcc/Makefile.in \ src/external/gpl3/gcc/dist/gcc/configure \ src/external/gpl3/gcc/dist/gcc/gcc.c cvs rdiff -u -r1.18 -r1.19 src/external/gpl3/gcc/dist/gcc/builtins.c cvs rdiff -u -r1.14 -r1.15 src/external/gpl3/gcc/dist/gcc/cfgexpand.c \ src/external/gpl3/gcc/dist/gcc/dse.c cvs rdiff -u -r1.70 -r1.71 src/external/gpl3/gcc/dist/gcc/config.gcc cvs rdiff -u -r1.21 -r1.22 src/external/gpl3/gcc/dist/gcc/configure.ac cvs rdiff -u -r1.15 -r1.16 src/external/gpl3/gcc/dist/gcc/dwarf2out.c \ src/external/gpl3/gcc/dist/gcc/tree-cfg.c cvs rdiff -u -r1.17 -r1.18 src/external/gpl3/gcc/dist/gcc/expr.c cvs rdiff -u -r1.3 -r1.4 src/external/gpl3/gcc/dist/gcc/fold-const.c \ src/external/gpl3/gcc/dist/gcc/tree.c \ src/external/gpl3/gcc/dist/gcc/tree.h cvs rdiff -u -r1.4 -r1.5 src/external/gpl3/gcc/dist/gcc/gimplify.c cvs rdiff -u -r1.11 -r1.12 src/external/gpl3/gcc/dist/gcc/reload.c \ src/external/gpl3/gcc/dist/gcc/rtlanal.c cvs rdiff -u -r1.8 -r1.9 src/external/gpl3/gcc/dist/gcc/var-tracking.c cvs rdiff -u -r1.12 -r1.13
CVS commit: src/external/gpl3/gcc/dist
Module Name:src Committed By: mrg Date: Fri Jul 22 20:22:38 UTC 2022 Modified Files: src/external/gpl3/gcc/dist: LAST_UPDATED MD5SUMS NEWS configure configure.ac src/external/gpl3/gcc/dist/INSTALL: binaries.html build.html configure.html download.html finalinstall.html gfdl.html index.html old.html prerequisites.html specific.html test.html src/external/gpl3/gcc/dist/gcc: ChangeLog Makefile.in builtins.c cfgexpand.c config.gcc configure configure.ac dse.c dwarf2out.c expr.c fold-const.c gcc.c gimplify.c reload.c rtlanal.c tree-cfg.c tree.c tree.h var-tracking.c varasm.c src/external/gpl3/gcc/dist/gcc/c-family: c-opts.c src/external/gpl3/gcc/dist/gcc/common/config/arm: arm-common.c src/external/gpl3/gcc/dist/gcc/config/arm: arm.c arm.h arm.md src/external/gpl3/gcc/dist/gcc/config/i386: i386.c i386.md src/external/gpl3/gcc/dist/gcc/config/mips: mips.c src/external/gpl3/gcc/dist/gcc/config/riscv: riscv.opt src/external/gpl3/gcc/dist/gcc/config/rs6000: ppc-asm.h rs6000-logue.c rs6000.c src/external/gpl3/gcc/dist/gcc/config/sparc: sparc.md src/external/gpl3/gcc/dist/gcc/cp: decl.c except.c src/external/gpl3/gcc/dist/gcc/doc: cpp.1 cpp.info cpp.texi cppinternals.info extend.texi fsf-funding.7 g++.1 gcc.1 gcc.info gccinstall.info gccint.info gcov-tool.1 gcov.1 gfdl.7 gfortran.1 gpl.7 invoke.texi src/external/gpl3/gcc/dist/intl: configure src/external/gpl3/gcc/dist/libcpp: lex.c macro.c src/external/gpl3/gcc/dist/libgcc: config.host emutls.c src/external/gpl3/gcc/dist/libgomp: libgomp.info src/external/gpl3/gcc/dist/libiberty: configure configure.ac src/external/gpl3/gcc/dist/libsanitizer: ChangeLog src/external/gpl3/gcc/dist/libsanitizer/sanitizer_common: sanitizer_common_interceptors_ioctl.inc src/external/gpl3/gcc/dist/libstdc++-v3/include/bits: locale_facets_nonio.h stl_pair.h src/external/gpl3/gcc/dist/libstdc++-v3/include/ext: rope src/external/gpl3/gcc/dist/libstdc++-v3/include/std: complex mutex src/external/gpl3/gcc/dist/libstdc++-v3/libsupc++: exception_ptr.h nested_exception.h Removed Files: src/external/gpl3/gcc/dist: .gitattributes src/external/gpl3/gcc/dist/libgcc/config/i386: libgcc-darwin.10.4.ver libgcc-darwin.10.5.ver src/external/gpl3/gcc/dist/libgcc/config/rs6000: libgcc-darwin.10.4.ver libgcc-darwin.10.5.ver src/external/gpl3/gcc/dist/libgomp: .gitattributes Log Message: merge GCC 10.4.0. To generate a diff of this commit: cvs rdiff -u -r1.1.1.2 -r0 src/external/gpl3/gcc/dist/.gitattributes cvs rdiff -u -r1.16 -r1.17 src/external/gpl3/gcc/dist/LAST_UPDATED \ src/external/gpl3/gcc/dist/MD5SUMS src/external/gpl3/gcc/dist/configure cvs rdiff -u -r1.14 -r1.15 src/external/gpl3/gcc/dist/NEWS cvs rdiff -u -r1.15 -r1.16 src/external/gpl3/gcc/dist/configure.ac cvs rdiff -u -r1.11 -r1.12 src/external/gpl3/gcc/dist/INSTALL/binaries.html \ src/external/gpl3/gcc/dist/INSTALL/finalinstall.html \ src/external/gpl3/gcc/dist/INSTALL/gfdl.html \ src/external/gpl3/gcc/dist/INSTALL/index.html \ src/external/gpl3/gcc/dist/INSTALL/old.html \ src/external/gpl3/gcc/dist/INSTALL/test.html cvs rdiff -u -r1.13 -r1.14 src/external/gpl3/gcc/dist/INSTALL/build.html \ src/external/gpl3/gcc/dist/INSTALL/configure.html \ src/external/gpl3/gcc/dist/INSTALL/prerequisites.html cvs rdiff -u -r1.12 -r1.13 src/external/gpl3/gcc/dist/INSTALL/download.html \ src/external/gpl3/gcc/dist/INSTALL/specific.html cvs rdiff -u -r1.22 -r1.23 src/external/gpl3/gcc/dist/gcc/ChangeLog cvs rdiff -u -r1.23 -r1.24 src/external/gpl3/gcc/dist/gcc/Makefile.in \ src/external/gpl3/gcc/dist/gcc/configure \ src/external/gpl3/gcc/dist/gcc/gcc.c cvs rdiff -u -r1.18 -r1.19 src/external/gpl3/gcc/dist/gcc/builtins.c cvs rdiff -u -r1.14 -r1.15 src/external/gpl3/gcc/dist/gcc/cfgexpand.c \ src/external/gpl3/gcc/dist/gcc/dse.c cvs rdiff -u -r1.70 -r1.71 src/external/gpl3/gcc/dist/gcc/config.gcc cvs rdiff -u -r1.21 -r1.22 src/external/gpl3/gcc/dist/gcc/configure.ac cvs rdiff -u -r1.15 -r1.16 src/external/gpl3/gcc/dist/gcc/dwarf2out.c \ src/external/gpl3/gcc/dist/gcc/tree-cfg.c cvs rdiff -u -r1.17 -r1.18 src/external/gpl3/gcc/dist/gcc/expr.c cvs rdiff -u -r1.3 -r1.4 src/external/gpl3/gcc/dist/gcc/fold-const.c \ src/external/gpl3/gcc/dist/gcc/tree.c \ src/external/gpl3/gcc/dist/gcc/tree.h cvs rdiff -u -r1.4 -r1.5 src/external/gpl3/gcc/dist/gcc/gimplify.c cvs rdiff -u -r1.11 -r1.12 src/external/gpl3/gcc/dist/gcc/reload.c \ src/external/gpl3/gcc/dist/gcc/rtlanal.c cvs rdiff -u -r1.8 -r1.9 src/external/gpl3/gcc/dist/gcc/var-tracking.c cvs rdiff -u -r1.12 -r1.13
CVS commit: src/external/gpl3/gcc/dist/libiberty
Module Name:src Committed By: christos Date: Wed Dec 15 13:29:14 UTC 2021 Modified Files: src/external/gpl3/gcc/dist/libiberty: cp-demangle.c Log Message: fix lint To generate a diff of this commit: cvs rdiff -u -r1.1.1.12 -r1.2 \ src/external/gpl3/gcc/dist/libiberty/cp-demangle.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. Modified files: Index: src/external/gpl3/gcc/dist/libiberty/cp-demangle.c diff -u src/external/gpl3/gcc/dist/libiberty/cp-demangle.c:1.1.1.12 src/external/gpl3/gcc/dist/libiberty/cp-demangle.c:1.2 --- src/external/gpl3/gcc/dist/libiberty/cp-demangle.c:1.1.1.12 Sat Apr 10 18:10:14 2021 +++ src/external/gpl3/gcc/dist/libiberty/cp-demangle.c Wed Dec 15 08:29:14 2021 @@ -119,7 +119,7 @@ # include #else # ifndef alloca -# ifdef __GNUC__ +# if defined(__GNUC__) || defined(__lint__) # define alloca __builtin_alloca # else extern char *alloca ();
CVS commit: src/external/gpl3/gcc/dist/libiberty
Module Name:src Committed By: christos Date: Wed Dec 15 13:29:14 UTC 2021 Modified Files: src/external/gpl3/gcc/dist/libiberty: cp-demangle.c Log Message: fix lint To generate a diff of this commit: cvs rdiff -u -r1.1.1.12 -r1.2 \ src/external/gpl3/gcc/dist/libiberty/cp-demangle.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
CVS commit: src/external/gpl3/gcc/dist/include
Module Name:src Committed By: christos Date: Tue Dec 14 21:38:06 UTC 2021 Modified Files: src/external/gpl3/gcc/dist/include: ansidecl.h Log Message: avoid __extension__ redefinition To generate a diff of this commit: cvs rdiff -u -r1.1.1.10 -r1.2 src/external/gpl3/gcc/dist/include/ansidecl.h Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. Modified files: Index: src/external/gpl3/gcc/dist/include/ansidecl.h diff -u src/external/gpl3/gcc/dist/include/ansidecl.h:1.1.1.10 src/external/gpl3/gcc/dist/include/ansidecl.h:1.2 --- src/external/gpl3/gcc/dist/include/ansidecl.h:1.1.1.10 Sat Apr 10 18:09:20 2021 +++ src/external/gpl3/gcc/dist/include/ansidecl.h Tue Dec 14 16:38:06 2021 @@ -329,7 +329,7 @@ So instead we use the macro below and te /* We use __extension__ in some places to suppress -pedantic warnings about GCC extensions. This feature didn't work properly before gcc 2.8. */ -#if GCC_VERSION < 2008 +#if GCC_VERSION < 2008 && !defined(__extension__) #define __extension__ #endif
CVS commit: src/external/gpl3/gcc/dist/include
Module Name:src Committed By: christos Date: Tue Dec 14 21:38:06 UTC 2021 Modified Files: src/external/gpl3/gcc/dist/include: ansidecl.h Log Message: avoid __extension__ redefinition To generate a diff of this commit: cvs rdiff -u -r1.1.1.10 -r1.2 src/external/gpl3/gcc/dist/include/ansidecl.h Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
CVS commit: src/external/gpl3/gcc/dist/libsanitizer/sanitizer_common
Module Name:src Committed By: christos Date: Mon Nov 15 12:38:41 UTC 2021 Modified Files: src/external/gpl3/gcc/dist/libsanitizer/sanitizer_common: sanitizer_linux.cc Log Message: Remove extra _, thanks RVP To generate a diff of this commit: cvs rdiff -u -r1.43 -r1.44 \ src/external/gpl3/gcc/dist/libsanitizer/sanitizer_common/sanitizer_linux.cc Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. Modified files: Index: src/external/gpl3/gcc/dist/libsanitizer/sanitizer_common/sanitizer_linux.cc diff -u src/external/gpl3/gcc/dist/libsanitizer/sanitizer_common/sanitizer_linux.cc:1.43 src/external/gpl3/gcc/dist/libsanitizer/sanitizer_common/sanitizer_linux.cc:1.44 --- src/external/gpl3/gcc/dist/libsanitizer/sanitizer_common/sanitizer_linux.cc:1.43 Sat Nov 13 10:34:39 2021 +++ src/external/gpl3/gcc/dist/libsanitizer/sanitizer_common/sanitizer_linux.cc Mon Nov 15 07:38:41 2021 @@ -830,10 +830,10 @@ int internal_fork() { #if SANITIZER_NETBSD #include -extern "C" int __sigaction__siginfo(int, const struct sigaction *, struct sigaction *); +extern "C" int __sigaction_siginfo(int, const struct sigaction *, struct sigaction *); int internal_sigaction_norestorer(int signum, const void *act, void *oldact) { -return __sigaction__siginfo(signum, +return __sigaction_siginfo(signum, reinterpret_cast(act), reinterpret_cast(oldact)); }
CVS commit: src/external/gpl3/gcc/dist/libsanitizer/sanitizer_common
Module Name:src Committed By: christos Date: Mon Nov 15 12:38:41 UTC 2021 Modified Files: src/external/gpl3/gcc/dist/libsanitizer/sanitizer_common: sanitizer_linux.cc Log Message: Remove extra _, thanks RVP To generate a diff of this commit: cvs rdiff -u -r1.43 -r1.44 \ src/external/gpl3/gcc/dist/libsanitizer/sanitizer_common/sanitizer_linux.cc Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
CVS commit: src/external/gpl3/gcc/dist/libsanitizer
Module Name:src Committed By: christos Date: Sat Nov 13 15:34:39 UTC 2021 Modified Files: src/external/gpl3/gcc/dist/libsanitizer/interception: interception_linux.cc src/external/gpl3/gcc/dist/libsanitizer/sanitizer_common: sanitizer_linux.cc sanitizer_platform_limits_netbsd.h sanitizer_signal_interceptors.inc Log Message: fix the remaining vestiges of __sigaction14; now the tsan signal tests work. To generate a diff of this commit: cvs rdiff -u -r1.8 -r1.9 \ src/external/gpl3/gcc/dist/libsanitizer/interception/interception_linux.cc cvs rdiff -u -r1.42 -r1.43 \ src/external/gpl3/gcc/dist/libsanitizer/sanitizer_common/sanitizer_linux.cc cvs rdiff -u -r1.6 -r1.7 \ src/external/gpl3/gcc/dist/libsanitizer/sanitizer_common/sanitizer_platform_limits_netbsd.h cvs rdiff -u -r1.2 -r1.3 \ src/external/gpl3/gcc/dist/libsanitizer/sanitizer_common/sanitizer_signal_interceptors.inc Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
CVS commit: src/external/gpl3/gcc/dist/libsanitizer
Module Name:src Committed By: christos Date: Sat Nov 13 15:34:39 UTC 2021 Modified Files: src/external/gpl3/gcc/dist/libsanitizer/interception: interception_linux.cc src/external/gpl3/gcc/dist/libsanitizer/sanitizer_common: sanitizer_linux.cc sanitizer_platform_limits_netbsd.h sanitizer_signal_interceptors.inc Log Message: fix the remaining vestiges of __sigaction14; now the tsan signal tests work. To generate a diff of this commit: cvs rdiff -u -r1.8 -r1.9 \ src/external/gpl3/gcc/dist/libsanitizer/interception/interception_linux.cc cvs rdiff -u -r1.42 -r1.43 \ src/external/gpl3/gcc/dist/libsanitizer/sanitizer_common/sanitizer_linux.cc cvs rdiff -u -r1.6 -r1.7 \ src/external/gpl3/gcc/dist/libsanitizer/sanitizer_common/sanitizer_platform_limits_netbsd.h cvs rdiff -u -r1.2 -r1.3 \ src/external/gpl3/gcc/dist/libsanitizer/sanitizer_common/sanitizer_signal_interceptors.inc Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. Modified files: Index: src/external/gpl3/gcc/dist/libsanitizer/interception/interception_linux.cc diff -u src/external/gpl3/gcc/dist/libsanitizer/interception/interception_linux.cc:1.8 src/external/gpl3/gcc/dist/libsanitizer/interception/interception_linux.cc:1.9 --- src/external/gpl3/gcc/dist/libsanitizer/interception/interception_linux.cc:1.8 Sun Apr 11 19:54:26 2021 +++ src/external/gpl3/gcc/dist/libsanitizer/interception/interception_linux.cc Sat Nov 13 10:34:39 2021 @@ -26,7 +26,7 @@ bool GetRealFunctionAddress(const char * uptr real, uptr wrapper) { #if SANITIZER_NETBSD // XXX: Find a better way to handle renames - if (internal_strcmp(func_name, "sigaction") == 0) func_name = "__sigaction14"; + if (internal_strcmp(func_name, "sigaction") == 0) func_name = "__sigaction_siginfo"; #endif *func_addr = (uptr)dlsym(RTLD_NEXT, func_name); if (!*func_addr) { Index: src/external/gpl3/gcc/dist/libsanitizer/sanitizer_common/sanitizer_linux.cc diff -u src/external/gpl3/gcc/dist/libsanitizer/sanitizer_common/sanitizer_linux.cc:1.42 src/external/gpl3/gcc/dist/libsanitizer/sanitizer_common/sanitizer_linux.cc:1.43 --- src/external/gpl3/gcc/dist/libsanitizer/sanitizer_common/sanitizer_linux.cc:1.42 Thu Oct 28 10:31:20 2021 +++ src/external/gpl3/gcc/dist/libsanitizer/sanitizer_common/sanitizer_linux.cc Sat Nov 13 10:34:39 2021 @@ -830,10 +830,10 @@ int internal_fork() { #if SANITIZER_NETBSD #include -extern "C" int __sigaction14(int, const struct sigaction *, struct sigaction *); +extern "C" int __sigaction__siginfo(int, const struct sigaction *, struct sigaction *); int internal_sigaction_norestorer(int signum, const void *act, void *oldact) { -return __sigaction14(signum, +return __sigaction__siginfo(signum, reinterpret_cast(act), reinterpret_cast(oldact)); } Index: src/external/gpl3/gcc/dist/libsanitizer/sanitizer_common/sanitizer_platform_limits_netbsd.h diff -u src/external/gpl3/gcc/dist/libsanitizer/sanitizer_common/sanitizer_platform_limits_netbsd.h:1.6 src/external/gpl3/gcc/dist/libsanitizer/sanitizer_common/sanitizer_platform_limits_netbsd.h:1.7 --- src/external/gpl3/gcc/dist/libsanitizer/sanitizer_common/sanitizer_platform_limits_netbsd.h:1.6 Sun Apr 11 19:54:27 2021 +++ src/external/gpl3/gcc/dist/libsanitizer/sanitizer_common/sanitizer_platform_limits_netbsd.h Sat Nov 13 10:34:39 2021 @@ -2410,7 +2410,7 @@ struct __sanitizer_cdbw { COMPILER_CHECK(offsetof(struct __sanitizer_##CLASS, MEMBER) == \ offsetof(struct CLASS, MEMBER)) -#define SIGACTION_SYMNAME __sigaction14 +#define SIGACTION_SYMNAME __sigaction_siginfo // Compat with 9.0 extern unsigned struct_statvfs90_sz; Index: src/external/gpl3/gcc/dist/libsanitizer/sanitizer_common/sanitizer_signal_interceptors.inc diff -u src/external/gpl3/gcc/dist/libsanitizer/sanitizer_common/sanitizer_signal_interceptors.inc:1.2 src/external/gpl3/gcc/dist/libsanitizer/sanitizer_common/sanitizer_signal_interceptors.inc:1.3 --- src/external/gpl3/gcc/dist/libsanitizer/sanitizer_common/sanitizer_signal_interceptors.inc:1.2 Sun Apr 11 19:54:27 2021 +++ src/external/gpl3/gcc/dist/libsanitizer/sanitizer_common/sanitizer_signal_interceptors.inc Sat Nov 13 10:34:39 2021 @@ -17,7 +17,7 @@ using namespace __sanitizer; #if SANITIZER_NETBSD -#define sigaction_symname __sigaction14 +#define sigaction_symname __sigaction_siginfo #else #define sigaction_symname sigaction #endif
CVS commit: src/external/gpl3/gcc/dist/gcc/config
Module Name:src Committed By: hannken Date: Sun Nov 7 09:22:58 UTC 2021 Modified Files: src/external/gpl3/gcc/dist/gcc/config: netbsd.h Log Message: Libtsan intercepts the pthread exported functions with dlsym(RTLD_NEXT, func_name). This fails for pthread_join() as it is present both as a stub in libc and as real operation in libpthread and the search order is "libtsan.so libc.so libpthread.so". Force the order "libtsan.so libpthread.so libc.so" so symbols get intercepted from libpthread first. Ok: Matthew Green To generate a diff of this commit: cvs rdiff -u -r1.37 -r1.38 src/external/gpl3/gcc/dist/gcc/config/netbsd.h Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. Modified files: Index: src/external/gpl3/gcc/dist/gcc/config/netbsd.h diff -u src/external/gpl3/gcc/dist/gcc/config/netbsd.h:1.37 src/external/gpl3/gcc/dist/gcc/config/netbsd.h:1.38 --- src/external/gpl3/gcc/dist/gcc/config/netbsd.h:1.37 Mon Apr 12 00:05:54 2021 +++ src/external/gpl3/gcc/dist/gcc/config/netbsd.h Sun Nov 7 09:22:58 2021 @@ -203,3 +203,9 @@ along with GCC; see the file COPYING3. do { \ netbsd_patch_builtins (); \ } while(0) + +#if defined(HAVE_LD_STATIC_DYNAMIC) +#undef LIBTSAN_EARLY_SPEC +#define LIBTSAN_EARLY_SPEC "%{static-libtsan:" LD_STATIC_OPTION "}" \ + " -ltsan %{static-libtsan:" LD_DYNAMIC_OPTION "} -lpthread" +#endif
CVS commit: src/external/gpl3/gcc/dist/gcc/config
Module Name:src Committed By: hannken Date: Sun Nov 7 09:22:58 UTC 2021 Modified Files: src/external/gpl3/gcc/dist/gcc/config: netbsd.h Log Message: Libtsan intercepts the pthread exported functions with dlsym(RTLD_NEXT, func_name). This fails for pthread_join() as it is present both as a stub in libc and as real operation in libpthread and the search order is "libtsan.so libc.so libpthread.so". Force the order "libtsan.so libpthread.so libc.so" so symbols get intercepted from libpthread first. Ok: Matthew Green To generate a diff of this commit: cvs rdiff -u -r1.37 -r1.38 src/external/gpl3/gcc/dist/gcc/config/netbsd.h Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
CVS commit: src/external/gpl3/gcc/dist/libsanitizer/sanitizer_common
Module Name:src Committed By: christos Date: Thu Oct 28 14:31:20 UTC 2021 Modified Files: src/external/gpl3/gcc/dist/libsanitizer/sanitizer_common: sanitizer_linux.cc Log Message: more underscore To generate a diff of this commit: cvs rdiff -u -r1.41 -r1.42 \ src/external/gpl3/gcc/dist/libsanitizer/sanitizer_common/sanitizer_linux.cc Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. Modified files: Index: src/external/gpl3/gcc/dist/libsanitizer/sanitizer_common/sanitizer_linux.cc diff -u src/external/gpl3/gcc/dist/libsanitizer/sanitizer_common/sanitizer_linux.cc:1.41 src/external/gpl3/gcc/dist/libsanitizer/sanitizer_common/sanitizer_linux.cc:1.42 --- src/external/gpl3/gcc/dist/libsanitizer/sanitizer_common/sanitizer_linux.cc:1.41 Thu Oct 28 07:22:41 2021 +++ src/external/gpl3/gcc/dist/libsanitizer/sanitizer_common/sanitizer_linux.cc Thu Oct 28 10:31:20 2021 @@ -2041,8 +2041,8 @@ static void GetPcSpBp(void *context, upt *pc = ucontext->uc_mcontext.gregs[REG_PC]; *sp = ucontext->uc_mcontext.gregs[REG_O6] + STACK_BIAS; # elif SANITIZER_NETBSD - *pc = ucontext->uc_mcontext.__gregs[REG_PC]; - *sp = ucontext->uc_mcontext.__gregs[REG_O6] + STACK_BIAS; + *pc = ucontext->uc_mcontext.__gregs[_REG_PC]; + *sp = ucontext->uc_mcontext.__gregs[_REG_O6] + STACK_BIAS; # else // Historical BSDism here. struct sigcontext *scontext = (struct sigcontext *)context;
CVS commit: src/external/gpl3/gcc/dist/libsanitizer/sanitizer_common
Module Name:src Committed By: christos Date: Thu Oct 28 14:31:20 UTC 2021 Modified Files: src/external/gpl3/gcc/dist/libsanitizer/sanitizer_common: sanitizer_linux.cc Log Message: more underscore To generate a diff of this commit: cvs rdiff -u -r1.41 -r1.42 \ src/external/gpl3/gcc/dist/libsanitizer/sanitizer_common/sanitizer_linux.cc Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
CVS commit: src/external/gpl3/gcc/dist/libsanitizer/sanitizer_common
Module Name:src Committed By: christos Date: Thu Oct 28 11:22:41 UTC 2021 Modified Files: src/external/gpl3/gcc/dist/libsanitizer/sanitizer_common: sanitizer_linux.cc Log Message: fix sparc: use mcontext to fetch pc and sp To generate a diff of this commit: cvs rdiff -u -r1.40 -r1.41 \ src/external/gpl3/gcc/dist/libsanitizer/sanitizer_common/sanitizer_linux.cc Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. Modified files: Index: src/external/gpl3/gcc/dist/libsanitizer/sanitizer_common/sanitizer_linux.cc diff -u src/external/gpl3/gcc/dist/libsanitizer/sanitizer_common/sanitizer_linux.cc:1.40 src/external/gpl3/gcc/dist/libsanitizer/sanitizer_common/sanitizer_linux.cc:1.41 --- src/external/gpl3/gcc/dist/libsanitizer/sanitizer_common/sanitizer_linux.cc:1.40 Sun Apr 11 19:54:27 2021 +++ src/external/gpl3/gcc/dist/libsanitizer/sanitizer_common/sanitizer_linux.cc Thu Oct 28 07:22:41 2021 @@ -1930,12 +1930,12 @@ SignalContext::WriteFlag SignalContext:: // From OpenSolaris $SRC/uts/sun4/os/trap.c (get_accesstype). # if SANITIZER_SOLARIS uptr pc = ucontext->uc_mcontext.gregs[REG_PC]; +# elif SANITIZER_NETBSD + uptr pc = ucontext->uc_mcontext.__gregs[_REG_PC]; # else // Historical BSDism here. struct sigcontext *scontext = (struct sigcontext *)ucontext; -# if SANITIZER_NETBSD - uptr pc = scontext->sc_pc; -# elif defined(__arch64__) +# if defined(__arch64__) uptr pc = scontext->sigc_regs.tpc; # else uptr pc = scontext->si_regs.pc; @@ -2040,6 +2040,9 @@ static void GetPcSpBp(void *context, upt ucontext_t *ucontext = (ucontext_t*)context; *pc = ucontext->uc_mcontext.gregs[REG_PC]; *sp = ucontext->uc_mcontext.gregs[REG_O6] + STACK_BIAS; +# elif SANITIZER_NETBSD + *pc = ucontext->uc_mcontext.__gregs[REG_PC]; + *sp = ucontext->uc_mcontext.__gregs[REG_O6] + STACK_BIAS; # else // Historical BSDism here. struct sigcontext *scontext = (struct sigcontext *)context;
CVS commit: src/external/gpl3/gcc/dist/libsanitizer/sanitizer_common
Module Name:src Committed By: christos Date: Thu Oct 28 11:22:41 UTC 2021 Modified Files: src/external/gpl3/gcc/dist/libsanitizer/sanitizer_common: sanitizer_linux.cc Log Message: fix sparc: use mcontext to fetch pc and sp To generate a diff of this commit: cvs rdiff -u -r1.40 -r1.41 \ src/external/gpl3/gcc/dist/libsanitizer/sanitizer_common/sanitizer_linux.cc Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
CVS commit: src/external/gpl3/gcc/dist/gcc/config/aarch64
Module Name:src Committed By: jmcneill Date: Sat Sep 18 19:59:11 UTC 2021 Modified Files: src/external/gpl3/gcc/dist/gcc/config/aarch64: aarch64.h Log Message: oops, re-enable host_detect_local_cpu for NetBSD To generate a diff of this commit: cvs rdiff -u -r1.2 -r1.3 \ src/external/gpl3/gcc/dist/gcc/config/aarch64/aarch64.h Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
CVS commit: src/external/gpl3/gcc/dist/gcc/config/aarch64
Module Name:src Committed By: jmcneill Date: Sat Sep 18 19:59:11 UTC 2021 Modified Files: src/external/gpl3/gcc/dist/gcc/config/aarch64: aarch64.h Log Message: oops, re-enable host_detect_local_cpu for NetBSD To generate a diff of this commit: cvs rdiff -u -r1.2 -r1.3 \ src/external/gpl3/gcc/dist/gcc/config/aarch64/aarch64.h Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. Modified files: Index: src/external/gpl3/gcc/dist/gcc/config/aarch64/aarch64.h diff -u src/external/gpl3/gcc/dist/gcc/config/aarch64/aarch64.h:1.2 src/external/gpl3/gcc/dist/gcc/config/aarch64/aarch64.h:1.3 --- src/external/gpl3/gcc/dist/gcc/config/aarch64/aarch64.h:1.2 Sat Sep 18 10:45:11 2021 +++ src/external/gpl3/gcc/dist/gcc/config/aarch64/aarch64.h Sat Sep 18 19:59:11 2021 @@ -1200,7 +1200,7 @@ extern const char *aarch64_rewrite_mcpu #define MCPU_TO_MARCH_SPEC_FUNCTIONS \ { "rewrite_mcpu", aarch64_rewrite_mcpu }, -#if defined(__aarch64__) && defined(__linux__) +#if defined(__aarch64__) && (defined(__linux__) || defined(__NetBSD__)) extern const char *host_detect_local_cpu (int argc, const char **argv); #define HAVE_LOCAL_CPU_DETECT # define EXTRA_SPEC_FUNCTIONS \
re: CVS commit: src/external/gpl3/gcc/dist/gcc/config
"Jared D. McNeill" writes: > Module Name: src > Committed By: jmcneill > Date: Sat Sep 18 10:45:11 UTC 2021 > > Modified Files: > src/external/gpl3/gcc/dist/gcc/config: host-darwin.c > src/external/gpl3/gcc/dist/gcc/config/aarch64: aarch64.h > > Log Message: > Fix build on macOS 11.6 arm64 hosts. > > > To generate a diff of this commit: > cvs rdiff -u -r1.1.1.10 -r1.2 \ > src/external/gpl3/gcc/dist/gcc/config/host-darwin.c > cvs rdiff -u -r1.1.1.13 -r1.2 \ > src/external/gpl3/gcc/dist/gcc/config/aarch64/aarch64.h the 2nd change here likely broke netbsd, which also has support for this. it's probably fine to add || __NetBSD__ to this conditional since those are the only two ports that support this feature. .mrg.
CVS commit: src/external/gpl3/gcc/dist/gcc/config
Module Name:src Committed By: jmcneill Date: Sat Sep 18 10:45:11 UTC 2021 Modified Files: src/external/gpl3/gcc/dist/gcc/config: host-darwin.c src/external/gpl3/gcc/dist/gcc/config/aarch64: aarch64.h Log Message: Fix build on macOS 11.6 arm64 hosts. To generate a diff of this commit: cvs rdiff -u -r1.1.1.10 -r1.2 \ src/external/gpl3/gcc/dist/gcc/config/host-darwin.c cvs rdiff -u -r1.1.1.13 -r1.2 \ src/external/gpl3/gcc/dist/gcc/config/aarch64/aarch64.h Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. Modified files: Index: src/external/gpl3/gcc/dist/gcc/config/host-darwin.c diff -u src/external/gpl3/gcc/dist/gcc/config/host-darwin.c:1.1.1.10 src/external/gpl3/gcc/dist/gcc/config/host-darwin.c:1.2 --- src/external/gpl3/gcc/dist/gcc/config/host-darwin.c:1.1.1.10 Sat Apr 10 22:09:44 2021 +++ src/external/gpl3/gcc/dist/gcc/config/host-darwin.c Sat Sep 18 10:45:11 2021 @@ -22,6 +22,8 @@ #include "coretypes.h" #include "diagnostic-core.h" #include "config/host-darwin.h" +#include "hosthooks.h" +#include "hosthooks-def.h" /* Yes, this is really supposed to work. */ /* This allows for a pagesize of 16384, which we have on Darwin20, but should @@ -78,3 +80,5 @@ darwin_gt_pch_use_address (void *addr, s return ret; } + +const struct host_hooks host_hooks = HOST_HOOKS_INITIALIZER; Index: src/external/gpl3/gcc/dist/gcc/config/aarch64/aarch64.h diff -u src/external/gpl3/gcc/dist/gcc/config/aarch64/aarch64.h:1.1.1.13 src/external/gpl3/gcc/dist/gcc/config/aarch64/aarch64.h:1.2 --- src/external/gpl3/gcc/dist/gcc/config/aarch64/aarch64.h:1.1.1.13 Sat Apr 10 22:09:46 2021 +++ src/external/gpl3/gcc/dist/gcc/config/aarch64/aarch64.h Sat Sep 18 10:45:11 2021 @@ -1200,7 +1200,7 @@ extern const char *aarch64_rewrite_mcpu #define MCPU_TO_MARCH_SPEC_FUNCTIONS \ { "rewrite_mcpu", aarch64_rewrite_mcpu }, -#if defined(__aarch64__) +#if defined(__aarch64__) && defined(__linux__) extern const char *host_detect_local_cpu (int argc, const char **argv); #define HAVE_LOCAL_CPU_DETECT # define EXTRA_SPEC_FUNCTIONS \
CVS commit: src/external/gpl3/gcc/dist/gcc/config
Module Name:src Committed By: jmcneill Date: Sat Sep 18 10:45:11 UTC 2021 Modified Files: src/external/gpl3/gcc/dist/gcc/config: host-darwin.c src/external/gpl3/gcc/dist/gcc/config/aarch64: aarch64.h Log Message: Fix build on macOS 11.6 arm64 hosts. To generate a diff of this commit: cvs rdiff -u -r1.1.1.10 -r1.2 \ src/external/gpl3/gcc/dist/gcc/config/host-darwin.c cvs rdiff -u -r1.1.1.13 -r1.2 \ src/external/gpl3/gcc/dist/gcc/config/aarch64/aarch64.h Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
CVS commit: src/external/gpl3/gcc/dist/libcpp
Module Name:src Committed By: christos Date: Sun Aug 29 08:41:57 UTC 2021 Modified Files: src/external/gpl3/gcc/dist/libcpp: files.c Log Message: Add missing parentheses around ternary operator (Etienne Brateau, via Damien Zammit) To generate a diff of this commit: cvs rdiff -u -r1.14 -r1.15 src/external/gpl3/gcc/dist/libcpp/files.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. Modified files: Index: src/external/gpl3/gcc/dist/libcpp/files.c diff -u src/external/gpl3/gcc/dist/libcpp/files.c:1.14 src/external/gpl3/gcc/dist/libcpp/files.c:1.15 --- src/external/gpl3/gcc/dist/libcpp/files.c:1.14 Sat Apr 10 20:02:18 2021 +++ src/external/gpl3/gcc/dist/libcpp/files.c Sun Aug 29 04:41:57 2021 @@ -233,7 +233,7 @@ open_file (_cpp_file *file) } else file->fd = open (file->path, O_RDONLY | O_NOCTTY | O_BINARY - | (cpp_restricted != NULL) ? O_NONBLOCK : 0, 0666); + | ((cpp_restricted != NULL) ? O_NONBLOCK : 0), 0666); if (file->fd != -1)
CVS commit: src/external/gpl3/gcc/dist/libcpp
Module Name:src Committed By: christos Date: Sun Aug 29 08:41:57 UTC 2021 Modified Files: src/external/gpl3/gcc/dist/libcpp: files.c Log Message: Add missing parentheses around ternary operator (Etienne Brateau, via Damien Zammit) To generate a diff of this commit: cvs rdiff -u -r1.14 -r1.15 src/external/gpl3/gcc/dist/libcpp/files.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Re: CVS commit: src/external/gpl3/gcc/dist/gcc/ginclude
> On Jul 15, 2021, at 12:06 AM, matthew green wrote: > > "Christos Zoulas" writes: >> Module Name: src >> Committed By:christos >> Date:Wed Jul 14 13:24:59 UTC 2021 >> >> Modified Files: >> src/external/gpl3/gcc/dist/gcc/ginclude: stddef.h >> >> Log Message: >> clang does not support __float128 in our configuration and i386 > > shouldn't you replace this with some other 128-bit aligned > value then, instead of eliding it entirely? Good idea! Let me do that. christos signature.asc Description: Message signed with OpenPGP
re: CVS commit: src/external/gpl3/gcc/dist/gcc/ginclude
"Christos Zoulas" writes: > Module Name: src > Committed By: christos > Date: Wed Jul 14 13:24:59 UTC 2021 > > Modified Files: > src/external/gpl3/gcc/dist/gcc/ginclude: stddef.h > > Log Message: > clang does not support __float128 in our configuration and i386 shouldn't you replace this with some other 128-bit aligned value then, instead of eliding it entirely? .mrg.
Re: CVS commit: src/external/gpl3/gcc/dist/gcc/config/aarch64
On Wed, Oct 21, 2020 at 08:58:36AM +0900, Rin Okuyama wrote: > I'm also one who feels hesitate to import Linux'ism into our basic > components. However, for this problem in particular, I still think > it is not a good choice to keep NetBSD support in driver-aarch64.c: > > (a) Our sysctl(3)-based interface is not compliant to any standards, > just like Linux's /proc/cpuinfo. But the latter is, unfortunately > for us, the de facto standard. It works properly in a chroot etc without needing new files. I would call that a big plus. Joerg
Re: CVS commit: src/external/gpl3/gcc/dist/gcc/config/aarch64
Hi, (tech-toolchain@ added to cc) On 2020/10/16 1:49, Kamil Rytarowski wrote: On 15.10.2020 17:14, Rin Okuyama wrote: On 2020/10/15 16:12, matthew green wrote: Martin Husemann writes: On Thu, Oct 15, 2020 at 05:28:12PM +1100, matthew green wrote: you could try reverting most of our changes to this file and making sure you run with /proc mounted -o linux. ryo@ recently added additional /proc/cpuinfo support that should make this just work with the upstream version, but i haven't had chance to update and see if this is the case. I've confirmed that -mtune=native works fine at least for A53, even if all the local changes to driver-aarch64.c is reverted. I will commit it soon. If we go this route, we should make the relevant procfs nodes independent of -o linux. that would be fine by me. Nowadays, -o linux is turned on by default (unless nolinux is specified explicitly). Still, native apps probably should not depend on it. This needs MI changes to procfs, not MD to aarch64. Should we enable /proc/cpuinfo unconditionally? I'm against the policy of restoring the /proc dependency for this corner case in one application. We need to upstream the NetBSD specific patches to mainline GCC. I'm also one who feels hesitate to import Linux'ism into our basic components. However, for this problem in particular, I still think it is not a good choice to keep NetBSD support in driver-aarch64.c: (a) Our sysctl(3)-based interface is not compliant to any standards, just like Linux's /proc/cpuinfo. But the latter is, unfortunately for us, the de facto standard. (b) Because of (a), driver-aarch64.c is deeply depended on /proc/cpuinfo. Our NetBSD support code see diff to vendor branch here: http://cvsweb.netbsd.org/bsdweb.cgi/src/external/gpl3/gcc/dist/gcc/config/aarch64/driver-aarch64.c.diff?r1=1.1.1.7=1.10=h is something like a "glue code" which converts our convention to /proc/cpuinfo style. We already do this in procfs. Why twice? (c) I imagine that there would be little benefits for upstream to merge NetBSD support into their repository. If they will merge, I don't think the code is kept updated. (d) Only -march=native and -mtune=native depends on this feature. I'm OK with /proc/cpuinfo is left as is; only enabled when -onolinux is not specified. IMO, it is users' responsibility that such a additional feature fails with their non-standard system settings. In short, I'm worried about future when mrg@ or someone else have to maintain our glue code eternally, if this code is not reverted. Thanks, rin
Re: CVS commit: src/external/gpl3/gcc/dist/gcc/config/aarch64
Date:Fri, 16 Oct 2020 04:07:31 + From:"Thomas Mueller" Message-ID: <20201016052422.e063084...@mail.netbsd.org> | Should I add ,linux to the end of the procfs line? You can, but it isn't needed these days -- I used to mount procfs twice, once without the linux option, on /proc, and once with, on /emul/linux/proc) but there seems to be little point in that any more (even though the linux /proc has a whole bunch of trash that has nothing to do with processes, and should be, and generally is, available from /kern ... /proc/cpuinfo is an example of that, though that one is missing from kernfs and should be added there). I do add "hidden" to the mount option list though, there's essentially no point in including /proc /kern /dev/pts (or anything else like those) in default df output (which is the only thing "hidden" generally affects). kre
Re: CVS commit: src/external/gpl3/gcc/dist/gcc/config/aarch64
Excerpt from Rin Okuyama: > Nowadays, -o linux is turned on by default (unless nolinux is > specified explicitly). Still, native apps probably should not > depend on it. > This needs MI changes to procfs, not MD to aarch64. Should we > enable /proc/cpuinfo unconditionally? My NetBSD system has no /kern and no /proc, do I need to mkdir these directories? I just did. kernfs and procfs were commented out in /etc/fstab . Do I need to revive, new /etc/fstab being as shown below, is this good now? Should I add ,linux to the end of the procfs line? I might want to run Linux programs. # NetBSD /targetroot/etc/fstab # See /usr/share/examples/fstab/ for more examples. NAME=WD2G19 / ffs rw,log 1 1 NAME=WD2G17 none swapsw,dp0 0 kernfs /kern kernfs rw ptyfs /dev/ptsptyfs rw procfs /proc procfs rw /dev/cd0a /cdrom cd9660 ro,noauto tmpfs /var/shmtmpfs rw,-m1777,-sram%25 Tom
Re: CVS commit: src/external/gpl3/gcc/dist/gcc/config/aarch64
On 15.10.2020 17:14, Rin Okuyama wrote: > On 2020/10/15 16:12, matthew green wrote: >> Martin Husemann writes: >>> On Thu, Oct 15, 2020 at 05:28:12PM +1100, matthew green wrote: you could try reverting most of our changes to this file and making sure you run with /proc mounted -o linux. ryo@ recently added additional /proc/cpuinfo support that should make this just work with the upstream version, but i haven't had chance to update and see if this is the case. > > I've confirmed that -mtune=native works fine at least for A53, > even if all the local changes to driver-aarch64.c is reverted. > I will commit it soon. > >>> If we go this route, we should make the relevant procfs nodes >>> independent >>> of -o linux. >> >> that would be fine by me. > > Nowadays, -o linux is turned on by default (unless nolinux is > specified explicitly). Still, native apps probably should not > depend on it. > > This needs MI changes to procfs, not MD to aarch64. Should we > enable /proc/cpuinfo unconditionally? I'm against the policy of restoring the /proc dependency for this corner case in one application. We need to upstream the NetBSD specific patches to mainline GCC. signature.asc Description: OpenPGP digital signature
Re: CVS commit: src/external/gpl3/gcc/dist/gcc/config/aarch64
On 2020/10/15 16:12, matthew green wrote: Martin Husemann writes: On Thu, Oct 15, 2020 at 05:28:12PM +1100, matthew green wrote: you could try reverting most of our changes to this file and making sure you run with /proc mounted -o linux. ryo@ recently added additional /proc/cpuinfo support that should make this just work with the upstream version, but i haven't had chance to update and see if this is the case. I've confirmed that -mtune=native works fine at least for A53, even if all the local changes to driver-aarch64.c is reverted. I will commit it soon. If we go this route, we should make the relevant procfs nodes independent of -o linux. that would be fine by me. Nowadays, -o linux is turned on by default (unless nolinux is specified explicitly). Still, native apps probably should not depend on it. This needs MI changes to procfs, not MD to aarch64. Should we enable /proc/cpuinfo unconditionally? i had to write the netbsd version of that code twice so far. once for gcc 8.3 and 8.4, once for gcc 8.5 and 9.3, and i'd really rather avoid having to write another version :) Oh... Thank you very much for your hard works! Thanks, rin
re: CVS commit: src/external/gpl3/gcc/dist/gcc/config/aarch64
Martin Husemann writes: > On Thu, Oct 15, 2020 at 05:28:12PM +1100, matthew green wrote: > > you could try reverting most of our changes to this file and > > making sure you run with /proc mounted -o linux. ryo@ recently > > added additional /proc/cpuinfo support that should make this > > just work with the upstream version, but i haven't had chance > > to update and see if this is the case. > > If we go this route, we should make the relevant procfs nodes independent > of -o linux. that would be fine by me. i had to write the netbsd version of that code twice so far. once for gcc 8.3 and 8.4, once for gcc 8.5 and 9.3, and i'd really rather avoid having to write another version :) .mrg.
Re: CVS commit: src/external/gpl3/gcc/dist/gcc/config/aarch64
On Thu, Oct 15, 2020 at 05:28:12PM +1100, matthew green wrote: > you could try reverting most of our changes to this file and > making sure you run with /proc mounted -o linux. ryo@ recently > added additional /proc/cpuinfo support that should make this > just work with the upstream version, but i haven't had chance > to update and see if this is the case. If we go this route, we should make the relevant procfs nodes independent of -o linux. Martin
re: CVS commit: src/external/gpl3/gcc/dist/gcc/config/aarch64
"Rin Okuyama" writes: > Module Name: src > Committed By: rin > Date: Tue Oct 13 07:12:00 UTC 2020 > > Modified Files: > src/external/gpl3/gcc/dist/gcc/config/aarch64: driver-aarch64.c > > Log Message: > Reduce diff with upstream a bit. > No functional changes. you could try reverting most of our changes to this file and making sure you run with /proc mounted -o linux. ryo@ recently added additional /proc/cpuinfo support that should make this just work with the upstream version, but i haven't had chance to update and see if this is the case. thanks! .mrg.
Re: CVS commit: src/external/gpl3/gcc/dist/libsanitizer/sanitizer_common
On 05.09.2020 15:35, matthew green wrote: > Module Name: src > Committed By: mrg > Date: Sat Sep 5 13:35:55 UTC 2020 > > Modified Files: > src/external/gpl3/gcc/dist/libsanitizer/sanitizer_common: > sanitizer_linux.cc sanitizer_linux.h sanitizer_linux_libcdep.cc > sanitizer_platform_limits_netbsd.cc sanitizer_syscall_generic.inc > > Log Message: > fix various merge botches; we may need to re-port the ThreadLister code. > LSan was ported and upstreamed post GCC-9: https://github.com/llvm/llvm-project/commit/1b58389428ed07a7322ba9c2bcaeec99807f9457 https://github.com/llvm/llvm-project/commit/5fe1e55d35413b1904cfcf16ec15495398921fe5 https://github.com/llvm/llvm-project/commit/8827047551570b7ed7088765c3de2a8cce6823b8 https://github.com/llvm/llvm-project/commit/983d7ddd0b278b45d815cbac9197205b39c4860a https://github.com/llvm/llvm-project/commit/fc356dcc11c10003ff22acff667b0a9f5e6c1e0f https://github.com/llvm/llvm-project/commit/3a189bac9bb111c9a59339015ab0d4e2fed735f4 https://github.com/llvm/llvm-project/commit/02519fc7a6f8c528f67975a9f78ce64dabf402b4 And possibly something else: https://github.com/llvm/llvm-project/commits?author=krytarowski > > To generate a diff of this commit: > cvs rdiff -u -r1.33 -r1.34 \ > > src/external/gpl3/gcc/dist/libsanitizer/sanitizer_common/sanitizer_linux.cc > cvs rdiff -u -r1.9 -r1.10 \ > src/external/gpl3/gcc/dist/libsanitizer/sanitizer_common/sanitizer_linux.h > cvs rdiff -u -r1.12 -r1.13 \ > > src/external/gpl3/gcc/dist/libsanitizer/sanitizer_common/sanitizer_linux_libcdep.cc > cvs rdiff -u -r1.1.1.2 -r1.2 \ > > src/external/gpl3/gcc/dist/libsanitizer/sanitizer_common/sanitizer_platform_limits_netbsd.cc > cvs rdiff -u -r1.8 -r1.9 \ > > src/external/gpl3/gcc/dist/libsanitizer/sanitizer_common/sanitizer_syscall_generic.inc > > Please note that diffs are not public domain; they are subject to the > copyright notices on the relevant files. > > > Modified files: > > Index: > src/external/gpl3/gcc/dist/libsanitizer/sanitizer_common/sanitizer_linux.cc > diff -u > src/external/gpl3/gcc/dist/libsanitizer/sanitizer_common/sanitizer_linux.cc:1.33 > > src/external/gpl3/gcc/dist/libsanitizer/sanitizer_common/sanitizer_linux.cc:1.34 > --- > src/external/gpl3/gcc/dist/libsanitizer/sanitizer_common/sanitizer_linux.cc:1.33 > Sat Sep 5 09:12:32 2020 > +++ > src/external/gpl3/gcc/dist/libsanitizer/sanitizer_common/sanitizer_linux.cc > Sat Sep 5 13:35:55 2020 > @@ -41,8 +41,6 @@ > #undef stat > #endif > > -#endif // SANITIZER_LINUX > - > #if SANITIZER_NETBSD > #include > #endif > @@ -980,7 +978,6 @@ ThreadLister::ThreadLister(pid_t pid) : >if (internal_iserror(descriptor_)) { > Report("Can't open /proc/%d/task for reading.\n", pid); >} > -#endif > } > > ThreadLister::Result ThreadLister::ListThreads( > @@ -1055,10 +1052,8 @@ bool ThreadLister::IsAlive(int tid) { > } > > ThreadLister::~ThreadLister() { > -#ifndef SANITIZER_NETBSD >if (!internal_iserror(descriptor_)) > internal_close(descriptor_); > -#endif > } > #endif > > > Index: > src/external/gpl3/gcc/dist/libsanitizer/sanitizer_common/sanitizer_linux.h > diff -u > src/external/gpl3/gcc/dist/libsanitizer/sanitizer_common/sanitizer_linux.h:1.9 > > src/external/gpl3/gcc/dist/libsanitizer/sanitizer_common/sanitizer_linux.h:1.10 > --- > src/external/gpl3/gcc/dist/libsanitizer/sanitizer_common/sanitizer_linux.h:1.9 > Sat Sep 5 09:12:32 2020 > +++ > src/external/gpl3/gcc/dist/libsanitizer/sanitizer_common/sanitizer_linux.h > Sat Sep 5 13:35:55 2020 > @@ -69,6 +69,8 @@ uptr internal_clone(int (*fn)(void *), v > #endif > #elif SANITIZER_FREEBSD > void internal_sigdelset(__sanitizer_sigset_t *set, int signum); > +#elif SANITIZER_NETBSD > +uptr internal_prctl(int option, uptr arg2, uptr arg3, uptr arg4, uptr arg5); > #endif // SANITIZER_LINUX > > #ifdef SANITIZER_NETBSD > > Index: > src/external/gpl3/gcc/dist/libsanitizer/sanitizer_common/sanitizer_linux_libcdep.cc > diff -u > src/external/gpl3/gcc/dist/libsanitizer/sanitizer_common/sanitizer_linux_libcdep.cc:1.12 > > src/external/gpl3/gcc/dist/libsanitizer/sanitizer_common/sanitizer_linux_libcdep.cc:1.13 > --- > src/external/gpl3/gcc/dist/libsanitizer/sanitizer_common/sanitizer_linux_libcdep.cc:1.12 > Sat Sep 5 09:12:32 2020 > +++ > src/external/gpl3/gcc/dist/libsanitizer/sanitizer_common/sanitizer_linux_libcdep.cc >Sat Sep 5 13:35:55 2020 > @@ -72,6 +72,10 @@ struct __sanitizer::linux_dirent { > #include > #endif > > +#if SANITIZER_NETBSD > +#include > +#endif > + > namespace __sanitizer { > > SANITIZER_WEAK_ATTRIBUTE int > > Index: > src/external/gpl3/gcc/dist/libsanitizer/sanitizer_common/sanitizer_platform_limits_netbsd.cc > diff -u > src/external/gpl3/gcc/dist/libsanitizer/sanitizer_common/sanitizer_platform_limits_netbsd.cc:1.1.1.2 > >
Re: CVS commit: src/external/gpl3/gcc/dist/gcc/config/m68k
Sorry for the late reply. On 2020/08/11 1:16, Valery Ushakov wrote: This sounds eerily similar to port-macppc/54827 - there's quite a bit of confusion early on on my part there, but scroll to the last couple of mails. http://gnats.netbsd.org/54827 It looks like some logic changed in MI gcc8 that broke netbsd MD config headers and I wonder if you see the same problem here. For macppc the fix was also to undo the netbsd change to STACK_BOUNDARY in favor of PREFERRED_STACK_BOUNDARY. Thank you for remaining me that PR. I was following discussion at that time, but I'd forgotten that it was due to STACK_BOUNDARY. On 2020/08/11 10:27, matthew green wrote: May be we should also check other ports for similar gotcha proactively? good idea. no other gcc/config/*/*netbsd* files define the nasty STACK_BOUNDARY macro so hopefully we're good now. Yes, powerpc and m68k were the last ones. We somehow gained a bit more experience to overcome troubles caused by GCC. I think that we can deal with similar problems better in the next time :). Thanks, rin
re: CVS commit: src/external/gpl3/gcc/dist/gcc/config/m68k
> May be we should also check other ports for similar gotcha proactively? good idea. no other gcc/config/*/*netbsd* files define the nasty STACK_BOUNDARY macro so hopefully we're good now. thanks! .mrg.
Re: CVS commit: src/external/gpl3/gcc/dist/gcc/config/m68k
On Mon, Aug 10, 2020 at 06:24:39 +, Rin Okuyama wrote: > Modified Files: > src/external/gpl3/gcc/dist/gcc/config/m68k: netbsd-elf.h > > Log Message: > PR port-m68k/6 > > Reset STACK_BOUNDARY to default, 16, to fix strange freeze for amiga, > when kernel is compiled by GCC8. This sounds eerily similar to port-macppc/54827 - there's quite a bit of confusion early on on my part there, but scroll to the last couple of mails. http://gnats.netbsd.org/54827 It looks like some logic changed in MI gcc8 that broke netbsd MD config headers and I wonder if you see the same problem here. For macppc the fix was also to undo the netbsd change to STACK_BOUNDARY in favor of PREFERRED_STACK_BOUNDARY. May be we should also check other ports for similar gotcha proactively? -uwe
Re: CVS commit: src/external/gpl3/gcc/dist/gcc/config/aarch64
Unfortunately this breaks building on a 9.0 arm64 host because it is picking up /usr/include/aarch64/armreg.h and the one in 9.0 is missing a bunch of stuff. It works when using armreg.h from the source tree instead, eg: -#include +#include "/path/to/src/sys/arch/aarch64/include/armreg.h" On Tue, 28 Apr 2020, matthew green wrote: Module Name:src Committed By: mrg Date: Tue Apr 28 03:00:23 UTC 2020 Modified Files: src/external/gpl3/gcc/dist/gcc/config/aarch64: driver-aarch64.c Log Message: slightly reduce the scope of #ifdef __NetBSD__ version of the -m{cpu,tune,arch}=native handling code, and hopefully reduce future effort by aligning inputs - share common variables and setup more - build a linux/arm64 like /proc/cpuinfo Features line and use that to match the new 'list of features' per gcc feature, based upon our sysctl(2) published info. complete this list for all supported extensions. now this feature works again. To generate a diff of this commit: cvs rdiff -u -r1.6 -r1.7 \ src/external/gpl3/gcc/dist/gcc/config/aarch64/driver-aarch64.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
CVS commit: src/external/gpl3/gcc/dist/gcc/config
Module Name:src Committed By: mrg Date: Wed Nov 6 10:42:00 UTC 2019 Modified Files: src/external/gpl3/gcc/dist/gcc/config: netbsd.h Log Message: update the comment above LIB_SPEC to remove 2 wrong things we fixed. To generate a diff of this commit: cvs rdiff -u -r1.32 -r1.33 src/external/gpl3/gcc/dist/gcc/config/netbsd.h Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
CVS commit: src/external/gpl3/gcc/dist/gcc/config
Module Name:src Committed By: mrg Date: Wed Nov 6 10:42:00 UTC 2019 Modified Files: src/external/gpl3/gcc/dist/gcc/config: netbsd.h Log Message: update the comment above LIB_SPEC to remove 2 wrong things we fixed. To generate a diff of this commit: cvs rdiff -u -r1.32 -r1.33 src/external/gpl3/gcc/dist/gcc/config/netbsd.h Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. Modified files: Index: src/external/gpl3/gcc/dist/gcc/config/netbsd.h diff -u src/external/gpl3/gcc/dist/gcc/config/netbsd.h:1.32 src/external/gpl3/gcc/dist/gcc/config/netbsd.h:1.33 --- src/external/gpl3/gcc/dist/gcc/config/netbsd.h:1.32 Wed Oct 2 02:54:34 2019 +++ src/external/gpl3/gcc/dist/gcc/config/netbsd.h Wed Nov 6 10:42:00 2019 @@ -99,13 +99,9 @@ along with GCC; see the file COPYING3. 1. Select the appropriate set of libs, depending on whether we're profiling. - 2. Include the pthread library if -pthread is specified (only - if threads are enabled). + 2. Include the pthread library if -pthread is specified. - 3. Include the posix library if -posix is specified. - - FIXME: Could eliminate the duplication here if we were allowed to - use string concatenation. */ + 3. Include the posix library if -posix is specified. */ #define NETBSD_LIB_SPEC \ "%{pthread: \
CVS commit: src/external/gpl3/gcc/dist/gcc
Module Name:src Committed By: mrg Date: Wed Nov 6 09:10:50 UTC 2019 Modified Files: src/external/gpl3/gcc/dist/gcc: config.gcc src/external/gpl3/gcc/dist/gcc/config/rs6000: netbsd64.h Log Message: revert the powerpc config.gcc changes i made while merging, they end up mis-ordering tm files. revert the rs6000/netbsd64.h change and put it back as SUBSUBTARGET_EXTRA_SPECS. this seems to make the build work again, though mknative will need a re-run for ppc*. To generate a diff of this commit: cvs rdiff -u -r1.60 -r1.61 src/external/gpl3/gcc/dist/gcc/config.gcc cvs rdiff -u -r1.24 -r1.25 \ src/external/gpl3/gcc/dist/gcc/config/rs6000/netbsd64.h Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. Modified files: Index: src/external/gpl3/gcc/dist/gcc/config.gcc diff -u src/external/gpl3/gcc/dist/gcc/config.gcc:1.60 src/external/gpl3/gcc/dist/gcc/config.gcc:1.61 --- src/external/gpl3/gcc/dist/gcc/config.gcc:1.60 Wed Oct 16 07:35:14 2019 +++ src/external/gpl3/gcc/dist/gcc/config.gcc Wed Nov 6 09:10:50 2019 @@ -2531,14 +2531,15 @@ powerpc*-*-freebsd*) esac ;; powerpc*-*-netbsd*) - tm_file="${tm_file} dbxelf.h elfos.h ${nbsd_tm_file} freebsd-spec.h rs6000/sysv4.h rs6000/netbsd.h" + tm_file="${tm_file} ${nbsd_tm_file} dbxelf.h elfos.h freebsd-spec.h" case ${target} in powerpc64*) tm_file="rs6000/biarch64.h ${tm_file}" - tm_file="${tm_file} rs6000/default64.h rs6000/netbsd64.h" + tm_file="${tm_file} rs6000/sysv4.h rs6000/default64.h rs6000/netbsd64.h" tmake_file="${tmake_file} rs6000/t-netbsd64" ;; *) + tm_file="${tm_file} rs6000/sysv4.h rs6000/netbsd.h" tmake_file="${tmake_file} rs6000/t-netbsd" ;; esac Index: src/external/gpl3/gcc/dist/gcc/config/rs6000/netbsd64.h diff -u src/external/gpl3/gcc/dist/gcc/config/rs6000/netbsd64.h:1.24 src/external/gpl3/gcc/dist/gcc/config/rs6000/netbsd64.h:1.25 --- src/external/gpl3/gcc/dist/gcc/config/rs6000/netbsd64.h:1.24 Tue Nov 5 20:06:41 2019 +++ src/external/gpl3/gcc/dist/gcc/config/rs6000/netbsd64.h Wed Nov 6 09:10:50 2019 @@ -204,8 +204,8 @@ extern int dot_symbols; %{,assembler|,assembler-with-cpp: %{mregnames} %{mno-regnames}}" \ ENDIAN_SELECT(" -mbig", " -mlittle", DEFAULT_ASM_ENDIAN) -#undef EXTRA_SPECS -#define EXTRA_SPECS \ +#undef SUBSUBTARGET_EXTRA_SPECS +#define SUBSUBTARGET_EXTRA_SPECS \ { "asm_spec_common", ASM_SPEC_COMMON }, \ { "asm_spec32", ASM_SPEC32 },\ { "asm_spec64", ASM_SPEC64 },\
CVS commit: src/external/gpl3/gcc/dist/gcc
Module Name:src Committed By: mrg Date: Wed Nov 6 09:10:50 UTC 2019 Modified Files: src/external/gpl3/gcc/dist/gcc: config.gcc src/external/gpl3/gcc/dist/gcc/config/rs6000: netbsd64.h Log Message: revert the powerpc config.gcc changes i made while merging, they end up mis-ordering tm files. revert the rs6000/netbsd64.h change and put it back as SUBSUBTARGET_EXTRA_SPECS. this seems to make the build work again, though mknative will need a re-run for ppc*. To generate a diff of this commit: cvs rdiff -u -r1.60 -r1.61 src/external/gpl3/gcc/dist/gcc/config.gcc cvs rdiff -u -r1.24 -r1.25 \ src/external/gpl3/gcc/dist/gcc/config/rs6000/netbsd64.h Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
CVS commit: src/external/gpl3/gcc/dist/gcc/config/rs6000
Module Name:src Committed By: christos Date: Tue Nov 5 20:06:41 UTC 2019 Modified Files: src/external/gpl3/gcc/dist/gcc/config/rs6000: netbsd64.h Log Message: - Use EXTRA_SPECS like we did for aarch64 instead of SUBSUBTARGET_EXTRA_SPECS so that assembly specs get propagated (they were lost before) - adjust the block register padding (like the other OS's) so that code compiles - XXX: linker still broken for shared libraries because the os specific spec is not chosen To generate a diff of this commit: cvs rdiff -u -r1.23 -r1.24 \ src/external/gpl3/gcc/dist/gcc/config/rs6000/netbsd64.h Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
CVS commit: src/external/gpl3/gcc/dist/gcc/config/rs6000
Module Name:src Committed By: christos Date: Tue Nov 5 20:06:41 UTC 2019 Modified Files: src/external/gpl3/gcc/dist/gcc/config/rs6000: netbsd64.h Log Message: - Use EXTRA_SPECS like we did for aarch64 instead of SUBSUBTARGET_EXTRA_SPECS so that assembly specs get propagated (they were lost before) - adjust the block register padding (like the other OS's) so that code compiles - XXX: linker still broken for shared libraries because the os specific spec is not chosen To generate a diff of this commit: cvs rdiff -u -r1.23 -r1.24 \ src/external/gpl3/gcc/dist/gcc/config/rs6000/netbsd64.h Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. Modified files: Index: src/external/gpl3/gcc/dist/gcc/config/rs6000/netbsd64.h diff -u src/external/gpl3/gcc/dist/gcc/config/rs6000/netbsd64.h:1.23 src/external/gpl3/gcc/dist/gcc/config/rs6000/netbsd64.h:1.24 --- src/external/gpl3/gcc/dist/gcc/config/rs6000/netbsd64.h:1.23 Fri May 10 22:37:58 2019 +++ src/external/gpl3/gcc/dist/gcc/config/rs6000/netbsd64.h Tue Nov 5 15:06:41 2019 @@ -204,8 +204,8 @@ extern int dot_symbols; %{,assembler|,assembler-with-cpp: %{mregnames} %{mno-regnames}}" \ ENDIAN_SELECT(" -mbig", " -mlittle", DEFAULT_ASM_ENDIAN) -#undef SUBSUBTARGET_EXTRA_SPECS -#define SUBSUBTARGET_EXTRA_SPECS \ +#undef EXTRA_SPECS +#define EXTRA_SPECS \ { "asm_spec_common", ASM_SPEC_COMMON }, \ { "asm_spec32", ASM_SPEC32 },\ { "asm_spec64", ASM_SPEC64 },\ @@ -296,7 +296,7 @@ extern int dot_symbols; registers and memory. FIRST is nonzero if this is the only element. */ #define BLOCK_REG_PADDING(MODE, TYPE, FIRST) \ - (!(FIRST) ? upward : FUNCTION_ARG_PADDING (MODE, TYPE)) + (!(FIRST) ? PAD_UPWARD : targetm.calls.function_arg_padding (MODE, TYPE)) /* NetBSD doesn't support saving and restoring 64-bit regs in a 32-bit process. */
CVS commit: src/external/gpl3/gcc/dist/gcc/config/pa
Module Name:src Committed By: mrg Date: Sun Nov 3 01:03:30 UTC 2019 Modified Files: src/external/gpl3/gcc/dist/gcc/config/pa: pa-netbsd.h Log Message: netbsd/hppa uses 16 byte alignment. the inherited default changed.. To generate a diff of this commit: cvs rdiff -u -r1.5 -r1.6 src/external/gpl3/gcc/dist/gcc/config/pa/pa-netbsd.h Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
CVS commit: src/external/gpl3/gcc/dist/gcc/config/pa
Module Name:src Committed By: mrg Date: Sun Nov 3 01:03:30 UTC 2019 Modified Files: src/external/gpl3/gcc/dist/gcc/config/pa: pa-netbsd.h Log Message: netbsd/hppa uses 16 byte alignment. the inherited default changed.. To generate a diff of this commit: cvs rdiff -u -r1.5 -r1.6 src/external/gpl3/gcc/dist/gcc/config/pa/pa-netbsd.h Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. Modified files: Index: src/external/gpl3/gcc/dist/gcc/config/pa/pa-netbsd.h diff -u src/external/gpl3/gcc/dist/gcc/config/pa/pa-netbsd.h:1.5 src/external/gpl3/gcc/dist/gcc/config/pa/pa-netbsd.h:1.6 --- src/external/gpl3/gcc/dist/gcc/config/pa/pa-netbsd.h:1.5 Fri Aug 19 05:11:10 2016 +++ src/external/gpl3/gcc/dist/gcc/config/pa/pa-netbsd.h Sun Nov 3 01:03:30 2019 @@ -131,6 +131,10 @@ along with GCC; see the file COPYING3. #undef PTRDIFF_TYPE #define PTRDIFF_TYPE "long int" +/* NetBSD always uses 128 byte alignment. */ +#undef MALLOC_ABI_ALIGNMENT +#define MALLOC_ABI_ALIGNMENT 128 + #if 0 #undef TARGET_SYNC_LIBCALL #define TARGET_SYNC_LIBCALL 1
CVS commit: src/external/gpl3/gcc/dist/libsanitizer/lsan
Module Name:src Committed By: christos Date: Sat Oct 26 18:36:25 UTC 2019 Modified Files: src/external/gpl3/gcc/dist/libsanitizer/lsan: lsan_allocator.h Log Message: add some more machines to the 32 bit part To generate a diff of this commit: cvs rdiff -u -r1.2 -r1.3 \ src/external/gpl3/gcc/dist/libsanitizer/lsan/lsan_allocator.h Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. Modified files: Index: src/external/gpl3/gcc/dist/libsanitizer/lsan/lsan_allocator.h diff -u src/external/gpl3/gcc/dist/libsanitizer/lsan/lsan_allocator.h:1.2 src/external/gpl3/gcc/dist/libsanitizer/lsan/lsan_allocator.h:1.3 --- src/external/gpl3/gcc/dist/libsanitizer/lsan/lsan_allocator.h:1.2 Fri Oct 4 04:51:33 2019 +++ src/external/gpl3/gcc/dist/libsanitizer/lsan/lsan_allocator.h Sat Oct 26 14:36:25 2019 @@ -51,6 +51,10 @@ struct ChunkMetadata { #if defined(__aarch64__) || defined(__i386__) || defined(__arm__) || \ ((defined(__sparc__) || \ defined(__powerpc__) || \ + defined(__m68k__) || \ + defined(__hppa__) || \ + defined(__sh3__) || \ + defined(__vax__) || \ defined(__mips__)) && !defined(_LP64)) static const uptr kRegionSizeLog = 20; static const uptr kNumRegions = SANITIZER_MMAP_RANGE_SIZE >> kRegionSizeLog; @@ -68,7 +72,7 @@ struct AP32 { }; typedef SizeClassAllocator32 PrimaryAllocator; #elif defined(__x86_64__) || defined(__powerpc64__) || defined(__sparc64__) || \ - (defined(__mips64) && defined(_LP64)) + defined(__alpha__) || (defined(__mips64) && defined(_LP64)) struct AP64 { // Allocator64 parameters. Deliberately using a short name. static const uptr kSpaceBeg = 0x6000ULL; static const uptr kSpaceSize = 0x400ULL; // 4T.
CVS commit: src/external/gpl3/gcc/dist/libsanitizer/asan
Module Name:src Committed By: christos Date: Fri Oct 25 18:03:59 UTC 2019 Modified Files: src/external/gpl3/gcc/dist/libsanitizer/asan: asan_mapping.h Log Message: Unbreak the sanitizers for gcc. The sanitizer offset defined in libsanitizer needs to match with the compiler concept of TARGET_ASAN_SHADOW_OFFSET, since the compiler generates instructions to access memory at that offset in the code, and expects the sanitizer library to have mapped something there. If there is disagreement, Mr. Segmentation Fault comes and resolves it for you. To generate a diff of this commit: cvs rdiff -u -r1.6 -r1.7 \ src/external/gpl3/gcc/dist/libsanitizer/asan/asan_mapping.h Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
CVS commit: src/external/gpl3/gcc/dist/libsanitizer/asan
Module Name:src Committed By: christos Date: Fri Oct 25 18:03:59 UTC 2019 Modified Files: src/external/gpl3/gcc/dist/libsanitizer/asan: asan_mapping.h Log Message: Unbreak the sanitizers for gcc. The sanitizer offset defined in libsanitizer needs to match with the compiler concept of TARGET_ASAN_SHADOW_OFFSET, since the compiler generates instructions to access memory at that offset in the code, and expects the sanitizer library to have mapped something there. If there is disagreement, Mr. Segmentation Fault comes and resolves it for you. To generate a diff of this commit: cvs rdiff -u -r1.6 -r1.7 \ src/external/gpl3/gcc/dist/libsanitizer/asan/asan_mapping.h Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. Modified files: Index: src/external/gpl3/gcc/dist/libsanitizer/asan/asan_mapping.h diff -u src/external/gpl3/gcc/dist/libsanitizer/asan/asan_mapping.h:1.6 src/external/gpl3/gcc/dist/libsanitizer/asan/asan_mapping.h:1.7 --- src/external/gpl3/gcc/dist/libsanitizer/asan/asan_mapping.h:1.6 Tue Oct 1 06:38:23 2019 +++ src/external/gpl3/gcc/dist/libsanitizer/asan/asan_mapping.h Fri Oct 25 14:03:59 2019 @@ -185,8 +185,10 @@ static const u64 kWindowsShadowOffset32 #define SHADOW_OFFSET kSystemZ_ShadowOffset64 # elif SANITIZER_FREEBSD #define SHADOW_OFFSET kFreeBSD_ShadowOffset64 -# elif SANITIZER_NETBSD -#define SHADOW_OFFSET kNetBSD_ShadowOffset64 +// XXX: see TARGET_ASAN_SHADOW_OFFSET in gcc. +// for example ix86_asan_shadow_offset() in i386.c +// # elif SANITIZER_NETBSD +// #define SHADOW_OFFSET kNetBSD_ShadowOffset64 # elif SANITIZER_MAC # define SHADOW_OFFSET kDefaultShadowOffset64 # elif defined(__mips64)
CVS commit: src/external/gpl3/gcc/dist/libiberty
Module Name:src Committed By: christos Date: Thu Oct 24 03:31:38 UTC 2019 Modified Files: src/external/gpl3/gcc/dist/libiberty: sha1.c Log Message: mknative tries to build this file with c++ and c++ does not like types inside offsetof() (a language limitation). To generate a diff of this commit: cvs rdiff -u -r1.4 -r1.5 src/external/gpl3/gcc/dist/libiberty/sha1.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
CVS commit: src/external/gpl3/gcc/dist/libiberty
Module Name:src Committed By: christos Date: Thu Oct 24 03:31:38 UTC 2019 Modified Files: src/external/gpl3/gcc/dist/libiberty: sha1.c Log Message: mknative tries to build this file with c++ and c++ does not like types inside offsetof() (a language limitation). To generate a diff of this commit: cvs rdiff -u -r1.4 -r1.5 src/external/gpl3/gcc/dist/libiberty/sha1.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. Modified files: Index: src/external/gpl3/gcc/dist/libiberty/sha1.c diff -u src/external/gpl3/gcc/dist/libiberty/sha1.c:1.4 src/external/gpl3/gcc/dist/libiberty/sha1.c:1.5 --- src/external/gpl3/gcc/dist/libiberty/sha1.c:1.4 Tue Oct 1 06:38:22 2019 +++ src/external/gpl3/gcc/dist/libiberty/sha1.c Wed Oct 23 23:31:38 2019 @@ -229,7 +229,7 @@ sha1_process_bytes (const void *buffer, if (len >= 64) { #if !_STRING_ARCH_unaligned -# ifdef __clang__ +# if defined(__clang__) || defined(__GNUC__) # define alignof(type) __alignof__(type) # else # define alignof(type) offsetof (struct { char c; type x; }, x)
CVS commit: src/external/gpl3/gcc/dist/gcc
Module Name:src Committed By: christos Date: Wed Oct 23 18:55:36 UTC 2019 Modified Files: src/external/gpl3/gcc/dist/gcc: file-prefix-map.c Log Message: Since add_debug_regex_map is used in opts-global.c unconditionally, we can't disable the code with #ifndef __NetBSD__ because it breaks cross-building. To generate a diff of this commit: cvs rdiff -u -r1.2 -r1.3 src/external/gpl3/gcc/dist/gcc/file-prefix-map.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
CVS commit: src/external/gpl3/gcc/dist/gcc
Module Name:src Committed By: christos Date: Wed Oct 23 18:55:36 UTC 2019 Modified Files: src/external/gpl3/gcc/dist/gcc: file-prefix-map.c Log Message: Since add_debug_regex_map is used in opts-global.c unconditionally, we can't disable the code with #ifndef __NetBSD__ because it breaks cross-building. To generate a diff of this commit: cvs rdiff -u -r1.2 -r1.3 src/external/gpl3/gcc/dist/gcc/file-prefix-map.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. Modified files: Index: src/external/gpl3/gcc/dist/gcc/file-prefix-map.c diff -u src/external/gpl3/gcc/dist/gcc/file-prefix-map.c:1.2 src/external/gpl3/gcc/dist/gcc/file-prefix-map.c:1.3 --- src/external/gpl3/gcc/dist/gcc/file-prefix-map.c:1.2 Tue Oct 1 17:17:28 2019 +++ src/external/gpl3/gcc/dist/gcc/file-prefix-map.c Wed Oct 23 14:55:36 2019 @@ -123,7 +123,8 @@ remap_macro_filename (const char *filena return remap_filename (macro_prefix_maps, filename); } -#ifndef __NetBSD__ +/* Original GCC version disabled. The NetBSD version handles regex */ +#if 0 /* Remap using -fdebug-prefix-map. Return the GC-allocated new name corresponding to FILENAME or FILENAME if no remapping was performed. */ const char * @@ -131,7 +132,12 @@ remap_debug_filename (const char *filena { return remap_filename (debug_prefix_maps, filename); } -#else +#endif + +/* + * The following code is a NetBSD extension that allows regex and + * \[0-9] substitutition arguments. + */ /* Perform user-specified mapping of debug filename prefixes. Return the new name corresponding to FILENAME. */ @@ -238,4 +244,3 @@ remap_debug_filename (const char *filena { return remap_debug_regex_filename (remap_debug_prefix_filename (filename)); } -#endif