summaryrefslogtreecommitdiff
path: root/gcc/c-parse.gperf
Commit message (Collapse)AuthorAgeFilesLines
* * invoke.texi: Document -flang-isoc9x.mmitchel1998-10-211-0/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Makefile.in (OBJS): Add splay-tree.o. (c-common.o): Depend on rtl.h. (splay-tree.o): List dependencies and provide build rule. * rtl.h (record_alias_subset): New function. * alias.c: Include splay-tree.h. (alias_set_entry): New type. (CHECK_ALIAS_SETS_FOR_CONSISTENCY): Remove. (DIFFERENT_ALIAS_SETS_P): Use mem_in_disjoint_alias_sets_p. (mems_in_disjoin_alias_sets_p): New function. (alias_set_compare): Likewise. (insert_subset_children): Likewise. (get_alias_set_entry): Likewise. * tree.h (TYPE_RESTRICT): New macro. (TYPE_UNQUALIFIED): New manifest constant. (TYPE_QUAL_CONST): Likewise (TYPE_QUAL_VOLATILE): Likewise. (TYPE_QUAL_RESTRICT): Likewise. (tree_type): Add restrict_flag. Reduce count of free bits. (DECL_POINTER_ALIAS_SET): New macro. (DECL_POINTER_ALIAS_SET_KNOWN_P): Likewise. (tree_decl): Add pointer_alias_set. (build_qualified_type): New function. (build_type_variant): Define in terms of build_qualified_type. * tree.c (set_type_quals): New function. (make_node): Initializae DECL_POINTER_ALIAS_SET. (build_type_attribute_variant): Use build_qualified_type and set_type_quals. (build_type_variant): Rename, and modify, to become... (build_qualified_type): New function. (build_complex_type): Use set_type_quals. * c-tree.h (C_TYPE_OBJECT_P): New macro. (C_TYPE_FUNCTION_P): Likewise. (C_TYPE_INCOMPLETE_P): Likewise. (C_TYPE_OBJECT_OR_INCOMPLETE_P): Likewise. (c_apply_type_quals_to_decl): New function. (c_build_qualified_type): New function. (c_build_type_variant): Define in terms of c_build_qualified_type. (flag_isoc9x): Declare. * c-typeck.c (qualify_type): Use c_build_qualified_type. (common_type): Change to use TYPE_QUALS. (comptypes): Likewise. (convert_for_assignment): Likewise. * c-aux-info.c (gen_type): Likewise. Deal with `restrict'. * c-decl.c (flag_isoc9x): Define. (c_decode_option): Handle -flang-isoc9x. (grokdeclarator): Update to handle restrict. Use TYPE_QUALS, c_build_qualified_type, etc. Use c_apply_type_quals_to_decl. * c-lex.c (init_lex): Deal with restrict. (init_lex): Don't treat restrict as a reserved word in -traditional mode, or without -flang-isoc9x. * c-lex.h (rid): Add RID_RESTRICT. * c-parse.gperf (restrict, __restrict, __restrict__): Make equivalent to RID_RESTRICT. * c-parse.in (TYPE_QUAL): Update comment. * c-common.c: Include rtl.h. (c_find_base_decl): New function. (c_build_type_variant): Rename, and modify, to become ... (c_build_qualified_type): New function. (c_apply_type_quals_to_decl): Likewise. (c_get_alias_set): For INDIRECT_REFs, check to see if we can find a particular alias set for the reference. * toplev.c (documented_lang_options): Add -flang-isoc9x. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@23212 138bc75d-0d04-0410-961f-82ee72b054a4
* * c-lex.c (remember_protocol_qualifiers): Handle RID_BYREF.law1998-10-081-0/+1
| | | | | | | | | | | | (init_lex): Initialize ridpointers[RID_BYREF]. * c-lex.h (enum rid): Add RID_BYREF. * c-parse.gperf: Add RID_BYREF as a type qualifier. * objc/objc-act.c (is_objc_type_qualifiers): Handle RID_BYREF. (encode_type_qualifiers): Similarly * c-gperf.h: Rebuilt. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@22918 138bc75d-0d04-0410-961f-82ee72b054a4
* Warning fixes:ghazi1998-10-071-1/+1
| | | | | | | | | * Makefile.in (c-gperf.h): Add -L KR-C -F ', 0, 0' flags to gperf. (c-parse.gperf): Update comments describing invocation flags. (c-gperf.h): Regenerate using gperf 2.7.1 (19981006 egcs). git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@22889 138bc75d-0d04-0410-961f-82ee72b054a4
* Incorporate the Objective-C keywords fromwood1993-04-091-0/+18
| | | | | | | objc-parse.gperf and add the new keywords. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@4063 138bc75d-0d04-0410-961f-82ee72b054a4
* Change __cimag__ to __imag__, __creal__ to __real__,rms1993-03-251-4/+4
| | | | | | | to void rejection by gperf. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@3877 138bc75d-0d04-0410-961f-82ee72b054a4
* Add __cimag, __cimag__, __creal, __creal__.rms1993-03-221-0/+4
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@3821 138bc75d-0d04-0410-961f-82ee72b054a4
* Add `__complex', `__complex__'.rms1993-03-041-1/+3
| | | | | | | Add `__iterator'. Delete `iterator'. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@3628 138bc75d-0d04-0410-961f-82ee72b054a4
* Add `iterator' and `__iterator__'.rms1993-03-021-0/+2
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@3582 138bc75d-0d04-0410-961f-82ee72b054a4
* entered into RCSwilson1992-03-191-3/+3
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@521 138bc75d-0d04-0410-961f-82ee72b054a4
* Initial revisionrms1990-06-181-0/+58
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@12 138bc75d-0d04-0410-961f-82ee72b054a4