Fix nightly testing mips64-elf build failure.

* dwarf2out.c (expand_builtin_dwarf_reg_size): New variable mode.
	Convert CCmode to word_mode before calling GET_MODE_SIZE.

From-SVN: r16326
This commit is contained in:
Jim Wilson 1997-11-05 00:50:18 +00:00 committed by Jim Wilson
parent 7636d56743
commit 31c8581d25
2 changed files with 13 additions and 1 deletions

View File

@ -1,5 +1,8 @@
Tue Nov 4 12:30:28 1997 Jim Wilson <wilson@cygnus.com>
* dwarf2out.c (expand_builtin_dwarf_reg_size): New variable mode.
Convert CCmode to word_mode before calling GET_MODE_SIZE.
* acconfig.h (HAVE_INTTYPES_H): Undef.
* configure.in (inttypes.h): Check for conflicts between sys/types.h
and inttypes.h, and verify that intmax_t is defined.

View File

@ -520,6 +520,7 @@ expand_builtin_dwarf_reg_size (reg_tree, target)
tree reg_tree;
rtx target;
{
enum machine_mode mode;
int size;
struct reg_size_range ranges[5];
tree t, t2;
@ -535,7 +536,15 @@ expand_builtin_dwarf_reg_size (reg_tree, target)
if (DWARF_FRAME_REGNUM (i) == DWARF_FRAME_RETURN_COLUMN)
continue;
size = GET_MODE_SIZE (reg_raw_mode[i]);
mode = reg_raw_mode[i];
/* CCmode is arbitrarily given a size of 4 bytes. It is more useful
to use the same size as word_mode, since that reduces the number
of ranges we need. It should not matter, since the result should
never be used for a condition code register anyways. */
if (mode == CCmode)
mode = word_mode;
size = GET_MODE_SIZE (mode);
if (size != last_size)
{
ranges[n_ranges].beg = i;