acconfig.h (ENABLE_STD_NAMESPACE, [...]): Delete entries.
* acconfig.h (ENABLE_STD_NAMESPACE, ENABLE_CHECKING, ENABLE_TREE_CHECKING, ENABLE_RTL_CHECKING, ENABLE_GC_CHECKING, ENABLE_GC_ALWAYS_COLLECT): Delete entries. * configure.in (ENABLE_STD_NAMESPACE, ENABLE_CHECKING, ENABLE_TREE_CHECKING, ENABLE_RTL_CHECKING, ENABLE_GC_CHECKING, ENABLE_GC_ALWAYS_COLLECT): Use three argument form of AC_DEFINE for these macros. Clean up spacing and linewraps. From-SVN: r33420
This commit is contained in:
parent
c5a047348d
commit
119d24d17a
@ -1,32 +1,3 @@
|
||||
/* Define if you want to enable namespaces (-fhonor-std) by default. */
|
||||
#undef ENABLE_STD_NAMESPACE
|
||||
#if !defined(ENABLE_STD_NAMESPACE)
|
||||
# define ENABLE_STD_NAMESPACE 0
|
||||
#endif
|
||||
|
||||
/* Define if you want more run-time sanity checks. This one gets a grab
|
||||
bag of miscellaneous but relatively cheap checks. */
|
||||
#undef ENABLE_CHECKING
|
||||
|
||||
/* Define if you want all operations on trees (the basic data
|
||||
structure of the front ends) to be checked for dynamic type safety
|
||||
at runtime. This is moderately expensive. */
|
||||
#undef ENABLE_TREE_CHECKING
|
||||
|
||||
/* Define if you want all operations on RTL (the basic data structure
|
||||
of the optimizer and back end) to be checked for dynamic type safety
|
||||
at runtime. This is quite expensive. */
|
||||
#undef ENABLE_RTL_CHECKING
|
||||
|
||||
/* Define if you want the garbage collector to do object poisoning and
|
||||
other memory allocation checks. This is quite expensive. */
|
||||
#undef ENABLE_GC_CHECKING
|
||||
|
||||
/* Define if you want the garbage collector to operate in maximally
|
||||
paranoid mode, validating the entire heap and collecting garbage at
|
||||
every opportunity. This is extremely expensive. */
|
||||
#undef ENABLE_GC_ALWAYS_COLLECT
|
||||
|
||||
/* Define to 1 if NLS is requested. */
|
||||
#undef ENABLE_NLS
|
||||
|
||||
|
@ -1,33 +1,4 @@
|
||||
/* config.in. Generated automatically from configure.in by autoheader. */
|
||||
/* Define if you want to enable namespaces (-fhonor-std) by default. */
|
||||
#undef ENABLE_STD_NAMESPACE
|
||||
#if !defined(ENABLE_STD_NAMESPACE)
|
||||
# define ENABLE_STD_NAMESPACE 0
|
||||
#endif
|
||||
|
||||
/* Define if you want more run-time sanity checks. This one gets a grab
|
||||
bag of miscellaneous but relatively cheap checks. */
|
||||
#undef ENABLE_CHECKING
|
||||
|
||||
/* Define if you want all operations on trees (the basic data
|
||||
structure of the front ends) to be checked for dynamic type safety
|
||||
at runtime. This is moderately expensive. */
|
||||
#undef ENABLE_TREE_CHECKING
|
||||
|
||||
/* Define if you want all operations on RTL (the basic data structure
|
||||
of the optimizer and back end) to be checked for dynamic type safety
|
||||
at runtime. This is quite expensive. */
|
||||
#undef ENABLE_RTL_CHECKING
|
||||
|
||||
/* Define if you want the garbage collector to do object poisoning and
|
||||
other memory allocation checks. This is quite expensive. */
|
||||
#undef ENABLE_GC_CHECKING
|
||||
|
||||
/* Define if you want the garbage collector to operate in maximally
|
||||
paranoid mode, validating the entire heap and collecting garbage at
|
||||
every opportunity. This is extremely expensive. */
|
||||
#undef ENABLE_GC_ALWAYS_COLLECT
|
||||
|
||||
/* Define to 1 if NLS is requested. */
|
||||
#undef ENABLE_NLS
|
||||
|
||||
@ -370,6 +341,29 @@
|
||||
/* Define to enable the use of a default assembler. */
|
||||
#undef DEFAULT_ASSEMBLER
|
||||
|
||||
/* Define if you want more run-time sanity checks. This one gets a grab
|
||||
bag of miscellaneous but relatively cheap checks. */
|
||||
#undef ENABLE_CHECKING
|
||||
|
||||
/* Define if you want all operations on trees (the basic data
|
||||
structure of the front ends) to be checked for dynamic type safety
|
||||
at runtime. This is moderately expensive. */
|
||||
#undef ENABLE_TREE_CHECKING
|
||||
|
||||
/* Define if you want all operations on RTL (the basic data structure
|
||||
of the optimizer and back end) to be checked for dynamic type safety
|
||||
at runtime. This is quite expensive. */
|
||||
#undef ENABLE_RTL_CHECKING
|
||||
|
||||
/* Define if you want the garbage collector to do object poisoning and
|
||||
other memory allocation checks. This is quite expensive. */
|
||||
#undef ENABLE_GC_CHECKING
|
||||
|
||||
/* Define if you want the garbage collector to operate in maximally
|
||||
paranoid mode, validating the entire heap and collecting garbage at
|
||||
every opportunity. This is extremely expensive. */
|
||||
#undef ENABLE_GC_ALWAYS_COLLECT
|
||||
|
||||
/* Define if your compiler understands volatile. */
|
||||
#undef HAVE_VOLATILE
|
||||
|
||||
@ -429,3 +423,6 @@
|
||||
/* Define if you want to always select the new-abi for g++. */
|
||||
#undef ENABLE_NEW_GXX_ABI
|
||||
|
||||
/* Define to 1 if you want to enable namespaces (-fhonor-std) by default. */
|
||||
#undef ENABLE_STD_NAMESPACE
|
||||
|
||||
|
507
gcc/configure
vendored
507
gcc/configure
vendored
File diff suppressed because it is too large
Load Diff
100
gcc/configure.in
100
gcc/configure.in
@ -101,7 +101,8 @@ if test x"${DEFAULT_LINKER+set}" = x"set"; then
|
||||
elif $DEFAULT_LINKER -v < /dev/null 2>&1 | grep GNU > /dev/null; then
|
||||
gnu_ld_flag=yes
|
||||
fi
|
||||
AC_DEFINE_UNQUOTED(DEFAULT_LINKER,"$DEFAULT_LINKER", [Define to enable the use of a default linker.])
|
||||
AC_DEFINE_UNQUOTED(DEFAULT_LINKER,"$DEFAULT_LINKER",
|
||||
[Define to enable the use of a default linker.])
|
||||
fi
|
||||
|
||||
# With GNU as
|
||||
@ -119,7 +120,8 @@ if test x"${DEFAULT_ASSEMBLER+set}" = x"set"; then
|
||||
elif $DEFAULT_ASSEMBLER -v < /dev/null 2>&1 | grep GNU > /dev/null; then
|
||||
gas_flag=yes
|
||||
fi
|
||||
AC_DEFINE_UNQUOTED(DEFAULT_ASSEMBLER,"$DEFAULT_ASSEMBLER", [Define to enable the use of a default assembler.])
|
||||
AC_DEFINE_UNQUOTED(DEFAULT_ASSEMBLER,"$DEFAULT_ASSEMBLER",
|
||||
[Define to enable the use of a default assembler.])
|
||||
fi
|
||||
|
||||
# With stabs
|
||||
@ -181,10 +183,13 @@ AC_ARG_ENABLE(checking,
|
||||
enable only specific categories of checks.
|
||||
Categories are: misc,tree,rtl,gc,gcac; default
|
||||
is misc,tree,rtl],
|
||||
[case "${enableval}" in
|
||||
yes) AC_DEFINE(ENABLE_CHECKING)
|
||||
AC_DEFINE(ENABLE_TREE_CHECKING)
|
||||
AC_DEFINE(ENABLE_RTL_CHECKING) ;;
|
||||
[ac_checking=
|
||||
ac_tree_checking=
|
||||
ac_rtl_checking=
|
||||
ac_gc_checking=
|
||||
ac_gc_always_collect=
|
||||
case "${enableval}" in
|
||||
yes) ac_checking=1 ; ac_tree_checking=1 ; ac_rtl_checking=1 ;;
|
||||
no) ;;
|
||||
*) IFS="${IFS= }"; ac_save_IFS="$IFS" IFS="$IFS,"
|
||||
set fnord $enableval; shift
|
||||
@ -192,16 +197,45 @@ no) ;;
|
||||
for check
|
||||
do
|
||||
case $check in
|
||||
misc) AC_DEFINE(ENABLE_CHECKING) ;;
|
||||
tree) AC_DEFINE(ENABLE_TREE_CHECKING) ;;
|
||||
rtl) AC_DEFINE(ENABLE_RTL_CHECKING) ;;
|
||||
gc) AC_DEFINE(ENABLE_GC_CHECKING) ;;
|
||||
gcac) AC_DEFINE(ENABLE_GC_ALWAYS_COLLECT) ;;
|
||||
misc) ac_checking=1 ;;
|
||||
tree) ac_tree_checking=1 ;;
|
||||
rtl) ac_rtl_checking=1 ;;
|
||||
gc) ac_gc_checking=1 ;;
|
||||
gcac) ac_gc_always_collect=1 ;;
|
||||
*) AC_MSG_ERROR(unknown check category $check) ;;
|
||||
esac
|
||||
done
|
||||
;;
|
||||
esac])
|
||||
esac
|
||||
if test x$ac_checking != x ; then
|
||||
AC_DEFINE(ENABLE_CHECKING, 1,
|
||||
[Define if you want more run-time sanity checks. This one gets a grab
|
||||
bag of miscellaneous but relatively cheap checks.])
|
||||
fi
|
||||
if test x$ac_tree_checking != x ; then
|
||||
AC_DEFINE(ENABLE_TREE_CHECKING, 1,
|
||||
[Define if you want all operations on trees (the basic data
|
||||
structure of the front ends) to be checked for dynamic type safety
|
||||
at runtime. This is moderately expensive.])
|
||||
fi
|
||||
if test x$ac_rtl_checking != x ; then
|
||||
AC_DEFINE(ENABLE_RTL_CHECKING, 1,
|
||||
[Define if you want all operations on RTL (the basic data structure
|
||||
of the optimizer and back end) to be checked for dynamic type safety
|
||||
at runtime. This is quite expensive.])
|
||||
fi
|
||||
if test x$ac_gc_checking != x ; then
|
||||
AC_DEFINE(ENABLE_GC_CHECKING, 1,
|
||||
[Define if you want the garbage collector to do object poisoning and
|
||||
other memory allocation checks. This is quite expensive.])
|
||||
fi
|
||||
if test x$ac_gc_always_collect != x ; then
|
||||
AC_DEFINE(ENABLE_GC_ALWAYS_COLLECT, 1,
|
||||
[Define if you want the garbage collector to operate in maximally
|
||||
paranoid mode, validating the entire heap and collecting garbage at
|
||||
every opportunity. This is extremely expensive.])
|
||||
fi
|
||||
])
|
||||
|
||||
AC_ARG_ENABLE(cpp,
|
||||
[ --disable-cpp don't provide a user-visible C preprocessor.],
|
||||
@ -365,7 +399,8 @@ AC_CACHE_VAL(gcc_cv_header_inttypes_h,
|
||||
gcc_cv_header_inttypes_h=no)])
|
||||
AC_MSG_RESULT($gcc_cv_header_inttypes_h)
|
||||
if test $gcc_cv_header_inttypes_h = yes; then
|
||||
AC_DEFINE(HAVE_INTTYPES_H, 1, [Define if you have a working <inttypes.h> header file.])
|
||||
AC_DEFINE(HAVE_INTTYPES_H, 1,
|
||||
[Define if you have a working <inttypes.h> header file.])
|
||||
fi
|
||||
|
||||
#
|
||||
@ -3974,8 +4009,10 @@ changequote([,])dnl
|
||||
# Internationalization
|
||||
PACKAGE=gcc
|
||||
VERSION="$gcc_version"
|
||||
AC_DEFINE_UNQUOTED(PACKAGE, "$PACKAGE", [Define to the name of the distribution.])
|
||||
AC_DEFINE_UNQUOTED(VERSION, "$VERSION", [Define to the version of the distribution.])
|
||||
AC_DEFINE_UNQUOTED(PACKAGE, "$PACKAGE",
|
||||
[Define to the name of the distribution.])
|
||||
AC_DEFINE_UNQUOTED(VERSION, "$VERSION",
|
||||
[Define to the version of the distribution.])
|
||||
AC_SUBST(PACKAGE)
|
||||
AC_SUBST(VERSION)
|
||||
|
||||
@ -4001,7 +4038,8 @@ AC_ARG_ENABLE(win32-registry,
|
||||
|
||||
AC_MSG_CHECKING(whether windows registry support is requested)
|
||||
if test x$enable_win32_registry != xno; then
|
||||
AC_DEFINE(ENABLE_WIN32_REGISTRY, 1, [Define to 1 if installation paths should be looked up in Windows32
|
||||
AC_DEFINE(ENABLE_WIN32_REGISTRY, 1,
|
||||
[Define to 1 if installation paths should be looked up in Windows32
|
||||
Registry. Ignored on non windows32 hosts.])
|
||||
AC_MSG_RESULT(yes)
|
||||
else
|
||||
@ -4026,7 +4064,8 @@ esac
|
||||
|
||||
if test x$enable_win32_registry != xno; then
|
||||
AC_MSG_CHECKING(registry key on windows hosts)
|
||||
AC_DEFINE_UNQUOTED(WIN32_REGISTRY_KEY, "$gcc_cv_win32_registry_key", [Define to be the last portion of registry key on windows hosts.])
|
||||
AC_DEFINE_UNQUOTED(WIN32_REGISTRY_KEY, "$gcc_cv_win32_registry_key",
|
||||
[Define to be the last portion of registry key on windows hosts.])
|
||||
AC_MSG_RESULT($gcc_cv_win32_registry_key)
|
||||
fi
|
||||
|
||||
@ -4336,7 +4375,8 @@ EOF
|
||||
:
|
||||
else
|
||||
gcc_cv_as_subsections="working .subsection -1"
|
||||
AC_DEFINE(HAVE_GAS_SUBSECTION_ORDERING, 1, [Define if your assembler supports .subsection and .subsection -1 starts
|
||||
AC_DEFINE(HAVE_GAS_SUBSECTION_ORDERING, 1,
|
||||
[Define if your assembler supports .subsection and .subsection -1 starts
|
||||
emitting at the beginning of your section.])
|
||||
fi
|
||||
fi
|
||||
@ -4352,7 +4392,8 @@ if test x$gcc_cv_as != x; then
|
||||
# Check if we have .weak
|
||||
echo " .weak foobar" > conftest.s
|
||||
if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
|
||||
AC_DEFINE(HAVE_GAS_WEAK, 1, [Define if your assembler supports .weak.])
|
||||
AC_DEFINE(HAVE_GAS_WEAK, 1,
|
||||
[Define if your assembler supports .weak.])
|
||||
gcc_cv_as_weak="yes"
|
||||
fi
|
||||
rm -f conftest.s conftest.o conftest.nm1 conftest.nm2
|
||||
@ -4366,7 +4407,8 @@ if test x$gcc_cv_as != x; then
|
||||
echo " .hidden foobar" > conftest.s
|
||||
echo "foobar:" >> conftest.s
|
||||
if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
|
||||
AC_DEFINE(HAVE_GAS_HIDDEN, 1, [Define if your assembler supports .hidden.])
|
||||
AC_DEFINE(HAVE_GAS_HIDDEN, 1,
|
||||
[Define if your assembler supports .hidden.])
|
||||
gcc_cv_as_hidden="yes"
|
||||
fi
|
||||
rm -f conftest.s conftest.o conftest.nm1 conftest.nm2
|
||||
@ -4390,7 +4432,8 @@ case "$target" in
|
||||
fi
|
||||
])
|
||||
if test "x$gcc_cv_as_register_pseudo_op" = xyes; then
|
||||
AC_DEFINE(HAVE_AS_REGISTER_PSEUDO_OP, 1, [Define if your assembler supports .register.])
|
||||
AC_DEFINE(HAVE_AS_REGISTER_PSEUDO_OP, 1,
|
||||
[Define if your assembler supports .register.])
|
||||
fi
|
||||
|
||||
case "$tm_file" in
|
||||
@ -4422,7 +4465,8 @@ changequote(, )
|
||||
dep_tmake_file=`echo " $dep_tmake_file " | sed -e 's, [^ ]*/config/sparc/t-sol2-64 , ,' -e 's,^ ,,' -e 's, $,,'`
|
||||
changequote([, ])
|
||||
else
|
||||
AC_DEFINE_UNQUOTED(AS_SPARC64_FLAG, "$gcc_cv_as_flags64", [Define if the assembler supports 64bit sparc.])
|
||||
AC_DEFINE_UNQUOTED(AS_SPARC64_FLAG, "$gcc_cv_as_flags64",
|
||||
[Define if the assembler supports 64bit sparc.])
|
||||
fi
|
||||
;;
|
||||
*) gcc_cv_as_flags64=${gcc_cv_as_flags64-no}
|
||||
@ -4453,7 +4497,8 @@ changequote([, ])
|
||||
fi
|
||||
])
|
||||
if test "x$gcc_cv_as_offsetable_lo10" = xyes; then
|
||||
AC_DEFINE(HAVE_AS_OFFSETABLE_LO10, 1, [Define if your assembler supports offsetable %lo().])
|
||||
AC_DEFINE(HAVE_AS_OFFSETABLE_LO10, 1,
|
||||
[Define if your assembler supports offsetable %lo().])
|
||||
fi
|
||||
fi
|
||||
;;
|
||||
@ -4572,7 +4617,8 @@ AC_ARG_ENABLE(new-gxx-abi,
|
||||
select the new abi for g++. You must select an ABI
|
||||
at configuration time, so that the correct runtime
|
||||
support is built. You cannot mix ABIs.],
|
||||
[AC_DEFINE(ENABLE_NEW_GXX_ABI, 1, [Define if you want to always select the new-abi for g++.])
|
||||
[AC_DEFINE(ENABLE_NEW_GXX_ABI, 1,
|
||||
[Define if you want to always select the new-abi for g++.])
|
||||
GXX_ABI_FLAG='-fnew-abi'
|
||||
echo "Building a new-abi g++ compiler."
|
||||
])
|
||||
@ -4587,11 +4633,13 @@ AC_ARG_ENABLE(libstdcxx-v3,
|
||||
|
||||
if test x$enable_libstdcxx_v3 = xyes; then
|
||||
AC_MSG_RESULT(v3)
|
||||
AC_DEFINE(ENABLE_STD_NAMESPACE)
|
||||
ac_esn=1
|
||||
else
|
||||
AC_MSG_RESULT(v2)
|
||||
ac_esn=0
|
||||
fi
|
||||
|
||||
AC_DEFINE_UNQUOTED(ENABLE_STD_NAMESPACE, $ac_esn,
|
||||
[Define to 1 if you want to enable namespaces (-fhonor-std) by default.])
|
||||
|
||||
# Make empty files to contain the specs and options for each language.
|
||||
# Then add #include lines to for a compiler that has specs and/or options.
|
||||
|
Loading…
Reference in New Issue
Block a user