This is the mail archive of the
gcc-cvs@gcc.gnu.org
mailing list for the GCC project.
r248240 - in /trunk/gcc: ChangeLog final.c
- From: wilco at gcc dot gnu dot org
- To: gcc-cvs at gcc dot gnu dot org
- Date: Thu, 18 May 2017 15:58:34 -0000
- Subject: r248240 - in /trunk/gcc: ChangeLog final.c
Author: wilco
Date: Thu May 18 15:58:33 2017
New Revision: 248240
URL: https://gcc.gnu.org/viewcvs?rev=248240&root=gcc&view=rev
Log:
Add an assert to leaf_function_p to ensure it is not called from a
prolog or epilog sequence (which would incorrectly return true in a
non-leaf function). There are several targets which still call
leaf_function_p, and while most appear safe or appear aware of the
issue, it is likely not all such calls are safe. This check enables
any such latent bugs to be found.
gcc/
* final.c (leaf_function_p): Check we are not in a sequence.
Modified:
trunk/gcc/ChangeLog
trunk/gcc/final.c