From a02a7f1a0f6586ba7144349685188f37f1911344 Mon Sep 17 00:00:00 2001 From: Alessandro Ranellucci Date: Sat, 10 May 2014 17:03:05 +0200 Subject: [PATCH] Apply workaround for buggy GCC 4.7.2 #1965 --- xs/Build.PL | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/xs/Build.PL b/xs/Build.PL index cf0f5bfa..5a10ac0d 100644 --- a/xs/Build.PL +++ b/xs/Build.PL @@ -18,7 +18,9 @@ if (ExtUtils::CppGuess->new->is_gcc) { # check whether we're dealing with a buggy GCC version # see https://github.com/alexrj/Slic3r/issues/1965 if (`cc --version` =~ / 4\.7\.[012]/) { - push @cflags, qw(-O1 -fcaller-saves -fcrossjumping -fcse-follow-jumps -fdevirtualize -fexpensive-optimizations -fgcse -findirect-inlining -finline-small-functions -fipa-cp -fipa-sra -foptimize-register-move -foptimize-sibling-calls -foptimize-strlen -fpartial-inlining -fpeephole2 -free -fregmove -freorder-blocks -freorder-functions -frerun-cse-after-loop -fschedule-insns2 -fstrict-aliasing -fstrict-overflow -fthread-jumps -ftree-builtin-call-dce -ftree-pre -ftree-switch-conversion -ftree-tail-merge -ftree-vrp); + # Workaround suggested by Boost devs: + # https://svn.boost.org/trac/boost/ticket/8695 + push @cflags, qw(-fno-inline-small-functions); } }