[Bug middle-end/50074] [4.7 Regression] gcc.dg/sibcall-6.c execution test on x86_64-apple-darwin10

hjl.tools at gmail dot com gcc-bugzilla@gcc.gnu.org
Mon Aug 15 14:00:00 GMT 2011


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

H.J. Lu <hjl.tools at gmail dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
   Last reconfirmed|                            |2011-08-15
          Component|testsuite                   |middle-end
     Ever Confirmed|0                           |1

--- Comment #7 from H.J. Lu <hjl.tools at gmail dot com> 2011-08-15 13:59:30 UTC ---
Kirill, this is a regression:

[hjl@gnu-6 gcc]$ cat /tmp/x.i
int (*ptr) (int);
int
foo (int f)
{
  return (*ptr)(f);
}
[hjl@gnu-6 gcc]$ ./xgcc -B./ -O2 -foptimize-sibling-calls -fno-ipa-cp -S
/tmp/x.i -fPIC  
[hjl@gnu-6 gcc]$ cat x.s
    .file    "x.i"
    .text
    .p2align 4,,15
    .globl    foo
    .type    foo, @function
foo:
.LFB0:
    .cfi_startproc
    subq    $8, %rsp
    .cfi_def_cfa_offset 16
    movq    ptr@GOTPCREL(%rip), %rax
    call    *(%rax)
    addq    $8, %rsp
    .cfi_def_cfa_offset 8
    ret

PTR here isn't an argument.



More information about the Gcc-bugs mailing list