aboutsummaryrefslogtreecommitdiff
path: root/gcc/dwarf2out.c
diff options
context:
space:
mode:
authorRichard Sandiford <richard.sandiford@arm.com>2016-11-15 10:54:12 +0000
committerRichard Sandiford <rsandifo@gcc.gnu.org>2016-11-15 10:54:12 +0000
commite17689cd8fe495c55cdcedcc1030dae6aef2c4b5 (patch)
tree26028f2b9ddf2563efefacfd91ecd0b61f968d8d /gcc/dwarf2out.c
parent47e5d7ccf12c5d11abdd18e8e9089735e4fd3d05 (diff)
downloadgcc-e17689cd8fe495c55cdcedcc1030dae6aef2c4b5.zip
gcc-e17689cd8fe495c55cdcedcc1030dae6aef2c4b5.tar.gz
gcc-e17689cd8fe495c55cdcedcc1030dae6aef2c4b5.tar.bz2
Fix a GET_MODE_CLASS typo in mem_loc_descriptor
It should have been checking the size instead. gcc/ 2016-11-15 Richard Sandiford <richard.sandiford@arm.com> Alan Hayward <alan.hayward@arm.com> David Sherwood <david.sherwood@arm.com> * dwarf2out.c (mem_loc_descriptor): Fix GET_MODE_CLASS/ GET_MODE_SIZE typo. Co-Authored-By: Alan Hayward <alan.hayward@arm.com> Co-Authored-By: David Sherwood <david.sherwood@arm.com> From-SVN: r242409
Diffstat (limited to 'gcc/dwarf2out.c')
-rw-r--r--gcc/dwarf2out.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/dwarf2out.c b/gcc/dwarf2out.c
index 58a5e1a..a7344ca 100644
--- a/gcc/dwarf2out.c
+++ b/gcc/dwarf2out.c
@@ -14976,7 +14976,7 @@ mem_loc_descriptor (rtx rtl, machine_mode mode,
if ((!dwarf_strict || dwarf_version >= 5)
&& SCALAR_INT_MODE_P (mode))
{
- if (GET_MODE_CLASS (mode) > DWARF2_ADDR_SIZE)
+ if (GET_MODE_SIZE (mode) > DWARF2_ADDR_SIZE)
{
op = DW_OP_div;
goto do_binop;