This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/39043] New: C++ compiler doesn't optimize function call for PIE
- From: "hjl dot tools at gmail dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 30 Jan 2009 16:41:14 -0000
- Subject: [Bug c++/39043] New: C++ compiler doesn't optimize function call for PIE
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
[hjl@gnu-6 gcc]$ cat /tmp/i.ii
inline void foo () {}
int
main ()
{
foo ();
return 0;
}
[hjl@gnu-6 gcc]$ ./xgcc -B./ -fpie /tmp/i.ii -S
[hjl@gnu-6 gcc]$ grep call i.s | grep foo
call _Z3foov@PLT
[hjl@gnu-6 gcc]$
Do we need @PLT for PIE?
--
Summary: C++ compiler doesn't optimize function call for PIE
Product: gcc
Version: 4.4.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c++
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: hjl dot tools at gmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=39043