Changeset 5fdf7a in git


Ignore:
Timestamp:
Jan 10, 2013, 11:00:55 AM (11 years ago)
Author:
Max Horn <max@…>
Branches:
(u'fieker-DuVal', '117eb8c30fc9e991c4decca4832b1d19036c4c65')(u'spielwiese', 'd08f5f0bb3329b8ca19f23b74cb1473686415c3a')
Children:
d101b165f063c8f437a101b437baa6095a596422
Parents:
80c703d0b975055386088b85c7bcdd5c7684adc0
git-author:
Max Horn <max@quendi.de>2013-01-10 11:00:55+01:00
git-committer:
Oleksandr Motsak <http://goo.gl/mcpzY>2013-01-10 16:45:07+01:00
Message:
Replace --no-{rtti,exceptions} by -fno-{rtti,exceptions}

This improves compatibility with clang. Moreover, to the best
of my knowledge, the --no-* variants are undocumented to start with.
At least the GCC manuals for all versions from 2.95.3 till 4.7.2
only list the -fno-* variants, as far as I could tell.
Files:
14 edited

Legend:

Unmodified
Added
Removed
  • CMakeLists.txt

    r80c703 r5fdf7a  
    121121  #set(CMAKE_CXX_FLAGS "-W -Wall -Wextra -Winline -Wno-non-virtual-dtor")
    122122  set(CMAKE_C_FLAGS "-w -pipe ")
    123   set(CMAKE_CXX_FLAGS "-w  -pipe ") #--no-rtti
     123  set(CMAKE_CXX_FLAGS "-w  -pipe ") #-fno-rtti
    124124  # set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fno-implicit-templates")
    125125  # set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS}")
    126126
    127127  set(CMAKE_C_FLAGS_RELEASE "-O3 -fomit-frame-pointer")
    128   set(CMAKE_CXX_FLAGS_RELEASE "-O3 --no-rtti -fomit-frame-pointer")
     128  set(CMAKE_CXX_FLAGS_RELEASE "-O3 -fno-rtti -fomit-frame-pointer")
    129129
    130130  #set(CMAKE_C_FLAGS_RELEASE "-O2 -fomit-frame-pointer -DNDEBUG ")
  • Singular/configure.SAVE

    r80c703 r5fdf7a  
    13561356cross_compiling=$ac_cv_prog_cxx_cross
    13571357
    1358   # check whether gcc accepts --no-rtti
    1359   echo $ac_n "checking whether gcc accepts --no-rtti""... $ac_c" 1>&6
    1360 echo "configure:1361: checking whether gcc accepts --no-rtti" >&5
    1361   CXXFLAGS="${CXXFLAGS} --no-rtti"
     1358  # check whether gcc accepts -fno-rtti
     1359  echo $ac_n "checking whether gcc accepts -fno-rtti""... $ac_c" 1>&6
     1360echo "configure:1361: checking whether gcc accepts -fno-rtti" >&5
     1361  CXXFLAGS="${CXXFLAGS} -fno-rtti"
    13621362  if eval "test \"`echo '$''{'ac_cv_cxx_have_rtti'+set}'`\" = set"; then
    13631363  echo $ac_n "(cached) $ac_c" 1>&6
     
    13881388    CXXFLAGS="$temp_flags"
    13891389  else
    1390     CXXFLAGS="${temp_flags} --no-rtti"
     1390    CXXFLAGS="${temp_flags} -fno-rtti"
    13911391    temp_flags="${CXXFLAGS}"
    13921392  fi
    13931393
    1394 # check whether gcc accepts --no-exceptions
    1395   echo $ac_n "checking whether gcc accepts --no-exceptions""... $ac_c" 1>&6
    1396 echo "configure:1397: checking whether gcc accepts --no-exceptions" >&5
    1397   CXXFLAGS="${CXXFLAGS} --no-exceptions"
     1394# check whether gcc accepts -fno-exceptions
     1395  echo $ac_n "checking whether gcc accepts -fno-exceptions""... $ac_c" 1>&6
     1396echo "configure:1397: checking whether gcc accepts -fno-exceptions" >&5
     1397  CXXFLAGS="${CXXFLAGS} -fno-exceptions"
    13981398  if eval "test \"`echo '$''{'ac_cv_cxx_have_exceptions'+set}'`\" = set"; then
    13991399  echo $ac_n "(cached) $ac_c" 1>&6
     
    14241424    CXXFLAGS="$temp_flags"
    14251425  else
    1426     CXXFLAGS="${temp_flags} --no-exceptions"
     1426    CXXFLAGS="${temp_flags} -fno-exceptions"
    14271427    temp_flags="${CXXFLAGS}"
    14281428  fi
     
    15231523  temp_flags="${CXXFLAGS}"
    15241524  if test "${ac_cv_cxx_have_rtti}" = yes; then
    1525     CXXFLAGS="${temp_flags} --no-rtti"
     1525    CXXFLAGS="${temp_flags} -fno-rtti"
    15261526  fi
    15271527  temp_flags="${CXXFLAGS}"
    15281528  CXXTEMPLFLAGS="-fno-implicit-templates"
    15291529  if test "${ac_cv_cxx_have_exceptions}" = yes; then
    1530     CXXTEMPLFLAGS="${CXXTEMPLFLAGS} --no-exceptions"
     1530    CXXTEMPLFLAGS="${CXXTEMPLFLAGS} -fno-exceptions"
    15311531  fi
    15321532  if test "$ac_cv_is_aix" = yes; then
  • Singular/configure.in.SAVE

    r80c703 r5fdf7a  
    426426  AC_LANG_SAVE
    427427  AC_LANG_CPLUSPLUS
    428   # check whether gcc accepts --no-rtti
    429   AC_MSG_CHECKING(whether gcc accepts --no-rtti)
    430   CXXFLAGS="${CXXFLAGS} --no-rtti"
     428  # check whether gcc accepts -fno-rtti
     429  AC_MSG_CHECKING(whether gcc accepts -fno-rtti)
     430  CXXFLAGS="${CXXFLAGS} -fno-rtti"
    431431  AC_CACHE_VAL(ac_cv_cxx_have_rtti,
    432432    AC_TRY_COMPILE(,,ac_cv_cxx_have_rtti=yes,ac_cv_cxx_have_rtti=no)
     
    436436    CXXFLAGS="$temp_flags"
    437437  else
    438     CXXFLAGS="${temp_flags} --no-rtti"
     438    CXXFLAGS="${temp_flags} -fno-rtti"
    439439    temp_flags="${CXXFLAGS}"
    440440  fi
    441441
    442 # check whether gcc accepts --no-exceptions
    443   AC_MSG_CHECKING(whether gcc accepts --no-exceptions)
    444   CXXFLAGS="${CXXFLAGS} --no-exceptions"
     442# check whether gcc accepts -fno-exceptions
     443  AC_MSG_CHECKING(whether gcc accepts -fno-exceptions)
     444  CXXFLAGS="${CXXFLAGS} -fno-exceptions"
    445445  AC_CACHE_VAL(ac_cv_cxx_have_exceptions,
    446446    AC_TRY_LINK(,,ac_cv_cxx_have_exceptions=yes,ac_cv_cxx_have_exceptions=no)
     
    450450    CXXFLAGS="$temp_flags"
    451451  else
    452     CXXFLAGS="${temp_flags} --no-exceptions"
     452    CXXFLAGS="${temp_flags} -fno-exceptions"
    453453    temp_flags="${CXXFLAGS}"
    454454  fi
     
    503503  temp_flags="${CXXFLAGS}"
    504504  if test "${ac_cv_cxx_have_rtti}" = yes; then
    505     CXXFLAGS="${temp_flags} --no-rtti"
     505    CXXFLAGS="${temp_flags} -fno-rtti"
    506506  fi
    507507  temp_flags="${CXXFLAGS}"
    508508  CXXTEMPLFLAGS="-fno-implicit-templates"
    509509  if test "${ac_cv_cxx_have_exceptions}" = yes; then
    510     CXXTEMPLFLAGS="${CXXTEMPLFLAGS} --no-exceptions"
     510    CXXTEMPLFLAGS="${CXXTEMPLFLAGS} -fno-exceptions"
    511511  fi
    512512  if test "$ac_cv_is_aix" = yes; then
  • Singular/makefile.SAVE

    r80c703 r5fdf7a  
    5353PIPE            = -pipe
    5454CFLAGS          = -O3 -Wall -fomit-frame-pointer ${PIPE} ${LIBPOLYS_CFLAGS} ${PYTHON_CFLAGS}
    55 CXXFLAGS        = -O3 -Wall -fomit-frame-pointer --no-rtti ${PIPE} ${LIBPOLYS_CFLAGS} ${PYTHON_CFLAGS}
    56 CXXTEMPLFLAGS   =  --no-exceptions ## -fno-implicit-templates
     55CXXFLAGS        = -O3 -Wall -fomit-frame-pointer -fno-rtti ${PIPE} ${LIBPOLYS_CFLAGS} ${PYTHON_CFLAGS}
     56CXXTEMPLFLAGS   =  -fno-exceptions ## -fno-implicit-templates
    5757CPPFLAGS        = -I${srcdir} -I..  -I${includedir} ${LIBPOLYS_INCLUDES}  ${PYTHON_INCLUDES}
    5858DEFSNL          = -DNDEBUG -DOM_NDEBUG
  • dyn_modules/bigintm/Makefile.am

    r80c703 r5fdf7a  
    1212
    1313CXXTEMPLFLAGS   = ${PIPE}
    14 ## -fno-implicit-templates
    15 ## --no-exceptions
    1614
    1715DEBUGCXXFLAGS = -g -Wextra -Wall -pedantic -Wno-long-long ${CXXTEMPLFLAGS}
    1816
    19 NODEBUGCFLAGS   = -O3 -w -fomit-frame-pointer ${PIPE} 
    20 NODEBUGCXXFLAGS = -O3 -w -fomit-frame-pointer ${CXXTEMPLFLAGS}
    21 ##  --no-rtti ?
     17NODEBUGCFLAGS   = -O3 -w -fomit-frame-pointer ${PIPE}
     18NODEBUGCXXFLAGS = -O3 -w -fomit-frame-pointer ${CXXTEMPLFLAGS} -fno-exceptions -fno-rtti
     19## -fno-implicit-templates?
    2220NODEBUGDEFS = -DNDEBUG -DOM_NDEBUG
    2321
  • dyn_modules/bigintm/SConstruct

    r80c703 r5fdf7a  
    1818#env.SharedObject(target = 'mod_main.o', source = 'mod_main.cc')
    1919
    20 CXXTEMPLFLAGS = "-fno-implicit-templates --no-exceptions"
     20CXXTEMPLFLAGS = "-fno-implicit-templates -fno-exceptions"
    2121
    2222if env ['PLATFORM'] == "darwin":
     
    5050        CPPPATH = SING_INCLUDES,
    5151        CPPDEFINES = ["NDEBUG", "OM_NDEBUG"],
    52         CXXFLAGS = "-O3 -fomit-frame-pointer --no-rtti " + CXXTEMPLFLAGS,
     52        CXXFLAGS = "-O3 -fomit-frame-pointer -fno-rtti " + CXXTEMPLFLAGS,
    5353        CCFLAGS="-O3 -fomit-frame-pointer ",
    5454        LDMODULEFLAGS = BUNDLETEMPFLAGS,
  • dyn_modules/modgen/Makefile.in

    r80c703 r5fdf7a  
    4545## compiler and linker options
    4646##
    47 CFLAGS  += --no-rtti --no-exceptions -O3 -w -fomit-frame-pointer -pipe -fno-implicit-templates \
     47CFLAGS  += -fno-rtti -fno-exceptions -O3 -w -fomit-frame-pointer -pipe -fno-implicit-templates \
    4848        -g -I${includedir} -I../include -I${topsrcdir}/.. -DNDEBUG -DMODULE_GENERATOR \
    4949        -D${SING_UNAME}
  • dyn_modules/syzextra/Makefile.am

    r80c703 r5fdf7a  
    1313CXXTEMPLFLAGS   = ${PIPE}
    1414## -fno-implicit-templates
    15 ## --no-exceptions
    1615
    1716DEBUGCXXFLAGS = -g -Wextra -Wall -pedantic -Wno-long-long ${CXXTEMPLFLAGS}
    1817
    1918NODEBUGCFLAGS   = -O3 -w -fomit-frame-pointer ${PIPE}
    20 NODEBUGCXXFLAGS = -O3 -w -fomit-frame-pointer ${CXXTEMPLFLAGS}
    21 ##  --no-rtti ?
     19NODEBUGCXXFLAGS = -O3 -w -fomit-frame-pointer ${CXXTEMPLFLAGS} -fno-rtti -fno-exceptions
     20
    2221NODEBUGDEFS = -DNDEBUG -DOM_NDEBUG
    2322
  • dyn_modules/syzextra/SConstruct

    r80c703 r5fdf7a  
    1818#env.SharedObject(target = 'mod_main.o', source = 'mod_main.cc')
    1919
    20 CXXTEMPLFLAGS = "-fno-implicit-templates --no-exceptions"
     20CXXTEMPLFLAGS = "-fno-implicit-templates -fno-exceptions"
    2121
    2222if env ['PLATFORM'] == "darwin":
     
    5050        CPPPATH = SING_INCLUDES,
    5151        CPPDEFINES = ["NDEBUG", "OM_NDEBUG"],
    52         CXXFLAGS = "-O3 -fomit-frame-pointer --no-rtti " + CXXTEMPLFLAGS,
     52        CXXFLAGS = "-O3 -fomit-frame-pointer -fno-rtti " + CXXTEMPLFLAGS,
    5353        CCFLAGS="-O3 -fomit-frame-pointer ",
    5454        LDMODULEFLAGS = BUNDLETEMPFLAGS,
  • factory/CMakeLists.txt

    r80c703 r5fdf7a  
    7575
    7676    #set(CMAKE_CXX_FLAGS "-W -Wall -Wextra -Winline -Wno-non-virtual-dtor")
    77     set(CMAKE_CXX_FLAGS "-w --no-rtti -pipe ")
     77    set(CMAKE_CXX_FLAGS "-w -fno-rtti -pipe ")
    7878    set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fno-implicit-templates")
    7979    #add_definitions(-DNDEBUG -DOM_NDEBUG -Dx86_64_Linux -DHAVE_CONFIG_H)
  • factory/libfac/CMakeLists.txt

    r80c703 r5fdf7a  
    3636
    3737    #set(CMAKE_CXX_FLAGS "-W -Wall -Wextra -Winline -Wno-non-virtual-dtor")
    38     set(CMAKE_CXX_FLAGS "-w --no-rtti -pipe ")
     38    set(CMAKE_CXX_FLAGS "-w -fno-rtti -pipe ")
    3939    set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fno-implicit-templates")
    4040    #set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS}")
  • findexec/Makefile.am

    r80c703 r5fdf7a  
    1111
    1212CXXTEMPLFLAGS =-ftrapv
    13 ### --no-exceptions ## -fno-implicit-templates
     13### -fno-implicit-templates
    1414
    1515libfindexec_la_CFLAGS   = -O3 -fomit-frame-pointer ${PIPE}
    1616libfindexec_g_la_CFLAGS = ${PIPE}
    1717
    18 libfindexec_la_CXXFLAGS   = -O3 -fomit-frame-pointer ${PIPE} ${CXXTEMPLFLAGS}
    19 ## --no-rtti
     18libfindexec_la_CXXFLAGS   = -O3 -fomit-frame-pointer ${PIPE} ${CXXTEMPLFLAGS} -fno-exceptions -fno-rtti
    2019libfindexec_g_la_CXXFLAGS = -g -Wextra -Wall -pedantic -Wno-long-long ${PIPE} ${CXXTEMPLFLAGS}
    2120# -fdiagnostics-show-option
  • kernel/makefile.SAVE

    r80c703 r5fdf7a  
    4141PIPE            = -pipe
    4242CFLAGS          = -O3 -fomit-frame-pointer ${PIPE} ${LIBPOLYS_CFLAGS}
    43 CXXFLAGS        = -O3 -fomit-frame-pointer --no-rtti ${PIPE} ${LIBPOLYS_CFLAGS}
    44 CXXTEMPLFLAGS   =  --no-exceptions ## -fno-implicit-templates
     43CXXFLAGS        = -O3 -fomit-frame-pointer -fno-rtti ${PIPE} ${LIBPOLYS_CFLAGS}
     44CXXTEMPLFLAGS   =  -fno-exceptions ## -fno-implicit-templates
    4545CPPFLAGS        = -I${srcdir} -I..  -I${includedir}   ${LIBPOLYS_CFLAGS}
    4646DEFS            = -DNDEBUG -DOM_NDEBUG
  • standalone.test/mk

    r80c703 r5fdf7a  
    1414# /mnt/DATA/GITHUB/w/GAP/libsing/spielwiese/TARGET/bin"
    1515
    16 LIBPOLYSCFLAGS="`sh $P/libsingular-config --cflagsg` -g -Wextra -Winline -Wall -Wno-long-long  -O0 --no-exceptions"
     16LIBPOLYSCFLAGS="`sh $P/libsingular-config --cflagsg` -g -Wextra -Winline -Wall -Wno-long-long  -O0 -fno-exceptions"
    1717LIBPOLYSLIBS=`sh $P/libsingular-config --libsg`
    1818LIBPOLYSPREFIX="`sh $P/libsingular-config --prefix`"
     
    2626$CMD
    2727# -rdynamic
    28 CMD="g++ -static -g -Wextra -Winline -Wall -Wno-long-long -O0 --no-exceptions $NAME.o -o $NAME $LIBPOLYSLIBS"
     28CMD="g++ -static -g -Wextra -Winline -Wall -Wno-long-long -O0 -fno-exceptions $NAME.o -o $NAME $LIBPOLYSLIBS"
    2929echo "executing '$CMD':"
    3030$CMD
Note: See TracChangeset for help on using the changeset viewer.