r260876 - in /trunk/gcc/ada: ChangeLog libgnat/...

pmderodat@gcc.gnu.org pmderodat@gcc.gnu.org
Tue May 29 09:41:00 GMT 2018


Author: pmderodat
Date: Tue May 29 09:41:02 2018
New Revision: 260876

URL: https://gcc.gnu.org/viewcvs?rev=260876&root=gcc&view=rev
Log:
[Ada] Tighten crtbegin files for VxWorks

Enforce a more explicit distinction of crtbegin objects holding
either functions with ctor/dtor attributes or _ctors/_dtors arrays,
or none of the two (no array, no attributes). Then allow/enforce
different linking strategies for VxWorks 7.

2018-05-29  Olivier Hainque  <hainque@adacore.com>

gcc/ada/

	* vx_crtbegin.inc: Use a consistent naming convention for the
	registration/deregistration functions across RTP or kernel.  Remove the
	ctor/dtor attribute setting based on RTP/kernel, expect the optional
	attribute extension to be provided by includers instead.
	* vx_crtbegin.c: Mere inclusion of vx_crtbegin.inc with empty attribute
	extension for the registration/deregistration functions.
	* vx_crtbegin_attr.c: New file. Include vx_crtbegin.inc with explicit
	constructor/destructor attribute extensions.
	* vx_crtbegin_array.c: New file. Include vx_crtbegin.inc with empty
	attribute extensions and declare _ctors/_dtors arrays.
	* vx_crtbegin_auto.c: Remove.
	* libgnat/system-vxworks7-aarch64-rtp-smp.ads: Use
	vxworks7-gnat-crtbe-link.spec.
	* libgnat/system-vxworks7-aarch64.ads: Likewise.
	* libgnat/system-vxworks7-e500-rtp-smp.ads: Likewise.
	* libgnat/system-vxworks7-ppc-rtp-smp.ads: Likewise.
	* libgnat/system-vxworks7-ppc64-rtp-smp.ads: Likewise.
	* libgnat/system-vxworks7-x86-kernel.ads: Likewise.
	* libgnat/system-vxworks7-x86-rtp-smp.ads: Likewise.
	* libgnat/system-vxworks7-x86_64-kernel.ads: Likewise.
	* libgnat/system-vxworks7-x86_64-rtp-smp.ads: Likewise.

Added:
    trunk/gcc/ada/vx_crtbegin_array.c
      - copied, changed from r260875, trunk/gcc/ada/vx_crtbegin_auto.c
    trunk/gcc/ada/vx_crtbegin_attr.c
      - copied, changed from r260875, trunk/gcc/ada/vx_crtbegin.c
Removed:
    trunk/gcc/ada/vx_crtbegin_auto.c
Modified:
    trunk/gcc/ada/ChangeLog
    trunk/gcc/ada/libgnat/system-vxworks7-aarch64-rtp-smp.ads
    trunk/gcc/ada/libgnat/system-vxworks7-aarch64.ads
    trunk/gcc/ada/libgnat/system-vxworks7-e500-rtp-smp.ads
    trunk/gcc/ada/libgnat/system-vxworks7-ppc-rtp-smp.ads
    trunk/gcc/ada/libgnat/system-vxworks7-ppc64-rtp-smp.ads
    trunk/gcc/ada/libgnat/system-vxworks7-x86-kernel.ads
    trunk/gcc/ada/libgnat/system-vxworks7-x86-rtp-smp.ads
    trunk/gcc/ada/libgnat/system-vxworks7-x86_64-kernel.ads
    trunk/gcc/ada/libgnat/system-vxworks7-x86_64-rtp-smp.ads
    trunk/gcc/ada/vx_crtbegin.c
    trunk/gcc/ada/vx_crtbegin.inc



More information about the Gcc-cvs mailing list