Patchwork [AVR] : Fix build warning in md.

login
register
mail settings
Submitter Georg-Johann Lay
Date June 21, 2011, 11:36 a.m.
Message ID <4E008227.4070108@gjlay.de>
Download mbox | patch
Permalink /patch/101275/
State New
Headers show

Comments

Georg-Johann Lay - June 21, 2011, 11:36 a.m.
gen machinery comes up with a build warning:

../../../gcc.gnu.org/trunk/gcc/config/avr/avr.md:2763: '@' is
redundant for output template with single alternative

There is @ asm template selector for insn with just one alternative.

This trivial patch fixes that.

Johann

	* config/avr/avr.md (*jcindirect_jump): Fix build warning.
Denis Chertykov - June 21, 2011, 12:39 p.m.
2011/6/21 Georg-Johann Lay <avr@gjlay.de>:
> gen machinery comes up with a build warning:
>
> ../../../gcc.gnu.org/trunk/gcc/config/avr/avr.md:2763: '@' is
> redundant for output template with single alternative
>
> There is @ asm template selector for insn with just one alternative.
>
> This trivial patch fixes that.
>
> Johann
>
>        * config/avr/avr.md (*jcindirect_jump): Fix build warning.

Please, commit.

Denis.

Patch

Index: config/avr/avr.md
===================================================================
--- config/avr/avr.md	(revision 175201)
+++ config/avr/avr.md	(working copy)
@@ -2763,8 +2763,7 @@  (define_expand "indirect_jump"
 (define_insn "*jcindirect_jump"
   [(set (pc) (match_operand:HI 0 "immediate_operand" "i"))]
   ""
-  "@
-  	%~jmp %x0"
+  "%~jmp %x0"
   [(set_attr "length" "2")
    (set_attr "cc" "none")])