]> 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:18:51 +0000 (12:18 +0000)
committerGeorg-Johann Lay <gjl@gcc.gnu.org>
Wed, 25 Feb 2015 12:18:51 +0000 (12:18 +0000)
PR target/65196
* config/avr/avr.c (avr_adjust_insn_length): Call recog_memoized
only with NONDEBUG_INSN_P.

From-SVN: r220963

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

index 676929b41a68d1407aafa93eae9a91173cfda804..2b069a75b94159cc9301c8209c602bc31a6dcebf 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  Kaz Kojima  <kkojima@gcc.gnu.org>
 
        Backport from mainline
@@ -24,7 +30,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 4c65f5efaba530ce6e153b4bf77e5b232003035f..5ee3e1ce9b73a289fd6809ae593f688c0a73b39c 100644 (file)
@@ -7778,7 +7778,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;
     }