Commit 31c8581d by Jim Wilson Committed by Jim Wilson

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
parent 7636d567
Tue Nov 4 12:30:28 1997 Jim Wilson <wilson@cygnus.com> 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. * acconfig.h (HAVE_INTTYPES_H): Undef.
* configure.in (inttypes.h): Check for conflicts between sys/types.h * configure.in (inttypes.h): Check for conflicts between sys/types.h
and inttypes.h, and verify that intmax_t is defined. and inttypes.h, and verify that intmax_t is defined.
......
...@@ -520,6 +520,7 @@ expand_builtin_dwarf_reg_size (reg_tree, target) ...@@ -520,6 +520,7 @@ expand_builtin_dwarf_reg_size (reg_tree, target)
tree reg_tree; tree reg_tree;
rtx target; rtx target;
{ {
enum machine_mode mode;
int size; int size;
struct reg_size_range ranges[5]; struct reg_size_range ranges[5];
tree t, t2; tree t, t2;
...@@ -535,7 +536,15 @@ expand_builtin_dwarf_reg_size (reg_tree, target) ...@@ -535,7 +536,15 @@ expand_builtin_dwarf_reg_size (reg_tree, target)
if (DWARF_FRAME_REGNUM (i) == DWARF_FRAME_RETURN_COLUMN) if (DWARF_FRAME_REGNUM (i) == DWARF_FRAME_RETURN_COLUMN)
continue; 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) if (size != last_size)
{ {
ranges[n_ranges].beg = i; ranges[n_ranges].beg = i;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment