OSDN Git Service

* toplev.c (rest_of_compilation): Avoid cfg_cleanup calls when not
[pf3gnuchains/gcc-fork.git] / gcc / ChangeLog
index 5fc0c2e..df960ee 100644 (file)
@@ -1,3 +1,303 @@
+Mon Mar  3 19:07:21 CET 2003  Jan Hubicka  <jh@suse.cz>
+
+       * toplev.c (rest_of_compilation):  Avoid cfg_cleanup calls when not
+       optimizing.
+
+2003-03-03  Kazu Hirata  <kazu@cs.umass.edu>
+
+       * config/h8300/h8300.md (*ixorsi3_zext_hi): Restrict to
+       TARGET_H8300H and TARGET_H8300S.
+
+2003-03-03  Kazu Hirata  <kazu@cs.umass.edu>
+
+       * config/h8300/h8300.md (a peephole2): New.
+
+2003-03-03  Kazu Hirata  <kazu@cs.umass.edu>
+
+       * config/h8300/h8300.md (*extzv_8_8): Use shorter code when
+       operands[0] and operands[1] are different.
+
+2003-03-03  Kazu Hirata  <kazu@cs.umass.edu>
+
+       * reload1.c (reload_cse_move2add): Remove variable success.
+
+2003-03-02  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
+
+       * ggc-common.c (ggc_rlimit_bound): Cast RLIM_INFINITY to avoid
+       warnings.
+
+2003-03-02  Richard Henderson  <rth@redhat.com>
+
+       * configure.in (HAVE_AS_LTOFFX_LDXMOV_RELOCS): New ia64 test.
+       * config.in, configure: Rebuild.
+       * config/ia64/ia64.c (ia64_ld_address_bypass_p): Accept lo_sum.
+       * config/ia64/ia64.md (load_symptr): Use high/lo_sum for the 
+       paired ldtoffx and ldxmov annotations.
+       (load_symptr_internal1): Remove.
+       (load_symptr_high, load_symptr_low): New.
+
+2003-03-02  Neil Booth  <neil@daikokuya.co.uk>
+
+       * c-incpath.c (add_path): Fix sysp assignment.
+
+2003-03-02  Kurt Garloff  <garloff@suse.de>
+
+       * params.def: Introduce parameter max-inline-insns-rtl for
+       a separate limit for the RTL inliner.
+       * params.h: Likewise.
+       * integrate.c (function_cannot_inline_p): Use it.
+       * toplev.c (decode_f_option): Set multiple parameters 
+       controlling inlining with -finline-limit.
+       * params.def: Fix orthographic and typographic errors.
+       * doc/invoke.texi: Document parameters controlling inlining
+       and the way -finline-limit sets multiple of them.
+
+       * tree.h (struct tree_decl): Introduce inlined_function_flag,
+       recording whether the function became eligible for inlining
+       by a compiler flag rather than the declaration.
+       Provide DID_INLINE_FUNC macro to access it.
+       * c-decl.c (grokdeclarator): Set DID_INLINE_FUNC.
+       * cp/decl.c (grokfndecl): Likewise.
+       * toplev.c (rest_of_compilation): Likewise.
+       * cp/optimize (maybe_clone_body): Copy DID_INLINE_FUNC.
+       * print-tree.c (print_node): Report it.
+       * params.def: Introduce new max-inline-insns-auto limit.
+       * params.h: Likewise.
+       * tree-inline.c (inlinable_function_p): Apply it to functions
+       with DID_INLINE_FUNC set.
+       * toplev.c (decode_f_option): Initialize it from -finline-limit
+       value.
+       * doc/invoke.texi: Document new parameter.
+
+2003-03-02  Geoffrey Keating  <geoffk@apple.com>
+
+       * fix-header.c (read_scan_file): Don't reference simplify_path.
+
+2003-03-02  Stephane Carrez  <stcarrez@nerim.fr>
+
+       * config/m68hc11/m68hc11.c (m68hc11_override_options): Don't enable
+       min/max instructions by default as may result in reload errors.
+
+2003-03-02  Stephane Carrez  <stcarrez@nerim.fr>
+
+       * config/m68hc11/m68hc11.md ("mulqi3"): Allow address register to
+       avoid reload problems; define split for it.
+
+2003-03-02  Stephane Carrez  <stcarrez@nerim.fr>
+
+       * config/m68hc11/m68hc11.c (m68hc11_shift_operator): New function.
+       * config/m68hc11/m68hc11-protos.h (m68hc11_shift_operator): Declare.
+       * config/m68hc11/m68hc11.h (PREDICATE_CODES): Register.
+       * config/m68hc11/m68hc11.md ("rotrhi3", "rotlhi3"): New patterns for 
+       rotatert and rotate.
+       ("rotrhi3_const", "rotlhi3_const"): Rename of old 'rotrhi3' insns.
+       ("*rotrhi3", "*rotlhi3"): New insn pattern for non-const rotatert.
+       ("*rotrhi3_addr"): New split for shift insns on address register.
+       ("*lshrhi3", "*ashrhi3", "*ashlhi3_2"): Use new split.
+       * config/m68hc11/larith.asm (___rotlhi3): New asm function.
+       (___rotrhi3): Likewise.
+       * config/m68hc11/t-m68hc11-gas (LIB1ASMFUNCS): Build them.
+
+2003-03-02  Neil Booth  <neil@daikokuya.co.uk>
+
+       * toplev.c (aux_base_name): Moved from toplev.h.
+       (filename): Constify.
+       (lang_dependent_init): Don't duplicate name.
+       (process_options): Set aux_base_name here, not...
+       (do_compile): ...here.  Change protoype.
+       (toplev_main): Move some code from do_compile.
+       * toplev.h: Remove aux_base_name.
+
+2003-03-02  Kazu Hirata  <kazu@cs.umass.edu>
+
+       * config/h8300/h8300-protos.h: Add a prototype for
+       iorxor_operator.
+       * config/h8300/h8300.c (print_operand): Handle 'c'.
+       (iorxor_operator): New.
+       * config/h8300/h8300.h (PREDICATE_CODES): Add iorxor_operator.
+       * config/h8300/h8300.md (*iorhi3_zext): Remove.
+       (*iorsi3_zexthi): Likewise.
+       (*iorsi3_zextsi): Likewise.
+       (*xorhi3_zextqi): Likewise.
+       (*xorsi3_zexthi): Likewise.
+       (*xorsi3_zextsi): Likewise.
+       (*ixorhi3_zext): New.
+       (*ixorsi3_zext_qi): Likewise.
+       (*ixorsi3_zext_hi): Likewise.
+
+2003-03-02  Neil Booth  <neil@daikokuya.co.uk>
+
+       * c-incpath.c (remove_component_p, simplify_path): Move back to
+       cppfiles.c.
+       (remove_duplicates): Use cpp_simplify_path.
+       * c-incpath.h (simplify_path): Remove.
+       * c-lex.c: Don't include c-incpath.h.
+       (init_c_lex): Remove simplify_path.
+       * cppfiles.c (remove_component_p, cpp_simplify_path): Restore.
+       (find_or_create_entry, validate_pch): Revert.
+
+2003-03-02  Ashif Harji  <asharji@uwaterloo.ca>
+
+       * gcc.c (default_compilers): Add -no-integrated-cpp flag to invoke
+         an external cpp during compilation.
+       (option_map): Likewise.
+       * objc/lang-specs.h (default_compilers): Similarly.
+       * doc/invoke.texi: Document -no-integrated-cpp flag.
+
+2003-03-02  Kazu Hirata  <kazu@cs.umass.edu>
+
+       * config/h8300/h8300.md (zero_extendqisi2): Change to an
+       expander.
+       (*zero_extendqisi2_h8300): New.
+       (*zero_extendqisi2_h8300hs): New.
+       (two splitters): New.
+
+2003-03-02  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
+
+       * fp-bit.h (float_to_usi): Fix condition wrapping prototype.
+
+2003-03-01  Kazu Hirata  <kazu@cs.umass.edu>
+
+       * config/h8300/h8300.md (a peephole2): Remove dead code.
+
+2003-03-01  Roger Sayle  <roger@eyesopen.com>
+
+       PR c++/9367
+       * builtin-types.def (DEF_FUNCTION_TYPE_VAR_3): New macro.
+       (BT_FN_INT_CONST_STRING_VALIST_ARG,
+       BT_FN_INT_STRING_CONST_STRING_VALIST_ARG,
+       BT_FN_INT_CONST_STRING_CONST_STRING_VALIST_ARG,
+       BT_FN_INT_STRING_SIZE_CONST_STRING_VALIST_ARG,
+       BT_FN_INT_STRING_CONST_STRING_VAR,
+       BT_FN_INT_CONST_STRING_CONST_STRING_VAR,
+       BT_FN_INT_STRING_SIZE_CONST_STRING_VAR): New built-in types.
+       * builtin-attrs.def (ATTR_NONNULL_1, ATTR_NONNULL_2,
+       ATTR_NONNULL_3): Also include the nothrow attribute.
+       (sprintf, scanf, sscanf, vprintf, vsprintf, snprintf,
+       vsnprintf, vscanf, vsscanf): Don't define attributes here.
+       * builtins.def (putchar, puts): Make full C89 built-ins.
+       (snprintf, sprintf, scanf, sscanf, vprintf, vscanf,
+       vsscanf, vsnprintf, vsprintf): New built-ins.
+       * c-common.c (c_common_nodes_and_builtins): Handle new macro
+       DEF_FUNCTION_TYPE_VAR_3.
+
+       * doc/extend.texi: Document these new built-in functions.
+
+2003-03-01  Kazu Hirata  <kazu@cs.umass.edu>
+
+       * config/h8300/h8300.md (a peephole2): New.
+
+2003-03-01  Richard Earnshaw  <rearnsha@arm.com>
+
+       * predict.c (estimate_bb_frequencies): Correctly set
+       real_values_initialized after initialization.
+
+2003-03-01  Neil Booth  <neil@daikokuya.co.uk>
+
+       * Makefile.in (C_AND_OBJC_OBJS, c-incpath.o, c-lex.o, LIBCPP_OBJS,
+       cppinit.o, cppdefault.o, fix-header): Update.
+       * c-incpath.c: New file.
+       * c-incpath.h: New file.
+       * c-lex.c: Include c-incpath.h.
+       (init_c_lex): Register path simplifier.
+       * c-opts.c: Include cppdefault.h and c-incpath.h.
+       (TARGET_SYSTEM_ROOT, verbose, iprefix, sysroot, std_inc,
+       std_cxx_inc, quote_chain_split, add_prefixed_path): New.
+       (COMMAND_LINE_OPTIONS): Add more options from cpplib.
+       (missing_arg, c_common_decode_option): Handle them.
+       (c_common_post_options): Register include chains.
+       (print_help): Update.
+       * cppdefault.h (struct default include): Update.
+       Move some macros to ...
+       * cppdefault.c: ... here.
+       (cpp_include_defaults): Add extra field add_sysroot.
+       * cppfiles.c (include_file, search_from, find_or_create_entry,
+       cpp_included, find_include_file, remap_filename): Update for
+       renaming of search_path to cpp_path, and of the chain headers.
+       (remove_component_p, _cpp_simplify_pathname): Move to c-incpath.c.
+       * cpphash.h (struct search_path): Move to cpplib.h.
+       (struct cpp_buffer, struct cpp_reader): Update.
+       (_cpp_simplify_pathname): Remove.
+       * cppinit.c: Don't include prefix.h and cppdefault.h.
+       (INO_T_EQ, INO_T_COPY, path_include, append_include_chain,
+       remove_dup_dir, remove_dup_nonsys_dirs, remove_dup_dirs,
+       init_standard_includes, BRACKET, SYSTEM, AFTER, no_dir,
+       no_pth, cpp_handle_options): Remove.
+       (struct pending_option): Remove chain members.
+       (cpp_destroy, cpp_read_main_file, COMMAND_LINE_OPTIONS,
+       cpp_handle_option): Update.
+       * cpplib.h (struct cpp_path, cpp_set_include_chains): New.
+       (struct cpp_options): Remove quote_include, bracket_include,
+       include_prefix, include_prefix_len, verbose, ignore_srcdir,
+       no_standard_includes, no_standard_cplusplus_includes.
+       (struct cpp_callbacks): Add simplify_path.
+       (cpp_handle_options): Remove.
+       * fix-header.c: Include c-incpath.h.
+       (read_scan_file): Update to use c-incpath functionality.
+       * doc/passes.texi: Update.
+
+2003-03-01  Kazu Hirata  <kazu@cs.umass.edu>
+
+       * config/h8300/h8300.c (bit_operand): Accept MEM only if it
+       satisfies EXTRA_CONSTRAINT 'U'.
+
+2003-03-01  Kazu Hirata  <kazu@cs.umass.edu>
+
+       * config/h8300/h8300.md (*tst_extzv_bitqi_1_n): Take a scratch
+       register.
+       (*tst_extzv_memqi_1_n): Change to a splitter.
+       (a peephole2): Update.
+
+2003-03-01  Richard Earnshaw  <rearnsha@arm.com>
+
+       * predict.c (estimate_bb_frequencies): Initialize the sreal
+       constants once per compilation.
+
+2003-02-28  Richard Henderson  <rth@redhat.com>
+
+       * toplev.c (flag_eliminate_unused_debug_types): Enable by default.
+
+2003-02-28  scott snyder  <snyder@fnal.gov>
+
+       * flags.h: Add flag_eliminate_unused_debug_types.
+       * toplev.c: Add flag_eliminate_unused_debug_types.
+       (f_options): Add -feliminate-unused-debug-types.
+       * dwarf2out.c (struct file_table): Add emitted member.
+       (splice_child_die): Fix the parent pointer for the child being
+       spliced.
+       (lookup_filename): Maintain file_table.emitted array.  Don't
+       output .file directive here.
+       (maybe_emit_file): (new)
+       (init_file_table): Set up file_table.emitted.
+       (dwarf2out_source_line): Use maybe_emit_file.
+       (dwarf2out_start_source_file): Use maybe_emit_file.
+       (dwarf2out_init): Use maybe_emit_file.
+       (prune_unused_types_walk_attribs): (new)
+       (prune_unused_types_mark): (new)
+       (prune_unused_types_walk): (new)
+       (prune_unused_types_prune): (new)
+       (prune_unused_types): (new)
+       (dwarf2out_finish): Call prune_unused_types if
+       flag_eliminate_unused_debug_types is set.
+       * doc/invoke.texi (Option Summary): Add
+       -feliminate-unused-debug-types.
+       (Debugging Options): Likewise.
+
+2003-02-28  Geoffrey Keating  <geoffk@apple.com>
+
+       * doc/invoke.texi: Change .pch to .gch.
+       * cppfiles.c (open_file_pch): Likewise.
+       * gcc.c (default_compilers): Likewise.
+
+2003-02-28  Aldy Hernandez  <aldyh@redhat.com>
+
+        * floatlib.c: Remove.
+
+2003-02-28  Jason Merrill  <jason@redhat.com>
+
+       * stor-layout.c (variable_size): Leave a "minus 1" outside the
+       SAVE_EXPR.
+
 2003-02-28  David Edelsohn  <edelsohn@gnu.org>
 
        * config/rs6000/power4.md: Add compare bypass.