recognise (but ignore) the __returns_twice__ GCC attribute

This commit is contained in:
plunky 2012-03-12 09:09:40 +00:00
parent 645e112039
commit 21ea2b0bfd
2 changed files with 4 additions and 2 deletions

View File

@ -1,5 +1,5 @@
/* Id: gcc_compat.c,v 1.81 2011/07/27 13:41:44 ragge Exp */ /* Id: gcc_compat.c,v 1.81 2011/07/27 13:41:44 ragge Exp */
/* $NetBSD: gcc_compat.c,v 1.1.1.4 2011/09/01 12:46:58 plunky Exp $ */ /* $NetBSD: gcc_compat.c,v 1.2 2012/03/12 09:09:40 plunky Exp $ */
/* /*
* Copyright (c) 2004 Anders Magnusson (ragge@ludd.luth.se). * Copyright (c) 2004 Anders Magnusson (ragge@ludd.luth.se).
* All rights reserved. * All rights reserved.
@ -263,6 +263,7 @@ struct atax {
CS(GCC_ATYP_ALW_INL) { A_0ARG, "always_inline" }, CS(GCC_ATYP_ALW_INL) { A_0ARG, "always_inline" },
CS(GCC_ATYP_TLSMODEL) { A_1ARG|A1_STR, "tls_model" }, CS(GCC_ATYP_TLSMODEL) { A_1ARG|A1_STR, "tls_model" },
CS(GCC_ATYP_ALIASWEAK) { A_1ARG|A1_STR, "aliasweak" }, CS(GCC_ATYP_ALIASWEAK) { A_1ARG|A1_STR, "aliasweak" },
CS(GCC_ATYP_RETURNS_TWICE) { A_0ARG, "returns_twice" },
CS(GCC_ATYP_BOUNDED) { A_3ARG|A_MANY|A1_NAME, "bounded" }, CS(GCC_ATYP_BOUNDED) { A_3ARG|A_MANY|A1_NAME, "bounded" },
}; };

View File

@ -1,5 +1,5 @@
/* Id: pass1.h,v 1.235 2011/08/14 14:52:29 ragge Exp */ /* Id: pass1.h,v 1.235 2011/08/14 14:52:29 ragge Exp */
/* $NetBSD: pass1.h,v 1.1.1.4 2011/09/01 12:47:00 plunky Exp $ */ /* $NetBSD: pass1.h,v 1.2 2012/03/12 09:09:40 plunky Exp $ */
/* /*
* Copyright(C) Caldera International Inc. 2001-2002. All rights reserved. * Copyright(C) Caldera International Inc. 2001-2002. All rights reserved.
* *
@ -491,6 +491,7 @@ enum { ATTR_NONE,
GCC_ATYP_ALW_INL, GCC_ATYP_ALW_INL,
GCC_ATYP_TLSMODEL, GCC_ATYP_TLSMODEL,
GCC_ATYP_ALIASWEAK, GCC_ATYP_ALIASWEAK,
GCC_ATYP_RETURNS_TWICE,
/* other stuff */ /* other stuff */
GCC_ATYP_BOUNDED, /* OpenBSD extra boundary checks */ GCC_ATYP_BOUNDED, /* OpenBSD extra boundary checks */