Summary: | suboptimal code generated with -fPIC | ||
---|---|---|---|
Product: | Sisyphus | Reporter: | Alexey Voinov <voins> |
Component: | gcc4.4 | Assignee: | Gleb F-Malinovskiy <glebfm> |
Status: | CLOSED WORKSFORME | QA Contact: | qa-sisyphus |
Severity: | enhancement | ||
Priority: | P1 | CC: | glebfm |
Version: | unstable | ||
Hardware: | all | ||
OS: | Linux |
Description
Alexey Voinov
2004-09-20 12:43:06 MSD
still in gcc3.4 Same with gcc-4.1.1; maybe I should report it upstream? :) $ gcc -S -O3 -fomit-frame-pointer -fPIC -DPIC test.c -o - .file "test.c" .text .p2align 4,,15 .globl f .type f, @function f: .LFB12: .cfi_startproc testl %edi, %edi jne .L4 xorl %eax, %eax ret .p2align 4,,10 .p2align 3 .L4: movl $1, %edi jmp malloc@PLT .cfi_endproc .LFE12: .size f, .-f .ident "GCC: (GNU) 4.5.1 20100924 (ALT Linux 4.5.1-alt1)" .section .note.GNU-stack,"",@progbits It seems fixed in gcc4.5. |