------- Comment #3 from ktietz at gcc dot gnu dot org  2008-05-24 17:01 -------
(In reply to comment #1)

Sorry, I missed to install the new compiler :}

Yes, it works, assembler looks now fine.
Thanks, Kai

        .file   ""
        .section .rdata,"dr"
LC0:
        .ascii "%s %s\12\0"
        .text
        .p2align 4,,15
.globl _foo
        .def    _foo;   .scl    2;      .type   32;     .endef
_foo:
        pushq   %rbp
        movq    %rsp, %rbp
        movq    %rsi, -16(%rbp)
        movq    %rdi, -8(%rbp)
        movq    %rbx, -24(%rbp)
        subq    $64, %rsp
        call    _strlen
        leal    15(%rax,%rax,2), %ecx
        subq    $32, %rsp
        leaq    32(%rsp), %rsi
        movslq  %ecx,%rdi
        leaq    30(%rdi), %rdx
        andq    $-16, %rdx
        movq    %rdx, %rax
        call    ___chkstk
        movl    $121, %edx
        leaq    32(%rsp), %rbx
        leal    -1(%rcx), %eax
        movl    $2021161080, (%rsi)
        movb    $0, 4(%rsi)
        movq    %rbx, %rcx
        movslq  %eax,%r8
        call    _memset
        leaq    LC0(%rip), %rcx
        movq    %rbx, %r8
        movq    %rsi, %rdx
        movb    $0, -1(%rbx,%rdi)
        call    _printf
        movq    -24(%rbp), %rbx
        movq    -16(%rbp), %rsi
        movq    -8(%rbp), %rdi
        leave
        ret
        .def    _strlen;        .scl    2;      .type   32;     .endef
        .def    _memset;        .scl    2;      .type   32;     .endef
        .def    _printf;        .scl    2;      .type   32;     .endef


-- 


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

Reply via email to