This is the mail archive of the gcc-regression@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: GCC build failed for powerpc-eabisim with your patch on 2002-04-18T12:38:28Z.


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


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