This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug optimization/14227] [3.5 Regression] Poor code for varargs functions.


------- Additional Comments From pinskia at gcc dot gnu dot org  2004-02-20 16:35 -------
Confirmed.
on PPC, 20040204 produced:
_bar:
        mr r3,r4
        stw r5,32(r1)
        stw r6,36(r1)
        stw r7,40(r1)
        stw r8,44(r1)
        stw r9,48(r1)
        stw r10,52(r1)
        stw r4,28(r1)
        blr

While in 20040214, gcc produced worse code:
_bar:
        addi r0,r1,28
        stw r4,28(r1)
        stw r0,-24(r1)
        lwz r11,-24(r1)
        lwz r3,-24(r1)
        stw r5,32(r1)
        stw r6,36(r1)
        addi r2,r3,4
        stw r7,40(r1)
        stw r8,44(r1)
        stw r9,48(r1)
        stw r10,52(r1)
        lwz r3,0(r11)
        stw r2,-24(r1)
        blr

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
     Ever Confirmed|                            |1
      Known to fail|                            |3.5.0
      Known to work|                            |3.4.0
   Last reconfirmed|0000-00-00 00:00:00         |2004-02-20 16:35:45
               date|                            |
            Summary|[regression] Poor code for  |[3.5 Regression] Poor code
                   |varargs functions.          |for varargs functions.
   Target Milestone|---                         |3.5.0


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]