Skip to content

Commit

Permalink
Removed guessing of best optimizing CFLAGS.
Browse files Browse the repository at this point in the history
With old versions of GCC "-O1 -fomit-frame-pointer" produced the best
code for x86 systems, but with GCC 4.x this is no longer the case.

With GCC 4.1.0, building with "-O1 -fomit-frame-pointer" makes TRE
about 15% slower than when built with "-O2 -g" (the default).
Removing the "-g" has a negligible positive effect, so it's better to
leave it in so the result is actually debuggable.

darcs-hash:20060722115947-ced27-23242246b62f51ef08efd91e501e7a9756a88411.gz
  • Loading branch information
Ville Laurikari committed Jul 22, 2006
1 parent 94baa89 commit e934ac3
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 34 deletions.
3 changes: 0 additions & 3 deletions configure.ac
Expand Up @@ -42,9 +42,6 @@ if test "$tre_debug" = "yes"; then
[ Define if you want TRE to print debug messages to stdout. ]) [ Define if you want TRE to print debug messages to stdout. ])
else else
AM_CONDITIONAL(TRE_DEBUG, false) AM_CONDITIONAL(TRE_DEBUG, false)
if test "$tre_profile" != "yes"; then
TRE_PROG_CC_OPTIMIZATIONS
fi
AC_DEFINE(NDEBUG, 1, [ Define if you want to disable debug assertions. ]) AC_DEFINE(NDEBUG, 1, [ Define if you want to disable debug assertions. ])
fi fi


Expand Down
1 change: 0 additions & 1 deletion m4/Makefile.am
@@ -1,7 +1,6 @@
EXTRA_DIST = \ EXTRA_DIST = \
ac_libtool_tags.m4 \ ac_libtool_tags.m4 \
ax_check_funcs_comp.m4 \ ax_check_funcs_comp.m4 \
tre_prog_cc_optimizations.m4 \
ax_check_sign.m4 \ ax_check_sign.m4 \
ax_decl_wchar_max.m4 \ ax_decl_wchar_max.m4 \
vl_prog_cc_warnings.m4 vl_prog_cc_warnings.m4
30 changes: 0 additions & 30 deletions m4/tre_prog_cc_optimizations.m4

This file was deleted.

0 comments on commit e934ac3

Please sign in to comment.