This is the mail archive of the gcc-cvs@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]

r122335 - in /trunk/gcc: ChangeLog c-common.c c...


Author: mmitchel
Date: Mon Feb 26 15:53:51 2007
New Revision: 122335

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=122335
Log:
	* output.h (assemble_addr_to_section): Declare.
	(get_cdtor_priority_section): Likewise.
	* varasm.c (assemble_addr_to_section): New function.
	(get_cdtor_priority_section): Likewise.
	(default_named_section_asm_out_destructor): Use them.
	(destor_dtor_section_asm_out_destructor): Likewise.
	(default_named_section_asm_out_constructor): Likewise.
	(default_ctor_section_asm_out_constructor): Likewise.
	* config.gcc (*-*-vxworks*): Include vxworks.o.
	* config/t-vxworks (vxworks.o): New target.
	* config/vxworks.h (ALWAYS_NUMBER_CTORS_SECTIONS): Remove.
	(TARGET_ASM_CONSTRUCTOR): Define.
	(TARGET_ASM_DESTRUCTOR): Likewise.
	(vxworks_asm_out_constructor): Declare.
	(vxworks_asm_out_destructor): Likewise.

	* c-common.c (get_priority): Check that we have not just an
	INTEGER_CST, but an integer constant with integeral type.

	* gcc.dg/vxworks/vxworks.exp: New file.
	* gcc.dg/vxworks/initpri1.c: Likewise.
	* gcc.dg/vxworks/initpri2.c: Likewise.
	* gcc.dg/initpri2.c: Add more tests.
	* g++.dg/special/initpri2.C: Likewise.

Added:
    trunk/gcc/config/vxworks.c
    trunk/gcc/testsuite/gcc.dg/vxworks/
    trunk/gcc/testsuite/gcc.dg/vxworks/initpri1.c
    trunk/gcc/testsuite/gcc.dg/vxworks/initpri2.c
    trunk/gcc/testsuite/gcc.dg/vxworks/vxworks.exp
Modified:
    trunk/gcc/ChangeLog
    trunk/gcc/c-common.c
    trunk/gcc/config.gcc
    trunk/gcc/config/t-vxworks
    trunk/gcc/config/vxworks.h
    trunk/gcc/output.h
    trunk/gcc/testsuite/ChangeLog
    trunk/gcc/testsuite/g++.dg/special/initpri2.C
    trunk/gcc/testsuite/gcc.dg/initpri2.c
    trunk/gcc/varasm.c


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