From 891536aaad5a2a456656b778735513a57bb461c3 Mon Sep 17 00:00:00 2001 From: Paul Eggert Date: Tue, 3 Jul 2018 23:47:52 -0700 Subject: [PATCH] Update from Gnulib This incorporates: 2018-07-01 getloadavg: don't redefine WINDOWS32 2018-07-01 manywarnings: omit -Wswitch-default * build-aux/config.sub, lib/getloadavg.c, m4/manywarnings.m4: Copy from Gnulib. --- build-aux/config.sub | 8 +++++++- lib/getloadavg.c | 2 +- m4/manywarnings.m4 | 3 +-- 3 files changed, 9 insertions(+), 4 deletions(-) diff --git a/build-aux/config.sub b/build-aux/config.sub index d1f5b549034..072700fb037 100755 --- a/build-aux/config.sub +++ b/build-aux/config.sub @@ -2,7 +2,7 @@ # Configuration validation subroutine script. # Copyright 1992-2018 Free Software Foundation, Inc. -timestamp='2018-05-24' +timestamp='2018-07-02' # This file is free software; you can redistribute it and/or modify it # under the terms of the GNU General Public License as published by @@ -1125,6 +1125,12 @@ case $basic_machine in ps2) basic_machine=i386-ibm ;; + riscv) + basic_machine=riscv32-unknown + ;; + riscv-*) + basic_machine=`echo "$basic_machine" | sed 's/^riscv/riscv32/'` + ;; rm[46]00) basic_machine=mips-siemens ;; diff --git a/lib/getloadavg.c b/lib/getloadavg.c index 435d10a6b10..578316e34d8 100644 --- a/lib/getloadavg.c +++ b/lib/getloadavg.c @@ -97,7 +97,7 @@ # include "intprops.h" -# if defined _WIN32 && ! defined __CYGWIN__ +# if defined _WIN32 && ! defined __CYGWIN__ && ! defined WINDOWS32 # define WINDOWS32 # endif diff --git a/m4/manywarnings.m4 b/m4/manywarnings.m4 index 925c40e139a..516c5874765 100644 --- a/m4/manywarnings.m4 +++ b/m4/manywarnings.m4 @@ -1,4 +1,4 @@ -# manywarnings.m4 serial 15 +# manywarnings.m4 serial 16 dnl Copyright (C) 2008-2018 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, @@ -239,7 +239,6 @@ m4_defun([gl_MANYWARN_ALL_GCC(C)], -Wsuggest-final-types \ -Wswitch \ -Wswitch-bool \ - -Wswitch-default \ -Wswitch-unreachable \ -Wsync-nand \ -Wsystem-headers \ -- 2.39.2