decl.c (grokdeclarator): Diagnost "extern thread" and "static thread" correctly.
* decl.c (grokdeclarator): Diagnost "extern thread" and "static thread" correctly. From-SVN: r60637
This commit is contained in:
parent
1c3139456d
commit
946d5e4529
@ -1,3 +1,8 @@
|
|||||||
|
2002-12-30 Mark Mitchell <mark@codesourcery.com>
|
||||||
|
|
||||||
|
* decl.c (grokdeclarator): Diagnost "extern thread" and "static
|
||||||
|
thread" correctly.
|
||||||
|
|
||||||
2002-12-30 Nathanael Nerode <neroden@gcc.gnu.org>
|
2002-12-30 Nathanael Nerode <neroden@gcc.gnu.org>
|
||||||
|
|
||||||
* decl.c, decl2.c, decl.h: GCC, not GNU CC. This is the C++ front
|
* decl.c, decl2.c, decl.h: GCC, not GNU CC. This is the C++ front
|
||||||
|
@ -10430,13 +10430,12 @@ grokdeclarator (declarator, declspecs, decl_context, initialized, attrlist)
|
|||||||
else if (RIDBIT_SETP (i, specbits))
|
else if (RIDBIT_SETP (i, specbits))
|
||||||
pedwarn ("duplicate `%s'", IDENTIFIER_POINTER (id));
|
pedwarn ("duplicate `%s'", IDENTIFIER_POINTER (id));
|
||||||
|
|
||||||
/* Diagnose "__thread extern". Recall that this list
|
/* Diagnose "__thread extern" or "__thread static". */
|
||||||
is in the reverse order seen in the text. */
|
if (RIDBIT_SETP (RID_THREAD, specbits))
|
||||||
if (i == (int)RID_THREAD)
|
|
||||||
{
|
{
|
||||||
if (RIDBIT_SETP (RID_EXTERN, specbits))
|
if (i == (int)RID_EXTERN)
|
||||||
error ("`__thread' before `extern'");
|
error ("`__thread' before `extern'");
|
||||||
if (RIDBIT_SETP (RID_STATIC, specbits))
|
else if (i == (int)RID_STATIC)
|
||||||
error ("`__thread' before `static'");
|
error ("`__thread' before `static'");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user