This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [PATCH, committed] Use more config/*.m4 macros
- From: Eric Botcazou <ebotcazou at libertysurf dot fr>
- To: bonzini at gnu dot org
- Cc: gcc-patches at gcc dot gnu dot org
- Date: Thu, 14 Jun 2007 15:45:44 +0200
- Subject: Re: [PATCH, committed] Use more config/*.m4 macros
- References: <4670F804.2050305@lu.unisi.ch>
> libiberty/configure.ac | 22 ---------
This breaks bootstrap with Sun CC:
-if test x$GCC = xyes; then
- ac_libiberty_warn_cflags='-W -Wall -pedantic -Wwrite-strings
-Wstrict-prototypes'
-fi
-if test $ac_cv_prog_cc_w_cxx_compat = yes ; then
- ac_libiberty_warn_cflags="${ac_libiberty_warn_cflags} -Wc++-compat"
-fi
-AC_SUBST(ac_libiberty_warn_cflags)
+ACX_PROG_CC_WARNING_OPTS([-W -Wall -pedantic -Wwrite-strings -Wc++-compat \
+ -Wstrict-prototypes], [ac_libiberty_warn_cflags]
because libiberty is now compiled like so:
cc -erroff -c -DHAVE_CONFIG_H -g -I. -I/home/eric/svn/gcc/libiberty/../include
-pedantic /home/eric/svn/gcc/libiberty/xatexit.c -o xatexit.o
and -pedantic is interpreted as -p by Sun CC, causing undefined references to
mcount at link time.
--
Eric Botcazou