public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug target/9571] [3.3/3.4 regression] [PPC] problems with 'const', -msdata=eabi and sections.
       [not found] <20030204140601.9571.osv@javad.ru>
@ 2003-05-26  0:29 ` pinskia@physics.uc.edu
  2003-06-08 18:54 ` pinskia@physics.uc.edu
                   ` (13 subsequent siblings)
  14 siblings, 0 replies; 16+ messages in thread
From: pinskia@physics.uc.edu @ 2003-05-26  0:29 UTC (permalink / raw)
  To: gcc-bugs

PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.

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


pinskia@physics.uc.edu changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
     Ever Confirmed|                            |1
   Last reconfirmed|0000-00-00 00:00:00         |2003-05-26 00:22:30
               date|                            |
            Summary|[PPC] problems with 'const',|[3.3/3.4 regression] [PPC]
                   |-msdata=eabi and sections.  |problems with 'const', -
                   |                            |msdata=eabi and sections.


------- Additional Comments From pinskia@physics.uc.edu  2003-05-26 00:22 -------
see Dara's comment.



------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.


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

* [Bug target/9571] [3.3/3.4 regression] [PPC] problems with 'const', -msdata=eabi and sections.
       [not found] <20030204140601.9571.osv@javad.ru>
  2003-05-26  0:29 ` [Bug target/9571] [3.3/3.4 regression] [PPC] problems with 'const', -msdata=eabi and sections pinskia@physics.uc.edu
@ 2003-06-08 18:54 ` pinskia@physics.uc.edu
  2003-06-17 13:52 ` sirl@gcc.gnu.org
                   ` (12 subsequent siblings)
  14 siblings, 0 replies; 16+ messages in thread
From: pinskia@physics.uc.edu @ 2003-06-08 18:54 UTC (permalink / raw)
  To: gcc-bugs

PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.

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


pinskia@physics.uc.edu changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Target Milestone|---                         |3.3.1


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

* [Bug target/9571] [3.3/3.4 regression] [PPC] problems with 'const', -msdata=eabi and sections.
       [not found] <20030204140601.9571.osv@javad.ru>
  2003-05-26  0:29 ` [Bug target/9571] [3.3/3.4 regression] [PPC] problems with 'const', -msdata=eabi and sections pinskia@physics.uc.edu
  2003-06-08 18:54 ` pinskia@physics.uc.edu
@ 2003-06-17 13:52 ` sirl@gcc.gnu.org
  2003-06-17 15:18 ` osv@javad.ru
                   ` (11 subsequent siblings)
  14 siblings, 0 replies; 16+ messages in thread
From: sirl@gcc.gnu.org @ 2003-06-17 13:52 UTC (permalink / raw)
  To: gcc-bugs

PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.

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



------- Additional Comments From sirl@gcc.gnu.org  2003-06-17 13:52 -------
This isn't a regression IMHO, independent of this bug -msdata=eabi is non-functional in gcc 
since at least gcc-2.95. So even if _this_ bug is fixed for 3.3.1 as a regression, -msdata=eabi 
will still be non-functional! 
If, however, we really want to fix all of the PPC sdata bugs for 3.3.x, I request backporting the 
gcc.dg/ppc-sdata-[12].c testcases to the 3.3 branch as a first step.


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

* [Bug target/9571] [3.3/3.4 regression] [PPC] problems with 'const', -msdata=eabi and sections.
       [not found] <20030204140601.9571.osv@javad.ru>
                   ` (2 preceding siblings ...)
  2003-06-17 13:52 ` sirl@gcc.gnu.org
@ 2003-06-17 15:18 ` osv@javad.ru
  2003-06-17 15:31 ` sirl@gcc.gnu.org
                   ` (10 subsequent siblings)
  14 siblings, 0 replies; 16+ messages in thread
From: osv@javad.ru @ 2003-06-17 15:18 UTC (permalink / raw)
  To: gcc-bugs

PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.

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



------- Additional Comments From osv@javad.ru  2003-06-17 15:18 -------
Subject: Re:  [3.3/3.4 regression] [PPC] problems with 'const', -msdata=eabi and sections.

"sirl@gcc.gnu.org" <gcc-bugzilla@gcc.gnu.org> writes:
> This isn't a regression IMHO, independent of this bug -msdata=eabi is
> non-functional in gcc since at least gcc-2.95.

This is surprise for me. I use gcc-2.95 with -msdata=eabi all the time for a
few years now and I didn't notice any problems with it yet. On the other hand,
I've immediately noticed the problem in 3.3 at the first try.


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

* [Bug target/9571] [3.3/3.4 regression] [PPC] problems with 'const', -msdata=eabi and sections.
       [not found] <20030204140601.9571.osv@javad.ru>
                   ` (3 preceding siblings ...)
  2003-06-17 15:18 ` osv@javad.ru
@ 2003-06-17 15:31 ` sirl@gcc.gnu.org
  2003-07-20  0:52 ` [Bug target/9571] " mmitchel at gcc dot gnu dot org
                   ` (9 subsequent siblings)
  14 siblings, 0 replies; 16+ messages in thread
From: sirl@gcc.gnu.org @ 2003-06-17 15:31 UTC (permalink / raw)
  To: gcc-bugs

PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.

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



------- Additional Comments From sirl@gcc.gnu.org  2003-06-17 15:31 -------
r0 is used as a pointer to sdata2, this is a bug, it should be r2. And since only r2 is initialized in 
the ecrt*.o files, how can this work? Besides that, even if you initialize r0 manually, it is 
practically clobbered in about every function.


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

* [Bug target/9571] [PPC] problems with 'const', -msdata=eabi and sections.
       [not found] <20030204140601.9571.osv@javad.ru>
                   ` (4 preceding siblings ...)
  2003-06-17 15:31 ` sirl@gcc.gnu.org
@ 2003-07-20  0:52 ` mmitchel at gcc dot gnu dot org
  2003-10-14 14:42 ` osv at topconrd dot ru
                   ` (8 subsequent siblings)
  14 siblings, 0 replies; 16+ messages in thread
From: mmitchel at gcc dot gnu dot org @ 2003-07-20  0:52 UTC (permalink / raw)
  To: gcc-bugs

PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.

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


mmitchel at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
            Summary|[3.3/3.4 regression] [PPC]  |[PPC] problems with 'const',
                   |problems with 'const', -    |-msdata=eabi and sections.
                   |msdata=eabi and sections.   |
   Target Milestone|3.3.1                       |---


------- Additional Comments From mmitchel at gcc dot gnu dot org  2003-07-20 00:52 -------
Based on Franz's comments, this bug is not really a regression at all.

I've therefore removed the regression tags.


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

* [Bug target/9571] [PPC] problems with 'const', -msdata=eabi and sections.
       [not found] <20030204140601.9571.osv@javad.ru>
                   ` (5 preceding siblings ...)
  2003-07-20  0:52 ` [Bug target/9571] " mmitchel at gcc dot gnu dot org
@ 2003-10-14 14:42 ` osv at topconrd dot ru
  2004-01-11 15:59 ` pinskia at gcc dot gnu dot org
                   ` (7 subsequent siblings)
  14 siblings, 0 replies; 16+ messages in thread
From: osv at topconrd dot ru @ 2003-10-14 14:42 UTC (permalink / raw)
  To: gcc-bugs

PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.

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



------- Additional Comments From osv at topconrd dot ru  2003-10-14 14:42 -------
> r0 is used as a pointer to sdata2, this is a bug, it should be r2.

No, the %r0 you see is fake. In the object file it's a special relocatable
symbol that is resolved to either 2 (r2) or 13 (r13) by the linker depending on
actual output section the symbol refers to, so there is no bug here.

As there is no bug at this point, the:

> Based on Franz's comments, this bug is not really a regression at all.
> I've therefore removed the regression tags.

is wrong as Franz's comments are wrong.


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

* [Bug target/9571] [PPC] problems with 'const', -msdata=eabi and sections.
       [not found] <20030204140601.9571.osv@javad.ru>
                   ` (6 preceding siblings ...)
  2003-10-14 14:42 ` osv at topconrd dot ru
@ 2004-01-11 15:59 ` pinskia at gcc dot gnu dot org
  2004-02-26 16:25 ` smeisner at charter dot net
                   ` (6 subsequent siblings)
  14 siblings, 0 replies; 16+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-01-11 15:59 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From pinskia at gcc dot gnu dot org  2004-01-11 15:59 -------
*** Bug 13646 has been marked as a duplicate of this bug. ***

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |oakad at yahoo dot com


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


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

* [Bug target/9571] [PPC] problems with 'const', -msdata=eabi and sections.
       [not found] <20030204140601.9571.osv@javad.ru>
                   ` (7 preceding siblings ...)
  2004-01-11 15:59 ` pinskia at gcc dot gnu dot org
@ 2004-02-26 16:25 ` smeisner at charter dot net
  2004-11-29  6:24 ` cvs-commit at gcc dot gnu dot org
                   ` (5 subsequent siblings)
  14 siblings, 0 replies; 16+ messages in thread
From: smeisner at charter dot net @ 2004-02-26 16:25 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From smeisner at charter dot net  2004-02-26 16:25 -------
I have fixed this bug (and another) against the 3.3.3 release.  I am not a GCC
developer, just a hack that loves GCC.  The fix works for my needs, but most
likely is not how it should be implemented.  I could send a diff or a patch if
the developers are interested in seeing what I did.

-- 


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


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

* [Bug target/9571] [PPC] problems with 'const', -msdata=eabi and sections.
       [not found] <20030204140601.9571.osv@javad.ru>
                   ` (8 preceding siblings ...)
  2004-02-26 16:25 ` smeisner at charter dot net
@ 2004-11-29  6:24 ` cvs-commit at gcc dot gnu dot org
  2004-11-29 10:36 ` schwab at suse dot de
                   ` (4 subsequent siblings)
  14 siblings, 0 replies; 16+ messages in thread
From: cvs-commit at gcc dot gnu dot org @ 2004-11-29  6:24 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From cvs-commit at gcc dot gnu dot org  2004-11-29 06:24 -------
Subject: Bug 9571

CVSROOT:	/cvs/gcc
Module name:	gcc
Changes by:	amodra@gcc.gnu.org	2004-11-29 06:24:31

Modified files:
	gcc            : ChangeLog varasm.c 

Log message:
	PR target/9571
	* varasm.c (default_elf_select_section_1): Pass decl to named_section.

Patches:
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/ChangeLog.diff?cvsroot=gcc&r1=2.6616&r2=2.6617
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/varasm.c.diff?cvsroot=gcc&r1=1.461&r2=1.462



-- 


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


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

* [Bug target/9571] [PPC] problems with 'const', -msdata=eabi and sections.
       [not found] <20030204140601.9571.osv@javad.ru>
                   ` (9 preceding siblings ...)
  2004-11-29  6:24 ` cvs-commit at gcc dot gnu dot org
@ 2004-11-29 10:36 ` schwab at suse dot de
  2004-11-29 13:36 ` pinskia at gcc dot gnu dot org
                   ` (3 subsequent siblings)
  14 siblings, 0 replies; 16+ messages in thread
From: schwab at suse dot de @ 2004-11-29 10:36 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From schwab at suse dot de  2004-11-29 10:36 -------
Breaks libgfortran on ia64. 
 
../../../libgfortran/generated/product_c4.c: In function '__product_c4': 
../../../libgfortran/generated/product_c4.c:143: internal compiler error: in 
named_section, at varasm.c:451 
Please submit a full bug report, 
with preprocessed source if appropriate. 
See <URL:http://gcc.gnu.org/bugs.html> for instructions. 
 
The decl is actually a COMPLEX_CST, i.e. not a DECL_P. 
 

-- 


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


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

* [Bug target/9571] [PPC] problems with 'const', -msdata=eabi and sections.
       [not found] <20030204140601.9571.osv@javad.ru>
                   ` (10 preceding siblings ...)
  2004-11-29 10:36 ` schwab at suse dot de
@ 2004-11-29 13:36 ` pinskia at gcc dot gnu dot org
  2004-11-30  6:44 ` amodra at bigpond dot net dot au
                   ` (2 subsequent siblings)
  14 siblings, 0 replies; 16+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-11-29 13:36 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From pinskia at gcc dot gnu dot org  2004-11-29 13:35 -------
Fixed.

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |FIXED
   Target Milestone|---                         |4.0.0


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


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

* [Bug target/9571] [PPC] problems with 'const', -msdata=eabi and sections.
       [not found] <20030204140601.9571.osv@javad.ru>
                   ` (11 preceding siblings ...)
  2004-11-29 13:36 ` pinskia at gcc dot gnu dot org
@ 2004-11-30  6:44 ` amodra at bigpond dot net dot au
  2005-01-31  6:53 ` pinskia at gcc dot gnu dot org
  2005-02-12 23:23 ` pinskia at gcc dot gnu dot org
  14 siblings, 0 replies; 16+ messages in thread
From: amodra at bigpond dot net dot au @ 2004-11-30  6:44 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From amodra at bigpond dot net dot au  2004-11-30 06:44 -------
My patch didn't completely fix this problem, only the wrong .sdata2 attributes.
Incidentally, the followup patch to fix the libgfortran breakage is:

CVSROOT:	/cvs/gcc
Module name:	gcc
Changes by:	amodra@gcc.gnu.org	2004-11-29 11:29:13

Modified files:
	gcc            : ChangeLog varasm.c 

Log message:
	* varasm.c (default_elf_select_section_1): Only pass DECL_P decl
	to named_section.

Patches:
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/ChangeLog.diff?cvsroot=gcc&r1=2.6618&r2=2.6619
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/varasm.c.diff?cvsroot=gcc&r1=1.462&r2=1.463



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


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


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

* [Bug target/9571] [PPC] problems with 'const', -msdata=eabi and sections.
       [not found] <20030204140601.9571.osv@javad.ru>
                   ` (12 preceding siblings ...)
  2004-11-30  6:44 ` amodra at bigpond dot net dot au
@ 2005-01-31  6:53 ` pinskia at gcc dot gnu dot org
  2005-02-12 23:23 ` pinskia at gcc dot gnu dot org
  14 siblings, 0 replies; 16+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-01-31  6:53 UTC (permalink / raw)
  To: gcc-bugs



-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
   Target Milestone|4.0.0                       |---


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


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

* [Bug target/9571] [PPC] problems with 'const', -msdata=eabi and sections.
       [not found] <20030204140601.9571.osv@javad.ru>
                   ` (13 preceding siblings ...)
  2005-01-31  6:53 ` pinskia at gcc dot gnu dot org
@ 2005-02-12 23:23 ` pinskia at gcc dot gnu dot org
  14 siblings, 0 replies; 16+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-02-12 23:23 UTC (permalink / raw)
  To: gcc-bugs



-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|REOPENED                    |NEW


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


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

* [Bug target/9571] [PPC] problems with 'const', -msdata=eabi and sections.
@ 2003-05-22  1:34 dhazeghi@yahoo.com
  0 siblings, 0 replies; 16+ messages in thread
From: dhazeghi@yahoo.com @ 2003-05-22  1:34 UTC (permalink / raw)
  To: gcc-bugs

PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.

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



------- Additional Comments From dhazeghi@yahoo.com  2003-05-22 01:24 -------
Hello,

I can confirm that this problem is still present on gcc 3.3 branch and mainline (20030521) on an 
i686-linux to powerpc-rtems cross compiler. gcc 3.2.3 did not have this problem, so this is a 
regression. Removing the -msdata=eabi fixes the problem.

Dara



------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.


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

end of thread, other threads:[~2005-02-12 21:13 UTC | newest]

Thread overview: 16+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <20030204140601.9571.osv@javad.ru>
2003-05-26  0:29 ` [Bug target/9571] [3.3/3.4 regression] [PPC] problems with 'const', -msdata=eabi and sections pinskia@physics.uc.edu
2003-06-08 18:54 ` pinskia@physics.uc.edu
2003-06-17 13:52 ` sirl@gcc.gnu.org
2003-06-17 15:18 ` osv@javad.ru
2003-06-17 15:31 ` sirl@gcc.gnu.org
2003-07-20  0:52 ` [Bug target/9571] " mmitchel at gcc dot gnu dot org
2003-10-14 14:42 ` osv at topconrd dot ru
2004-01-11 15:59 ` pinskia at gcc dot gnu dot org
2004-02-26 16:25 ` smeisner at charter dot net
2004-11-29  6:24 ` cvs-commit at gcc dot gnu dot org
2004-11-29 10:36 ` schwab at suse dot de
2004-11-29 13:36 ` pinskia at gcc dot gnu dot org
2004-11-30  6:44 ` amodra at bigpond dot net dot au
2005-01-31  6:53 ` pinskia at gcc dot gnu dot org
2005-02-12 23:23 ` pinskia at gcc dot gnu dot org
2003-05-22  1:34 dhazeghi@yahoo.com

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