Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/arch/x86/x86 Let the compiler decide whether to inline.



details:   https://anonhg.NetBSD.org/src/rev/b39944709569
branches:  trunk
changeset: 343859:b39944709569
user:      riastradh <riastradh%NetBSD.org@localhost>
date:      Mon Feb 29 00:17:54 2016 +0000

description:
Let the compiler decide whether to inline.

Works around ICE in PCC for now:

/home/riastradh/netbsd/current/src/sys/arch/x86/x86/cpu_rng.c, line 195: bad xasm node type 23
/home/riastradh/netbsd/current/src/sys/arch/x86/x86/cpu_rng.c, line 195: bad xasm node type 23
internal compiler error: /home/riastradh/netbsd/current/src/sys/arch/x86/x86/cpu_rng.c, line 195

This code is not performance-critical.

diffstat:

 sys/arch/x86/x86/cpu_rng.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r 4643be4de02d -r b39944709569 sys/arch/x86/x86/cpu_rng.c
--- a/sys/arch/x86/x86/cpu_rng.c        Sun Feb 28 23:24:35 2016 +0000
+++ b/sys/arch/x86/x86/cpu_rng.c        Mon Feb 29 00:17:54 2016 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: cpu_rng.c,v 1.4 2016/02/28 20:51:03 riastradh Exp $ */
+/* $NetBSD: cpu_rng.c,v 1.5 2016/02/29 00:17:54 riastradh Exp $ */
 
 /*-
  * Copyright (c) 2015 The NetBSD Foundation, Inc.
@@ -72,7 +72,7 @@
        return false;
 }
 
-static inline size_t
+static size_t
 cpu_rng_rdrand(cpu_rng_t *out)
 {
        uint8_t rndsts;
@@ -98,7 +98,7 @@
        return sizeof(*out) * NBBY;
 }
 
-static inline size_t
+static size_t
 cpu_rng_rdseed(cpu_rng_t *out)
 {
        uint8_t rndsts;



Home | Main Index | Thread Index | Old Index