summaryrefslogtreecommitdiff
path: root/gcc/print-tree.c
Commit message (Collapse)AuthorAgeFilesLines
* * bitmap.c (bitmap_print): Qualify a char* with the `const' keyword.ghazi1999-02-181-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | * bitmap.h (bitmap_print): Likewise. * c-decl.c (builtin_function, grokdeclarator, grokfield): Likewise. * c-lang.c (build_objc_string): Likewise. * c-lex.c (yyerror, extend_token_buffer): Likewise. Don't include limits.h or ctype.h. Remove unused variable `p'. * c-lex.h (yyerror): Qualify a char* with the `const' keyword. * c-pragma.c (handle_pragma_token): Likewise. * c-pragma.h (handle_pragma_token): Likewise. * c-tree.h (build_objc_string, builtin_function, grokfield, build_indirect_ref, lvalue_or_else, readonly_warning, error_init, pedwarn_init): Likewise. * c-typeck.c (convert_for_assignment, warn_for_assignment, push_string, warning_init, incomplete_type_error, build_indirect_ref, lvalue_or_else, readonly_warning, build_c_cast, spelling, push_member_name, print_spelling, error_init, pedwarn_init, start_init): Likewise. * objc/objc-act.c (build_objc_string): Likewise. * print-tree.c (print_node_brief, print_node): Likewise. * tree.h (lvalue_or_else, print_node, print_node_brief): Likewise. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@25296 138bc75d-0d04-0410-961f-82ee72b054a4
* More copyright fixes. Oh what fun.law1999-01-061-1/+1
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@24536 138bc75d-0d04-0410-961f-82ee72b054a4
* 0bothner1998-11-191-2/+2
| | | | | | | | * print-tree.c (print_node): After printing BLOCK or BIND_EXPR, break instead of return (which loses closing '>'). git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@23719 138bc75d-0d04-0410-961f-82ee72b054a4
* * invoke.texi: Document -flang-isoc9x.mmitchel1998-10-211-0/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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
* * invoke.texi (-fstrict-aliasing): Document.mmitchel1998-06-251-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * rtl.texi (MEM_ALIAS_SET): Document. * flags.h (flag_strict_aliasing): Declare. * toplev.c (flag_strict_aliasing): Define. (f_options): Add -strict-aliasing. (main): Set flag_strict_aliasing if -O2 or higher. * tree.h (tree_type): Add alias_set field. (TYPE_ALIAS_SET): New macro. (TYPE_ALIAS_SET_KNOWN_P): Likewise. (get_alias_set): Declare. * tree.c (lang_get_alias_set): Define. (make_node): Initialize TYPE_ALIAS_SET. (get_alias_set): New function. * print-tree.c (print_node): Dump the alias set for a type. * c-tree.h (c_get_alias_set): Declare. * c-common.c (c_get_alias_set): New function. * c-decl.c (init_decl_processing): Set lang_get_alias_set. * expr.c (protect_from_queue): Propogage alias sets. (expand_assignment): Calculate alias set for new MEMs. (expand_expr): Likewise. * function.c (put_var_into_stack): Likewise. (put_reg_into_stack): Likewise. (gen_mem_addressof): Likewise. (assign_parms): Likewise. * stmt.c (expand_decl): Likewise. * varasm.c (make_decl_rtl): Eliminate redundant clearing of DECL_RTL. Calculate alias set for new MEMs. * rtl.def (REG): Add dummy operand. (MEM): Add extra operand to store the MEM_ALIAS_SET. * rtl.h (MEM_ALIAS_SET): New macro. (gen_rtx_MEM): Declare. * emit-rtl.c (gen_rtx_MEM): New function. * gengenrtl.c (sepcial_rtx): Make MEMs special. * alias.c (CHECK_ALIAS_SETS_FOR_CONSISTENCY): New macro. (DIFFERENT_ALIAS_SETS_P): Likewise. (canon_rtx): Propogate the alias set to the new MEM. (true_dependence): Check the alias sets. (anti_dependence): Likewise. (output_dependence): Likewise. * explow.c (stabilize): Progoate alias sets. * integrate.c (copy_rtx_and_substitute): Likewise. * final.c (alter_subreg): Make sure not to leave MEM_IN_STRUCT_P in an unpredictable state. Propogate alias sets. * reload1.c (reload): Clear MEM_ALIAS_SET for new MEMs about which we have no alias information. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@20719 138bc75d-0d04-0410-961f-82ee72b054a4
* dbothner1998-04-081-0/+9
| | | | | | | | | | | | | | | | | Fri Apr 3 17:02:13 1998 Alexandre Petit-Bianco <apbianco@cygnus.com> * tree.def (EXPR_WITH_FILE_LOCATION): New tree node definition. * tree.h (EXPR_WFL_{NODE,FILENAME,FILENAME_NODE,LINENO, COLNO,LINECOL,SET_LINECOL,EMIT_LINE_NOTE}): New macros. (build_expr_wfl): New prototype declaration. * tree.c (build_expr_wfl): New function, to build EXPR_WITH_FILE_LOCATION nodes. (copy_node): Don't zero TREE_CHAIN if copying a EXPR_WITH_FILE_LOCATION node. * print-tree.c (print_node): Handle EXPR_WITH_FILE_LOCATION. * expr.c (expand_expr): Handle EXPR_WITH_FILE_LOCATION. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@19049 138bc75d-0d04-0410-961f-82ee72b054a4
* * c-lang.c (lang_print_xnode): New function.law1998-03-231-0/+2
| | | | | | | | | * objc/objc-act.c (lang_print_xnode): Likewise. * print-tree.c (print_node): Call it * com.c (lang_print_xnode): New function. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@18789 138bc75d-0d04-0410-961f-82ee72b054a4
* Major cutover to using system.h:ghazi1998-03-201-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Makefile.in (alias.o, bitmap.o, c-aux-info.o, c-common.o, c-decl.o, c-iterate.o, c-lang.o, c-lex.o, c-pragma.o, c-typeck.o, caller-save.o, calls.o, collect2.o, combine.o, cse.o, dbxout.o, dwarf2out.o, dwarfout.o, emit-rtl.o, except.o, explow.o, expmed.o, expr.o, final.o, flow.o, function.o, getpwd.o, global.o, integrate.o, jump.o, local-alloc.o, loop.o, optabs.o, pexecute.o, prefix.o, print-rtl.o, print-tree.o, profile.o, real.o, recog.o, reg-stack.o, regclass.o, regmove.o, reload.o, reload1.o, reorg.o, rtl.o, rtlanal.o, sdbout.o, stmt.o, stor-layout.o, stupid.o, tlink.o, toplev.o, tree.o, unroll.o, varasm.o, xcoffout.o): Depend on system.h. * alias.c, bitmap.c, c-aux-info.c, c-common.c, c-decl.c, c-iterate.c, c-lang.c, c-lex.c, c-pragma.c, c-typeck.c, caller-save.c, calls.c, collect2.c, combine.c, cse.c, dbxout.c, dwarf2out.c, dwarfout.c, emit-rtl.c, except.c, explow.c, expmed.c, expr.c, final.c, flow.c, function.c, gcc.c, getpwd.c, global.c, integrate.c, jump.c, local-alloc.c, loop.c, optabs.c, pexecute.c, prefix.c, print-rtl.c, print-tree.c, profile.c, real.c, recog.c, reg-stack.c, regclass.c, regmove.c, reload.c, reload1.c, reorg.c, rtl.c, rtlanal.c, sched.c, sdbout.c, stmt.c, stor-layout.c, stupid.c, tlink.c, toplev.c, tree.c, unroll.c, varasm.c, xcoffout.c: Include system.h. Organize include ordering so that stdarg/varargs comes before other system headers. Remove spurious casts of functions assured of a prototype in system.h. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@18726 138bc75d-0d04-0410-961f-82ee72b054a4
* * tree.c (first_rtl_op): New fn.jason1998-02-161-22/+3
| | | | | | | | | | | | (unsave_expr_now): Use it. * print-tree.c (print_node): Likewise. * tree.c (has_cleanups): New fn. * fold-const.c (fold, case CLEANUP_POINT_EXPR): Use it. Be more conservative about pushing the cleanup point down. * tree.h: Declare them. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@18023 138bc75d-0d04-0410-961f-82ee72b054a4
* * varasm.c (immed_double_const): Add casts to HOST_WIDE_INT wherelaw1998-01-171-4/+4
| | | | | | | | | | | | | | | necessary. (const_hash): Hash val is unsigned long. (SYMHASH): Likewise. * tree.c (TYPE_HASH): Type of hash val is unsigned long. * print-tree.c (print_node_brief): HOST_PTR_PRINTF format wants a char pointer, not HOST_WIDE_INT. (print_node): Likewise. Also hash is unsigned long not HOST_WIDE_INT. * cse.c (canon_hash): Hash is unsigned long not HOST_WIDE_INT. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@17403 138bc75d-0d04-0410-961f-82ee72b054a4
* * tree.c, tree.h: Change tree_code_type, tree_code_length, andlaw1997-12-121-5/+8
| | | | | | | | | | | | | | | tree_code_name from pointers to arrays. * tree.c: Remove standard_tree_code_* variables, no longer used. * print-tree.c: Remove declaration of tree_code_name. * cp/lex.c (init_lex): Update for tree_code_* changes. * objc/objc-act.c (init_objc): Likewise. * tree.def, cp/cp-tree.def, objc/objc-tree.def: Update for tree_code changes. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@17061 138bc75d-0d04-0410-961f-82ee72b054a4
* (print_node): Don't try to print nonexistentwilson1996-12-301-1/+0
| | | | | | | TYPE_ATTRIBUTES field of a decl node. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@13344 138bc75d-0d04-0410-961f-82ee72b054a4
* (print_node{,_brief}, case INTEGER_CST): Use HOST_WIDE_INT_PRINT_*.kenner1996-11-151-55/+16
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@13176 138bc75d-0d04-0410-961f-82ee72b054a4
* formatting tweaksmrs1996-07-031-1/+1
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@12390 138bc75d-0d04-0410-961f-82ee72b054a4
* Update FSF address.kenner1995-06-151-1/+2
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@9964 138bc75d-0d04-0410-961f-82ee72b054a4
* (print_node): Fix misspellings in messages.kenner1995-05-161-1/+1
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@9716 138bc75d-0d04-0410-961f-82ee72b054a4
* (print_node): Print TYPE_PACKED.kenner1995-04-261-0/+2
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@9488 138bc75d-0d04-0410-961f-82ee72b054a4
* (print_node): Fix typo in printing large INTEGER_CST.kenner1995-03-101-2/+1
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@9146 138bc75d-0d04-0410-961f-82ee72b054a4
* (print_node{,_brief}): Print machine attributes.kenner1995-02-211-2/+5
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@9017 138bc75d-0d04-0410-961f-82ee72b054a4
* (print_node): Print more flags for types and decls.kenner1994-08-251-8/+40
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@7980 138bc75d-0d04-0410-961f-82ee72b054a4
* (print_node_brief, print_node): Use assignment instead ofkenner1994-08-241-2/+6
| | | | | | | initialization for aggregate local variable REAL_VALUE_TYPE d. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@7973 138bc75d-0d04-0410-961f-82ee72b054a4
* (print_node{,_brief}): Use REAL_VALUE_TO_DECIMAL to print REAL_CSTkenner1994-08-141-12/+43
| | | | | | | ifdef REAL_ARITHMETIC. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@7916 138bc75d-0d04-0410-961f-82ee72b054a4
* (print_node{,_brief}): Use correct printf code to print INTEGER_CST ifkenner1994-07-301-4/+28
| | | | | | | HOST_WIDE_INT is wider than int. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@7838 138bc75d-0d04-0410-961f-82ee72b054a4
* Cast pointer operands to bzero, bcopy, and bcmp to (char *).kenner1994-06-141-1/+2
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@7472 138bc75d-0d04-0410-961f-82ee72b054a4
* (print_node): Print attributes.kenner1994-05-061-1/+3
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@7255 138bc75d-0d04-0410-961f-82ee72b054a4
* (print_node, print_node_brief): Say something whenkenner1993-12-251-0/+6
| | | | | | | TREE_CONSTANT_OVERFLOW is set. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@6317 138bc75d-0d04-0410-961f-82ee72b054a4
* (print_node_brief): Use unsigned char to printrms1993-10-271-1/+1
| | | | | | | the bytes of a real constant. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@5917 138bc75d-0d04-0410-961f-82ee72b054a4
* (print_node): Print obstack node is contained in.kenner1993-08-071-0/+3
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@5096 138bc75d-0d04-0410-961f-82ee72b054a4
* (print_node): Use (struct rtx_def *), not (rtx).kenner1993-04-141-2/+2
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@4156 138bc75d-0d04-0410-961f-82ee72b054a4
* (print_node_brief, print_node): Properly cast arg when printing intskenner1993-04-131-4/+5
| | | | | | | or rtx. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@4141 138bc75d-0d04-0410-961f-82ee72b054a4
* Treat QUAL_UNION_TYPE like UNION_TYPE when seeing if aggregate.kenner1993-04-131-1/+3
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@4118 138bc75d-0d04-0410-961f-82ee72b054a4
* (print_node): Print the chain of a STRING_CST.rms1993-03-201-0/+5
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@3799 138bc75d-0d04-0410-961f-82ee72b054a4
* (print_node): Always output `>' to match `<'.rms1992-10-241-0/+2
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@2582 138bc75d-0d04-0410-961f-82ee72b054a4
* (print_node): Don't print blank line for null fields in a TREE_VEC.wilson1992-09-161-6/+7
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@2133 138bc75d-0d04-0410-961f-82ee72b054a4
* (print_node): Handle BOOLEAN_TYPE and CHAR_TYPE.rms1992-09-091-1/+3
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@2083 138bc75d-0d04-0410-961f-82ee72b054a4
* (print_node): Avoid 1 << (HOST_BITS_PER_INT - 1),rms1992-09-021-1/+1
| | | | | | | which overflows. Use unsigned % to compute HASH. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@2027 138bc75d-0d04-0410-961f-82ee72b054a4
* (print_node): Use HOST_WIDE_INT instead of int when casting pointerskenner1992-08-031-1/+1
| | | | | | | to integers. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@1751 138bc75d-0d04-0410-961f-82ee72b054a4
* entered into RCSrms1992-07-171-8/+10
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@1599 138bc75d-0d04-0410-961f-82ee72b054a4
* *** empty log message ***rms1992-07-121-5/+5
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@1566 138bc75d-0d04-0410-961f-82ee72b054a4
* *** empty log message ***mycroft1992-07-081-2/+2
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@1529 138bc75d-0d04-0410-961f-82ee72b054a4
* *** empty log message ***rms1992-07-071-0/+4
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@1490 138bc75d-0d04-0410-961f-82ee72b054a4
* *** empty log message ***kenner1992-07-061-11/+38
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@1473 138bc75d-0d04-0410-961f-82ee72b054a4
* *** empty log message ***wilson1992-04-271-0/+1
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@841 138bc75d-0d04-0410-961f-82ee72b054a4
* *** empty log message ***rms1992-03-291-2/+6
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@621 138bc75d-0d04-0410-961f-82ee72b054a4
* *** empty log message ***rms1992-01-171-1/+1
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@204 138bc75d-0d04-0410-961f-82ee72b054a4
* Initial revisionrms1991-12-051-0/+579
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@98 138bc75d-0d04-0410-961f-82ee72b054a4