]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
rs6000-c.c (altivec_categorize_keyword): Update for recent libcpp interface change.
authorBen Elliston <bje@au.ibm.com>
Sun, 10 May 2009 23:17:55 +0000 (23:17 +0000)
committerBen Elliston <bje@gcc.gnu.org>
Sun, 10 May 2009 23:17:55 +0000 (09:17 +1000)
* config/rs6000/rs6000-c.c (altivec_categorize_keyword): Update
for recent libcpp interface change.
(rs6000_macro_to_expand): Likewise.

From-SVN: r147352

gcc/ChangeLog
gcc/config/rs6000/rs6000-c.c

index 4c6540a8ae043fbfc9fce4c67550de5ee69a361c..b9f4952bbc6cd32a133dbe93f02067f66fbd2e89 100644 (file)
@@ -1,3 +1,9 @@
+2009-05-11  Ben Elliston  <bje@au.ibm.com>
+
+       * config/rs6000/rs6000-c.c (altivec_categorize_keyword): Update
+       for recent libcpp interface change.
+       (rs6000_macro_to_expand): Likewise.
+
 2009-05-10  Michael Matz  <matz@suse.de>
 
        PR target/40031
index 7ebc14cb1fc393559d23a00457ef2aa7d17ecc0b..c7adcdb5e044e837017187dc9b59f262aa9f7002 100644 (file)
@@ -100,7 +100,7 @@ altivec_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))
        return C_CPP_HASHNODE (__vector_keyword);
@@ -150,7 +150,7 @@ init_vector_keywords (void)
 static cpp_hashnode *
 rs6000_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 = altivec_categorize_keyword (tok);