Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/tests/lib/libc/sys Turn off optimization on a function which...
details: https://anonhg.NetBSD.org/src/rev/26519453cdb9
branches: trunk
changeset: 1007287:26519453cdb9
user: christos <christos%NetBSD.org@localhost>
date: Thu Feb 13 02:53:46 2020 +0000
description:
Turn off optimization on a function which contains constant labels.
The optimizer splits it and we end up with 2 copies and duplicate symbols.
diffstat:
tests/lib/libc/sys/t_ptrace_x86_wait.h | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diffs (18 lines):
diff -r 27ad79a75fb3 -r 26519453cdb9 tests/lib/libc/sys/t_ptrace_x86_wait.h
--- a/tests/lib/libc/sys/t_ptrace_x86_wait.h Thu Feb 13 02:12:06 2020 +0000
+++ b/tests/lib/libc/sys/t_ptrace_x86_wait.h Thu Feb 13 02:53:46 2020 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: t_ptrace_x86_wait.h,v 1.18 2020/01/08 17:23:34 mgorny Exp $ */
+/* $NetBSD: t_ptrace_x86_wait.h,v 1.19 2020/02/13 02:53:46 christos Exp $ */
/*-
* Copyright (c) 2016, 2017, 2018, 2019 The NetBSD Foundation, Inc.
@@ -1971,7 +1971,7 @@
#define X86_CVE_2018_8897_PAGE 0x5000 /* page addressable by 32-bit registers */
-static void
+static __attribute__((__optimize__("O0"))) void
x86_cve_2018_8897_trigger(void)
{
/*
Home |
Main Index |
Thread Index |
Old Index