[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 44183354d8f84ce645d4b91eefe2790846c7940e..5c415d8b134fdda3f0609a7c6ad24a40fec4cfa0 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 6702b765becca84bdce3542de0cdd18b0b0090cd..283e189a1778721eb27459cba7e47a358088330a 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
        {