OSDN Git Service

Use c_fix = format instead of sed
[pf3gnuchains/gcc-fork.git] / gcc / ChangeLog
index ab60966..e743447 100644 (file)
@@ -1,3 +1,320 @@
+2002-05-21  Bruce Korb  <bkorb@gnu.org>
+
+       * fixinc/tests/base/pthread.h(THREAD_KEYWORD_CHECK): add fix check
+       * fixinc/inclhack.def(thread_keyword): use c_fix = format.
+       * fixinc/fixincl.x: regen.
+
+2002-05-21  Kazu Hirata  <kazu@cs.umass.edu>
+
+       * cfgbuild.c: Fix formatting.
+       * cfg.c: Likewise.
+       * cfgcleanup.c: Likewise.
+       * cfglayout.c: Likewise.
+       * cfgloop.c: Likewise.
+       * cfgrtl.c: Likewise.
+
+2002-05-21  Richard Henderson  <rth@redhat.com>
+
+       * c-common.h (enum rid): Add RID_THREAD.
+       * c-decl.c (start_decl): Do not set DECL_COMMON for tls variables.
+       (grokdeclarator): Grok __thread.
+       * c-parse.in (reswords): Add __thread.
+       (rid_to_yy): Add RID_THREAD.
+
+       * tree.h (DECL_THREAD_LOCAL): New.
+       (struct tree_decl): Add thread_local_flag.
+       * print-tree.c (print_node): Dump DECL_THREAD_LOCAL.
+       * tree.c (staticp): TLS variables are not static.
+
+       * target-def.h (TARGET_HAVE_TLS): New.
+       * target.h (have_tls): New.
+       * output.h (SECTION_TLS): New.
+       * varasm.c (assemble_variable): TLS variables can't be common for now.
+       (default_section_type_flags): Handle .tdata and .tbss.
+       (default_elf_asm_named_section): Handle SECTION_TLS.
+       (categorize_decl_for_section): Handle DECL_THREAD_LOCAL.
+
+       * flags.h (flag_tls_default): Declare.
+       * toplev.c (flag_tls_default): Define.
+       (display_help): Display help for it.
+       (decode_f_option): Set it.
+
+       * doc/extend.texi (Thread-Local): New node describing language-level
+       thread-local storage.
+       * doc/invoke.texi (-ftls-model): Document.
+
+       * fixinc/inclhack.def (thread_keyword): New.
+       * fixinc/fixincl.x: Rebuild.
+
+2002-05-21  Jeffrey A Law  <law@redhat.com>
+
+       * optabs.c (expand_binop): For double-word integer multiplies,
+       do not compute intermediate results into something that is
+       not a register (such as a SUBREG or MEM).
+
+       * i386.c (ix86_sched_reorder_ppro): Fix typo/thinko.
+       (ix86_sched_reorder): Make sure to initialize scheduling
+       data even when there's only one insn in the ready queue.
+
+2002-05-21  Vladimir Makarov  <vmakarov@redhat.com>
+
+       * genautomata.c (reserv_sets_hash_value): Fix a typo.
+
+2002-05-21  Vladimir Makarov  <vmakarov@redhat.com>
+
+       * genautomata.c (reserv_sets_hash_value): Define hash_value as
+       set_el_t.  Transform the hash value into unsigned.
+       (output_cycle_reservs): Fix bug with output of repeated `nothing'.
+       (transform_3): Add code to process `(A,B)+(D,E)'.
+
+2002-05-21  NIIBE Yutaka  <gniibe@m17n.org>
+
+       * reload1.c (do_output_reload): Run delete_output_reload
+       only if optimizing.
+
+2002-05-21  Roger Sayle  <roger@eyesopen.com>
+
+       PR middle-end/6600
+       * expr.c (STORE_MAX_PIECES): New macro to avoid immediate constants
+       larger than INTEGER_CST.  (store_by_pieces_1): Use it here...
+       (can_store_by_pieces): ... and here to limit the largest mode used.
+       Add a comment to document this function.
+
+2002-05-21  Richard Henderson  <rth@redhat.com>
+
+       * flow.c (life_analysis): Fix test for deleted label.
+
+2002-05-21  Neil Booth  <neil@daikokuya.demon.co.uk>
+
+       * doc/tm.texi: Fix typo.
+
+2002-05-21  Zack Weinberg  <zack@codesourcery.com>
+
+       * c-common.c (c_common_init): Set options->unsigned_char from
+       flag_signed_char.
+       (cb_register_builtins): Define __STRICT_ANSI__ and
+       __CHAR_UNSIGNED__ here...
+       * cppinit.c (init_builtins): Not here.
+       (cpp_create_reader): unsigned_char option defaults to 0, not
+       !DEFAULT_SIGNED_CHAR.
+       (COMMAND_LINE_OPTIONS, cpp_handle_option): Lose -fsigned-char
+       and -funsigned-char.
+
+       * cpphash.h (struct spec_nodes): Kill n__STRICT_ANSI__.
+       * cpphash.c (_cpp_init_hashtable): Don't set it.
+       * cppmacro.c (builtin_macro) [BT_STDC]: Use the language setting
+       directly.  Clarify comment.
+
+2002-05-21  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
+
+       * bb-reorder.c (make_reorder_chain_1): Use prev_bb/next_bb to get to
+       neighbouring basic blocks.  Use ENTRY_BLOCK_PTR->next_bb instead of
+       BASIC_BLOCK (0).  Use EXIT_BLOCK_PTR->prev_bb instead of
+       BASIC_BLOCK (n_basic_blocks - 1).
+       * cfganal.c (can_fallthru, flow_call_edges_add,
+       flow_preorder_transversal_compute): Too.
+       * cfgbuild.c (make_edges, find_basic_blocks, find_many_sub_basic_blocks,
+       find_sub_basic_blocks): Too.
+       * cfgcleanup.c (try_simplify_condjump, try_optimize_cfg): Too.
+       * cfglayout.c (skip_insns_after_block, fixup_reorder_chain,
+       fixup_fallthru_exit_predecessor, cfg_layout_redirect_edge): Too.
+       * cfgrtl.c (tidy_fallthru_edges, verify_flow_info): Too.
+       * combine.c (this_basic_block): Type changed to basic_block.
+       (combine_instructions, set_nonzero_bits_and_sign_copies, try_combine,
+       nonzero_bits, num_sign_bit_copies, get_last_value_validate,
+       get_last_value, distribute_notes, distribute_links): Too.
+       * final.c (compute_alignments): Too.
+       * flow.c (regno_uninitialized, regno_clobbered_at_setjmp): Too.
+       * function.c (thread_prologue_and_epilogue_insns): Too.
+       * gcse.c (compute_code_hoist_vbeinout): Too.
+       * global.c (build_insn_chain): Too.
+       * ifcvt.c (find_if_block, find_cond_trap): Too.
+       * predict.c (last_basic_block_p, note_prediction_to_br_prob): Too.
+       * regmove.c (regmove_optimize): Too.
+       * resource.c (find_basic_block): Too.
+       * sched-ebb.c (schedule_ebbs): Too.
+       * ssa-dce.c (find_control_dependence, find_pdom): Too.
+
+2002-05-21  Andreas Jaeger  <aj@suse.de>
+
+       * cppinit.c (sanity_checks): Avoid printf mismatch warnings.
+
+2002-05-21  Richard Henderson  <rth@redhat.com>
+
+       * reg-stack.c (swap_rtx_condition, subst_stack_regs_pat): Use
+       unspec names, not numbers.
+
+2002-05-21  Joseph S. Myers  <jsm28@cam.ac.uk>
+
+       * doc/sourcebuild.texi: Mention snapshot-README and
+       snapshot-index.html as needing updating for new front ends.
+
+2002-05-21  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
+
+       * rtl.h (SUBREG_PROMOTED_UNSIGNED_SET): Avoid warnings when
+       disabling checking, and avoid multiple evaluation of RTX.
+
+2002-05-21  Richard Earnshaw  <rearnsha@arm.com>
+
+       * bitmap.c (bitmap_find_bit): Return early if we have the correct
+       element cached.
+
+Tue May 21 10:51:54 CEST 2002  Jan Hubicka  <jh@suse.cz>
+
+       * profile.c (gen_edge_profiler):  Set alias set before the memory is
+       used.
+
+2002-05-20  David S. Miller  <davem@redhat.com>
+
+       * cselib.c (max_value_regs): New.
+       (cselib_lookup, cselib_invalidate_regno): Initialize it when
+       adding new entries to the REG_VALUES table and we are dealing with
+       a hard register.
+       (clear_table): Initialize it.
+       (cselib_invalidate_regno): Use it to determine which hard
+       registers to scan when mode is not VOIDmode.
+
+2002-05-20  Duraid Madina   <duraid@fl.net.au>
+
+       * tradcpp.c (fixup_newlines): Use old-style function header.
+
+2002-05-20  Krister Walfridsson  <cato@df.lth.se>
+
+       * reload1.c (reload_cse_simplify): Fix typo in rtx code check.
+
+2002-05-20  H.J. Lu  (hjl@gnu.org)
+
+       Base on suggestions from Zhang Fuxin <fxzhang@ict.ac.cn>:
+
+       * config/mips/mips.h (DFMODE_NAN): Defined.
+       (SFMODE_NAN): Likewise.
+
+2002-05-20  Dale Johannesen  <dalej@apple.com>
+
+       * combine.c (cant_combine_insn_p):  Back out my
+       previous patch.
+
+2002-05-20  Kazu Hirata  <kazu@cs.umass.edu>
+
+       * params.c: Fix formatting.
+       * params.h: Likewise.
+       * predict.c: Likewise.
+       * prefix.c: Likewise.
+       * print-rtl.c: Likewise.
+       * print-tree.c: Likewise.
+       * profile.c: Likewise.
+
+2002-05-20  H.J. Lu  (hjl@gnu.org)
+
+       * gcc/config/mips/linux.h (SDB_DEBUGGING_INFO): Undefine.
+
+2002-05-20  Nick Clifton  <nickc@cambridge.redhat.com>
+
+       * config/arm/arm-wince-pe.h (ASM_SPEC): Pass -mcpu and -march
+       switches straight on to the assembler, do not abbreviate them.
+       * config/arm/elf.h (ASM_SPEC): As above.
+       * config/arm/semi.h (ASM_SPEC): As above.
+       * config/arm/unknown-elf-oabi.h (ASM_SPEC): As above.
+       * config/arm/xscale-coff.h (SUBTARGET_ASM_SPEC): Pass
+       -mcpu=xscale on to the assembler by default.
+       * config/arm/xscale-elf.h (SUBTARGET_ASM_SPEC): As above.
+
+2002-05-20  Richard Henderson  <rth@redhat.com>
+
+       * cse.c (canon_hash): Reorder do_not_record test.  Always
+       allow pic_offset_table_rtx.
+
+2002-05-19  Toon Moene  <toon@moene.indiv.nluug.nl>
+
+       * optabs.c (expand_cmplxdiv_wide): Use complex_part_zero_p.
+       (expand_binop): Ditto (3 times).
+
+2002-05-19  Mark Mitchell  <mitchell@doubledemon.codesourcery.com>
+
+       * Makefile.in (distclean): Remove QMTest stuff.
+       (QMTEST_PATH): New variable.
+       (QMTESTFLAGS): Likewise.
+       (QMTESTRUNFLAGS): Likewise.
+       (QMTEST): Likewise.
+       (QMTEST_GPP_TESTS): Likewise.
+       (QMTEST_DIR): Likewise.
+       (QMTEST_DIR/context): New target.
+       (qmtest-g++): Likeise.
+       (qmtest-gui): Likewise.
+       (QMTEST_DIR/gpp-expected.qmr): Likewise.
+
+2002-05-19  Aldy Hernandez  <aldyh@redhat.com>
+
+       * config/rs6000/rs6000.h (FUNCTION_VALUE): Only return vectors in
+       an altivec register if TARGET_ALTIVEC.
+
+       * config/rs600/rs6000.c (rs6000_emit_move): Change VECTOR_MODE_P
+       to ALTIVEC_VECTOR_MODE.
+       (rs6000_va_arg): Only vectors of type AltiVec are 16 byte aligned.
+       (rs6000_va_arg): Vectors may go in registers if they are not
+       altivec vectors.
+
+2002-05-19  Kazu Hirata  <kazu@cs.umass.edu>
+
+       * protoize.c: Fix formatting.
+
+2002-05-19  Richard Henderson  <rth@redhat.com>
+
+       * gensupport.c (init_include_reader): Merge into ...
+       (process_include): ... here.  Simplify composite path creation.
+       Plug memory leaks.  Fix file/line number tracking.  Do not
+       process_define_cond_exec.  Return void.
+       (process_rtx): Don't check process_include return value.
+
+2002-05-20  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
+
+       * basic_block.h (struct basic_block_def): Added prev_bb and next_bb
+       fields.
+       (FOR_BB_BETWEEN, FOR_ALL_BB, FOR_ALL_BB_REVERSE): New macros for
+       traversing basic block chain.
+       (create_basic_block_structure, create_basic_block): Declaration changed.
+       (link_block, unlink_block): Declare.
+       * cfg.c (entry_exit_blocks): Initialize new fields.
+       (link_block, unlink_block): New.
+       (expunge_block_nocompact): Unlink basic block.
+       (dump_flow_info): Print prev_bb/next_bb fields.
+       * cfgbuild.c (find_basic_blocks_1, find_basic_blocks): Modified.
+       * cfgcleanup.c (merge_blocks_move_predecessor_nojumps): Modified.
+       * cfglayout.c (fixup_reorder_chain, cfg_layout_duplicate_bb): Modified.
+       * cfgrtl.c (create_basic_block_structure, create_basic_block,
+       split_block, force_nonfallthru_and_redirect, split_edge): Modified.
+       (verify_flow_info): Check that list agrees with numbering.
+
+2002-05-19  Neil Booth  <neil@daikokuya.demon.co.uk>
+
+       * c-common.c (preprocessing_asm): New macro.
+       * c-lex.h (builtin_define, builtin_assert): Use pfile.
+doc:
+       * tm.texi: Update.
+config/alpha:
+       * alpha.h (CPLUSPLUS_CPP_SPEC): Remove.
+       (CPP_SPEC): Simplify.
+       (TARGET_CPU_CPP_BUILTINS): Update.
+       * freebsd.h (TARGET_OS_CPP_BUILTINS): New.
+       (CPP_SPEC): Simplify.
+       * linux.h (CPLUSPLUS_CPP_SPEC): Remove.
+       (TARGET_OS_CPP_BUILTINS): Update.
+       * osf.h (CPP_XFLOAT_SPEC): Kill.
+       (TARGET_OS_CPP_BUILTINS): Update.
+       (CPP_SUBTARGET_SPEC, SUBTARGET_EXTRA_SPECS): Simplify.
+       * osf5.h (CPP_XFLOAT_SPEC): Kill.
+       * vms.h (CPP_SUBTARGET_SPEC): Kill.
+       (TARGET_OS_CPP_BUILTINS): Update.
+
+2002-05-19  Richard Henderson  <rth@redhat.com>
+
+       * varasm.c (default_binds_local_p): Fix typo.
+
+2002-05-19  Marek Michalkiewicz  <marekm@amelek.gda.pl>
+
+       * config/avr/avr.c (machine_dependent_reorg): Sign extend the
+       CONST_INT operand to the correct mode after adding 1 to it.
+
 2002-05-19  Mark Mitchell  <mark@codesourcery.com>
 
        * config.gcc (powerpc-wrs-windiss*): New target.
 
        * toplev.c (display_help): Kill -a -ax help.
 
-       * config/1750a/1750a.h, config/alpha/alpha.h, 
+       * config/1750a/1750a.h, config/alpha/alpha.h,
        config/clipper/clipper.h, config/dsp16xx/dsp16xx.h,
        config/h8300/h8300.h, config/i960/i960.h, config/m68k/tower-as.h,
        config/m88k/m88k.h, config/vax/vax.h, config/we32k/we32k.h:
        config/i386/i386-protos.h, config/i386/win32.h, config/i386/winnt.c,
        config/ia64/ia64.c, config/ia64/ia64.h, config/m32r/m32r.c,
        config/m32r/m32r.h, config/mcore/mcore.c, config/mcore/mcore.h,
-       config/pa/pa.c, config/rs6000/rs6000.c, config/rs6000/sysv4.h, 
+       config/pa/pa.c, config/rs6000/rs6000.c, config/rs6000/sysv4.h,
        config/rs6000/xcoff.h, config/sh/sh.c, config/sh/sh.h,
        config/v850/v850.c, config/v850/v850.h:
        Move STRIP_NAME_ENCODING to out-of-line function and add