spu-c.c (spu_categorize_keyword): Update for recent libcpp interface change.
authorAndrew Pinski <andrew_pinski@playstation.sony.com>
Mon, 11 May 2009 19:14:08 +0000 (19:14 +0000)
committerAndrew Pinski <pinskia@gcc.gnu.org>
Mon, 11 May 2009 19:14:08 +0000 (12:14 -0700)
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

gcc/ChangeLog
gcc/config/spu/spu-c.c

index d50fee4..b696848 100644 (file)
@@ -1,3 +1,9 @@
+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>
 
        PR tree-optimization/40026
index e1352b1..a946b03 100644 (file)
@@ -42,7 +42,7 @@ spu_categorize_keyword (const cpp_token *tok)
 {
   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)
          || ident == C_CPP_HASHNODE (__vector_keyword))
@@ -60,7 +60,7 @@ spu_categorize_keyword (const cpp_token *tok)
 static cpp_hashnode *
 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;
 
   ident = spu_categorize_keyword (tok);