...it should have been checking the size instead.

Tested on aarch64-linux-gnu and x86_64-linux-gnu.  Committed as obvious.

Thanks,
Richard


[ This patch is part of the SVE series posted here:
  https://gcc.gnu.org/ml/gcc/2016-11/msg00030.html ]

gcc/
2016-11-15  Richard Sandiford  <richard.sandif...@arm.com>
            Alan Hayward  <alan.hayw...@arm.com>
            David Sherwood  <david.sherw...@arm.com>

        * dwarf2out.c (mem_loc_descriptor): Fix GET_MODE_CLASS/
        GET_MODE_SIZE typo.

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;

Reply via email to