public inbox for gcc-patches@gcc.gnu.org
 help / color / mirror / Atom feed
* fix 8451
@ 2002-11-04 10:37 Aldy Hernandez
  0 siblings, 0 replies; only message in thread
From: Aldy Hernandez @ 2002-11-04 10:37 UTC (permalink / raw)
  To: gcc-patches

The following patch fixes the bug:

http://gcc.gnu.org/ml/gcc-patches/2002-04/msg01546.html

Richard said it was ok to back port it to 3.2.

Committed to 3.2 branch.

2002-11-04  Aldy Hernandez  <aldyh@redhat.com>
	
	Backport patch to fix PR c/8451.

	2002-04-25  Richard Henderson  <rth@redhat.com>

        * expmed.c (extract_bit_field): Fall through to generic code rather
        than aborting on subreg special case.

Index: expmed.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/expmed.c,v
retrieving revision 1.108.2.5
diff -c -p -r1.108.2.5 expmed.c
*** expmed.c	24 Jun 2002 16:50:42 -0000	1.108.2.5
--- expmed.c	4 Nov 2002 18:36:43 -0000
*************** extract_bit_field (str_rtx, bitsize, bit
*** 1144,1150 ****
  		/* Else we've got some float mode source being extracted into
  		   a different float mode destination -- this combination of
  		   subregs results in Severe Tire Damage.  */
! 		abort ();
  	    }
  	  if (GET_CODE (op0) == REG)
  	    op0 = gen_rtx_SUBREG (mode1, op0, byte_offset);
--- 1144,1150 ----
  		/* Else we've got some float mode source being extracted into
  		   a different float mode destination -- this combination of
  		   subregs results in Severe Tire Damage.  */
! 		goto no_subreg_mode_swap;
  	    }
  	  if (GET_CODE (op0) == REG)
  	    op0 = gen_rtx_SUBREG (mode1, op0, byte_offset);
*************** extract_bit_field (str_rtx, bitsize, bit
*** 1155,1160 ****
--- 1155,1161 ----
  	return convert_to_mode (tmode, op0, unsignedp);
        return op0;
      }
+  no_subreg_mode_swap:
  
    /* Handle fields bigger than a word.  */
  

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2002-11-04 18:37 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-11-04 10:37 fix 8451 Aldy Hernandez

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).