2002-01-09 Richard Henderson * config/arm/arm.c (arm_gen_constant): Use trunc_int_for_mode. Unify code from various alternatives. 2002-01-09 Richard Henderson * regrename.c (copy_value): Ignore the copy if the source register is present in the value chain with a narrower mode. 2002-01-09 Herman A.J. ten Brugge * real.c (c4xtoe, toc4x): Do some special conversion on long doubles for the c4x target. Also improve layout. 2002-01-09 Richard Henderson * config/m32r/m32r.c (move_src_operand): Fix 32-bit int test. * config/m32r/m32r.md (and ior xor splitters): Swap operands to match insn patterns. 2002-01-09 Richard Henderson * regrename.c (find_oldest_value_reg): Use gen_rtx_raw_REG. (copyprop_hardreg_forward_1): Likewise. 2002-01-09 John David Anglin * pa.md (decrement_and_branch_until_zero): Change predicate for operand 0 from register_operand to reg_or_nonsymb_mem_operand. 2002-01-09 Bryce McKinlay * ginclude/stddef.h: Define _BSD_WCHAR_T_DEFINED_ if _BSD_WCHAR_T_ gets undefined. For Darwin. 2002-01-09 Herman A.J. ten Brugge * config/c4x/c4x.h: Use PUSH_ARGS and PUSH_ROUNDING for stack passing. 2002-01-09 Michael Hayes * config/c4x/c4x/md: Remove extraneous constraints from define_splits. 2002-01-08 Richard Henderson * regrename.c (copy_value): Ignore overlapping copies. 2002-01-08 Richard Henderson * config/alpha/alpha.c (alpha_split_conditional_move): Call copy_rtx as needed to avoid shared structure. 2002-01-08 Kazu Hirata * config/h8300/h8300.c (get_shift_alg): Fix 15-bit LSHIFTRT on H8/300H and H8/S. 2002-01-08 Joseph S. Myers * doc/tm.texi (EASY_DIV_EXPR, IMPLICIT_FIX_EXPR, LONGJMP_RESTORE_FROM_STACK, MAX_INT_TYPE_SIZE): Remove documentation of obsolete macros. * system.h: Poison these macros. * config/1750a/1750a.h, config/a29k/a29k.h, config/alpha/alpha.h, config/arc/arc.h, config/arm/arm.h, config/avr/avr.h, config/c4x/c4x.h, config/clipper/clipper.h, config/convex/convex.h, config/cris/cris.h, config/d30v/d30v.h, config/dsp16xx/dsp16xx.h, config/elxsi/elxsi.h, config/fr30/fr30.h, config/h8300/h8300.h, config/i370/i370.h, config/i386/i386.h, config/i860/i860.h, config/i960/i960.h, config/ia64/ia64.h, config/m32r/m32r.h, config/m68hc11/m68hc11.h, config/m68k/m68k.h, config/m88k/m88k.h, config/mcore/mcore.h, config/mips/mips.h, config/mmix/mmix.h, config/mn10200/mn10200.h, config/mn10300/mn10300.h, config/ns32k/ns32k.h, config/pa/pa.h, config/pdp11/pdp11.h, config/pj/pj.h, config/romp/romp.h, config/rs6000/rs6000.h, config/s390/s390.h, config/sh/sh.h, config/sparc/sparc.h, config/stormy16/stormy16.h, config/v850/v850.h, config/vax/vax.h, config/we32k/we32k.h: Remove definitions and commented out definitions of obsolete macros. * config/mips/iris5.h (MAX_WCHAR_TYPE_SIZE): Don't define in terms of MAX_INT_TYPE_SIZE. 2002-01-08 Ulrich Weigand * config/s390/s390.c (s390_preferred_reload_class): Never return ADDR_REGS if it isn't a subset of the given class. * config/s390/s390.h (REGISTER_MOVE_COST): Penalize not just FP_REGS, but all superclasses as well. * config/s390/s390.c (s390_function_profiler): Fix thinko. * config/s390/s390.md (cmpdi_ccu_mem, cmpsi_ccu_mem, cmphi_ccu_mem, cmpqi_ccu_mem): First operand of compare must not be a const_int. 2002-01-08 Richard Henderson * Makefile.in (toplev.o): Depend on options.h. (gcc.o): Depend on specs.h. 2002-01-08 Jakub Jelinek * expr.c (store_expr): Convert VOIDmode constants back to target's mode. 2002-01-08 Gerald Pfeifer * doc/invoke.texi: Markup gcc as @command. Refer to http://gcc.gnu.org/onlinedocs/gcc/Contributors.html instead of http://gcc.gnu.org/thanks.html. 2002-01-08 Dale Johannesen * config/rs6000/rs6000.md: Add missing int register target case to movdf_low. 2002-01-08 Zack Weinberg * Makefile.in (cs-tconfig.h): Don't depend on $(CONFIG_H) or except.h. Remove commands to define USING_SJLJ_EXCEPTIONS. (cppinit.o): Depend on except.h. (gencheck.h, options.h, specs.h, s-gencheck, s-options, s-specs): New rules. * configure.in: Don't AC_DEFINE_UNQUOTED PACKAGE or VERSION. Don't create specs.h/options.h/gencheck.h here. Remove unnecessary variable settings from last argument of AC_OUTPUT. * config.in, configure: Regenerate. * intl.c: Hardcode package name as "gcc". * cppinit.c: Include except.h. (builtin_array): Define __USING_SJLJ_EXCEPTIONS__ when appropriate. * unwind-dw2.c, unwind-sjlj.c, config/ia64/unwind-ia64.c: Use #if(n)def __USING_SJLJ_EXCEPTIONS, not #if (!)USING_SJLJ_EXCEPTIONS. * doc/cpp.texi: Document __USING_SJLJ_EXCEPTIONS__. 2002-01-08 Joseph S. Myers * doc/tm.texi (ASM_OUTPUT_EH_REGION_BEG, ASM_OUTPUT_EH_REGION_END, ASM_OUTPUT_LABELREF_AS_INT, DOESNT_NEED_UNWINDER, EH_TABLE_LOOKUP, OBJC_SELECTORS_WITHOUT_LABELS, OMIT_EH_TABLE): Remove documentation of obsolete macros. * system.h: Poison these macros. * config/d30v/d30v.h, config/ns32k/encore.h, config/stormy16/stormy16.h: Remove definitions and commented out definitions of obsolete macros. Tue Jan 8 15:56:41 2002 Nicola Pero * objc/objc-act.c (handle_class_ref): Mark the declaration of %sobjc_class_ref_%s as used - to prevent unwanted compiler warnings. 2002-01-08 Ulrich Weigand * config/s390/linux.h (ASM_OUTPUT_LABELREF): Remove. * config/s390/s390.c (s390_emit_epilog): Add REG_FRAME_RELATED_EXPR to insn adjusting stack/frame pointer. * config/s390/s390.md (reload_la_64, reload_la_31): Do not accept operands that cause the insn to be non-splittable. 2002-01-08 Graham Stott * c-tree.h (C_TYPE_FIELDS_READONLY): Uppercase macro parameter. (C_TYPE_FIELDS_VOLATILE): Likewise. (C_TYPE_BEING_DEFINED): Likewise. (C_IS_RESERVED_WORD): Likewise. (C_TYPE_VARIABLE_SIZE): Likewise. (C_DECL_VARIABLE_SIZE): Likewise. (C_MISSING_PROTOTYPE_WARNED): Likewise. (C_SET_EXP_ORIGINAL_CODE): Likewise. (C_TYPEDEF_EXPLICITLY_SIGNED): Uppercase macro parameter and remove parenthesis. (C_DECL_ANTICIPATED): Likewise. (c_build_type_variant): Add parenthesis. 2002-01-08 Joseph S. Myers * gcc.c (option_map): Remove --version. (process_command): Handle -fversion following the GNU Coding Standards. Partially addresses PR other/704. 2002-01-08 Graham Stott * combine.c (combine_instructions): Fix typo. 2002-01-08 Graham Stott * debug.h: Use "tree" and "rtx" throughout. * debug.c: Likewise. 2002-01-08 Nick Clifton * dbxout.c (dbxout_symbol_location): If a symbol ref is in the constant pool, use the pool's version of the symbol instead. 2002-01-07 Richard Henderson * regrename.c (find_oldest_value_reg): Ignore the value chain if the original register was copied in a mode with a fewer number of hard registers than the desired mode. (copyprop_hardreg_forward_1): Likewise. (debug_value_data): Fix loop test. * toplev.c (parse_options_and_default_flags): Reenable -fcprop-registers at -O1. 2002-01-07 Aldy Hernandez * config/rs6000/rs6000.c (bdesc_2arg): Add altivec predicates. (altivec_init_builtins): New node v4si_ftype_v16qi_v16qi. * config/rs6000/rs6000.h (rs6000_builtins): Add enums for altivec predicates. * config/rs6000/rs6000.md: Add altivec predicate patterns. 2002-01-07 John David Anglin * pa.c (FUNC_BEGIN_PROLOG_LABEL, current_function_number): Define. (pa_output_function_prologue): Output local label at the beginning of the prologue when profiling. (hppa_profile_hook): Use the local label rather than the function label. * pa.h (PROFILE_BEFORE_PROLOGUE): Define. 2002-01-07 Aldy Hernandez * config/rs6000/rs6000.c (print_operand): Remove extra space. (altivec_expand_unop_builtin): Fix thinko. (altivec_expand_binop_builtin): Same. (altivec_expand_ternop_builtin): Same. (altivec_expand_builtin): Same. 2002-01-07 Richard Henderson * config/rs6000/xcoff.h (ASM_FILE_START): Reverted to profile_flag. 2002-01-07 Jason Merrill * unwind-dw2.c (execute_cfa_program): Use < again. 2002-01-07 Jakub Jelinek * predict.c (combine_predictions_for_insn): Avoid division by zero. 2002-01-07 Jakub Jelinek * simplify-rtx.c (simplify_plus_minus): Bump n_ops for NOT. Don't allow -1 - x -> ~x simplifications in the first pass. 2002-01-07 Aldy Hernandez * rs6000.c (altivec_expand_ternop_builtin): Don't die on invalid arguments. (altivec_expand_binop_builtin): Same. (altivec_expand_unop_builtin): Same. (print_operand): Fix typo. (bdesc_1arg): Add vupk* variants. * rs6000.h (rs6000_builtins): Add vupk* enums. * rs6000.md: Add altivec_vupk* variants. 2002-01-07 Joseph S. Myers * doc/gcc.texi, doc/gccint.texi, doc/cppinternals.texi, doc/install.texi, doc/invoke.texi, doc/rtl.texi: Update copyright and last update dates. 2002-01-07 Janis Johnson * doc/rtl.texi (Flags): Clean up documentation of RTL flags 2002-01-07 Marek Michalkiewicz * config/avr/avr.c (avr_mcu_types): Add new MCU types. * config/avr/avr.h (CPP_SPEC): Likewise. (LINK_SPEC): Likewise. (CRT_BINUTILS_SPECS): Likewise. * config/avr/t-avr (MULTILIB_MATCHES): Likewise. * doc/invoke.texi (AVR Options): Document them. Mon Jan 7 11:59:34 CET 2002 Jan Hubicka * unroll.c (copy_loop_body): Always properly update JUMP_LABEL and LABEL_NUSES. 2002-01-07 Graham Stott * config/i386/i386.h: Update copyright date. (HALF_PIC_PTR): Add parenthesis. (OPTIMIZATION_OPTIONS): Whitespace, add parenthesis and wrap. (CONSTANT_ALIGNMENT): Add parenthesis. (DATA_ALIGNMENT): Likewise. (LOCAL_ALIGNMENT): Likewise. (FUNCTION_ARG_BOUNDARY): Whitespace, add parenthesis and wrap. (IS_STACK_MODE): Uppercase macro parameter, add parenthesis and wrap. (CONDITIONAL_REGISTER_USAGE): Wrap in do {...} while (0). (HARD_REGNO_NREGS): Add paranethesis. (VALID_SSE_REG_MODE): Whitespace. (VALID_MMX_REG_MODE): Whitespace. (VALID_FP_MODE_P): Uppercase macros parameter and whitespace. (ix86_hard_regno_mode_ok): Add parenthesis. (HARD_REGNO_CALLER_SAVE_MODE): Whitespace. (RETURN_IN_MEMORY): Whitespace. (N_REG_CLASSES): Add parenthesis. (INTEGER_CLASS_P): Add parenthesis and wrap. (FLOAT_CLASS_P): Likewise. (SSE_CLASS_P): Likewise. (MMX_CLASS_P): Likewise. (MAYBE_INTEGER_CLASS_P): Likewise. (MAYBE_FLOAT_CLASS_P): Likewise. (MAYBE_SSE_CLASS_P): Likewise. (MAYBE_MMX_CLASS_P): Likewise. (Q_CLASS_P): Likewise. (GENERAL_REGNO_P): Uppercase macro parameter. (REX_INT_REGNO_P): Uppercase macro parameter and wrap. (FP_REGNO_P): Likewise. (ANY_FP_REGNO_P): Uppercase macro parameter. (SSE_REGNO_P): Likewise. (SSE_REGNO): Likewise. (SSE_REG_P): Likewise. (SSE_FLOAT_MODE_P): Likewise. (MMX_REGNO_P): Likewise. (MMX_REG_P):Likewise. (STACK_REG_P): Likewise. (NON_STACK_REG_P): Likewise. (STACK_TOP_P): Likewise. (CONVERT_HARD_REGISTER_TO_SSA_P): Add parenthesis. (PREFERRED_RELOAD_CLASS): Add parenthesis and whitespace. (SECONDARY_MEMORY_NEEDED): Likewise. (SECONDARY_OUTPUT_RELOAD_CLASS): Whitespace. (MD_ASM_CLOBBERS): Whitespace and wrap. (MUST_PASS_IN_STACK): Whitespace and wrap. (RETURN_POPS_ARGS): Add parenthesis. (INIT_CUMULATIVE_ARGS): Likewise. (FUNCTION_ARG): Likewise. (FUNCTION_OK_FOR_SIBCALL): Add parenthesis and whitespace. (SETUP_INCOMING_VARARGS): Likewise. (BUILD_VA_LIST_TYPE): Add parenthesis. (EXPAND_BUILTIN_VA_START): Uppercase macro paremeters and add parenthsis. (EXPAND_BUILTIN_VA_ARG): Likewise. (FUNCTION_PROFILER): Wrap in do { ... } while (0) and add parenthesis. (INITIALIZE_TRAMPOLINE): Add parenthesis. (INITIAL_ELIMINATION_OFFSET): Likewise. (REGNO_OK_FOR_INDEX_P): Add parenthesis. (REGNO_OK_FOR_BASE_P): Likewise. (REGNO_OK_FOR_SIREG_P): Add parenthesis and wrap. (REGNO_OK_FOR_DIREG_P): Likewise. (REG_OK_FOR_INDEX_P): Whitespace. (REG_OK_FOR_BASE_P): Whitespace. (GO_IF_LEGITIMATE_ADDRESS): Wrap in do { ... } while (0) and add parenthesis. (FIND_BASE_TERM): Fix typo. (LEGITIMIZE_ADDRESS): Wrap in { .. } while (0) and add parenthesis. (REWRITE_ADDRESS): Uppercase macro parameter and whitespace. (SYMBOLIC_CONST; Whitespace. (GO_IF_MODE_DEPENDENT_ADDRESS):Wrap in { .. } while (0) and wrap. (ENCODE_SECTION_INFO): Whitespace. (FINALIZE_PIC): Remove do { ... } while (0). (PROMOTE_MODE): Wrap in do { ... } while (0). (CONST_COSTS): Whitespace. (RTX_COSTS): Add paramethesis, whitespace and wrap. (REGISTER_MOVE_COST): Add parenthesis. (MEMORY_MOVE_COST): Likewise. (EXTRA_CC_MODES): Whitespace. (SELECT_CC_MODE): Add parenthesis and whitespace. (DBX_REGISTER_NUMBER): Uppercase macro parameter and add parenthsis. (ASM_PREFERRED_EH_DATA_FORMAT): Add parenthesis and whitespace. (ASM_OUTPUT_LABEL): Add paramethesis. (ASM_OUTPUT_REG_PUSH): Add parenthesis and whitespace. (ASM_OUTPUT_REG_POP): Likewise. (ASM_OUTPUT_ADDR_VEC_ELT): Add parenthesis. (ASM_OUTPUT_ADDR_DIFF_ELT): Likewise. * config/i386/i386.c: Update copyright. (CHECK_STACK_LIMIT): Add parenthesis. (AT_BP): Uppercase macro parameter. (x86_64_int_parameter_registers): Constify. (x86_64_int_return_registers): Likewise. (ix86_compare_op0): Use rtx. (construct_container): Constify INTREG parameter. (function_arg): Use rtx. * diagnostic.h: Update copyright date. (output_buffer_state): Add parenthesis. (output_buffer_format_args): Likewise. * combine.c (combine_instructions): Replace XEXP (links, 0) with link. 2002-01-06 H.J. Lu * cfgcleanup.c (thread_jump): Fix 2 typos. 2002-01-06 Aldy Hernandez * config.gcc: Add support for --enable-altivec. 2002-01-06 Craig Rodrigues * emit-rtl.c (gen_highpart): Add check for NULL_RTX. 2002-01-06 Jakub Jelinek * objc/objc-act.c (handle_impent): Use assemble_variable to emit __objc_class_name_*. 2002-01-06 Craig Rodrigues * doc/install.texi (sparcv9-*-solaris2*): Add documentation. 2002-01-06 Richard Henderson * reorg.c (emit_delay_sequence): Remove death notes, not merely nop them out. Increment label reference count for REG_LABEL. (fill_slots_from_thread): Frob label reference count around delete_related_insns. 2002-01-05 Richard Henderson * cfgcleanup.c (try_forward_edges): Detect infinite loops while jump threading. 2002-01-05 Richard Henderson * c-decl.c (c_expand_body): Don't call outlining_inline_function. * integrate.c (output_inline_function): Likewise. * toplev.c (rest_of_compilation): Do it here instead. Move call to remove_unnecessary_notes after emitting abstract instance. Force an emitted nested function to have its parent emited as well. * dwarf2out.c (loc_descriptor_from_tree): Read mode after checking for null. (rtl_for_decl_location): Do not look at reload data structures before reload has run. 2002-01-05 Kazu Hirata * cse.c: Fix formatting. * dwarf2asm.c: Likewise. * dwarf2out.c: Likewise. * explow.c: Likewise. * expmed.c: Likewise. * function.c: Likewise. * gcov.c: Likewise. * gencheck.c: Likewise. * genrecog.c: Likewise. * ggc-common.c: Likewise. * ggc-page.c: Likewise. * global.c: Likewise. 2002-01-05 Kazu Hirata * combine.c: Fix formatting. 2002-01-05 Craig Rodrigues PR middle-end/1557 * config/ia64/ia64.h (RENAME_EXTENDED_BLOCKS): Remove. 2002-01-05 David Edelsohn * config/rs6000/rs6000.h (TARGET_POWERPC): For IN_LIBGCC2, define as 1 for __powerpc64__ as well. * config/rs6000/t-aix43 (T_ADAFLAGS): Define. * alias.c (find_base_value, PLUS/MINUS): If we found a base, return it. 2002-01-05 Daniel Berlin * lcm.c: Revert change, due to performance regression it causes on SPEC because it's slightly more conservative (sigh, I hate edge-based LCM). Sat Jan 5 11:52:05 CET 2002 Jan Hubicka * cfgcleanup.c (try_forward_edges): Allow multiple jump threading. 2002-01-05 Neil Booth * doc/cppinternals.texi: Update. 2002-01-05 Hans-Peter Nilsson * doc/invoke.texi (Option Summary) : Document -mbranch-predict, -mreg-stack-fill-bug-workaround and their negatives. (MMIX Options): Ditto. Fix item/itemx typo for -mno-zero-extend. * config/mmix/mmix.c (mmix_target_asm_function_prologue): Rework kludge for pre-october-14th mmix versions to handle new-found bug with PUSHJ/PUSHGO and the register stack. * config/mmix/mmix.h (struct machine_function): Rename member has_call_value_without_parameters to has_call_without_parameters. All referers changed. (TARGET_MASK_REG_STACK_FILL_BUG, TARGET_DEFAULT TARGET_MASK_BRANCH_PREDICT): New macros. (TARGET_SWITCHES): New options -mreg-stack-fill-bug-workaround, -mno-reg-stack-fill-bug-workaround. * config/mmix/mmix.md ("call"): Set struct machine member has_call_without_parameters. Sat Jan 5 02:20:22 CET 2002 Jan Hubicka * cfgcleanup.c (thread_jump): Fix handling of reversed branches. Sat Jan 5 01:35:29 CET 2002 Jan Hubicka * cfgcleanup.c: Include tm_p.h (mark_effect): Fix handling of hard register; fix handling of SET 2002-01-04 Kazu Hirata * config/h8300/h8300.md (anonymous patterns): Check that operands are registers before using REGNO on them. 2002-01-03 Roland McGrath * doc/invoke.texi (RS/6000 and PowerPC Options): Add -mcall-gnu. 2002-01-04 Jakub Jelinek * tree.h (expand_expr_stmt_value): Add maybe_last argument. * c-common.h (genrtl_expr_stmt_value): Likewise. * stmt.c (expand_expr_stmt): Pass 1 as maybe_last. (expand_expr_stmt_value): Add maybe_last argument. Don't warn about statement with no effect if it is the last statement in expression statement. * c-semantics.c (genrtl_expr_stmt): Pass 1 as maybe_last. (genrtl_expr_stmt_value): Add maybe_last argument, pass it down to expand_expr_stmt_value. (expand_stmt) [EXPR_STMT]: Pass 1 as maybe_last to genrtl_expr_stmt_value if t is the last EXPR_STMT in its scope. * expr.c (expand_expr) [LABELED_BLOCK_EXPR, LOOP_EXPR]: Pass 1 as maybe_last to expand_expr_stmt_value. Fri Jan 4 11:45:05 2002 Jeffrey A Law (law@redhat.com) * c-common.c (c_expand_start_cond): Expect the IF_STMT node to be passed in, do not build it. (c_begin_if_stmt): New function. (c_begin_while_stmt, c_finish_while_stmt_cond): Likewise. * c-common.h (c_expand_start_cond): Update prototype. (c_begin_if_stmt): Prototype new function. (c_begin_while_stmt, c_finish_while_stmt_cond): Likewise. * c-parse.in (if_prefix): Use c_begin_if_stmt, c_begin_while_stmt and c_finish_while_stmt_cond. 2002-01-04 William Cohen * config/pa/elf.h (ASM_FILE_START): Reverted to profile_flag. * config/pa/pa-linux.h (ASM_FILE_START): Likewise. * config/pa/pa64-hpux.h (ASM_FILE_START): Likewise. * config/pa/som.h (ASM_FILE_START): Likewise. 2001-01-04 Daniel Berlin * lcm.c: Include df.h. Add available_transfer_function prototype. (compute_available): Rework to use iterative dataflow framework. (struct bb_info): s/bb_info/lcm_bb_info/g to avoid conflict with bb_info in df.h (available_transfer_function): New function. * Makefile.in (lcm.o): add df.h to dependencies. 2002-01-04 Richard Henderson * config/alpha/alpha.c (some_operand): Accept HIGH. (input_operand): Likewise; accept simple references to globals. (alpha_const_ok_for_letter_p): New, outlined from alpha.h. (alpha_const_double_ok_for_letter_p): Likewise. (alpha_extra_constraint): Likewise. (alpha_preferred_reload_class): Likewise. Do not force symbolic constants to memory. (alpha_legitimate_address_p): Accept simple references to small_symbolic_operand. (alpha_legitimize_address): New arg scratch. Be prepared to be called when no_new_pseudos. Emit simple symbolic references. Split integers into low, high, and rest. (alpha_expand_mov): Use alpha_legitimize_address. (some_small_symbolic_mem_operand): New. (split_small_symbolic_mem_operand): New. * config/alpha/alpha-protos.h: Update. * config/alpha/alpha.h (CONST_OK_FOR_LETTER_P): Out-line. (CONST_DOUBLE_OK_FOR_LETTER_P): Likewise. (EXTRA_CONSTRAINT): Likewise. (PREFERRED_RELOAD_CLASS): Likewise. (LEGITIMIZE_ADDRESS): Update for alpha_legitimize_address change. (PREDICATE_CODES): Update. * config/alpha/alpha.md: New post-reload splitters to convert simplfied symbolic operands to the form that references $29. (divide expanders): Use emit_move_insn, not gen_movdi_er_high_g. (movdi_er_nofix, movdi_er_fix): Accept any symbolic operand. 2002-01-03 Richard Henderson * local-alloc.c (function_invariant_p): Update commentary. 2002-01-04 H.J. Lu * toplev.c (rest_of_compilation): Fix a typo when calling cleanup_cfg. 2002-01-03 Kazu Hirata * c-common.c: Fix formatting. * diagnostic.c: Likewise. * doloop.c: Likewise. * dwarf2out.c: Likewise. 2002-01-03 Kazu Hirata * config/h8300/h8300.c (output_logical_op): Use 'not.w' instead of 'neg.w' when xoring with 0x0000ffff or 0xffff0000. 2002-01-03 Neil Booth * cpperror.c: Update comments and copyright. * cppexp.c, cppfiles.c, cpphash.c, cpphash.h, cppinit.c, cpplex.c, cpplib.c, cpplib.h, cppmacro.c, cppmain.c: Similarly. 2002-01-03 John David Anglin * collect2.c (main): Use strcmp when testing for "-shared". 2002-01-03 Neil Booth * cppmacro.c: Don't include intl.h. Update comments. (new_number_token): Allocate enough buffer for 64-bit unsigned integers; update prototype. * cppmain.c: Update comments. 2002-01-03 William Cohen * function.h (struct function): Add profile. (current_function_profile): New. doc/extend.texi: Update documentation. * final.c (final_start_function): Use current_function_profile instead of profile_flag. (profile_after_prologue): Likewise. * function.c (expand_function_start): Likewise. (expand_function_start): Likewise. * config/alpha/alpha.c (direct_call_operand): (alpha_does_function_need_gp): Likewise. (alpha_expand_prologue): Likewise. * config/arm/arm.c (arm_expand_prologue): Likewise. thumb_expand_prologue: Likewise. * config/d30v/d30v.c (d30v_stack_info): Likewise. * config/fr30/fr30.c (MUST_SAVE_RETURN_POINTER): Likewise. (fr30_expand_prologue): Likewise. * config/i386/cygwin.h (SUBTARGET_PROLOGUE): Likewise. * config/i386/i386.c (ix86_osf_output_function_prologue): Likewise. * config/i386/i386.h (FINALIZE_PIC): Likewise. * config/i386/win32.h (SUBTARGET_PROLOGUE): Likewise. * config/i960/i960.c (i960_output_function_prologue): Likewise. * config/ia64/ia64.c (ia64_compute_frame_size): Likewise. * config/m32r/m32r.c (MUST_SAVE_RETURN_ADDR): Likewise. (m32r_expand_prologue): Likewise. * config/m88k/m88k.c (m88k_layout_frame): Likewise. (m88k_expand_prologue): Likewise. * config/m88k/m88k.h (ADJUST_INSN_LENGTH): Likewise. * config/mips/mips.c (compute_frame_size): Likewise. (mips_expand_prologue): Likewise. (mips_can_use_return_insn): Likewise. * config/pa/elf.h (ASM_FILE_START): Likewise. * config/pa/pa-linux.h (ASM_FILE_START): Likewise. * config/pa/pa64-hpux.h (ASM_FILE_START): Likewise. * config/pa/som.h (ASM_FILE_START): Likewise. * config/romp/romp.c (romp_using_r14): Likewise. * config/rs6000/rs6000.c (first_reg_to_save): Likewise. (rs6000_stack_info): Likewise. * config/rs6000/sysv4.h (ASM_DECLARE_FUNCTION_NAME): Likewise. * config/rs6000/xcoff.h (ASM_FILE_START): Likewise. * config/v850/v850.c (compute_register_save_size): Likewise. 2002-01-03 Jakub Jelinek * simplify-rtx.c (simplify_binary_operation) [DIV]: If gen_lowpart_common fails, use gen_lowpart_SUBREG. 2002-01-03 Turly O'Connor * darwin.c (machopic_output_possible_stub_label): Don't generate stub routines for pseudo-stubs which we've just defined. 2002-01-03 Kazu Hirata * builtins.c: Fix formatting. * c-typeck.c: Likewise. * combine.c: Likewise. * expr.c: Likewise. * loop.c: Likewise. 2002-01-03 Andreas Schwab * cppfiles.c (_cpp_pop_file_buffer): Change return type to bool and return true if _cpp_push_next_buffer pushed a new include file. * cpplib.c (_cpp_pop_buffer): Only call obstack_free if _cpp_pop_file_buffer did not push a new file. * cpphash.h (_cpp_pop_file_buffer): Update declaration. 2002-01-02 Eric Christopher * final.c (final_scan_insn): Change 0 -> NULL_RTX in FIND_REG_INC_NOTE call. Update copyright. * loop.c (canonicalize_condition): Ditto. * reorg.c (delete_scheduled_jump): Ditto. 2002-01-03 Kazu Hirata * gcse.c: Fix formatting. 2002-01-03 Graham Stott * mkconfig.sh: Output to config.h, hconfig.h and tconfig.h forward defs for struct tags rtx_def, union_tree, rtvec_def also output corresponding typedefs for rtx, tree, and rtvec. * system.h: Move forward defs for struct tags rtx_def, union_tree, rtvec_def along with corresponding typedefs for rtx, tree, and rtvec to config.h, hconfig.h, tconfig.h. 2002-01-03 Graham Stott * tree.h: Update copyright date. (IS_EXPR_CODE_CLASS): Add parenthesis. (TREE_SET_CODE): Add whitespace. (TREE_CHECK): Add parenthesis. (TREE_CLASS_CODE): Add parenthesis and wrap long line. (CST_OR_CONSTRUCTOR_CHECK): (EXPR_CHECK): Add parenthis, whitespace and wrap line. (TREE_SYMBOL_REFERENCED): Whitespace. (INT_CST_LT): Likewise. (INT_CST_LT_UNSIGNED): Likewise. (tree_real_cst): Unwrap comment. (tree_string): Likewise. (tree_complex): Likewise. (IDENTIFIER_POINTER): correct cast. (SAVE_EXPR_CONTEXT): Whitespace. (EXPR_WFL_FILENAME_NODE): Likewise. (EXPR_WFL_FILENAME): Remove parenthesis. (DECL_ORIGIN): Add parenthesis. (DECL_FROM_INLINE): Use NULL_TREE. (build_int_2): Whitespace. (build_type_variant): Add parenthesis. * gcc/jcf-parse.c: Update copyright date. (yyparse): Constify resource_filename. 2002-01-03 Graham Stott * rtl.h: Update copyright date. (RTL_CHECK1): Wrap long line. (RTL_CHECK2): Likewise. (RTL_CHECKC1): Wrap long line and whitespace. (RTL_CHECKC2): Likewise. (XWINT): Whitespace. (XINT): Likewise. (XSTR): Likewise. (XEXP): Likewise. (XVEC): Likewise. (XMODE): Likewise. (XBITMAP): Likewise. (XTREE): Likewise. (XBBDEF): Likewise. (XTMPL): Likewise. (X0WINT): Likewise. (X0INT):Likewise. (X0UINT): Likewise. (X0STR): Likewise. (X0EXP): Likewise. (X0VEC): Likewise. (X0MODE): Likewise. (X0BITMAP): Likewise. (X0TREE): Likewise. (X0BBDEF): Likewise. (X0ADVFLAGS): Likewise. (X0CSELIB): Likewise. (X0MEMATTR): Likewise. (XCWINT): Likewise. (XCINT): Likewise. (XCUINT): Likewise. (XCSTR): Likewise. (XCEXP): Likewise. (XCVEC): Likewise. (XCMODE): Likewise. (XCBITMAP): Likewise. (XCTREE): Likewise. (XCBBDEF): Likewise. (XCADVFLAGS): Likewise. (XCCSELIB): Likewise. (XC2EXP): Likewise. (INSN_UID): Likewise. (PREV_INSN): Likewise. (PATTERN): Likewise. (INSN_CODE): Likewise. (PUT_REG_NOTE_KIND): Likewise. (CODE_LABEL_NUMBER): Likewise. (NOTE_SOURCE_FILE): Likewise. (NOTE_BLOCK): Likewise. (NOTE_EH_HANDLER): Likewise. (NOTE_RANGE_INFO): Likewise. (NOTE_LIVE_INFO): Likewise. (NOTE_BASIC_BLOCK): Likewise. (NOTE_EXPECTED_VALUE): Likewise. (NOTE_LINE_NUMBER): Likewise. (LABEL_NAME): Likewise. (LABEL_NUSES): Likewise. (LABEL_ALTERNATE_NAME): Likewise. (ADDRESSOF_DECL): Likewise. (JUMP_LABEL): Likewise. (LABEL_NEXTREF): Likewise. (REGNO): Likewise. (ORIGINAL_REGNO: Likewise. (HARD_REGISTER_NUM_P): Add parenthesis. (SUBREG_REG): Whitespace. (SUBREG_BYTE): Likewise. (ASM_OPERANDS_TEMPLATE): Remove parenthesis. (ASM_OPERANDS_OUTPUT_CONSTRAINT): Likewise. (ASM_OPERANDS_OUTPUT_IDX): Likewise. (ASM_OPERANDS_INPUT_VEC): Likewise. (ASM_OPERANDS_INPUT_CONSTRAINT_VEC): Likewise. (ASM_OPERANDS_INPUT): Likewise. (ASM_OPERANDS_INPUT_LENGTH): Likewise. (ASM_OPERANDS_INPUT_CONSTRAINT_EXP): Likewise. (ASM_OPERANDS_INPUT_CONSTRAINT): Likewise. (ASM_OPERANDS_INPUT_MODE): Likewise. (ASM_OPERANDS_SOURCE_FILE): Likewise. (ASM_OPERANDS_SOURCE_LINE): Likewise. (MEM_SET_IN_STRUCT_P): Minor reformat. (TRAP_CONDITION): Whitespace. (TRAP_CODE): Likewise. (COND_EXEC_TEST): Likewise. (COND_EXEC_CODE): Likewise. (FIND_REG_INC_NOTE): Uppercase macro args and add parenthesis. (PHI_NODE_P): Add parenthesis. (plus_constant): Whitespace and add parenthesis. 2002-01-03 Kazu Hirata * config/avr/avr.c: Fix comment typos. * config/c4x/c4x.md: Likewise. * config/dsp16xx/dsp16xx.h: Likewise. * config/dsp16xx/dsp16xx.md: Likewise. * config/i386/i386.md: Likewise. * config/ia64/ia64.c: Likewise. * config/m32r/m32r.h: Likewise. * config/m68hc11/m68hc11.md: Likewise. * config/mmix/mmix.c: Likewise. * config/mn10200/mn10200.c: Likewise. * config/romp/romp.c: Likewise. * config/sh/sh.c: Likewise. * config/stormy16/stormy16.c: Likewise. * config/stormy16/stormy16.h: Likewise. * config/stormy16/stormy16.md: Likewise. 2002-01-03 Graham Stott * loop.h: Update copyright date. (LOOP_MOVABLES): Fix typo. (LOOP_REGS): Likewise. (LOOP_IVS): Likewise. 2002-01-03 Graham Stott * cppinit.c: Update copyright date. Don't include output.h * Makefile.in: Update copyright date. Update dependency. 2002-01-02 Craig Rodrigues PR c/5226 * invoke.texi (-mthreads): Remove from documented RS/6000 options. (-pthread) Add to RS/6000 options. 2002-01-02 Kazu Hirata * except.c: Fix comment typos. * loop.c: Likewise. * varasm.c: Likewise. * doc/tm.texi: Fix a typo. 2002-01-02 Jakub Jelinek * c-typeck.c (output_init_element): Allow initializing static storage duration objects with compound literals. 2002-01-02 Richard Henderson * objc/objc-act.c (hack_method_prototype): Clear current_function_decl after abusing it. 2002-01-02 Kaveh R. Ghazi * gcc.c (default_compilers): Const-ify. * mips-tdump.c (stab_names): Likewise. * mips-tfile.c (map_coff_types, map_coff_storage, map_coff_sym_type, map_coff_derived_type, stabs_symbol, pseudo_ops_t, pseudo_ops): Likewise. * protoize.c (default_include): Likewise * real.c (GET_REAL, PUT_REAL): Don't cast away const-ness. (ezero, ehalf, eone, etwo, e32, elog2, esqrt2, epi): Const-ify. Add array size in declaration. (endian, emov, eisneg, eisinf, eisnan, eiisnan, eiisneg, emovi, emovo, emovz, eiisinf, ecmpm, eaddm, esubm, m16m, edivm, emulm, esub, eadd, eadd1, ediv, emul, e53toe, e64toe, e113toe, e24toe, etoe113, etoe64, etoe53, etoe24, ecmp, eround, ltoe, ultoe, eifrac, euifrac, e24toasc, e53toasc, e64toasc, e113toasc, etoasc, efloor, efrexp, eldexp, eremain, dectoe, etodec, ibmtoe, etoibm, c4xtoe, etoc4x, uditoe, ditoe, etoudi, etodi, esqrt, etens, emtens, make_nan): Const-ify. (TFbignan, TFlittlenan, XFbignan, XFlittlenan, DFbignan, DFlittlenan, SFbignan, SFlittlenan): Make static and const-ify. 2002-01-02 Joseph S. Myers * config.gcc (ia64-*-*): Set extra_headers. (alpha*-dec-osf*): Likewise. Don't use alpha/t-osf. * config/alpha/t-osf: Remove. * config/ia64/t-ia64 (EXTRA_HEADERS): Remove. 2002-01-02 David Edelsohn * config/rs6000/t-aix43: Revert previous change. 2002-01-02 Jason Merrill * c-decl.c (c_expand_body): Call outlining_inline_function when emitting an inline function out of line. 2002-01-02 Richard Henderson * dwarf2out.c (limbo_die_node): Add created_for member. (new_die): New argument created_for. Update all callers. (mark_limbo_die_list): New. (dwarf2out_init): Register limbo_die_list as a root. (dwarf2out_finish): Force insert limbo dies into their function context. 2002-01-02 Nathan Sidwell PR c++/5089 * doc/invoke.texi (-Wold-style-cast): Only warn about non-void casts. 2002-01-02 Kazu Hirata * config/h8300/fixunssfsi.c: Update copyright. Fix comment typos. Fix formatting. * config/h8300/h8300.c: Update copyright. Eliminate warnings. 2002-01-02 Kazu Hirata * config/romp/romp.c: Fix comment formatting. * config/romp/romp.h: Likewise. * config/romp/romp.md: Likewise. * config/s390/s390.c: Likewise. * config/stormy16/stormy16.c: Likewise. * config/stormy16/stormy16.h: Likewise. 2002-01-02 Alexandre Oliva * c-common.h (genrtl_expr_stmt_value): Declare. * c-semantics.c (genrtl_goto_stmt): Redirect to... (genrtl_goto_stmt_value): ... this new function. Pass new argument down to expand_expr_stmt_value, taking TREE_ADDRESSABLE into account. * c-common.c (c_expand_expr): Mark the last EXPR_STMT of a STMT_EXPR as addressable, i.e., one whose result we want. * expr.c (expand_expr): Don't save expression statement value of labeled_blocks or loop_exprs. * stmt.c (expand_expr_stmt): Redirect to... (expand_expr_stmt_value): ... this new function. Use new argument to tell whether to save expression value. (expand_end_stmt_expr): Reset last_expr_type and last_expr_value if we don't have either. * tree-inline.c (declare_return_variable): Mark its use statement as addressable. * tree.h: Document new use of TREE_ADDRESSABLE. (expand_expr_stmt_value): Declare. 2002-01-01 Tom Rix * config/rs6000/rs6000.c (rs6000_emit_set_long_const): Fix for use by rs6000_emit_allocate_stack. 2002-01-01 Joseph S. Myers * configure.in: Prepend ${srcdir}/config/${cpu_type}/ instead of ${srcdir}/ginclude/ to every entry in extra_headers. * configure: Regenerate. * ginclude/math-3300.h: Rename to config/m68k/math-3300.h. * ginclude/math-68881.h: Rename to config/m68k/math-68881.h. * ginclude/ppc-asm.h: Rename to config/rs6000/ppc-asm.h. * ginclude/proto.h: Rename to config/convex/proto.h. Tue Jan 1 17:12:56 2002 Richard Kenner * attribs.c (handle_vector_size_attribute): Use host_integerp and tree_int_cst; remove warnings. * caller-save.c (insert_restore): Add cast to get rid of warning. (insert_save): Likewise. * emit-rtl.c (adjust_address_1, offset_address): Likewise. * regmove.c (find_matches): Add temporary var to kill a warning. 2002-01-01 Douglas B Rupp * config/alpha/vms.h (DWARF2_UNWIND_INFO, EH_RETURN_HANDLER_RTX, LINK_EH_SPEC, MD_FALLBACK_FRAME_STATE_FOR): Define. * config/alpha/t-vms (EXTRA_PARTS): Add vms-dwarf2eh.o (vms-dwarf2eh.o): Add Makefile rule. * config/alpha/vms-ld.c (main): Handle vms-dwarf2eh.o. * config/alpha/vms-dwarf2eh.asm: New file. * gcc.c (delete_if_ordinary): Delete all versions. 2002-01-01 Hans-Peter Nilsson * config/mmix/mmix.md: Update FIXME to not mention define_constants. (MMIX_rJ_REGNUM): New define_constants constant. ("movqi", "movsi", "movdi", "*movdicc_real_foldable", "*movdicc_real"): Adjust contraints formatting. ("*bCC_foldable"): Add %+ for P in output format and delete FIXME for branch prediction. ("*bCC", "*bCC_inverted_foldable", "*bCC_inverted"): Add %+ in output template. ("*call_real", "*call_value_real", "nonlocal_goto_receiver", "*nonlocal_goto_receiver_expanded"): Use MMIX_rJ_REGNUM instead of number. Delete related FIXMEs. * config/mmix/mmix.h (MMIX_INCOMING_RETURN_ADDRESS_REGNUM): Change from number to MMIX_rJ_REGNUM. (TARGET_MASK_BRANCH_PREDICT): New. (TARGET_DEFAULT): Change to TARGET_MASK_BRANCH_PREDICT. (TARGET_SWITCHES): Update comment. Correct -mno-toplevel-symbols value. Add -mbranch-predict and -mno-branch-predict. (TARGET_VERSION): Drop date. (ADDITIONAL_REGISTER_NAMES): Use MMIX_rJ_REGNUM, not number. * config/mmix/mmix.c (mmix_encode_section_info): Correct condition for finding out global symbols. (mmix_asm_output_labelref): Revert condition for global symbol. (mmix_print_operand): : Emit P for a likely branch. (mmix_print_operand_punct_valid_p): A '+' is valid. See ChangeLog.6 for earlier changes.