Add Init_priority support.
authorAjit Agarwal <ajitkum@xilinx.com>
Mon, 18 Aug 2014 17:04:41 +0000 (17:04 +0000)
committerMichael Eager <eager@gcc.gnu.org>
Mon, 18 Aug 2014 17:04:41 +0000 (17:04 +0000)
commit57fb889f4199e7ffedc756e9d729d62171fb91f9
treefd11b534711aa4836129da2de9aa38901287db59
parentf8df6750f4f7a70efd2e502add6f2280ede6e8db
Add Init_priority support.

Added TARGET_ASM_CONSTRUCTOR and TARGET_ASM_DESTRUCTOR macros. These
macros allows users to control the order of initialization of objects
defined at namespace scope with the init_priority attribute by
specifying a relative priority.

ChangeLog:
2014-07-28  Ajit Agarwal  <ajitkum@xilinx.com>

* config/microblaze/microblaze.c (microblaze_elf_asm_cdtor): New.
(microblaze_elf_asm_constructor,microblaze_elf_asm_destructor): New.
* config/microblaze/microblaze.h
(TARGET_ASM_CONSTRUCTOR,TARGET_ASM_DESTRUCTOR): New Macros.

From-SVN: r214110
gcc/ChangeLog
gcc/config/microblaze/microblaze.c
gcc/config/microblaze/microblaze.h