1. 28 May, 2000 4 commits
  2. 27 May, 2000 16 commits
    • cpplex.c (_cpp_init_toklist): No comment space to initialise. · ad265aa4
              * cpplex.c (_cpp_init_toklist): No comment space to initialise.
      	(_cpp_free_toklist): No comment space to free.
      	(expand_comment_space): Remove.
              (save_comment_space): Place the comment in the current token and
              not in a separate comment space.
              (_cpp_lex_line): Save comments during plain code and #define
              directives only.
              * cpplib.h (struct _cpp_toklist): Remove comment space.
      
      From-SVN: r34215
      Neil Booth committed
    • cppexp.c (parse_assertion): Supply extra argument to _cpp_init_toklist. · d1d9a6bd
      	* cppexp.c (parse_assertion): Supply extra argument to
      	_cpp_init_toklist.
      	* cpplib.c (do_assert, do_unassert): Similarly.
      	* cpphash.h (_cpp_init_toklist) Update.
      	(_cpp_expand_token_space): New.
      	(DUMMY_TOKEN, NO_DUMMY_TOKEN): New.
      	* cpplex.c (_cpp_init_toklist): New argument.
      	(parse_string2): New argument multiline_ok.
      	(spell_token): Take a const cpp_token *.
      	(INIT_NAME): Replace with INIT_TOKEN_NAME.  Update tokens_used.
      	(SPELL_ macros): Replace with enum.
      	(expand_token_space): Replace with _cpp_expand_token_space.
      	Take COUNT argument.
      	(IS_DIRECTIVE): Update.
      	(_cpp_lex_line): Update token structure before parsing number.
      	Don't assume start at beginning of token list.
      	(save_comment): Use INIT_TOKEN_NAME.
      
      From-SVN: r34214
      Neil Booth committed
    • configure.in (stage1_warn_cflags): Add -Wstrict-prototypes -Wmissing-prototypes. · f45c9d95
      	* configure.in (stage1_warn_cflags): Add -Wstrict-prototypes
      	-Wmissing-prototypes.
      	* configure: Regenerate.
      	* gcc.texi: Remove explanation of MD_CALL_PROTOTYPES.
      
      	* builtins.c, calls.c: Change all instances of gen_call_* or
      	gen_sibcall_* to GEN_CALL_* and GEN_SIBCALL_*.
      	* calls.c (struct_value_size_rtx): Separate definition from
      	initialization to avoid unused variable warning.
      
      	* genflags.c (gen_macro): New function.
      	(gen_proto): Call it for gen_call_* and gen_sibcall_*.
      	(gen_nonproto): Delete.
      	(gen_insn): Put all insns on the same obstack.
      	(main): Generate prototypes for everything unconditionally.
      
      From-SVN: r34213
      Zack Weinberg committed
    • configure.in: Add AC_CHECK_TYPE(ssize_t). · f12bc141
      	* configure.in: Add AC_CHECK_TYPE(ssize_t).  Remove commented
      	out check for wchar_t.
      	* acconfig.h: Add template for ssize_t.  Remove @TOP@.
      	* system.h: Add infrastructure for defining missing
      	TYPE_MAX/TYPE_MIN macros.  Use it to provide fallback
      	definitions of UCHAR_MAX and SSIZE_MAX.
      	* configure: Regenerate.
      	* config.in: Regenerate.
      
      From-SVN: r34212
      Zack Weinberg committed
    • Makefile.in (libgcc2.ready): Rename to libgcc.ready. · c190ed67
              * Makefile.in (libgcc2.ready): Rename to libgcc.ready.
              Depend on $(LANGUAGES) as well as $(GCC_PATCHES) and fixed
              headers.
              (clean): No need to delete libgcc1.a, libgcc1-asm.a,
              libgcc2.a, or libgcc1.null.
      
      From-SVN: r34211
      Zack Weinberg committed
    • * Make-lang.in (cplib2.ready): Eradicate. · 0e7f0e65
      From-SVN: r34210
      Zack Weinberg committed
    • alpha.c (hard_fp_register_operand): Mind the mode. · d2c6a1b6
              * config/alpha/alpha.c (hard_fp_register_operand): Mind the mode.
              (hard_int_register_operand): New.
              * config/alpha/alpha-protos.h: Declare it.
              * config/alpha/alpha.h (PREDICATE_CODES): Update.
              * config/alpha/alpha.md (peep2 patterns): Use hard_int_register_operand
              as needed; use peep2_reg_dead_p instead of dead_or_set_p.
      
      From-SVN: r34209
      Richard Henderson committed
    • Makefile.in (recog.o): Don't depend on resource.h. · 23280139
      	* Makefile.in (recog.o): Don't depend on resource.h.
      	* recog.c: Don't include resource.h.
      	(recog_last_allowed_insn): Remove.
      	(recog_next_insn): Remove.
      	(struct peep2_insn_data): New.
      	(peep2_insn_data, peep2_current): New.
      	(peep2_next_insn): New.
      	(peep2_regno_dead_p, peep2_reg_dead_p): New.
      	(peep2_find_free_register): New.
      	(peephole2_optimize): Track life information by insn as we go.
      	* recog.h: Update declarations.
      	* resource.c (find_free_register, reg_dead_p): Remove.
      	* resource.h: Remove their declarations.
      	* toplev.c: Include hard-reg-set.h before recog.h.
      
      	* genconfig.c (max_insns_per_peep2): New.
      	(gen_peephole2): New.
      	(main): Call it.
      	* genemit.c (output_peephole2_scratches): Generate calls to
      	peep2_find_free_register; adjust surrounding code.
      	(main): Have insn-emit.c include hard-reg-set.h before recog.h.
      	* genrecog.c (change_state): Don't track last_insn.
      	(write_action): Write into *_pmatch_len before accepting.
      	(write_tree): Adjust peephole2_insns and subroutines to match.
      
      	* config/i386/i386.md (all peepholes): Use peep2_regno_dead_p.
      
      From-SVN: r34208
      Richard Henderson committed
    • function.c (thread_prologue_epilogue_insns): Don't move the line note at the head of the chain. · 30196c1f
              * function.c (thread_prologue_epilogue_insns): Don't move the
              line note at the head of the chain.  Only force a lineno note
              before the end of block 0.
      
      From-SVN: r34207
      Richard Henderson committed
    • gensupport.c (collect_insn_data): Record the maximum number of alternatives, not the last seen. · 892ecf92
              * gensupport.c (collect_insn_data): Record the maximum number
              of alternatives, not the last seen.
      
      From-SVN: r34206
      Richard Henderson committed
    • genoutput.c: Don't include errors.h. · d96a2fcd
              * genoutput.c: Don't include errors.h.
              (struct data): Add lineno member.
              (have_error): New.
              (scan_operands): Use message_with_line instead of error.
              (validate_insn_alternatives): Likewise.
              (gen_insn): Accept and store the pattern's line number.
              (gen_peephole, gen_expand, gen_split): Likewise.
              (main): Don't set progname.  Pass line_no to gen_foo.
      
      From-SVN: r34205
      Richard Henderson committed
    • d30v.c (d30v_print_operand): Handle ':'. · 5401747e
              * config/d30v/d30v.c (d30v_print_operand): Handle ':'.
              * config/d30v/d30v.h (PRINT_OPERAND_PUNCT_VALID_P): Accept ':'.
              * config/d30v/d30v.md (attr predicable): New.
              (all insn patterns): Mark non-predicable patterns; use %: on the rest.
              (andsi3*): Unify into one pattern.
              (iorsi3*, xorsi3*): Likewise.
              (peephole2 patterns): Use peep2_reg_dead_p; verify not a
              conditional return.
              (old cond_exec patterns): Remove.
              (define_cond_exec): New.
      
      From-SVN: r34204
      Richard Henderson committed
    • tree.h (TREE_CODE_LENGTH): New macro. · 8d5e6e25
      	* tree.h (TREE_CODE_LENGTH): New macro.
      	* c-common.c (c_find_base_decl): Use it.
      	* expr.c (safe_from_p): Likewise.
      	* print-tree.c (print_node): Likewise.
      	* tree.c (make_node, copy_node, get_identifier): Likewie.
      	(first_rtl_op, contains_placeholder_p, substitute_in_expr): Likewise.
      	(build, build_nt, build_parse_node, simple_cst_equal): Likewise.
      	* fold-const.c (make_range): Likewise.
      	(fold): Likewise; also use first_rtl_op.
      	* c-iterate.c (collect_iterators): Use first_rtl_op.
      	* calls.c (calls_function_1): Likewise; also rename TYPE to CLASS.
      	Use IS_EXPR_CODE_CLASS.
      	(preexpand_calls): Likewise.
      	* ggc-common.c (ggc_mark_trees): Rework to use first_rtl_op
      	and TREE_CODE_LENGTH.
      	* stmt.c (warn_if_unused_value): If no operands, no unused value.
      	* ch/lang.c (deep_const_expr): Use first_rtl_op.
      	* ch/satisfy.c (satisfy): Use TREE_CODE_LENGTH.
      	* cp/method.c (mangle_expression): Use TREE_CODE_LENGTH.
      	* cp/tree.c (break_out_calls, build_min_nt): Use TREE_CODE_LENGTH.
      	(built_min, cp_tree_equal): Likewise.
      
      From-SVN: r34203
      Richard Kenner committed
    • Daily bump. · 0777f60c
      From-SVN: r34202
      Jeff Law committed
    • rs6000.md (movsi_internal1): Use '%a1' rather than '%1(%*)'. · aee86b38
      * config/rs6000/rs6000.md (movsi_internal1): Use '%a1' rather
      than '%1(%*)'.
      (movdi_internal64): Likewise.
      
      From-SVN: r34201
      Geoff Keating committed
    • rs6000.md: Correct order of operands for DImode boolean patterns. · 1d328b19
      * config/rs6000/rs6000.md: Correct order of operands for DImode
      boolean patterns.
      
      * config/rs6000/rs6000.c (boolean_or_operator): New function.
      * config/rs6000/rs6000-protos.h (boolean_or_operator): Prototype it.
      * config/rs6000/rs6000.h (PREDICATE_CODES): Add boolean_or_operator.
      * config/rs6000/rs6000.md: Use boolean_or_operator instead of
      boolean_operator for the boolean patterns without NOTs.
      
      * config/rs6000/rs6000.c (reg_or_logical_cint_operand): Rename
      from reg_or_u_cint_operand.  Change comment and behaviour.
      (logical_operand): Clean up, add assertion.
      (non_logical_cint_operand): Also check for
      reg_or_logical_cint_operand.
      * config/rs6000/rs6000.h (PREDICATE_CODES): Update.
      * config/rs6000/rs6000.md (iorsi3): Use reg_or_logical_cint_operand
      in the expander.
      (xorsi3): Likewise.
      (iordi3): Likewise.
      (xordi3): Likewise.
      
      From-SVN: r34200
      Geoff Keating committed
  3. 26 May, 2000 18 commits
  4. 25 May, 2000 2 commits