This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

PATCH, rs6000: fix build breakage


The powerpc port failed to build this morning due to a libcpp interface
change.  Fixed and committed as obvious:


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.

Index: config/rs6000/rs6000-c.c
===================================================================
--- config/rs6000/rs6000-c.c    (revision 147351)
+++ config/rs6000/rs6000-c.c    (working copy)
@@ -100,7 +100,7 @@ altivec_categorize_keyword (const cpp_to
 {
   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);



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]