From abcc07fee5373847be45d6b11acb8ff812754e7d Mon Sep 17 00:00:00 2001 From: dje Date: Thu, 17 Feb 1994 22:48:19 +0000 Subject: (attrib): Handle attribute ((section ("string"))). git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@6581 138bc75d-0d04-0410-961f-82ee72b054a4 --- gcc/c-parse.in | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'gcc/c-parse.in') diff --git a/gcc/c-parse.in b/gcc/c-parse.in index 29708d6e37f..82e9d7a18bb 100644 --- a/gcc/c-parse.in +++ b/gcc/c-parse.in @@ -1110,6 +1110,16 @@ attrib tree_cons ($5, $7, NULL_TREE), NULL_TREE), NULL_TREE); } + | IDENTIFIER '(' STRING ')' + { /* If not "section (name)", then issue warning. */ + if (strcmp (IDENTIFIER_POINTER ($1), "section") != 0) + { + warning ("`%s' attribute directive ignored", + IDENTIFIER_POINTER ($1)); + $$ = $1; + } + else + $$ = tree_cons ($1, $3, NULL_TREE); } ; /* Initializers. `init' is the entry point. */ -- cgit v1.2.1