From: Richard Earnshaw Date: Wed, 25 Feb 2004 11:50:25 +0000 (+0000) Subject: re PR target/14166 (GCC-3.3.3 build fails with internal compiler error) X-Git-Tag: releases/gcc-3.3.4~229 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3b2b9bb0c4bfecf89e890f438fc8f4cba29fc74f;p=thirdparty%2Fgcc.git re PR target/14166 (GCC-3.3.3 build fails with internal compiler error) PR target/14166 * arm.h (THUMB_GO_IF_LEGITIMATE_ADDRESS): Only allow constant pool references from SImode. * arm.md (thumb_movhi_insn): Don't allow minipool references. From-SVN: r78428 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 9957c6472ca3..9526f9c11c5a 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,10 @@ +2004-02-25 Richard Earnshaw + + PR target/14166 + * arm.h (THUMB_GO_IF_LEGITIMATE_ADDRESS): Only allow constant pool + references from SImode. + * arm.md (thumb_movhi_insn): Don't allow minipool references. + 2004-02-24 Bob Wilson Backport from mainline (changes to xtensa_expand_prologue go into diff --git a/gcc/config/arm/arm.h b/gcc/config/arm/arm.h index eda2d47feff7..bce8f280aa74 100644 --- a/gcc/config/arm/arm.h +++ b/gcc/config/arm/arm.h @@ -1,6 +1,6 @@ /* Definitions of target machine for GNU compiler, for ARM. Copyright (C) 1991, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, - 2001, 2002 Free Software Foundation, Inc. + 2001, 2002, 2004 Free Software Foundation, Inc. Contributed by Pieter `Tiggr' Schoenmakers (rcpieter@win.tue.nl) and Martin Simmons (@harleqn.co.uk). More major hacks by Richard Earnshaw (rearnsha@arm.com) @@ -2180,6 +2180,7 @@ typedef struct goto WIN; \ } \ else if (GET_MODE_CLASS (MODE) != MODE_FLOAT \ + && GET_MODE_SIZE (mode) == 4 \ && GET_CODE (X) == SYMBOL_REF \ && CONSTANT_POOL_ADDRESS_P (X) \ && ! (flag_pic \ diff --git a/gcc/config/arm/arm.md b/gcc/config/arm/arm.md index 0e6071295b90..edf9dae1e551 100644 --- a/gcc/config/arm/arm.md +++ b/gcc/config/arm/arm.md @@ -1,6 +1,6 @@ ;;- Machine description for ARM for GNU compiler ;; Copyright 1991, 1993, 1994, 1995, 1996, 1996, 1997, 1998, 1999, 2000, -;; 2001, 2002 Free Software Foundation, Inc. +;; 2001, 2002, 2004 Free Software Foundation, Inc. ;; Contributed by Pieter `Tiggr' Schoenmakers (rcpieter@win.tue.nl) ;; and Martin Simmons (@harleqn.co.uk). ;; More major hacks by Richard Earnshaw (rearnsha@arm.com). @@ -4585,8 +4585,8 @@ ) (define_insn "*thumb_movhi_insn" - [(set (match_operand:HI 0 "nonimmediate_operand" "=l,l, m,*r,*h,l") - (match_operand:HI 1 "general_operand" "l,mn,l,*h,*r,I"))] + [(set (match_operand:HI 0 "nonimmediate_operand" "=l,l,m,*r,*h,l") + (match_operand:HI 1 "general_operand" "l,m,l,*h,*r,I"))] "TARGET_THUMB && ( register_operand (operands[0], HImode) || register_operand (operands[1], HImode))" @@ -4618,8 +4618,7 @@ return \"ldrh %0, %1\"; }" [(set_attr "length" "2,4,2,2,2,2") - (set_attr "type" "*,load,store1,*,*,*") - (set_attr "pool_range" "*,64,*,*,*,*")] + (set_attr "type" "*,load,store1,*,*,*")] )