bar()'s lazy-binding stub can be called twice for the following testcase when compiled at -O2 on mips64-linux-gnu:
void bar (void); void foo (int n) { while (n--) { bar (); bar (); } } -- Summary: [4.2/4.3 Regression] Lazily-bound function called twice Product: gcc Version: 4.3.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: target AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: rsandifo at gcc dot gnu dot org GCC target triplet: mips64-linux-gnu http://gcc.gnu.org/bugzilla/show_bug.cgi?id=34981