Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Change the default optimisation level to -O3 #9205

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion scram-tools.file/tools/gcc/gcc-ccompiler.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,5 @@
<environment name="CC" value="$GCC_CCOMPILER_BASE/bin/gcc@COMPILER_NAME_SUFFIX@"/>
</client>
<flags CSHAREDOBJECTFLAGS="-fPIC @GCC_CSHAREDOBJECTFLAGS@"/>
<flags CFLAGS="-O2 -pthread @GCC_CFLAGS@"/>
<flags CFLAGS="-O3 -pthread @GCC_CFLAGS@"/>
</tool>
2 changes: 1 addition & 1 deletion scram-tools.file/tools/gcc/gcc-cxxcompiler.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
</client>
<flags CPPDEFINES="GNU_GCC _GNU_SOURCE @GCC_CPPDEFINES@"/>
<flags CXXSHAREDOBJECTFLAGS="-fPIC @GCC_CXXSHAREDOBJECTFLAGS@"/>
<flags CXXFLAGS="-O2 -pthread -pipe -Werror=main -Werror=pointer-arith"/>
<flags CXXFLAGS="-O3 -pthread -pipe -Werror=main -Werror=pointer-arith"/>
<flags CXXFLAGS="-Werror=overlength-strings -Wno-vla @GCC_CXXFLAGS@"/>
<flags CXXFLAGS="-felide-constructors -fmessage-length=0"/>
<flags CXXFLAGS="-Wall -Wno-non-template-friend -Wno-long-long -Wreturn-type"/>
Expand Down
4 changes: 2 additions & 2 deletions scram-tools.file/tools/gcc/gcc-f77compiler.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@
<environment name="GCC_F77COMPILER_BASE" default="@TOOL_ROOT@"/>
<environment name="FC" default="$GCC_F77COMPILER_BASE/bin/gfortran"/>
</client>
<flags FFLAGS="-fno-second-underscore -Wunused -Wuninitialized -O2 @GCC_FFLAGS@"/>
<flags FFLAGS="-fno-second-underscore -Wunused -Wuninitialized -O3 @GCC_FFLAGS@"/>
<flags FFLAGS="-std=legacy"/>
<flags FOPTIMISEDFLAGS="-O2 @GCC_FOPTIMISEDFLAGS@"/>
<flags FOPTIMISEDFLAGS="-O3 @GCC_FOPTIMISEDFLAGS@"/>
<flags FSHAREDOBJECTFLAGS="-fPIC @GCC_FSHAREDOBJECTFLAGS@"/>
</tool>