[Bug target/19715] C++ init_priority is not enabled for generic sparc-elf target

2005-02-10 Thread jiri at gaisler dot com

--- Additional Comments From jiri at gaisler dot com  2005-02-10 19:24 
---
Subject: Re:  C++ init_priority is not enabled for generic
 sparc-elf target


It is not fixed. In gcc-4.0.0, the file that needs to be fixed is
gcc/config/sparc/sp-elf.h . It should contain the following:

#undef CTORS_SECTION_ASM_OP
#undef DTORS_SECTION_ASM_OP
#undef SUPPORTS_INIT_PRIORITY
#define SUPPORTS_INIT_PRIORITY 1


Jiri.

ebotcazou at gcc dot gnu dot org wrote:
> --- Additional Comments From ebotcazou at gcc dot gnu dot org  2005-02-10 
> 18:51 ---
> 
>>It not fixed on 3.4 or the 4.0 as far as I can see.
> 
> 
> What do you mean by "as far as I can see"?  Did you really try with 4.0.0pre?
> 
> 


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=19715


[Bug target/19715] C++ init_priority is not enabled for generic sparc-elf target

2005-02-10 Thread jiri at gaisler dot com

--- Additional Comments From jiri at gaisler dot com  2005-02-10 18:41 
---
Subject: Re:  C++ init_priority is not enabled for generic
 sparc-elf target


It not fixed on 3.4 or the 4.0 as far as I can see.

Jiri.

ebotcazou at gcc dot gnu dot org wrote:
> --- Additional Comments From ebotcazou at gcc dot gnu dot org  2005-02-10 
> 17:42 ---
> 
>>The C++ pragma init_priority is enabled for several sparc targets, but not for
>>the generic sparc-elf (--target=sparc-elf).
> 
> 
> Confirmed, a fallout of the illegitimate dependency on the Solaris config 
> files
> and, as such, probably already fixed on mainline.  I'll try to do something 
> for
> the 3.4 branch.
> 
> 


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=19715


[Bug c++/19715] New: C++ init_priority is not enabled for generic sparc-elf target

2005-01-30 Thread jiri at gaisler dot com
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