Skip to content

Commit

Permalink
* expmed.c (store_bit_field): Correctly compute smallest mode that
Browse files Browse the repository at this point in the history
	is sufficient to contain all bits we are storing.


git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@38507 138bc75d-0d04-0410-961f-82ee72b054a4
  • Loading branch information
alehotsky committed Dec 28, 2000
1 parent 1a140d6 commit 6c36424
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 1 deletion.
2 changes: 2 additions & 0 deletions MAINTAINERS
Expand Up @@ -127,6 +127,7 @@ Brendan Kehoe brendan@redhat.com
Mumit Khan khan@xraylith.wisc.edu
Benjamin Kosnik bkoz@redhat.com
Marc Lehmann pcg@goof.com
Alan Lehotsky apl@alum.mit.edu
Warren Levy warrenl@redhat.com
Kriang Lerdsuwanakij lerdsuwa@users.sourceforge.net
Don Lindsay dlindsay@redhat.com
Expand Down Expand Up @@ -164,3 +165,4 @@ John Wehle john@feith.com
Mark Wielaard mark@gcc.gnu.org
* Indicates folks we need to get Kerberos/ssh accounts ready so they
can write in the source tree

5 changes: 5 additions & 0 deletions gcc/ChangeLog
@@ -1,3 +1,8 @@
2000-12-28 <lehotsky@tiac.net>

* expmed.c (store_bit_field): Correctly compute smallest mode that
is sufficient to contain all bits we are storing.

2000-12-27 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>

* builtins.c (build_function_call_expr): New function. Use it
Expand Down
2 changes: 1 addition & 1 deletion gcc/expmed.c
Expand Up @@ -399,7 +399,7 @@ store_bit_field (str_rtx, bitsize, bitnum, fieldmode, value, align, total_size)
VOIDmode, because that is what store_field uses to indicate that this
is a bit field, but passing VOIDmode to operand_subword_force will
result in an abort. */
fieldmode = mode_for_size (nwords * BITS_PER_WORD, MODE_INT, 0);
fieldmode = smallest_mode_for_size (nwords * BITS_PER_WORD, MODE_INT, 0);

for (i = 0; i < nwords; i++)
{
Expand Down

0 comments on commit 6c36424

Please sign in to comment.