public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c/21502] New: small data relocation mismatch
@ 2005-05-10 18:34 rth at gcc dot gnu dot org
  2005-05-10 19:10 ` [Bug c/21502] " rth at gcc dot gnu dot org
                   ` (4 more replies)
  0 siblings, 5 replies; 6+ messages in thread
From: rth at gcc dot gnu dot org @ 2005-05-10 18:34 UTC (permalink / raw)
  To: gcc-bugs

extern const char f[];
const char f[] = "";
char g(void) { return f[0]; }

In 4.0, we put f in .sdata; as of 20050510 we put it in .rodata but are still
emitting a gprel relocation.  The problem is that by the time we assemble_variable
on f, the type of f has been reset to the indeterminate array.

jsm28 sez this is related to PR21342, and that a similar fix may be needed around
complete_array_type.

-- 
           Summary: small data relocation mismatch
           Product: gcc
           Version: 4.1.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: c
        AssignedTo: rth at gcc dot gnu dot org
        ReportedBy: rth at gcc dot gnu dot org
                CC: gcc-bugs at gcc dot gnu dot org
GCC target triplet: ia64-*-*


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


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

* [Bug c/21502] small data relocation mismatch
  2005-05-10 18:34 [Bug c/21502] New: small data relocation mismatch rth at gcc dot gnu dot org
@ 2005-05-10 19:10 ` rth at gcc dot gnu dot org
  2005-05-10 19:13 ` [Bug c/21502] [4.0/4.1 Regression] " pinskia at gcc dot gnu dot org
                   ` (3 subsequent siblings)
  4 siblings, 0 replies; 6+ messages in thread
From: rth at gcc dot gnu dot org @ 2005-05-10 19:10 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From rth at gcc dot gnu dot org  2005-05-10 19:10 -------
This affects 4.0 as well, and it prevents ia64 bootstrap.

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
           Severity|normal                      |critical
            Version|4.1.0                       |4.0.1


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


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

* [Bug c/21502] [4.0/4.1 Regression] small data relocation mismatch
  2005-05-10 18:34 [Bug c/21502] New: small data relocation mismatch rth at gcc dot gnu dot org
  2005-05-10 19:10 ` [Bug c/21502] " rth at gcc dot gnu dot org
@ 2005-05-10 19:13 ` pinskia at gcc dot gnu dot org
  2005-05-11  7:33 ` cvs-commit at gcc dot gnu dot org
                   ` (2 subsequent siblings)
  4 siblings, 0 replies; 6+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-05-10 19:13 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From pinskia at gcc dot gnu dot org  2005-05-10 19:13 -------
Confirmed.

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
     Ever Confirmed|                            |1
   Last reconfirmed|0000-00-00 00:00:00         |2005-05-10 19:13:19
               date|                            |
            Summary|small data relocation       |[4.0/4.1 Regression] small
                   |mismatch                    |data relocation mismatch
   Target Milestone|---                         |4.0.1


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


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

* [Bug c/21502] [4.0/4.1 Regression] small data relocation mismatch
  2005-05-10 18:34 [Bug c/21502] New: small data relocation mismatch rth at gcc dot gnu dot org
  2005-05-10 19:10 ` [Bug c/21502] " rth at gcc dot gnu dot org
  2005-05-10 19:13 ` [Bug c/21502] [4.0/4.1 Regression] " pinskia at gcc dot gnu dot org
@ 2005-05-11  7:33 ` cvs-commit at gcc dot gnu dot org
  2005-05-11  7:34 ` cvs-commit at gcc dot gnu dot org
  2005-05-11  7:35 ` rth at gcc dot gnu dot org
  4 siblings, 0 replies; 6+ messages in thread
From: cvs-commit at gcc dot gnu dot org @ 2005-05-11  7:33 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From cvs-commit at gcc dot gnu dot org  2005-05-11 07:33 -------
Subject: Bug 21502

CVSROOT:	/cvs/gcc
Module name:	gcc
Changes by:	rth@gcc.gnu.org	2005-05-11 07:33:31

Modified files:
	gcc            : ChangeLog c-decl.c 
Added files:
	gcc/testsuite/gcc.dg: redecl-16.c 

Log message:
	PR c/21502
	* c-decl.c (finish_decl): Propagate the completed array type of
	a global variable into the binding.

Patches:
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/ChangeLog.diff?cvsroot=gcc&r1=2.8723&r2=2.8724
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/c-decl.c.diff?cvsroot=gcc&r1=1.653&r2=1.654
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/gcc.dg/redecl-16.c.diff?cvsroot=gcc&r1=NONE&r2=1.1



-- 


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


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

* [Bug c/21502] [4.0/4.1 Regression] small data relocation mismatch
  2005-05-10 18:34 [Bug c/21502] New: small data relocation mismatch rth at gcc dot gnu dot org
                   ` (2 preceding siblings ...)
  2005-05-11  7:33 ` cvs-commit at gcc dot gnu dot org
@ 2005-05-11  7:34 ` cvs-commit at gcc dot gnu dot org
  2005-05-11  7:35 ` rth at gcc dot gnu dot org
  4 siblings, 0 replies; 6+ messages in thread
From: cvs-commit at gcc dot gnu dot org @ 2005-05-11  7:34 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From cvs-commit at gcc dot gnu dot org  2005-05-11 07:34 -------
Subject: Bug 21502

CVSROOT:	/cvs/gcc
Module name:	gcc
Branch: 	gcc-4_0-branch
Changes by:	rth@gcc.gnu.org	2005-05-11 07:34:34

Modified files:
	gcc            : ChangeLog c-decl.c 
Added files:
	gcc/testsuite/gcc.dg: redecl-16.c 

Log message:
	PR c/21502
	* c-decl.c (finish_decl): Propagate the completed array type of
	a global variable into the binding.

Patches:
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/ChangeLog.diff?cvsroot=gcc&only_with_tag=gcc-4_0-branch&r1=2.7592.2.238&r2=2.7592.2.239
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/c-decl.c.diff?cvsroot=gcc&only_with_tag=gcc-4_0-branch&r1=1.630.6.10&r2=1.630.6.11
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/gcc.dg/redecl-16.c.diff?cvsroot=gcc&only_with_tag=gcc-4_0-branch&r1=NONE&r2=1.1.2.1



-- 


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


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

* [Bug c/21502] [4.0/4.1 Regression] small data relocation mismatch
  2005-05-10 18:34 [Bug c/21502] New: small data relocation mismatch rth at gcc dot gnu dot org
                   ` (3 preceding siblings ...)
  2005-05-11  7:34 ` cvs-commit at gcc dot gnu dot org
@ 2005-05-11  7:35 ` rth at gcc dot gnu dot org
  4 siblings, 0 replies; 6+ messages in thread
From: rth at gcc dot gnu dot org @ 2005-05-11  7:35 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From rth at gcc dot gnu dot org  2005-05-11 07:35 -------
Fixed.

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


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


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

end of thread, other threads:[~2005-05-11  7:35 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-05-10 18:34 [Bug c/21502] New: small data relocation mismatch rth at gcc dot gnu dot org
2005-05-10 19:10 ` [Bug c/21502] " rth at gcc dot gnu dot org
2005-05-10 19:13 ` [Bug c/21502] [4.0/4.1 Regression] " pinskia at gcc dot gnu dot org
2005-05-11  7:33 ` cvs-commit at gcc dot gnu dot org
2005-05-11  7:34 ` cvs-commit at gcc dot gnu dot org
2005-05-11  7:35 ` rth 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).