public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug rtl-optimization/26619]  New: Compiler fails to correctly initialize global reg variable
@ 2006-03-09 13:55 dave dot mueller at gmx dot ch
  2006-03-09 13:59 ` [Bug rtl-optimization/26619] " dave dot mueller at gmx dot ch
                   ` (4 more replies)
  0 siblings, 5 replies; 6+ messages in thread
From: dave dot mueller at gmx dot ch @ 2006-03-09 13:55 UTC (permalink / raw)
  To: gcc-bugs

GCC 4.1.0 initializes another register than the one specified in the
definition. 
I'm not sure it this has also something to do with bug 21596. 
The same testcase built with GCC 3.4.4 is correct.


-- 
           Summary: Compiler fails to correctly initialize global reg
                    variable
           Product: gcc
           Version: 4.1.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: rtl-optimization
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: dave dot mueller at gmx dot ch
  GCC host triplet: i686-gnu-linux
GCC target triplet: arm-linux, powerpc-linux


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


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

* [Bug rtl-optimization/26619] Compiler fails to correctly initialize global reg variable
  2006-03-09 13:55 [Bug rtl-optimization/26619] New: Compiler fails to correctly initialize global reg variable dave dot mueller at gmx dot ch
@ 2006-03-09 13:59 ` dave dot mueller at gmx dot ch
  2006-03-09 14:00 ` dave dot mueller at gmx dot ch
                   ` (3 subsequent siblings)
  4 siblings, 0 replies; 6+ messages in thread
From: dave dot mueller at gmx dot ch @ 2006-03-09 13:59 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #1 from dave dot mueller at gmx dot ch  2006-03-09 13:59 -------
Created an attachment (id=11009)
 --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=11009&action=view)
PowerPC .i file


-- 


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


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

* [Bug rtl-optimization/26619] Compiler fails to correctly initialize global reg variable
  2006-03-09 13:55 [Bug rtl-optimization/26619] New: Compiler fails to correctly initialize global reg variable dave dot mueller at gmx dot ch
  2006-03-09 13:59 ` [Bug rtl-optimization/26619] " dave dot mueller at gmx dot ch
@ 2006-03-09 14:00 ` dave dot mueller at gmx dot ch
  2006-03-09 14:01 ` dave dot mueller at gmx dot ch
                   ` (2 subsequent siblings)
  4 siblings, 0 replies; 6+ messages in thread
From: dave dot mueller at gmx dot ch @ 2006-03-09 14:00 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #2 from dave dot mueller at gmx dot ch  2006-03-09 14:00 -------
Created an attachment (id=11010)
 --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=11010&action=view)
PowerPC .s file


-- 


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


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

* [Bug rtl-optimization/26619] Compiler fails to correctly initialize global reg variable
  2006-03-09 13:55 [Bug rtl-optimization/26619] New: Compiler fails to correctly initialize global reg variable dave dot mueller at gmx dot ch
  2006-03-09 13:59 ` [Bug rtl-optimization/26619] " dave dot mueller at gmx dot ch
  2006-03-09 14:00 ` dave dot mueller at gmx dot ch
@ 2006-03-09 14:01 ` dave dot mueller at gmx dot ch
  2006-03-09 14:02 ` pinskia at gcc dot gnu dot org
  2006-03-09 14:03 ` pinskia at gcc dot gnu dot org
  4 siblings, 0 replies; 6+ messages in thread
From: dave dot mueller at gmx dot ch @ 2006-03-09 14:01 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #3 from dave dot mueller at gmx dot ch  2006-03-09 14:01 -------
Created an attachment (id=11011)
 --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=11011&action=view)
ARM .s file


-- 


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


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

* [Bug rtl-optimization/26619] Compiler fails to correctly initialize global reg variable
  2006-03-09 13:55 [Bug rtl-optimization/26619] New: Compiler fails to correctly initialize global reg variable dave dot mueller at gmx dot ch
                   ` (2 preceding siblings ...)
  2006-03-09 14:01 ` dave dot mueller at gmx dot ch
@ 2006-03-09 14:02 ` pinskia at gcc dot gnu dot org
  2006-03-09 14:03 ` pinskia at gcc dot gnu dot org
  4 siblings, 0 replies; 6+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2006-03-09 14:02 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #4 from pinskia at gcc dot gnu dot org  2006-03-09 14:02 -------
local register variables don't do what you think they do.   Hint they only work
with inline-asm.


-- 

pinskia at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
         Resolution|                            |INVALID


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


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

* [Bug rtl-optimization/26619] Compiler fails to correctly initialize global reg variable
  2006-03-09 13:55 [Bug rtl-optimization/26619] New: Compiler fails to correctly initialize global reg variable dave dot mueller at gmx dot ch
                   ` (3 preceding siblings ...)
  2006-03-09 14:02 ` pinskia at gcc dot gnu dot org
@ 2006-03-09 14:03 ` pinskia at gcc dot gnu dot org
  4 siblings, 0 replies; 6+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2006-03-09 14:03 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #5 from pinskia at gcc dot gnu dot org  2006-03-09 14:03 -------
If you want to use r5 the correct way is to do:
register int *foo asm("r5") = 0;
void t1(void)
{
    *foo = 1;
}


-- 


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


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

end of thread, other threads:[~2006-03-09 14:03 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-03-09 13:55 [Bug rtl-optimization/26619] New: Compiler fails to correctly initialize global reg variable dave dot mueller at gmx dot ch
2006-03-09 13:59 ` [Bug rtl-optimization/26619] " dave dot mueller at gmx dot ch
2006-03-09 14:00 ` dave dot mueller at gmx dot ch
2006-03-09 14:01 ` dave dot mueller at gmx dot ch
2006-03-09 14:02 ` pinskia at gcc dot gnu dot org
2006-03-09 14:03 ` pinskia 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).