This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author ronaldoussoren
Recipients Paul Murphy, pitrou, ronaldoussoren, vstinner
Date 2015-08-14.08:43:01
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1439541781.77.0.289429956622.issue24851@psf.upfronthosting.co.za>
In-reply-to
Content
GCC has a pragma and function attributes for changing the optimisation flags, that could be used to disable the tail call optimazation here.

Something like the following (using a pragma):

#pragma GCC push_options
#pragma GCC optimize ("-fno-optimize-sibling-calls")
<functions go here>
#pragma GCC pop_options

Note: completely untested, and would need preprocessor guards to avoid warnings with some other compilers.
History
Date User Action Args
2015-08-14 08:43:01ronaldoussorensetrecipients: + ronaldoussoren, pitrou, vstinner, Paul Murphy
2015-08-14 08:43:01ronaldoussorensetmessageid: <1439541781.77.0.289429956622.issue24851@psf.upfronthosting.co.za>
2015-08-14 08:43:01ronaldoussorenlinkissue24851 messages
2015-08-14 08:43:01ronaldoussorencreate