aboutsummaryrefslogtreecommitdiff
path: root/gcc/print-tree.c
AgeCommit message (Collapse)AuthorFilesLines
1999-02-18bitmap.c (bitmap_print): Qualify a char* with the `const' keyword.Kaveh R. Ghazi1-2/+2
* bitmap.c (bitmap_print): Qualify a char* with the `const' keyword. * 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. From-SVN: r25296
1999-01-06More copyright fixes. Oh what fun.Jeff Law1-1/+1
From-SVN: r24536
1998-11-19print-tree.c (print_node): After printing BLOCK or BIND_EXPR...Per Bothner1-2/+2
0 * print-tree.c (print_node): After printing BLOCK or BIND_EXPR, break instead of return (which loses closing '>'). From-SVN: r23719
1998-10-21invoke.texi: Document -flang-isoc9x.Mark Mitchell1-0/+2
* invoke.texi: Document -flang-isoc9x. * 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. From-SVN: r23212
1998-06-25invoke.texi (-fstrict-aliasing): Document.Mark Mitchell1-0/+1
* invoke.texi (-fstrict-aliasing): Document. * 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. From-SVN: r20719
1998-04-08tree.def (EXPR_WITH_FILE_LOCATION): New tree node definition.Alexandre Petit-Bianco1-0/+9
d 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. From-SVN: r19049
1998-03-23c-lang.c (lang_print_xnode): New function.Martin v. Löwis1-0/+2
* c-lang.c (lang_print_xnode): New function. * objc/objc-act.c (lang_print_xnode): Likewise. * print-tree.c (print_node): Call it * com.c (lang_print_xnode): New function. From-SVN: r18789
1998-03-20Major cutover to using system.h:Kaveh R. Ghazi1-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. From-SVN: r18726
1998-02-15tree.c (first_rtl_op): New fn.Jason Merrill1-22/+3
* tree.c (first_rtl_op): New fn. (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. From-SVN: r18023
1998-01-17varasm.c (immed_double_const): Add casts to HOST_WIDE_INT where necessary.David S. Miller1-4/+4
* varasm.c (immed_double_const): Add casts to HOST_WIDE_INT where 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. From-SVN: r17403
1997-12-11tree.c, tree.h: Change tree_code_type, tree_code_length, and tree_code_name ↵John F. Carr1-5/+8
from pointers to arrays. * tree.c, tree.h: Change tree_code_type, tree_code_length, and 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. From-SVN: r17061
1996-12-30(print_node): Don't try to print nonexistentJim Wilson1-1/+0
TYPE_ATTRIBUTES field of a decl node. From-SVN: r13344
1996-11-15(print_node{,_brief}, case INTEGER_CST): Use HOST_WIDE_INT_PRINT_*.Richard Kenner1-55/+16
From-SVN: r13176
1996-07-03formatting tweaksMike Stump1-1/+1
From-SVN: r12390
1995-06-15Update FSF address.Richard Kenner1-1/+2
From-SVN: r9964
1995-05-16(print_node): Fix misspellings in messages.Richard Kenner1-1/+1
From-SVN: r9716
1995-04-26(print_node): Print TYPE_PACKED.Richard Kenner1-0/+2
From-SVN: r9488
1995-03-09(print_node): Fix typo in printing large INTEGER_CST.Richard Kenner1-2/+1
From-SVN: r9146
1995-02-21(print_node{,_brief}): Print machine attributes.Richard Kenner1-2/+5
From-SVN: r9017
1994-08-25(print_node): Print more flags for types and decls.Richard Kenner1-8/+40
From-SVN: r7980
1994-08-24(print_node_brief...Richard Kenner1-2/+6
(print_node_brief, print_node): Use assignment instead of initialization for aggregate local variable REAL_VALUE_TYPE d. From-SVN: r7973
1994-08-14(print_node{,_brief}): Use REAL_VALUE_TO_DECIMAL to print REAL_CSTRichard Kenner1-12/+43
ifdef REAL_ARITHMETIC. From-SVN: r7916
1994-07-30(print_node{,_brief}): Use correct printf code to print INTEGER_CST ifRichard Kenner1-4/+28
HOST_WIDE_INT is wider than int. From-SVN: r7838
1994-06-14Cast pointer operands to bzero, bcopy, and bcmp to (char *).Richard Kenner1-1/+2
From-SVN: r7472
1994-05-06(print_node): Print attributes.Richard Kenner1-1/+3
From-SVN: r7255
1993-12-25(print_node, print_node_brief): Say something whenRichard Kenner1-0/+6
TREE_CONSTANT_OVERFLOW is set. From-SVN: r6317
1993-10-27(print_node_brief): Use unsigned char to printRichard Stallman1-1/+1
the bytes of a real constant. From-SVN: r5917
1993-08-07(print_node): Print obstack node is contained in.Richard Kenner1-0/+3
From-SVN: r5096
1993-04-14(print_node): Use (struct rtx_def *), not (rtx).Richard Kenner1-2/+2
From-SVN: r4156
1993-04-13(print_node_brief, print_node): Properly cast arg when printing intsRichard Kenner1-4/+5
or rtx. From-SVN: r4141
1993-04-13Treat QUAL_UNION_TYPE like UNION_TYPE when seeing if aggregate.Richard Kenner1-1/+3
From-SVN: r4118
1993-03-20(print_node): Print the chain of a STRING_CST.Richard Stallman1-0/+5
From-SVN: r3799
1992-10-24(print_node): Always output `>' to match `<'.Richard Stallman1-0/+2
From-SVN: r2582
1992-09-15(print_node): Don't print blank line for null fields in a TREE_VEC.Jim Wilson1-6/+7
From-SVN: r2133
1992-09-09(print_node): Handle BOOLEAN_TYPE and CHAR_TYPE.Richard Stallman1-1/+3
From-SVN: r2083
1992-09-02(print_node): Avoid 1 << (HOST_BITS_PER_INT - 1),Richard Stallman1-1/+1
which overflows. Use unsigned % to compute HASH. From-SVN: r2027
1992-08-02(print_node): Use HOST_WIDE_INT instead of int when casting pointersRichard Kenner1-1/+1
to integers. From-SVN: r1751
1992-07-17entered into RCSRichard Stallman1-8/+10
From-SVN: r1599
1992-07-12*** empty log message ***Richard Stallman1-5/+5
From-SVN: r1566
1992-07-08*** empty log message ***Charles Hannum1-2/+2
From-SVN: r1529
1992-07-07*** empty log message ***Richard Stallman1-0/+4
From-SVN: r1490
1992-07-06*** empty log message ***Richard Kenner1-11/+38
From-SVN: r1473
1992-04-27*** empty log message ***Jim Wilson1-0/+1
From-SVN: r841
1992-03-29*** empty log message ***Richard Stallman1-2/+6
From-SVN: r621
1992-01-17*** empty log message ***Richard Stallman1-1/+1
From-SVN: r204
1991-12-05Initial revisionRichard Stallman1-0/+579
From-SVN: r98