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 target/23451] [3.4/4.0/4.1/4.2 regression] Redundant reloading from stack frame



------- Comment #3 from steven at gcc dot gnu dot org  2006-01-10 20:36 -------
GCC 4.2 (trunk) produces this kind of redundant loads:
        ...
        movl    -20(%ebp), %eax
        testl   %eax, %eax
        je      .L10
        movl    -20(%ebp), %eax
        movl    %eax, (%esp)
        call    strlen
        ...

And so does GCC 3.3-hammer_branch:
        ...
        movl    -16(%ebp), %ecx
        xorl    %ebx, %ebx
        testl   %ecx, %ecx
        je      .L8
        movl    -16(%ebp), %eax
        movl    %eax, (%esp)
        call    strlen
        ...


-- 

steven at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
     Ever Confirmed|0                           |1
   Last reconfirmed|0000-00-00 00:00:00         |2006-01-10 20:36:18
               date|                            |


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



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