Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/external/bsd/byacc/dist Mark yysccsid as used when compiling...
details: https://anonhg.NetBSD.org/src/rev/fe9cdd6b29a2
branches: trunk
changeset: 789926:fe9cdd6b29a2
user: joerg <joerg%NetBSD.org@localhost>
date: Fri Sep 13 17:38:17 2013 +0000
description:
Mark yysccsid as used when compiling with GCC 3.1 or compatible.
diffstat:
external/bsd/byacc/dist/skeleton.c | 7 +++++--
1 files changed, 5 insertions(+), 2 deletions(-)
diffs (27 lines):
diff -r 4343cfbe6821 -r fe9cdd6b29a2 external/bsd/byacc/dist/skeleton.c
--- a/external/bsd/byacc/dist/skeleton.c Fri Sep 13 15:00:47 2013 +0000
+++ b/external/bsd/byacc/dist/skeleton.c Fri Sep 13 17:38:17 2013 +0000
@@ -1,11 +1,11 @@
-/* $NetBSD: skeleton.c,v 1.11 2013/04/06 14:52:24 christos Exp $ */
+/* $NetBSD: skeleton.c,v 1.12 2013/09/13 17:38:17 joerg Exp $ */
/* Id: skeleton.c,v 1.32 2013/03/04 23:19:39 tom Exp */
#include "defs.h"
#include <sys/cdefs.h>
-__RCSID("$NetBSD: skeleton.c,v 1.11 2013/04/06 14:52:24 christos Exp $");
+__RCSID("$NetBSD: skeleton.c,v 1.12 2013/09/13 17:38:17 joerg Exp $");
/* The definition of yysccsid in the banner should be replaced with */
/* a #pragma ident directive if the target C compiler supports */
@@ -22,6 +22,9 @@
const char *const banner[] =
{
"#ifndef lint",
+ "#if __GNUC__ - 0 >= 4 || (__GNUC__ 0 == 3 && __GNUC_MINOR__ >= 1)",
+ "__attribute__((__used__))",
+ "#endif",
"static const char yysccsid[] = \"@(#)yaccpar 1.9 (Berkeley) 02/21/93\";",
"#endif",
"",
Home |
Main Index |
Thread Index |
Old Index