From b18a97e5dd0935e1c4a626c230f21457d0aad3d5 Mon Sep 17 00:00:00 2001 From: Thomas Koenig Date: Mon, 13 Sep 2021 19:49:49 +0200 Subject: Merged current trunk to branch. --- gcc/real.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'gcc/real.c') diff --git a/gcc/real.c b/gcc/real.c index 09ec5c0..555cf44 100644 --- a/gcc/real.c +++ b/gcc/real.c @@ -1,5 +1,5 @@ /* real.c - software floating point emulation. - Copyright (C) 1993-2020 Free Software Foundation, Inc. + Copyright (C) 1993-2021 Free Software Foundation, Inc. Contributed by Stephen L. Moshier (moshier@world.std.com). Re-written by Richard Henderson @@ -1972,17 +1972,17 @@ real_from_string (REAL_VALUE_TYPE *r, const char *str) else if (*str == '+') str++; - if (!strncmp (str, "QNaN", 4)) + if (startswith (str, "QNaN")) { get_canonical_qnan (r, sign); return 0; } - else if (!strncmp (str, "SNaN", 4)) + else if (startswith (str, "SNaN")) { get_canonical_snan (r, sign); return 0; } - else if (!strncmp (str, "Inf", 3)) + else if (startswith (str, "Inf")) { get_inf (r, sign); return 0; -- cgit v1.1