This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c++/39043] New: C++ compiler doesn't optimize function call for PIE


[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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]