Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/external deal with alloca for lint.
details: https://anonhg.NetBSD.org/src/rev/fdf2b3aa4a2a
branches: trunk
changeset: 1027662:fdf2b3aa4a2a
user: christos <christos%NetBSD.org@localhost>
date: Tue Dec 14 21:38:24 2021 +0000
description:
deal with alloca for lint.
diffstat:
external/gpl2/gettext/include/alloca.h | 2 +-
external/gpl2/grep/dist/lib/hard-locale.c | 4 ++--
external/gpl3/gdb/dist/libiberty/cp-demangle.c | 2 +-
3 files changed, 4 insertions(+), 4 deletions(-)
diffs (42 lines):
diff -r 941d4c07f5e2 -r fdf2b3aa4a2a external/gpl2/gettext/include/alloca.h
--- a/external/gpl2/gettext/include/alloca.h Tue Dec 14 21:38:06 2021 +0000
+++ b/external/gpl2/gettext/include/alloca.h Tue Dec 14 21:38:24 2021 +0000
@@ -36,7 +36,7 @@
request, the program just crashes.
*/
-#ifdef __GNUC__
+#if defined(__GNUC__) || defined(__lint__)
# ifndef alloca
# define alloca __builtin_alloca
# endif
diff -r 941d4c07f5e2 -r fdf2b3aa4a2a external/gpl2/grep/dist/lib/hard-locale.c
--- a/external/gpl2/grep/dist/lib/hard-locale.c Tue Dec 14 21:38:06 2021 +0000
+++ b/external/gpl2/grep/dist/lib/hard-locale.c Tue Dec 14 21:38:24 2021 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: hard-locale.c,v 1.2 2016/01/10 22:16:40 christos Exp $ */
+/* $NetBSD: hard-locale.c,v 1.3 2021/12/14 21:38:24 christos Exp $ */
/* hard-locale.c -- Determine whether a locale is hard.
Copyright 1997, 1998, 1999 Free Software Foundation, Inc.
@@ -21,7 +21,7 @@
# include <config.h>
#endif
-#ifndef __GNUC__
+#if !defined(__GNUC__) && !defined(__lint__)
# ifdef HAVE_ALLOCA_H
# include <alloca.h>
# else
diff -r 941d4c07f5e2 -r fdf2b3aa4a2a external/gpl3/gdb/dist/libiberty/cp-demangle.c
--- a/external/gpl3/gdb/dist/libiberty/cp-demangle.c Tue Dec 14 21:38:06 2021 +0000
+++ b/external/gpl3/gdb/dist/libiberty/cp-demangle.c Tue Dec 14 21:38:24 2021 +0000
@@ -119,7 +119,7 @@
# include <alloca.h>
#else
# ifndef alloca
-# ifdef __GNUC__
+# if defined(__GNUC__) || defined(__lint__)
# define alloca __builtin_alloca
# else
extern char *alloca ();
Home |
Main Index |
Thread Index |
Old Index