public inbox for gcc-patches@gcc.gnu.org
 help / color / mirror / Atom feed
* [PATCH] middle-end/81035: Mention that noreturn suppresses tail call optimization
@ 2018-09-21 11:10 Florian Weimer
  2018-09-21 18:16 ` Segher Boessenkool
  2018-09-21 19:44 ` Jeff Law
  0 siblings, 2 replies; 7+ messages in thread
From: Florian Weimer @ 2018-09-21 11:10 UTC (permalink / raw)
  To: gcc-patches

2018-09-21  Florian Weimer  <fweimer@redhat.com>

	PR middle-end/81035
	* doc/extend.texi (Common Function Attributes): Mention that
	noreturn suppresses tail call optimization.

diff --git a/gcc/doc/extend.texi b/gcc/doc/extend.texi
index e3312aa8b42..909e7a17357 100644
--- a/gcc/doc/extend.texi
+++ b/gcc/doc/extend.texi
@@ -3157,6 +3157,9 @@ The @code{noreturn} keyword does not affect the exceptional path when that
 applies: a @code{noreturn}-marked function may still return to the caller
 by throwing an exception or calling @code{longjmp}.
 
+In order to preserve backtraces, GCC will never turn calls to
+@code{noreturn} functions into tail calls.
+
 Do not assume that registers saved by the calling function are
 restored before calling the @code{noreturn} function.
 

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2018-09-21 22:22 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-09-21 11:10 [PATCH] middle-end/81035: Mention that noreturn suppresses tail call optimization Florian Weimer
2018-09-21 18:16 ` Segher Boessenkool
2018-09-21 18:29   ` Florian Weimer
2018-09-21 18:36     ` Paul Koning
2018-09-21 18:40       ` Florian Weimer
2018-09-21 22:32         ` Segher Boessenkool
2018-09-21 19:44 ` Jeff Law

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).