This is the mail archive of the mailing list for the GCC project.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Unreviewed patches

Fri Feb 21 21:02:01 2003  Stephen Clarke <>
                          J"orn Rennecke <>

        * late-loop.c: New file.
        * (OBJS): Include late-loop.o
        (late-loop.o): Add dependencies.
        * flags.h (flag_optimize_target_registers): Declare.
        (flag_optimize_target_registers_2): Likewise.
        * hooks.c (hook_reg_class_void_no_regs): New function.
        (hook_bool_bool_false): Likewise.
        * hooks.h (hook_reg_class_void_no_regs, hook_bool_bool_false): Declare.
        * rtl.h (target_registers_optimize): Declare.
        * target-def.h (TARGET_OPTIMIZE_TARGET_REGISTER_CLASS): Define.
        (TARGET_INITIALIZER): Include these.
        * target.h (struct gcc_target): Add optimize_target_register_class
        and optimize_target_register_callee_saved members.
        * toplev.c (enum dump_file_index): Add DFI_targetregs.
        (dump_file) Add "tars" entry.
        (flag_optimize_target_registers): New variable.
        (flag_optimize_target_registers_2): Likewise.
        (lang_independent_options): Add entries for new options.
        (rest_of_compilation): Call target_registers_optimize.
        * doc/tm.texi (TARGET_OPTIMIZE_TARGET_REGISTER_CLASS): Document.
        * doc/invoke.texi: Document -foptimize-target-registers and

        * sh.c (shmedia_space_reserved_for_target_registers): New variable.
        (sh_target_reg_class): New function.
        (sh_optimize_target_register_callee_saved): Likwise.
        (shmedia_target_regs_stack_space): Likewise.
        (shmedia_reserve_space_for_target_registers_p): Likewise.
        (shmedia_target_regs_stack_adjust): Likewise.
        (calc_live_regs): If flag_optimize_target_registers_2 and
        TARGET_SAVE_ALL_TARGET_REGS is enabled, and we have space reserved
        for target registers, make sure that we save all target registers.
        (sh_expand_prologue, sh_expand_epilogue): Take target register
        optimizations into account.  Collapse stack adjustments if that
        is beneficial.
        (initial_elimination_offset): Reserve space for target registers
        if necessary.
        (OPTIMIZATION_OPTIONS): Enable flag_optimize_target_registers.

2003-05-15  J"orn Rennecke <>

        * gcc.dg/asm-names.c (ymain): Make it weak.

2003-05-23  J"orn Rennecke <>

        * c-pragma.h (HANDLE_PRAGMA_WEAK): Always define to SUPPORTS_WEAK.

SuperH (UK) Ltd.
2410 Aztec West / Almondsbury / BRISTOL / BS32 4QX
T:+44 1454 465658

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]