summaryrefslogtreecommitdiff
path: root/gcc/coretypes.h
diff options
context:
space:
mode:
authorbje <bje@138bc75d-0d04-0410-961f-82ee72b054a4>2008-07-14 05:09:48 +0000
committerbje <bje@138bc75d-0d04-0410-961f-82ee72b054a4>2008-07-14 05:09:48 +0000
commit89768577114030eb69375ca94b7e749ae2428868 (patch)
tree5549f4ccea5a3b85211df500d0617fd3866b139f /gcc/coretypes.h
parent3c295d52aa967e64389dade5d6787af7244dcee2 (diff)
downloadgcc-89768577114030eb69375ca94b7e749ae2428868.tar.gz
libcpp/
* include/cpplib.h (NODE_CONDITIONAL): New. (struct cpp_callbacks): New macro_to_expand field. (struct cpp_hashnode): Adjust size of flags and type fields. (cpp_peek_token): Prototype. * lex.c (cpp_peek_token): New function. (_cpp_temp_token): Protect pre-existing lookaheads. * macro.c (cpp_get_token): Expand any conditional macros. (_cpp_backup_tokens_direct): New. (_cpp_backup_tokens): Call _cpp_backup_tokens_direct. (warn_of_redefinition): Silently allow redefined conditional macros. (_cpp_create_definition): Remove the conditional flag when a user defines one of the conditional macros. * internal.h (_cpp_backup_tokens_direct): New prototype. gcc/ * c-common.h (C_CPP_HASHNODE): New macro. * coretypes.h (struct cpp_token): Forward declare. * doc/extend.texi (PowerPC AltiVec Built-in Functions): Document the context-sensitive keyword method. * config/rs6000/rs6000-c.c (__vector_keyword, vector_keyword, __pixel_keyword, pixel_keyword, __bool_keyword, bool_keyword, expand_bool_pixel): New. (altivec_categorize_keyword): New function. (init_vector_keywords): New function. (rs6000_macro_to_expand): Likewise. (rs6000_cpu_cpp_builtins): Enable context-sensitive macros if not compiling an ISO C dialect. gcc/testsuite/ * gcc.target/powerpc/altivec-macros.c: New test. * gcc.target/powerpc/altviec-26.c: Likewise. * gcc.dg/vmx/1b-06.c: Remove bool variable. * gcc.dg/vmx/1b-07.c: Likewise. * gcc.dg/vmx/1b-06-ansi.c: New test for the pre-define method. * gcc.dg/vmx/1b-07-ansi.c: Likewise. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@137775 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/coretypes.h')
-rw-r--r--gcc/coretypes.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/gcc/coretypes.h b/gcc/coretypes.h
index 4fe480f781f..f585eb411c6 100644
--- a/gcc/coretypes.h
+++ b/gcc/coretypes.h
@@ -60,9 +60,11 @@ enum ir_type {
/* Provide forward struct declaration so that we don't have to include
all of cpplib.h whenever a random prototype includes a pointer.
- Note that the cpp_reader typedef remains part of cpplib.h. */
+ Note that the cpp_reader and cpp_token typedefs remain part of
+ cpplib.h. */
struct cpp_reader;
+struct cpp_token;
/* The thread-local storage model associated with a given VAR_DECL
or SYMBOL_REF. This isn't used much, but both trees and RTL refer