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 tree-optimization/32921] [4.3 Regression] Revision 126326 causes 12% slowdown



------- Comment #39 from rguenth at gcc dot gnu dot org  2007-10-25 11:06 -------
No, in general noreturn functions cannot be treated as novops.  Consider

void __attribute__((noreturn,noinline)) my_main(int *ret)
{
  exit(*ret);
}

int main()
{
  int ret = 0;
  my_main (&ret);
}

without VOPs we would remove the store to ret.


-- 


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


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