aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDenis Chertykov <chertykov@gmail.com>2014-03-29 09:46:33 +0400
committerDenis Chertykov <chertykov@gmail.com>2014-03-29 09:46:33 +0400
commited0251d24b7573e58fe22bea44c04887daedaa32 (patch)
treef1e7fff0390eb4172b40fb45e8aa13e98de91d7d
parentd24e46e3e247e46eb2f5e7ebb5efd0f9fcc5fcdd (diff)
downloadgdb-ed0251d24b7573e58fe22bea44c04887daedaa32.zip
gdb-ed0251d24b7573e58fe22bea44c04887daedaa32.tar.gz
gdb-ed0251d24b7573e58fe22bea44c04887daedaa32.tar.bz2
* gas/ChangeLog: Revert
* gas/config/tc-avr.c: Revert * gas/doc/c-avr.texi: Revert * gas/testsuite/ChangeLog: Revert * gas/testsuite/gas/avr/avr.exp: Revert * gas/testsuite/gas/avr/rmw.d: Revert * gas/testsuite/gas/avr/rmw.s: Revert This reverts commit d24e46e3e247e46eb2f5e7ebb5efd0f9fcc5fcdd.
-rw-r--r--gas/ChangeLog9
-rw-r--r--gas/config/tc-avr.c20
-rw-r--r--gas/doc/c-avr.texi4
-rw-r--r--gas/testsuite/ChangeLog6
-rw-r--r--gas/testsuite/gas/avr/avr.exp24
-rw-r--r--gas/testsuite/gas/avr/rmw.d23
-rw-r--r--gas/testsuite/gas/avr/rmw.s32
7 files changed, 3 insertions, 115 deletions
diff --git a/gas/ChangeLog b/gas/ChangeLog
index 0015b28..bdb7c2f 100644
--- a/gas/ChangeLog
+++ b/gas/ChangeLog
@@ -1,12 +1,3 @@
-2014-03-29 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
-
- * config/tc-avr.c: Add specified_mcu variable for selected mcu.
- (enum options): add OPTION_RMW_ISA for -mrmw option.
- (struct option md_longopts): Add mrmw option.
- (md_show_usage): add -mrmw option description.
- (md_parse_option): Update isa details if -mrmw option specified.
- * doc/c-avr.texi: Add doc for new option -mrmw.
-
2014-03-27 Nick Clifton <nickc@redhat.com>
* config/tc-score.c (s3_parse_pce_inst): Add "%s" parameter to
diff --git a/gas/config/tc-avr.c b/gas/config/tc-avr.c
index e0ab3e6..d382fd9 100644
--- a/gas/config/tc-avr.c
+++ b/gas/config/tc-avr.c
@@ -326,10 +326,8 @@ static struct mcu_type_s mcu_types[] =
{NULL, 0, 0}
};
-
/* Current MCU type. */
static struct mcu_type_s default_mcu = {"avr2", AVR_ISA_AVR2, bfd_mach_avr2};
-static struct mcu_type_s specified_mcu;
static struct mcu_type_s * avr_mcu = & default_mcu;
/* AVR target-specific switches. */
@@ -400,8 +398,7 @@ enum options
{
OPTION_ALL_OPCODES = OPTION_MD_BASE + 1,
OPTION_NO_SKIP_BUG,
- OPTION_NO_WRAP,
- OPTION_RMW_ISA
+ OPTION_NO_WRAP
};
struct option md_longopts[] =
@@ -410,7 +407,6 @@ struct option md_longopts[] =
{ "mall-opcodes", no_argument, NULL, OPTION_ALL_OPCODES },
{ "mno-skip-bug", no_argument, NULL, OPTION_NO_SKIP_BUG },
{ "mno-wrap", no_argument, NULL, OPTION_NO_WRAP },
- { "mrmw", no_argument, NULL, OPTION_RMW_ISA },
{ NULL, no_argument, NULL, 0 }
};
@@ -515,9 +511,7 @@ md_show_usage (FILE *stream)
" -mno-skip-bug disable warnings for skipping two-word instructions\n"
" (default for avr4, avr5)\n"
" -mno-wrap reject rjmp/rcall instructions with 8K wrap-around\n"
- " (default for avr3, avr5)\n"
- " -mrmw accept RMW instructions\n"
- ));
+ " (default for avr3, avr5)\n"));
show_mcu_list (stream);
}
@@ -564,12 +558,7 @@ md_parse_option (int c, char *arg)
type - this for allows passing -mmcu=... via gcc ASM_SPEC as well
as .arch ... in the asm output at the same time. */
if (avr_mcu == &default_mcu || avr_mcu->mach == mcu_types[i].mach)
- {
- specified_mcu.name = mcu_types[i].name;
- specified_mcu.isa |= mcu_types[i].isa;
- specified_mcu.mach = mcu_types[i].mach;
- avr_mcu = &specified_mcu;
- }
+ avr_mcu = &mcu_types[i];
else
as_fatal (_("redefinition of mcu type `%s' to `%s'"),
avr_mcu->name, mcu_types[i].name);
@@ -584,9 +573,6 @@ md_parse_option (int c, char *arg)
case OPTION_NO_WRAP:
avr_opt.no_wrap = 1;
return 1;
- case OPTION_RMW_ISA:
- specified_mcu.isa |= AVR_ISA_RMW;
- return 1;
}
return 0;
diff --git a/gas/doc/c-avr.texi b/gas/doc/c-avr.texi
index 6476682..e9cc274 100644
--- a/gas/doc/c-avr.texi
+++ b/gas/doc/c-avr.texi
@@ -129,10 +129,6 @@ This option disable warnings for skipping two-word instructions.
@item -mno-wrap
This option reject @code{rjmp/rcall} instructions with 8K wrap-around.
-@cindex @code{-mrmw} command line option, AVR
-@item -mrmw
-Accept RMW (@code{XCH,LAC,LAS,LAT}) instructions.
-
@end table
diff --git a/gas/testsuite/ChangeLog b/gas/testsuite/ChangeLog
index c986ce4..d29e949 100644
--- a/gas/testsuite/ChangeLog
+++ b/gas/testsuite/ChangeLog
@@ -1,9 +1,3 @@
-2014-03-29 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
-
- * gas/avr/avr.exp: Run new tests.
- * gas/avr/rmw.d: Add test for additional ISA support.
- * gas/avr/rmw.s: Ditto.
-
2014-03-21 David Weatherford <weath@cadence.com>
Max Filippov <jcmvbkbc@gmail.com>
diff --git a/gas/testsuite/gas/avr/avr.exp b/gas/testsuite/gas/avr/avr.exp
deleted file mode 100644
index fc90f9f..0000000
--- a/gas/testsuite/gas/avr/avr.exp
+++ /dev/null
@@ -1,24 +0,0 @@
-# Copyright 2014
-# Free Software Foundation, Inc.
-
-# This program is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; either version 3 of the License, or
-# (at your option) any later version.
-#
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA 02110-1301, USA.
-
-#
-# Some AVR tests
-#
-
-if {[istarget avr-*-*]} {
- run_dump_tests [lsort [glob -nocomplain $srcdir/$subdir/*.d]]
-}
diff --git a/gas/testsuite/gas/avr/rmw.d b/gas/testsuite/gas/avr/rmw.d
deleted file mode 100644
index 48554e1..0000000
--- a/gas/testsuite/gas/avr/rmw.d
+++ /dev/null
@@ -1,23 +0,0 @@
-#name: AVR RMW instructions
-#as: -mmcu=avrxmega2 -mrmw
-#objdump: -dr --show-raw-insn
-#target: avr-*-*
-
-.*: +file format elf32-avr
-
-Disassembly of section .text:
-
-00000000 <main>:
- 0: cf 93 push r28
- 2: df 93 push r29
- 4: cd b7 in r28, 0x3d ; 61
- 6: de b7 in r29, 0x3e ; 62
- 8: c4 92 xch Z, r12
- a: c5 92 las Z, r12
- c: c6 92 lac Z, r12
- e: c7 92 lat Z, r12
- 10: 80 e0 ldi r24, 0x00 ; 0
- 12: 90 e0 ldi r25, 0x00 ; 0
- 14: df 91 pop r29
- 16: cf 91 pop r28
- 18: 08 95 ret
diff --git a/gas/testsuite/gas/avr/rmw.s b/gas/testsuite/gas/avr/rmw.s
deleted file mode 100644
index fca39c9..0000000
--- a/gas/testsuite/gas/avr/rmw.s
+++ /dev/null
@@ -1,32 +0,0 @@
- .file "rmw.s"
-__SP_H__ = 0x3e
-__SP_L__ = 0x3d
-__SREG__ = 0x3f
-__CCP__ = 0x34
-__tmp_reg__ = 0
-__zero_reg__ = 1
- .text
-.global main
- .type main, @function
-main:
- push r28
- push r29
- in r28,__SP_L__
- in r29,__SP_H__
-/* prologue: function */
-/* frame size = 0 */
-/* stack size = 2 */
-.L__stack_usage = 2
-/* #APP */
- xch Z, r12
- las Z, r12
- lac Z, r12
- lat Z, r12
-/* #NOAPP */
- ldi r24,0
- ldi r25,0
-/* epilogue start */
- pop r29
- pop r28
- ret
- .size main, .-main