[NDS32] Refine register dwarf span.
authorMonk Chiang <sh.chiang04@gmail.com>
Sun, 10 Feb 2019 09:09:19 +0000 (09:09 +0000)
committerChung-Ju Wu <jasonwucj@gcc.gnu.org>
Sun, 10 Feb 2019 09:09:19 +0000 (09:09 +0000)
gcc/
* config/nds32/nds32.c (nds32_dwarf_register_span): Refine register
dwarf span.

From-SVN: r268739

gcc/ChangeLog
gcc/config/nds32/nds32.c

index 4418335..5c415d8 100644 (file)
@@ -1,3 +1,8 @@
+2019-02-10  Monk Chiang  <sh.chiang04@gmail.com>
+
+       * config/nds32/nds32.c (nds32_dwarf_register_span): Refine register
+       dwarf span.
+
 2019-02-10  Chung-Ju Wu  <jasonwucj@gmail.com>
 
        * config/nds32/nds32-md-auxiliary.c (nds32_spilt_doubleword): Support
index 6702b76..283e189 100644 (file)
@@ -3867,11 +3867,9 @@ nds32_dwarf_register_span (rtx reg)
                                   gen_rtvec (4, dwarf_low_re, dwarf_high_re,
                                                 dwarf_high_im, dwarf_low_im));
        }
-      else if (mode == SFmode || mode == SImode)
+      else if (GET_MODE_SIZE (mode) <= UNITS_PER_WORD)
        {
-         /* Create new dwarf information with adjusted register number.  */
-         dwarf_single = gen_rtx_REG (word_mode, regno);
-         return gen_rtx_PARALLEL (VOIDmode, gen_rtvec (1, dwarf_single));
+         return NULL_RTX;
        }
       else
        {