From: Jim Wilson Date: Wed, 5 Nov 1997 00:50:18 +0000 (+0000) Subject: Fix nightly testing mips64-elf build failure. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=31c8581d25e55cd1a2507e215b5b6046919b2ab3;p=gcc.git 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 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 3a1c4d7cbf7..2f981e9df74 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,5 +1,8 @@ Tue Nov 4 12:30:28 1997 Jim Wilson + * 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. diff --git a/gcc/dwarf2out.c b/gcc/dwarf2out.c index c8a6c74431b..d37bbca4a1c 100644 --- a/gcc/dwarf2out.c +++ b/gcc/dwarf2out.c @@ -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;