Module Name:    src
Committed By:   mrg
Date:           Fri Aug 11 06:02:46 UTC 2023

Modified Files:
        src/lib/libc/gdtoa: strtod.c

Log Message:
remove the -O0 force for _int_strtod_l() and GCC 9, it's fixed in GCC 10 and 12.

this was triggering sh3 GCC 12 to fail compiles because of ssp.h's memcpy()
frontend having the always_inline attribute that didn't match -O0 or so.

tested with pkgsrc gcc9 to confirm it hangs there, but newer versions are fine.

also known as PR#55668, which now has a real fix (gcc 10 :-).


To generate a diff of this commit:
cvs rdiff -u -r1.18 -r1.19 src/lib/libc/gdtoa/strtod.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/lib/libc/gdtoa/strtod.c
diff -u src/lib/libc/gdtoa/strtod.c:1.18 src/lib/libc/gdtoa/strtod.c:1.19
--- src/lib/libc/gdtoa/strtod.c:1.18	Thu May  6 16:15:33 2021
+++ src/lib/libc/gdtoa/strtod.c	Fri Aug 11 06:02:46 2023
@@ -1,4 +1,4 @@
-/* $NetBSD: strtod.c,v 1.18 2021/05/06 16:15:33 christos Exp $ */
+/* $NetBSD: strtod.c,v 1.19 2023/08/11 06:02:46 mrg Exp $ */
 
 /****************************************************************
 
@@ -90,9 +90,6 @@ sulp
 	}
 #endif /*}*/
 
-#if __GNUC_PREREQ__(9, 3)
-__attribute__((__optimize__("O0")))
-#endif
 static double
 _int_strtod_l(CONST char *s00, char **se, locale_t loc)
 {

Reply via email to