OSDN Git Service

Patch from Art Haas
[pf3gnuchains/gcc-fork.git] / gcc / ChangeLog
index 1ee33fb..b7d4823 100644 (file)
@@ -1,3 +1,508 @@
+2003-07-06  Art Haas  <ahaas@airmail.net>
+
+       * f/global.c (ffeglobal_type_string_): Fix obsolete GCC array
+       initializer syntax.
+
+2003-07-06  James E Wilson  <wilson@tuliptree.org>
+
+       PR optimization/9812
+       * rtl.h (mem_for_const_double): Delete prototype.
+       * varasm.c (mem_for_const_double): Delete function.
+       * config/m68k/hp320.h, config/m68k/linux.h, config/m68k/m68kelf.h,
+       config/m68k/m68kv4.h, config/m68k/netbsd-elf.h
+       (LEGITIMATE_PIC_OPERAND_P): Delete duplicate definitions.
+       * config/m68k/m68k.h (LEGITIMATE_CONSTANT_P): Disallow XFmode.
+       (LEGITIMATE_PIC_OPERAND_P): Delete CONST_DOUBLE tests.
+       * config/m68k/m68k.md (movxf): Add reload_in_progress guard.  Add
+       comment about confused support for XFmode constants.
+
+Mon Jul  7 02:03:56 CEST 2003  Jan Hubicka  <jh@suse.cz>
+
+       * cfglayout.c (fixup_reorder_chain): Call delete_dead_jumptables.
+
+2003-07-06  Kazu Hirata  <kazu@cs.umass.edu>
+
+       * config/h8300/h8300.c: Fix comment typos.
+       * config/h8300/h8300.md: Likewise.
+       * config/i386/athlon.md: Likewise.
+       * config/i386/i386.c: Likewise.
+       * config/i386/pentium.md: Likewise.
+       * config/ia64/ia64.c: Likewise.
+       * config/ia64/itanium1.md: Likewise.
+       * config/ia64/itanium2.md: Likewise.
+       * config/m32r/m32r.md: Likewise.
+       * config/m68hc11/m68hc11.c: Likewise.
+       * config/mcore/mcore.c: Likewise.
+       * config/mips/sr71k.md: Likewise.
+       * config/mips/t-iris5-as: Likewise.
+       * config/mmix/mmix.h: Likewise.
+       * config/ns32k/ns32k.h: Likewise.
+       * config/ns32k/NOTES: Fix a typo.
+
+2003-07-06  Andreas Jaeger  <aj@suse.de>
+
+       * stmt.c: Convert remaining prototypes to ISO C90.
+       * cfglayout.c: Likewise.
+       * dbxout.c: Likewise.
+       * gcc.c: Likewise.
+       * genemit.c: Likewise.
+
+       * basic-block.h: Convert prototypes to ISO C90.
+       * c-parse.in: Likewise.
+       * c-pragma.h: Likewise.
+       * c-typeck.c: Likewise.
+       * cfghooks.h: Likewise.
+       * cfgloopanal.c: Likewise.
+       * dbxout.h: Likewise.
+       * debug.h: Likewise.
+       * dwarf2asm.h: Likewise.
+       * gcov.c: Likewise.
+       * gengtype-lex.l: Likewise.
+       * sched-int.h: Likewise.
+       * timevar.c: Likewise.
+
+2003-07-06  Neil Booth  <neil@daikokuya.co.uk>
+
+       * c-common.h (c_comon_handle_filename,
+       c_common_missing_arguement): New.
+       * c-lang.c (LANG_HOOKS_HANDLE_FILENAME,
+       LANG_HOOKS_MISSING_ARGUMENT): New.
+       * c-opts.c (missing_arg): Rename c_common_missing_argument,
+       update to be an appropriate langhook.
+       (c_common_handle_option): Don't handle filenames.
+       (c_common_handle_filename): New.
+       * hooks.c (hook_void_constcharptr,
+       hook_bool_constcharptr_size_t_false): New.
+       * hooks.h (hook_void_constcharptr,
+       hook_bool_constcharptr_size_t_false): New.
+       * langhooks-def.h (LANG_HOOKS_HANDLE_FILENAME,
+       LANG_HOOKS_MISSING_ARGUMENT): New.
+       (LANG_HOOKS_INITIALIZER): Update.
+       * langhooks.h (struct lang_hooks): Add handle_filename and
+       missing_argument.
+       * opts.c (handle_option): Don't handle filenames here, but ...
+       (handle_options): ... here.
+       (common_handle_option): Don't handle missing arguments here.
+       * objc/objc-lang.c (LANG_HOOKS_HANDLE_FILENAME,
+       LANG_HOOKS_MISSING_ARGUMENT): New.
+
+2003-07-06  Neil Booth  <neil@daikokuya.co.uk>
+
+       * Makfile.in: Remove traces of mbchar.
+       * c-parse.in (MULTIBYTE_CHARS): Remove.
+       * config.in (MULTIBYTE_CHARS): Remove.
+       * configure: Remove --enable-mbchar.
+       * configure.in: Remove --enable-mbchar.
+       * mbchar.c, mbchar.h: Remove.
+       * system.h: Poison MULTIBYTE_CHARS.
+       * config/linux-aout.h (MULTIBYTE_CHARS): Remove.
+       * config/linux.h (MULTIBYTE_CHARS): Remove.
+       * config/svr4.h (MULTIBYTE_CHARS): Remove.
+       * config/sparc/linux.h (MULTIBYTE_CHARS): Remove.
+
+2003-07-06  Andreas Jaeger  <aj@suse.de>
+
+       * varray.c (varray_check_failed): Fix typo.
+
+       * unroll.c: Convert prototypes to ISO C90.
+       * varasm.c: Likewise.
+       * varray.c: Likewise.
+       * varray.h: Likewise.
+       * vmsdbgout.c: Likewise.
+       * xcoffout.c: Likewise.
+       * xcoffout.h: Likewise.
+
+2003-07-06  Nathan Sidwell  <nathan@codesourcery.com>
+
+       * gcov-io.h: Add a local time stamp.
+       (struct gcov_info): Add stamp field.
+       (gcov_truncate): New.
+       * coverage.c (read_counts_file): Skip the stamp.
+       (coverage_begin_output): Write the stamp.
+       (build_gcov_info): Declare and init the stamp.
+       (coverage_finish): Only unlink data file, if stamp is zero.
+       * gcov-dump.c (dump_file): Dump the stamp.
+       * gcov.c (bbg_stamp): New.
+       (release_structures): Clear bbg_stamp.
+       (read_graph_file): Read stamp.
+       (read_count_file): Check stamp.
+       * libgcov.c (gcov_exit): Check stamp and truncate if needed.
+
+2003-07-06  Nathan Sidwell  <nathan@codesourcery.com>
+
+       * tree.h (default_flag_random_seed): Remove.
+       * toplev.h (local_tick): Declare.
+       * tree.c (flag_random_seed, default_flag_random_seed): Move to
+       toplev.c.
+       (append_random_chars): Don't call default_flag_random_seed.
+       * toplev.c (flag_random_seed): Define here. Set local_tick.
+       (local_tick): Define.
+       (randomize): New, moved from tree.c.
+       (print_switch_values): Adjust.
+       (toplev_main): Call randomize.
+
+2003-07-06  Nathan Sidwell  <nathan@codesourcery.com>
+
+       * tree.h (crc32_string): Declare.
+       * tree.c (append_random_chars): Remove.
+       (crc32_string): New.
+       (get_file_function_name_long): Use crc32_string here.
+
+2003-07-06  Andreas Jaeger  <aj@suse.de>
+
+       * gcc.c: Convert prototypes to ISO C90.
+       * gcc.h: Likewise.
+       * gcov-dump.c: Likewise.
+       * gcov-iov.c: Likewise.
+       * gcse.c: Likewise.
+       * genattrtab.h: Likewise.
+       * ggc.h: Likewise.
+       * global.c: Likewise.
+       * graph.c: Likewise.
+       * graph.h: Likewise.
+       * hosthooks.h: Likewise.
+       * hooks.h: Likewise.
+       * hooks.c: Likewise.
+       * hashtable.h: Likewise.
+       * hashtable.c: Likewise.
+       * haifa-sched.c: Likewise.
+       * integrate.h: Likewise.
+       * integrate.c: Likewise.
+       * input.h: Likewise.
+       * ifcvt.c: Likewise.
+       * jump.c: Likewise.
+       * langhooks-def.h: Likewise.  Add extern to prototypes.
+       * langhooks.c: Likewise.
+       * langhooks.h: Likewise.
+       * lcm.c: Likewise.
+       * local-alloc.c: Likewise.
+       * loop-init.c: Likewise.
+       * loop-unroll.c: Likewise.
+       * loop-unswitch.c: Likewise.
+       * loop.c: Likewise.
+       * loop.h: Likewise. Add extern to prototypes.
+       * machmode.h: Likewise.
+       * main.c: Likewise.
+       * mbchar.c: Likewise.
+       * mbchar.h: Likewise.
+       * mkdeps.c: Likewise.
+       * mkdeps.h: Likewise.
+       * optabs.c: Likewise.
+       * optabs.h: Likewise.
+       * output.h: Likewise.
+       * gccspec.c: Likwise.
+       * postreload.c: Likewise.
+       * prefix.c: Likewise.
+       * prefix.h: Likewise.
+       * print-rtl.c: Likewise.
+       * print-tree.c: Likewise.
+       * profile.c: Likewise.
+       * read-rtl.c: Likewise.
+       * real.c: Likewise.
+       * real.h: Likewise.
+       * recog.c: Likewise.
+       * recog.h: Likewise.
+       * reg-stack.c: Likewise.
+       * regclass.c: Likewise.
+       * regmove.c: Likewise.
+       * regrename.c: Likewise.
+       * regs.h: Likewise.
+       * reload.c: Likewise.
+       * reload.h: Likewise.
+       * reload1.c: Likewise.
+       * reorg.c: Likewise.
+       * resource.c: Likewise.
+       * resource.h: Likewise.
+       * rtl-error.c: Likewise.
+       * rtl.c: Likewise.
+       * rtl.h: Likewise.
+       * rtlanal.c: Likewise.
+       * sbitmap.c: Likewise.
+       * sbitmap.h: Likewise.
+       * scan-decls.c: Likewise.
+       * scan.c: Likewise.
+       * sched-deps.c: Likewise.
+       * sched-ebb.c: Likewise.
+       * sched-int.h: Likewise.
+       * sched-rgn.c: Likewise.
+       * sched-vis.c: Likewise.
+       * sibcall.c: Likewise.
+       * simplify-rtx.c: Likewise.
+       * sreal.c: Likewise.
+       * sreal.h: Likewise.
+       * ssa-ccp.c: Likewise.
+       * ssa-dce.c: Likewise.
+       * ssa.c: Likewise.
+       * ssa.h: Likewise.
+       * stack.h: Likewise.
+       * stmt.c: Likewise.
+       * stor-layout.c: Likewise.
+       * stringpool.c: Likewise.
+       * target.h: Likewise.
+       * timevar.c: Likewise.
+       * timevar.h: Likewise.
+       * tlink.c: Likewise.
+       * tracer.c: Likewise.
+       * tree-inline.c: Likewise.
+       * tree-inline.h: Likewise.
+       * tree.c: Likewise.
+       * tree.h: Likewise.
+
+2003-07-05  Kazu Hirata  <kazu@cs.umass.edu>
+
+       * combine.c (nonzero_bits1): Fix a warning.
+
+2003-07-05  Kazu Hirata  <kazu@cs.umass.edu>
+
+       * config/h8300/h8300.c (compute_mov_length): Correct the
+       length of loading CONST0_RTX (SFmode).
+
+2003-07-05  Nathan Sidwell  <nathan@codesourcery.com>
+
+       * toplev.c (output_clean_symbol_name): Remove.
+       * toplev.h (output_clean_symbol_name): Remove.
+       * config/alpha/alpha.c (unicosmk_output_module_name): Use
+       lbasename & clean_symbol_name.
+
+2003-07-05  Kazu Hirata  <kazu@cs.umass.edu>
+
+       * ggc.h: Follow spelling conventions.
+       * config/i386/i386.c: Likewise.
+       * config/i386/winnt.c: Likewise.
+       * config/rs6000/rs6000.c: Likewise.
+
+2003-07-05  Kazu Hirata  <kazu@cs.umass.edu>
+
+       * bt-load.c: Fix comment typos.
+       * c-incpath.c: Likewise.
+       * cfg.c: Likewise.
+       * cfgcleanup.c: Likewise.
+       * cfgloop.h: Likewise.
+       * cfgloopmanip.c: Likewise.
+       * cfgrtl.c: Likewise.
+       * diagnostic.h: Likewise.
+       * dwarfout.c: Likewise.
+       * emit-rtl.c: Likewise.
+       * et-forest.c: Likewise.
+       * et-forest.h: Likewise.
+       * expr.c: Likewise.
+       * gcse.c: Likewise.
+       * genattr.c: Likewise.
+       * jump.c: Likewise.
+       * langhooks.h: Likewise.
+       * local-alloc.c: Likewise.
+       * loop-unroll.c: Likewise.
+       * loop-unswitch.c: Likewise.
+       * ra-build.c: Likewise.
+       * regclass.c: Likewise.
+       * regmove.c: Likewise.
+       * rtl.def: Likewise.
+       * rtlanal.c: Likewise.
+       * sched-ebb.c: Likewise.
+       * sched-rgn.c: Likewise.
+       * simplify-rtx.c: Likewise.
+       * ssa.c: Likewise.
+       * tracer.c: Likewise.
+       * tree.c: Likewise.
+
+2003-07-05  Zack Weinberg  <zack@codesourcery.com>
+
+       * cppcharset.c: Use the correct return type for the fallback iconv
+       macro.
+
+Sat Jul  5 16:18:53 CEST 2003  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
+
+       Blame to Jan Hubicka  <jh@suse.cz>
+       * cfglayout.c (record_effective_endpoints): Split insns before
+       first basic block correctly.
+
+2003-07-05  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
+
+       * expr.c (expand_expr, case COMPONENT_REF): When seeing if should use
+       bitfield operations, use STRICT_ALIGNMENT, not SLOW_UNALIGNED_ACCESS
+       if EXPAND_CONST_ADDRESS or EXPAND_INITIALIZER.
+
+2003-07-05  Andreas Jaeger  <aj@suse.de>
+
+       * genattrtab.c (write_attr_get): Revert part of last patch to
+       always write out a prototype.
+
+       * genemit.c (gen_split): Readd lost unused attributes in last
+       patch.
+
+2003-07-05  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
+
+       * cfgloopmanip.c (force_single_succ_latches): Force latch to be
+       different from header.
+
+2003-07-05  Andreas Schwab  <schwab@suse.de>
+
+       * config/m68k/m68k.c: Remove code protected by CRDS.
+       * config/m68k/m68k.md: Likewise.
+
+2003-07-05  Neil Booth  <neil@daikokuya.co.uk>
+
+       PR driver/11417
+       * c-opts.c (permit_fortran_options): New.
+       (c_common_init_options): Accept fortran front end options if
+       it looks like we might be preprocessing Fortran.
+       (c_common_handle_option): Don't reject switch if permit_fotran_options.
+
+2003-07-05  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
+
+       * genattr.c (internal_dfa_insn_code): Output prototype.
+       * genattrtab.c: Don't output unnecessary decls, output in ISO C.
+       * genautomata.c: Likewise.
+       * genconditions.c: Likewise.
+       * genemit.c: Likewise.
+       * genextract.c: Likewise.
+       * gengenrtl.c: Likewise.
+       * gengtype.c: Likewise.
+       * genopinit.c: Likewise.
+       * genoutput.c: Likewise.
+       * genpeep.c: Likewise.
+       * genrecog.c: Likewise.
+
+2003-07-04  Zack Weinberg  <zack@codesourcery.com>
+
+       * cpplib.h (CPP_AT_NAME, CPP_OBJC_STRING): New token types.
+       (struct cpp_options): Add narrow_charset, wide_charset,
+       bytes_big_endian fields.  Remove EBCDIC field.
+       (cpp_init_iconv, cpp_interpret_string): New external interfaces.
+
+       * cpphash.h: Include <iconv.h> if we have it, otherwise
+       provide a dummy definition of iconv_t.
+       (struct cpp_reader): Add narrow_cset_desc and wide_cset_desc fields.
+       (_cpp_valid_ucn): Update prototype.
+       (_cpp_destroy_iconv): New prototype.
+
+       * doc/cpp.texi: Document character set handling.
+       * doc/cppopts.texi: Document -fexec-charset= and -fexec-wide-charset=.
+       * doc/extend.texi: Delete entire section on multiline strings.
+       Rewrite section on __FUNCTION__ etc now that these are
+       variables in C.
+
+       * cppucnid.tab, cppucnid.pl: New files.
+       * cppucnid.h: New generated file.
+       * cppcharset.c: Include cppucnid.h.  Lots of commentary added.
+       (iconv_open, iconv, iconv_close): Provide dummy definitions
+       if !HAVE_ICONV.
+       (SOURCE_CHARSET, struct strbuf, init_iconv_desc, cpp_init_iconv,
+       _cpp_destroy_iconv, convert_cset, width_to_mask, convert_ucn,
+       emit_numeric_escape, convert_hex, convert_oct, convert_escape,
+       cpp_interpret_string, narrow_str_to_charconst,
+       wide_str_to_charconst): New.
+       (ucn_valid_in_identifier): Use a binary search through the
+       ucnranges table defined in cppucnid.h, not a long chain of if
+       statements.
+       (_cpp_valid_ucn): Add a limit pointer.  Downgrade "universal
+       character names are only valid in C++ and C99" to a warning.
+       Issue the "meaning of \[uU] is different in traditional C"
+       warning here.  Take care not to let iconv see an invalid UCS
+       value if we get a malformed UCN.  Issue an error if we don't
+       have iconv.
+       (cpp_interpret_charconst): Moved here from cpplex.c.  Use
+       cpp_interpret_string to do the heavy lifting.
+
+       * cppinit.c (cpp_create_reader): Initialize bytes_big_endian,
+       narrow_charset, wide_charset fields of options structure.
+       (cpp_destroy): Call _cpp_destroy_iconv.
+       * cpplex.c (forms_identifier_p): Adjust call to _cpp_valid_ucn.
+       (maybe_read_ucn, hex_digit_value, cpp_parse_escape): Delete.
+       (cpp_interpret_charconst): Moved to cppcharset.c.
+       * cpplib.c (dequote_string): Delete.
+       (interpret_string_notranslate): New.
+       (do_line, do_linemarker): Use interpret_string_notranslate.
+
+       * Makefile.in (cppcharset.o): Depend on cppucnid.h.
+
+       * c-common.c (fname_string, combine_strings): Delete.
+       * c-common.h (fname_string, combine_strings): Delete prototypes.
+       * c-lex.c (ignore_escape_flag): Delete.
+       (cb_ident): Use cpp_interpret_string, not lex_string.
+       (get_nonpadding_token): New function.
+       (c_lex): Handle Objective-C @-prefixed identifiers and strings here.
+       Adjust calls to lex_string.  Don't write *value twice.
+       (lex_string): Now handles string constant concatenation.
+       Most of the work handed off to cpp_interpret_string.
+       Call fix_string_type here.
+       * c-parse.in (STRING_FUNC_NAME, VAR_FUNC_NAME): Replace with
+       FUNC_NAME, throughout.
+       (OBJC_STRING): New token type.
+       (primary:STRING): No need to call fix_string_type here.
+       (primary:objc_string): Make that OBJC_STRING.
+       (objc_string nonterminal): Delete.
+       (yylexname): Delete code to handle fake string constants.
+       (yylexstring): Delete entirely.
+       (_yylex): Handle CPP_AT_NAME and CPP_OBJC_STRING.  No need
+       to handle CPP_ATSIGN.
+
+       * c.opt (-fexec-charset=, -fwide-exec-charset=): New options.
+       * c-opts.c (missing_arg, c_common_handle_option): Handle
+       OPT_fexec_charset_ and OPT_fwide_exec_charset_.
+       (c_common_init): Set cpp_opts->bytes_big_endian, not
+       cpp_opts->EBCDIC.  Call cpp_init_iconv.
+       (print_help): Document -fexec-charset= and -fexec-wide-charset=.
+       (TARGET_EBCDIC): Delete default definition.
+
+       * objc/objc-act.c (build_objc_string_object): No need to
+       handle string constant concatenation.
+
+2003-07-04  Kazu Hirata  <kazu@cs.umass.edu>
+
+       * doc/install.texi: Fix typos.
+       * doc/invoke.texi: Likewise.
+       * doc/tm.texi: Likewise.
+
+2003-07-04  Kazu Hirata  <kazu@cs.umass.edu>
+
+       * config/pa/fptr.c: Fix comment typos.
+       * config/pa/pa-64.h: Likewise.
+       * config/pa/pa.c: Likewise.
+       * config/pa/pa.h: Likewise.
+       * config/rs6000/603.md: Likewise.
+       * config/rs6000/7xx.md: Likewise.
+       * config/rs6000/darwin.h: Likewise.
+       * config/rs6000/freebsd.h: Likewise.
+       * config/rs6000/rs6000.c: Likewise.
+       * config/rs6000/rs6000.md: Likewise.
+       * config/rs6000/spe.h: Likewise.
+
+2003-07-04  Ulrich Weigand  <uweigand@de.ibm.com>
+
+       * config/s390/2064.md: Change GNU CC to GCC.
+       * config/s390/2084.md: Likewise.
+       * config/s390/fixdfdi.h: Likewise.
+       * config/s390/linux.h: Likewise.
+       * config/s390/s390-modes.def: Likewise.
+       * config/s390/s390-protos.h: Likewise.
+       * config/s390/s390.c: Likewise.
+       * config/s390/s390.h: Likewise.
+       * config/s390/s390.md: Likewise.
+       * config/s390/s390x.h: Likewise.
+
+2003-07-04  Jeff Law  <law@redhat.com>
+
+       PR c/11428
+       * expr.c (do_store_flag): Pass in the correct result type
+       when calling fold_single_bit_test.
+       * fold-const.c (fold_single_bit_test): Use result_type for the
+       result when folding a sign bit test.
+
+2003-07-04  Neil Booth  <neil@daikokuya.co.uk>
+
+       * opts.c (common_handle_options): Negate sense of -falign- switches.
+
+2003-07-04  H.J. Lu <hongjiu.lu@intel.com>
+
+       * Makefile.in: Replace PWD with PWD_COMMAND.
+
+2003-07-04  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
+
+       * cfgloopanal.c (count_strange_loop_iterations): New static function.
+       (constant_iterations, count_loop_iterations, simple_loop_exit_p):
+       Handle strange loops.
+
 2003-07-04  Toon Moene  <toon@moene.indiv.nluug.nl>
 
        * install.texi: Even the g77 manpage is derived from