This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/19715] New: C++ init_priority is not enabled for generic sparc-elf target
- From: "jiri at gaisler dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 31 Jan 2005 00:12:35 -0000
- Subject: [Bug c++/19715] New: C++ init_priority is not enabled for generic sparc-elf target
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
The C++ pragma init_priority is enabled for several sparc targets, but not for
the generic sparc-elf (--target=sparc-elf). The file gcc/config/sparc/elf.h
should include the following lines:
#undef CTORS_SECTION_ASM_OP
#undef DTORS_SECTION_ASM_OP
#define SUPPORTS_INIT_PRIORITY 1
This problem exists on all gcc-3.x versions, including gcc-3.4.3. Bare-bone
operating systems such as eCos use the sparc-elf target and require
init_priority to work.
--
Summary: C++ init_priority is not enabled for generic sparc-elf
target
Product: gcc
Version: 3.2.3
Status: UNCONFIRMED
Severity: normal
Priority: P2
Component: c++
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: jiri at gaisler dot com
CC: gcc-bugs at gcc dot gnu dot org
GCC build triplet: any
GCC host triplet: any
GCC target triplet: sparc-elf
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=19715