public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/19715] New: C++ init_priority is not enabled for generic sparc-elf target
@ 2005-01-31  0:12 jiri at gaisler dot com
  2005-01-31  0:21 ` [Bug target/19715] " pinskia at gcc dot gnu dot org
                   ` (9 more replies)
  0 siblings, 10 replies; 11+ messages in thread
From: jiri at gaisler dot com @ 2005-01-31  0:12 UTC (permalink / raw)
  To: gcc-bugs

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


^ permalink raw reply	[flat|nested] 11+ messages in thread

* [Bug target/19715] C++ init_priority is not enabled for generic sparc-elf target
  2005-01-31  0:12 [Bug c++/19715] New: C++ init_priority is not enabled for generic sparc-elf target jiri at gaisler dot com
@ 2005-01-31  0:21 ` pinskia at gcc dot gnu dot org
  2005-02-10 20:51 ` ebotcazou at gcc dot gnu dot org
                   ` (8 subsequent siblings)
  9 siblings, 0 replies; 11+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-01-31  0:21 UTC (permalink / raw)
  To: gcc-bugs



-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
          Component|c++                         |target


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


^ permalink raw reply	[flat|nested] 11+ messages in thread

* [Bug target/19715] C++ init_priority is not enabled for generic sparc-elf target
  2005-01-31  0:12 [Bug c++/19715] New: C++ init_priority is not enabled for generic sparc-elf target jiri at gaisler dot com
  2005-01-31  0:21 ` [Bug target/19715] " pinskia at gcc dot gnu dot org
@ 2005-02-10 20:51 ` ebotcazou at gcc dot gnu dot org
  2005-02-10 20:51 ` ebotcazou at gcc dot gnu dot org
                   ` (7 subsequent siblings)
  9 siblings, 0 replies; 11+ messages in thread
From: ebotcazou at gcc dot gnu dot org @ 2005-02-10 20:51 UTC (permalink / raw)
  To: gcc-bugs



-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |ebotcazou at gcc dot gnu dot
                   |                            |org
         AssignedTo|unassigned at gcc dot gnu   |ebotcazou at gcc dot gnu dot
                   |dot org                     |org
             Status|NEW                         |ASSIGNED
  GCC build triplet|any                         |*-*-*
   GCC host triplet|any                         |*-*-*


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


^ permalink raw reply	[flat|nested] 11+ messages in thread

* [Bug target/19715] C++ init_priority is not enabled for generic sparc-elf target
  2005-01-31  0:12 [Bug c++/19715] New: C++ init_priority is not enabled for generic sparc-elf target jiri at gaisler dot com
  2005-01-31  0:21 ` [Bug target/19715] " pinskia at gcc dot gnu dot org
  2005-02-10 20:51 ` ebotcazou at gcc dot gnu dot org
@ 2005-02-10 20:51 ` ebotcazou at gcc dot gnu dot org
  2005-02-10 21:53 ` jiri at gaisler dot com
                   ` (6 subsequent siblings)
  9 siblings, 0 replies; 11+ messages in thread
From: ebotcazou at gcc dot gnu dot org @ 2005-02-10 20:51 UTC (permalink / raw)
  To: gcc-bugs


------- 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.


-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
     Ever Confirmed|                            |1
   Last reconfirmed|0000-00-00 00:00:00         |2005-02-10 17:42:28
               date|                            |


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


^ permalink raw reply	[flat|nested] 11+ messages in thread

* [Bug target/19715] C++ init_priority is not enabled for generic sparc-elf target
  2005-01-31  0:12 [Bug c++/19715] New: C++ init_priority is not enabled for generic sparc-elf target jiri at gaisler dot com
                   ` (2 preceding siblings ...)
  2005-02-10 20:51 ` ebotcazou at gcc dot gnu dot org
@ 2005-02-10 21:53 ` jiri at gaisler dot com
  2005-02-10 22:04 ` ebotcazou at gcc dot gnu dot org
                   ` (5 subsequent siblings)
  9 siblings, 0 replies; 11+ messages in thread
From: jiri at gaisler dot com @ 2005-02-10 21:53 UTC (permalink / raw)
  To: gcc-bugs


------- 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


^ permalink raw reply	[flat|nested] 11+ messages in thread

* [Bug target/19715] C++ init_priority is not enabled for generic sparc-elf target
  2005-01-31  0:12 [Bug c++/19715] New: C++ init_priority is not enabled for generic sparc-elf target jiri at gaisler dot com
                   ` (3 preceding siblings ...)
  2005-02-10 21:53 ` jiri at gaisler dot com
@ 2005-02-10 22:04 ` ebotcazou at gcc dot gnu dot org
  2005-02-10 22:39 ` jiri at gaisler dot com
                   ` (4 subsequent siblings)
  9 siblings, 0 replies; 11+ messages in thread
From: ebotcazou at gcc dot gnu dot org @ 2005-02-10 22:04 UTC (permalink / raw)
  To: gcc-bugs


------- 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


^ permalink raw reply	[flat|nested] 11+ messages in thread

* [Bug target/19715] C++ init_priority is not enabled for generic sparc-elf target
  2005-01-31  0:12 [Bug c++/19715] New: C++ init_priority is not enabled for generic sparc-elf target jiri at gaisler dot com
                   ` (4 preceding siblings ...)
  2005-02-10 22:04 ` ebotcazou at gcc dot gnu dot org
@ 2005-02-10 22:39 ` jiri at gaisler dot com
  2005-02-10 23:06 ` ebotcazou at gcc dot gnu dot org
                   ` (3 subsequent siblings)
  9 siblings, 0 replies; 11+ messages in thread
From: jiri at gaisler dot com @ 2005-02-10 22:39 UTC (permalink / raw)
  To: gcc-bugs


------- 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


^ permalink raw reply	[flat|nested] 11+ messages in thread

* [Bug target/19715] C++ init_priority is not enabled for generic sparc-elf target
  2005-01-31  0:12 [Bug c++/19715] New: C++ init_priority is not enabled for generic sparc-elf target jiri at gaisler dot com
                   ` (5 preceding siblings ...)
  2005-02-10 22:39 ` jiri at gaisler dot com
@ 2005-02-10 23:06 ` ebotcazou at gcc dot gnu dot org
  2005-02-10 23:11 ` [Bug target/19715] [3.4 Regression] init_priority is disabled ebotcazou at gcc dot gnu dot org
                   ` (2 subsequent siblings)
  9 siblings, 0 replies; 11+ messages in thread
From: ebotcazou at gcc dot gnu dot org @ 2005-02-10 23:06 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From ebotcazou at gcc dot gnu dot org  2005-02-10 20:05 -------
> It is not fixed.

That's wrong.  It is fixed in 4.0.0pre:

gcc -E -DIN_GCC -DCROSS_COMPILE  -W -Wall -Wwrite-strings -Wstrict-prototypes
-Wmissing-prototypes  -fno-common   -DHAVE_CONFIG_H    -I. -Icp
-I/home/eric/cvs/gcc/gcc -I/home/eric/cvs/gcc/gcc/cp
-I/home/eric/cvs/gcc/gcc/../include -I/home/eric/cvs/gcc/gcc/../libcpp/include 
/home/eric/cvs/gcc/gcc/cp/call.c -dM | grep SUPPORTS
#define SUPPORTS_ONE_ONLY 1
#define SUPPORTS_WEAK 1
#define SUPPORTS_INIT_PRIORITY 1


-- 


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


^ permalink raw reply	[flat|nested] 11+ messages in thread

* [Bug target/19715] [3.4 Regression] init_priority is disabled
  2005-01-31  0:12 [Bug c++/19715] New: C++ init_priority is not enabled for generic sparc-elf target jiri at gaisler dot com
                   ` (6 preceding siblings ...)
  2005-02-10 23:06 ` ebotcazou at gcc dot gnu dot org
@ 2005-02-10 23:11 ` ebotcazou at gcc dot gnu dot org
  2005-02-17  8:50 ` cvs-commit at gcc dot gnu dot org
  2005-02-17  8:54 ` ebotcazou at gcc dot gnu dot org
  9 siblings, 0 replies; 11+ messages in thread
From: ebotcazou at gcc dot gnu dot org @ 2005-02-10 23:11 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From ebotcazou at gcc dot gnu dot org  2005-02-10 20:24 -------
And it is not present in all 3.x versions either, only in 3.4.x.


-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
            Summary|C++ init_priority is not    |[3.4 Regression]
                   |enabled for generic sparc-  |init_priority is disabled
                   |elf target                  |
   Target Milestone|---                         |3.4.4
            Version|3.2.3                       |3.4.3


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


^ permalink raw reply	[flat|nested] 11+ messages in thread

* [Bug target/19715] [3.4 Regression] init_priority is disabled
  2005-01-31  0:12 [Bug c++/19715] New: C++ init_priority is not enabled for generic sparc-elf target jiri at gaisler dot com
                   ` (7 preceding siblings ...)
  2005-02-10 23:11 ` [Bug target/19715] [3.4 Regression] init_priority is disabled ebotcazou at gcc dot gnu dot org
@ 2005-02-17  8:50 ` cvs-commit at gcc dot gnu dot org
  2005-02-17  8:54 ` ebotcazou at gcc dot gnu dot org
  9 siblings, 0 replies; 11+ messages in thread
From: cvs-commit at gcc dot gnu dot org @ 2005-02-17  8:50 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From cvs-commit at gcc dot gnu dot org  2005-02-16 21:58 -------
Subject: Bug 19715

CVSROOT:	/cvs/gcc
Module name:	gcc
Branch: 	gcc-3_4-branch
Changes by:	ebotcazou@gcc.gnu.org	2005-02-16 21:58:49

Modified files:
	gcc            : ChangeLog config.gcc 

Log message:
	PR target/19715
	* config.gcc (sparc-*-elf*): Include sparc/sol2-gld.h.
	(sparc-*-rtems*): Likewise.
	(sparclite-*-elf*): Likewise.
	(sparc86x-*-elf*): Likewise.
	(sparc64-*-elf*): Likewise.

Patches:
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/ChangeLog.diff?cvsroot=gcc&only_with_tag=gcc-3_4-branch&r1=2.2326.2.799&r2=2.2326.2.800
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/config.gcc.diff?cvsroot=gcc&only_with_tag=gcc-3_4-branch&r1=1.420.2.19&r2=1.420.2.20



-- 


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


^ permalink raw reply	[flat|nested] 11+ messages in thread

* [Bug target/19715] [3.4 Regression] init_priority is disabled
  2005-01-31  0:12 [Bug c++/19715] New: C++ init_priority is not enabled for generic sparc-elf target jiri at gaisler dot com
                   ` (8 preceding siblings ...)
  2005-02-17  8:50 ` cvs-commit at gcc dot gnu dot org
@ 2005-02-17  8:54 ` ebotcazou at gcc dot gnu dot org
  9 siblings, 0 replies; 11+ messages in thread
From: ebotcazou at gcc dot gnu dot org @ 2005-02-17  8:54 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From ebotcazou at gcc dot gnu dot org  2005-02-16 22:03 -------
See http://gcc.gnu.org/ml/gcc-patches/2005-02/msg00957.html

I'm not sure of the status in 3.3.x and below, but I'm reluctant to touch that
branch at this point.  Fixed in GCC 3.4.4 and later.

Thanks for reporting the problem.


-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|ASSIGNED                    |RESOLVED
         Resolution|                            |FIXED


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


^ permalink raw reply	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2005-02-16 22:03 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-01-31  0:12 [Bug c++/19715] New: C++ init_priority is not enabled for generic sparc-elf target jiri at gaisler dot com
2005-01-31  0:21 ` [Bug target/19715] " pinskia at gcc dot gnu dot org
2005-02-10 20:51 ` ebotcazou at gcc dot gnu dot org
2005-02-10 20:51 ` ebotcazou at gcc dot gnu dot org
2005-02-10 21:53 ` jiri at gaisler dot com
2005-02-10 22:04 ` ebotcazou at gcc dot gnu dot org
2005-02-10 22:39 ` jiri at gaisler dot com
2005-02-10 23:06 ` ebotcazou at gcc dot gnu dot org
2005-02-10 23:11 ` [Bug target/19715] [3.4 Regression] init_priority is disabled ebotcazou at gcc dot gnu dot org
2005-02-17  8:50 ` cvs-commit at gcc dot gnu dot org
2005-02-17  8:54 ` ebotcazou at gcc dot gnu dot org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).