Commit a7d39bd3 by Andrew Pinski Committed by Andrew Pinski

spu-c.c (spu_categorize_keyword): Update for recent libcpp interface change.

2009-05-11  Andrew Pinski  <andrew_pinski@playstation.sony.com>

        * config/spu/spu-c.c (spu_categorize_keyword): Update for recent
        libcpp interface change.
        (spu_macro_to_expand): Likewise.

From-SVN: r147393
parent 26ab6a93
2009-05-11 Andrew Pinski <andrew_pinski@playstation.sony.com>
* config/spu/spu-c.c (spu_categorize_keyword): Update for recent
libcpp interface change.
(spu_macro_to_expand): Likewise.
2009-05-11 Paolo Bonzini <bonzini@gnu.org> 2009-05-11 Paolo Bonzini <bonzini@gnu.org>
PR tree-optimization/40026 PR tree-optimization/40026
......
...@@ -42,7 +42,7 @@ spu_categorize_keyword (const cpp_token *tok) ...@@ -42,7 +42,7 @@ spu_categorize_keyword (const cpp_token *tok)
{ {
if (tok->type == CPP_NAME) if (tok->type == CPP_NAME)
{ {
cpp_hashnode *ident = tok->val.node; cpp_hashnode *ident = tok->val.node.node;
if (ident == C_CPP_HASHNODE (vector_keyword) if (ident == C_CPP_HASHNODE (vector_keyword)
|| ident == C_CPP_HASHNODE (__vector_keyword)) || ident == C_CPP_HASHNODE (__vector_keyword))
...@@ -60,7 +60,7 @@ spu_categorize_keyword (const cpp_token *tok) ...@@ -60,7 +60,7 @@ spu_categorize_keyword (const cpp_token *tok)
static cpp_hashnode * static cpp_hashnode *
spu_macro_to_expand (cpp_reader *pfile, const cpp_token *tok) spu_macro_to_expand (cpp_reader *pfile, const cpp_token *tok)
{ {
cpp_hashnode *expand_this = tok->val.node; cpp_hashnode *expand_this = tok->val.node.node;
cpp_hashnode *ident; cpp_hashnode *ident;
ident = spu_categorize_keyword (tok); ident = spu_categorize_keyword (tok);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment