This is the mail archive of the
gcc-regression@gcc.gnu.org
mailing list for the GCC project.
Re: GCC build failed for powerpc-eabisim with your patch on 2002-04-18T12:38:28Z.
- From: Jakub Jelinek <jakub at redhat dot com>
- To: gcc-regression at gcc dot gnu dot org
- Cc: Hans_Boehm at hp dot com, aking at dreammechanics dot com, alanm at redhat dot com, aldyh at redhat dot com, aph at redhat dot com, bernds at redhat dot com, bkoz at redhat dot com, bryce at waitaki dot otago dot ac dot nz, davem at redhat dot com, ghazi at caip dot rutgers dot edu, gniibe at m17n dot org, jakub at redhat dot com, mark at codesourcery dot com, mark at klomp dot org, neroden at twcny dot rr dot com, nickc at redhat dot com, pme at gcc dot gnu dot org, roger at eyesopen dot com, rth at redhat dot com, uweigand at de dot ibm dot com, zack at codesourcery dot com
- Date: Thu, 18 Apr 2002 17:20:49 +0200
- Subject: Re: GCC build failed for powerpc-eabisim with your patch on 2002-04-18T12:38:28Z.
- References: <200204181501.g3IF13a26176@maat.sfbay.redhat.com>
- Reply-to: Jakub Jelinek <jakub at redhat dot com>
On Thu, Apr 18, 2002 at 03:01:02PM +0000, GCC regression checker wrote:
> With your recent patch, GCC does not compile on:
> powerpc-eabisim
> Attached is build output for those targets.
>
> The build failures are new.
>
> For more information, see <http://people.redhat.com/geoffk/gcc-regression/>.
> +2002-04-18 Roger Sayle <roger@eyesopen.com>
> + Jakub Jelinek <jakub@redhat.com>
> +
> + * fold-const.c (fold) [NOP_EXPR]: Convert (T)(x&c) into ((T)x&(T)c)
> + for integer constant c (if x has unsigned type or sign bit is not
> + set in c). This folds the zero/sign extension into the bit-wise and
> + operation.
> +
> gcc -DIN_GCC -DCROSS_COMPILE -g -O2 -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wtraditional -pedantic -Wno-long-long -DHAVE_CONFIG_H -o cc1 \
> c-parse.o c-lang.o attribs.o c-errors.o c-lex.o c-pragma.o c-decl.o c-typeck.o c-convert.o c-aux-info.o c-common.o c-format.o c-semantics.o c-objc-common.o libcpp.a main.o libbackend.a ../libiberty/libiberty.a
> libbackend.a(fold-const.o): In function `fold':
> /maat/heart/tbox/cvs-gcc/gcc/gcc/fold-const.c:4729: undefined reference to `unsigned_type'
> collect2: ld returned 1 exit status
> make[1]: *** [cc1] Error 1
> make[1]: Leaving directory `/maat/heart/tbox/powerpc-eabisim/build/gcc'
> make: *** [all-gcc] Error 2
Oops, sorry, this didn't come up on i386 and I was playing with IA-64/SPARC
on 3.1 branch only...
Commited as obvious.
2002-04-18 Jakub Jelinek <jakub@redhat.com>
* fold-const.c (fold): Use (*lang_hooks.types.unsigned_type)
instead of unsigned_type.
--- gcc/fold-const.c.jj Thu Apr 18 12:41:04 2002
+++ gcc/fold-const.c Thu Apr 18 17:24:00 2002
@@ -4726,7 +4726,7 @@ fold (expr)
&& (LOAD_EXTEND_OP (TYPE_MODE (TREE_TYPE (and0)))
== ZERO_EXTEND))
{
- tree uns = unsigned_type (TREE_TYPE (and0));
+ tree uns = (*lang_hooks.types.unsigned_type) (TREE_TYPE (and0));
and0 = convert (uns, and0);
and1 = convert (uns, and1);
}
Jakub