This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Patch ping (i386 backend, configury)


> [configury] http://gcc.gnu.org/ml/gcc-patches/2008-12/msg00727.html
>        P1 PR bootstrap/37739
>        Fix powerpc*-linux 32-bit bootstrap where cc1* etc. grow
>        too large for default 32-bit link if not -O1+ or -Wl,--relax

Just two nits:

> +	if test x${GCC} = xyes \
> +	   && echo $CC | ${CC} -E -dD -xc - \
> +	      | grep '__SIZEOF_LONG__[ 	][ 	]*4' > /dev/null; then

ac_cv_sizeof_long should be already set here, so instead of forking $CC
and grep you can do this

  if test "${GCC}:${ac_cv_sizeof_long}" = yes:4; then

> +ifeq ($(filter-out -O0,$(filter -O%,$(CFLAGS))),)

More easily understood and more precise if written as:

  ifeq ($(lastword $(filter -O%,$(CFLAGS))),-O0)

I wouldn't actually oppose always compiling stage1 at -O1; the topic has
been raised many times.  Maybe for 4.5.

Paolo


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]