> gcc --version
gcc (SUSE Linux) 4.3.2 [gcc-4_3-branch revision 141291]

> cat test.c
// file test.c Call to empty function
void f(){ }
int main(){ return(0);}

> gcc -o test test.c -O2
> objdump -d test
....
00000000004004f0 <f>:
  4004f0:       f3 c3                   repz retq 

Why rep ret? Why not ret?


-- 
           Summary: Empty function translated to repz retq.
           Product: gcc
           Version: 4.3.2
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: vvv at ru dot ru


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

Reply via email to