aboutsummaryrefslogtreecommitdiff
path: root/contrib/gcc/toplev.h
diff options
context:
space:
mode:
authorPedro F. Giffuni <pfg@FreeBSD.org>2013-12-28 20:30:31 +0000
committerPedro F. Giffuni <pfg@FreeBSD.org>2013-12-28 20:30:31 +0000
commit2d278bb89e514e6468698d79afa5e858d72a58c4 (patch)
tree8a005a8478b0d93d6ae4875eb4a9d4e16240b10e /contrib/gcc/toplev.h
parent5156701b30c420c85072db9c1d2cb0fb12706a4b (diff)
downloadsrc-2d278bb89e514e6468698d79afa5e858d72a58c4.tar.gz
src-2d278bb89e514e6468698d79afa5e858d72a58c4.zip
gcc: Add support for label attributes and "unavailable" attribute.
Apple GCC has extensions to support for both label attributes and an "unavailable" attribute. These are critical for objc but are also useful in regular C/C++. Apparently at least the label attributes might have found their way to upstream GCC but the code doesn't seem available on the GPLv2 tree so we are taking the code directly from Apple. To make this clearer we are preserving the annoying "APPLE LOCAL" tags and the ChangeLogs when they are available. Obtained from: Apple GCC 4.2 - 5531 MFC after: 3 weeks
Notes
Notes: svn path=/head/; revision=260014
Diffstat (limited to 'contrib/gcc/toplev.h')
-rw-r--r--contrib/gcc/toplev.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/contrib/gcc/toplev.h b/contrib/gcc/toplev.h
index c935f7ee7970..3b0744193a49 100644
--- a/contrib/gcc/toplev.h
+++ b/contrib/gcc/toplev.h
@@ -79,6 +79,8 @@ extern void announce_function (tree);
extern void error_for_asm (rtx, const char *, ...) ATTRIBUTE_GCC_DIAG(2,3);
extern void warning_for_asm (rtx, const char *, ...) ATTRIBUTE_GCC_DIAG(2,3);
extern void warn_deprecated_use (tree);
+/* APPLE LOCAL "unavailable" attribute (radar 2809697) */
+extern void error_unavailable_use (tree);
#ifdef BUFSIZ
extern void output_quoted_string (FILE *, const char *);