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/3fe52fe6c3c3
branches: trunk
changeset: 744805:3fe52fe6c3c3
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 589219789aff -r 3fe52fe6c3c3 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