On 2016-02-14, Matthieu Herrb <matth...@herrb.eu> wrote: > I've taken the list of individual optimisation from gcc(1) for both -O1 > and -O2 and replaced -O2 by this in CFLAGS.
gcc-local(1) is also worth a look... > +O2= ${O1} -fthread-jumps -fcrossjumping \ > + -foptimize-sibling-calls -fcse-follow-jumps -fcse-skip-blocks \ > + -fgcse -fgcse-lm -fexpensive-optimizations -frerun-cse-after-loop \ > + -fcaller-saves -fpeephole2 -fschedule-insns -fschedule-insns2 \ > + -fsched-interblock -fsched-spec -fregmove -fstrict-aliasing \ > + -fstrict-overflow -fdelete-null-pointer-checks -freorder-blocks \ > + -freorder-functions -falign-functions -falign-jumps -falign-loops \ > + -falign-labels -ftree-vrp -ftree-pre Our -O2 does not include -fstrict-aliasing, -fstrict-overflow, -ftree-vrp. -- Christian "naddy" Weisgerber na...@mips.inka.de