]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
re PR target/65196 (avr_adjust_insn_length uses recog_memoized on invalid insn)
authorGeorg-Johann Lay <avr@gjlay.de>
Wed, 25 Feb 2015 12:34:21 +0000 (12:34 +0000)
committerGeorg-Johann Lay <gjl@gcc.gnu.org>
Wed, 25 Feb 2015 12:34:21 +0000 (12:34 +0000)
PR target/65196
* config/avr/avr.c (avr_adjust_insn_length): Call recog_memoized
only with NONDEBUG_INSN_P.

From-SVN: r220965

gcc/ChangeLog
gcc/config/avr/avr.c

index 2319ab8b91b0eb45ea5884d062b42f0453c10cfd..fa4587d77fd450ee033a4c99dce42286e0fe42a9 100644 (file)
@@ -1,3 +1,9 @@
+2015-02-25  Georg-Johann Lay  <avr@gjlay.de>
+
+       PR target/65196
+       * config/avr/avr.c (avr_adjust_insn_length): Call recog_memoized
+       only with NONDEBUG_INSN_P.
+
 2015-02-25  Richard Biener  <rguenther@suse.de>
 
        Backport from mainline
@@ -65,7 +71,7 @@
        for LTO produced CUs.
 
        2015-02-16  Richard Biener  <rguenther@suse.de>
+
        PR lto/65015
        * varasm.c (default_file_start): For LTO produced units
        emit <artificial> as file directive.
index 86c46e9c4a242ba5d0c3609f092f142b044ff3b2..597adc55147fec846e1a8cc980c33056065ac398 100644 (file)
@@ -7578,7 +7578,8 @@ avr_adjust_insn_length (rtx insn, int len)
      It is easier to state this in an insn attribute "adjust_len" than
      to clutter up code here...  */
 
-  if (-1 == recog_memoized (insn))
+  if (!NONDEBUG_INSN_P (insn)
+      || -1 == recog_memoized (insn))
     {
       return len;
     }