Makefile.in (LOOSE_WARN): Remove -fno-common.
* Makefile.in (LOOSE_WARN): Remove -fno-common. (NOCOMMON_FLAG): New substitution point. (GCC_WARN_CFLAGS): Include it. * configure.in (ac_checking): Set nocommon_flag. (nocommon_flag): New substitution point. From-SVN: r56362
This commit is contained in:
parent
8ea4b195de
commit
204250d2fc
|
@ -1,3 +1,11 @@
|
||||||
|
2002-08-15 Richard Henderson <rth@redhat.com>
|
||||||
|
|
||||||
|
* Makefile.in (LOOSE_WARN): Remove -fno-common.
|
||||||
|
(NOCOMMON_FLAG): New substitution point.
|
||||||
|
(GCC_WARN_CFLAGS): Include it.
|
||||||
|
* configure.in (ac_checking): Set nocommon_flag.
|
||||||
|
(nocommon_flag): New substitution point.
|
||||||
|
|
||||||
2002-08-15 Alexandre Oliva <aoliva@redhat.com>
|
2002-08-15 Alexandre Oliva <aoliva@redhat.com>
|
||||||
|
|
||||||
* c-tree.h (skip_evaluation): Move declaration...
|
* c-tree.h (skip_evaluation): Move declaration...
|
||||||
|
|
|
@ -88,13 +88,17 @@ coverageexts = .{da,bb,bbg}
|
||||||
# apply to the back end and the C front end, which may be compiled
|
# apply to the back end and the C front end, which may be compiled
|
||||||
# with other compilers. This is partially controlled by configure in
|
# with other compilers. This is partially controlled by configure in
|
||||||
# stage1, as not all versions of gcc understand -Wno-long-long.
|
# stage1, as not all versions of gcc understand -Wno-long-long.
|
||||||
LOOSE_WARN = -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -fno-common
|
LOOSE_WARN = -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes
|
||||||
STRICT_WARN = -Wtraditional @strict1_warn@
|
STRICT_WARN = -Wtraditional @strict1_warn@
|
||||||
STRICT2_WARN = -Wtraditional -pedantic -Wno-long-long
|
STRICT2_WARN = -Wtraditional -pedantic -Wno-long-long
|
||||||
|
|
||||||
|
# This is set by --enable-checking. The idea is to catch forgotten
|
||||||
|
# "extern" tags in header files.
|
||||||
|
NOCOMMON_FLAG = @nocommon_flag@
|
||||||
|
|
||||||
# This is how we control whether or not the additional warnings are applied.
|
# This is how we control whether or not the additional warnings are applied.
|
||||||
.-warn = $(STRICT_WARN)
|
.-warn = $(STRICT_WARN)
|
||||||
GCC_WARN_CFLAGS = $(LOOSE_WARN) $($(@D)-warn)
|
GCC_WARN_CFLAGS = $(LOOSE_WARN) $($(@D)-warn) $(NOCOMMON_FLAG)
|
||||||
|
|
||||||
# All warnings have to be shut off in stage1 if the compiler used then
|
# All warnings have to be shut off in stage1 if the compiler used then
|
||||||
# isn't gcc; configure determines that. WARN_CFLAGS will be either
|
# isn't gcc; configure determines that. WARN_CFLAGS will be either
|
||||||
|
|
File diff suppressed because it is too large
Load Diff
|
@ -219,11 +219,14 @@ esac
|
||||||
],
|
],
|
||||||
# Enable some checks by default for development versions of GCC
|
# Enable some checks by default for development versions of GCC
|
||||||
[ac_checking=1; ac_tree_checking=1; ac_gc_checking=1; ac_rtlflag_checking=1;])
|
[ac_checking=1; ac_tree_checking=1; ac_gc_checking=1; ac_rtlflag_checking=1;])
|
||||||
|
nocommon_flag=""
|
||||||
if test x$ac_checking != x ; then
|
if test x$ac_checking != x ; then
|
||||||
AC_DEFINE(ENABLE_CHECKING, 1,
|
AC_DEFINE(ENABLE_CHECKING, 1,
|
||||||
[Define if you want more run-time sanity checks. This one gets a grab
|
[Define if you want more run-time sanity checks. This one gets a grab
|
||||||
bag of miscellaneous but relatively cheap checks.])
|
bag of miscellaneous but relatively cheap checks.])
|
||||||
|
nocommon_flag=-fno-common
|
||||||
fi
|
fi
|
||||||
|
AC_SUBST(nocommon_flag)
|
||||||
if test x$ac_tree_checking != x ; then
|
if test x$ac_tree_checking != x ; then
|
||||||
AC_DEFINE(ENABLE_TREE_CHECKING, 1,
|
AC_DEFINE(ENABLE_TREE_CHECKING, 1,
|
||||||
[Define if you want all operations on trees (the basic data
|
[Define if you want all operations on trees (the basic data
|
||||||
|
|
Loading…
Reference in New Issue