comparison gcc/config/rs6000/rs6000-c.c @ 19:58ad6c70ea60

update gcc from 4.4.0 to 4.4.1.
author kent@firefly.cr.ie.u-ryukyu.ac.jp
date Thu, 24 Sep 2009 13:21:57 +0900
parents a06113de4d67
children 77e2b8dfacca
comparison
equal deleted inserted replaced
18:33936f7f2835 19:58ad6c70ea60
89 static GTY(()) tree vector_keyword; 89 static GTY(()) tree vector_keyword;
90 static GTY(()) tree __pixel_keyword; 90 static GTY(()) tree __pixel_keyword;
91 static GTY(()) tree pixel_keyword; 91 static GTY(()) tree pixel_keyword;
92 static GTY(()) tree __bool_keyword; 92 static GTY(()) tree __bool_keyword;
93 static GTY(()) tree bool_keyword; 93 static GTY(()) tree bool_keyword;
94 static GTY(()) tree _Bool_keyword;
94 95
95 /* Preserved across calls. */ 96 /* Preserved across calls. */
96 static tree expand_bool_pixel; 97 static tree expand_bool_pixel;
97 98
98 static cpp_hashnode * 99 static cpp_hashnode *
109 return C_CPP_HASHNODE (__pixel_keyword); 110 return C_CPP_HASHNODE (__pixel_keyword);
110 111
111 if (ident == C_CPP_HASHNODE (bool_keyword)) 112 if (ident == C_CPP_HASHNODE (bool_keyword))
112 return C_CPP_HASHNODE (__bool_keyword); 113 return C_CPP_HASHNODE (__bool_keyword);
113 114
115 if (ident == C_CPP_HASHNODE (_Bool_keyword))
116 return C_CPP_HASHNODE (__bool_keyword);
117
114 return ident; 118 return ident;
115 } 119 }
116 120
117 return 0; 121 return 0;
118 } 122 }
139 pixel_keyword = get_identifier ("pixel"); 143 pixel_keyword = get_identifier ("pixel");
140 C_CPP_HASHNODE (pixel_keyword)->flags |= NODE_CONDITIONAL; 144 C_CPP_HASHNODE (pixel_keyword)->flags |= NODE_CONDITIONAL;
141 145
142 bool_keyword = get_identifier ("bool"); 146 bool_keyword = get_identifier ("bool");
143 C_CPP_HASHNODE (bool_keyword)->flags |= NODE_CONDITIONAL; 147 C_CPP_HASHNODE (bool_keyword)->flags |= NODE_CONDITIONAL;
148
149 _Bool_keyword = get_identifier ("_Bool");
150 C_CPP_HASHNODE (_Bool_keyword)->flags |= NODE_CONDITIONAL;
144 } 151 }
145 152
146 /* Called to decide whether a conditional macro should be expanded. 153 /* Called to decide whether a conditional macro should be expanded.
147 Since we have exactly one such macro (i.e, 'vector'), we do not 154 Since we have exactly one such macro (i.e, 'vector'), we do not
148 need to examine the 'tok' parameter. */ 155 need to examine the 'tok' parameter. */
293 builtin_define ("__APPLE_ALTIVEC__"); 300 builtin_define ("__APPLE_ALTIVEC__");
294 301
295 builtin_define ("vector=vector"); 302 builtin_define ("vector=vector");
296 builtin_define ("pixel=pixel"); 303 builtin_define ("pixel=pixel");
297 builtin_define ("bool=bool"); 304 builtin_define ("bool=bool");
305 builtin_define ("_Bool=_Bool");
298 init_vector_keywords (); 306 init_vector_keywords ();
299 307
300 /* Enable context-sensitive macros. */ 308 /* Enable context-sensitive macros. */
301 cpp_get_callbacks (pfile)->macro_to_expand = rs6000_macro_to_expand; 309 cpp_get_callbacks (pfile)->macro_to_expand = rs6000_macro_to_expand;
302 } 310 }