Changeset 75c73d in git


Ignore:
Timestamp:
Aug 19, 2013, 3:08:37 PM (11 years ago)
Author:
Oleksandr Motsak <motsak@…>
Branches:
(u'fieker-DuVal', '117eb8c30fc9e991c4decca4832b1d19036c4c65')(u'spielwiese', '45e267b9942dec9429fe249ce3e5e44ab80a6a3a')
Children:
b7fff13eb84ea92ac54d85a8d0f6159755519832
Parents:
e7af713b2118666efd56a51c8fd09dcc0b99e0ee
Message:
Further compiler flags tweaking
File:
1 edited

Legend:

Unmodified
Added
Removed
  • m4/flags.m4

    re7af71 r75c73d  
    104104 
    105105 if test "x${ENABLE_OPTIMIZATION}" != xno; then
    106   OPTFLAGS="-DOM_NDEBUG -DNDEBUG -O2 -Wno-unused-function -Wno-unused-parameter -Wno-unused-variable -fomit-frame-pointer -fwrapv -fpermissive -fvisibility=default"
     106  OPTFLAGS="-DOM_NDEBUG -DNDEBUG -O3 -Wno-unused-function -Wno-unused-parameter -Wno-unused-variable -fomit-frame-pointer -fwrapv -fvisibility=default -finline-functions -fno-exceptions -fno-rtti -fno-threadsafe-statics -fno-enforce-eh-specs -fconserve-space"
    107107  #  -O3 - crashes gcc???!!! 
     108  # -fpermissive
    108109  AC_LANG_PUSH([C])
    109110  AX_APPEND_COMPILE_FLAGS(${OPTFLAGS}, [CFLAGS])
     
    111112  AC_LANG_PUSH([C++])
    112113  AX_APPEND_COMPILE_FLAGS(${OPTFLAGS}, [CXXFLAGS])
    113   AX_APPEND_COMPILE_FLAGS([-fno-exceptions -fno-rtti -fpermissive], [CXXFLAGS])
    114   # AX_APPEND_COMPILE_FLAGS([-fno-implicit-templates], [CXXFLAGS]) # problems due to STL
     114#   AX_APPEND_COMPILE_FLAGS([-fno-threadsafe-statics -fno-enforce-eh-specs -fconserve-space], [CXXFLAGS])
     115### AX_APPEND_COMPILE_FLAGS([-fno-implicit-templates], [CXXFLAGS]) # problems due to STL
    115116  AC_LANG_POP([C++])
    116117  AX_APPEND_LINK_FLAGS(${OPTFLAGS})
    117   AX_APPEND_LINK_FLAGS([-fno-exceptions -fno-rtti -fpermissive])
    118 #  AX_APPEND_LINK_FLAGS([-fno-implicit-templates]) # see above :(
    119   AX_APPEND_LINK_FLAGS([ -fpermissive -fvisibility=default])
     118#  AX_APPEND_LINK_FLAGS([-fno-threadsafe-statics -fno-enforce-eh-specs -fconserve-space])
     119###  AX_APPEND_LINK_FLAGS([-fno-implicit-templates]) # see above :(
    120120#  AX_APPEND_LINK_FLAGS([ ])
    121121 fi
Note: See TracChangeset for help on using the changeset viewer.