This is the mail archive of the gcc-patches@gcc.gnu.org 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]

[VMS/committed]: consolidate ia64_start_function and alpha_start_function, rework crt0


Hi,

there was duplicated code for dealing with -mdebug-main in ia64_start_function and alpha_start_function.  This patch consolidates that.

The pointer size is recorded for function 'main', so that crt0 now expand argv[] if needed; likewise of the return status code.

Manually tested on both ia64 and alpha openvms, committed on trunk.

Tristan.

libgcc/
2012-03-26  Tristan Gingold  <gingold@adacore.com>

        * config/alpha/vms.h (LINK_SPEC): Simplify.
        (STARTFILE_SPEC): Remove -mvms-return-codes handling.
        (NAME__MAIN, SYMBOL__MAIN): Remove.
        (VMS_DEBUG_MAIN_POINTER): Remove.
        * config/ia64/vms.h: Likewise.
        * config/alpha/alpha.c (alpha_start_function): Move vms_debug_main
        code to vms.c.  Call vms_start_function.
        * config/ia64/ia64.c (ia64_start_function): Likewise.
        * config/vms/vms-protos.h (vms_start_function): Declare.
        * config/vms/vms.c (vms_start_function): New function.
        * config/vms/vms.h (MATH_LIBRARY): Define.
        (VMS_DEBUG_MAIN_POINTER): Define.

gcc/
2012-03-26  Tristan Gingold  <gingold@adacore.com>

        * config/alpha/vms.h (LINK_SPEC): Simplify.
        (STARTFILE_SPEC): Remove -mvms-return-codes handling.
        (NAME__MAIN, SYMBOL__MAIN): Remove.
        (VMS_DEBUG_MAIN_POINTER): Remove.
        * config/ia64/vms.h: Likewise.
        * config/alpha/alpha.c (alpha_start_function): Move vms_debug_main
        code to vms.c.  Call vms_start_function.
        * config/ia64/ia64.c (ia64_start_function): Likewise.
        * config/vms/vms-protos.h (vms_start_function): Declare.
        * config/vms/vms.c (vms_start_function): New function.
        * config/vms/vms.h (MATH_LIBRARY): Define.
        (VMS_DEBUG_MAIN_POINTER): Define.


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