Force -fno-sibling-call-optimisation to every module's CFLAGs. This fixes *numerous* bugs (thanks to a bug in GCC itself), even in DBG=1 builds!

Just an example, comctl32.dll doesn't crash anymore in LISTVIEW_Callback().

Thanks to Dmitriy Philippov (aka Shedon) for encountering the comctl32 bug and investigating it!

svn path=/trunk/; revision=23524
This commit is contained in:
Aleksey Bragin 2006-08-08 12:41:56 +00:00
parent cd084157bd
commit 0468c25a60

View file

@ -1885,6 +1885,10 @@ MingwModuleHandler::GenerateOtherMacros ()
globalCflags += " -pipe";
if ( !module.allowWarnings )
globalCflags += " -Werror";
// Always force disabling of sibling calls optimisation for GCC
// (TODO: Move to version-specific once this bug is fixed in GCC)
globalCflags += " -fno-optimize-sibling-calls";
fprintf (
fMakefile,