aboutsummaryrefslogtreecommitdiff
path: root/gas/config/tc-m68hc11.c
diff options
context:
space:
mode:
authorStephane Carrez <stcarrez@nerim.fr>2003-01-17 22:29:54 +0000
committerStephane Carrez <stcarrez@nerim.fr>2003-01-17 22:29:54 +0000
commitd01030e6e8c0570c4407e8d371689051cd5eab55 (patch)
tree2c54dabebc0a20ccc71db4d2a98c2bcfa2550796 /gas/config/tc-m68hc11.c
parentc71cdefd6f40fcc3c5a0a5595473ea1c02be3e71 (diff)
downloadgdb-d01030e6e8c0570c4407e8d371689051cd5eab55.zip
gdb-d01030e6e8c0570c4407e8d371689051cd5eab55.tar.gz
gdb-d01030e6e8c0570c4407e8d371689051cd5eab55.tar.bz2
* config/tc-m68hc11.c (md_show_usage): Update usage.
(md_parse_option): Recognize -m68hcs12. (m68hc11_elf_final_processing): Set EF_M68HCS12_MACH flag to identify HCS12. * doc/as.texinfo (Overview): Document new option -m68hcs12.
Diffstat (limited to 'gas/config/tc-m68hc11.c')
-rw-r--r--gas/config/tc-m68hc11.c11
1 files changed, 8 insertions, 3 deletions
diff --git a/gas/config/tc-m68hc11.c b/gas/config/tc-m68hc11.c
index 751bb49..2aa39d1 100644
--- a/gas/config/tc-m68hc11.c
+++ b/gas/config/tc-m68hc11.c
@@ -1,5 +1,5 @@
/* tc-m68hc11.c -- Assembler code for the Motorola 68HC11 & 68HC12.
- Copyright 1999, 2000, 2001, 2002 Free Software Foundation, Inc.
+ Copyright 1999, 2000, 2001, 2002, 2003 Free Software Foundation, Inc.
Written by Stephane Carrez (stcarrez@nerim.fr)
This file is part of GAS, the GNU Assembler.
@@ -375,8 +375,9 @@ md_show_usage (stream)
{
get_default_target ();
fprintf (stream, _("\
-Motorola 68HC11/68HC12 options:\n\
- -m68hc11 | -m68hc12 specify the processor [default %s]\n\
+Motorola 68HC11/68HC12/68HCS12 options:\n\
+ -m68hc11 | -m68hc12 |
+ -m68hcs12 specify the processor [default %s]\n\
-mshort use 16-bit int ABI (default)\n\
-mlong use 32-bit int ABI\n\
-mshort-double use 32-bit double ABI\n\
@@ -503,6 +504,8 @@ md_parse_option (c, arg)
current_architecture = cpu6811;
else if (strcasecmp (arg, "68hc12") == 0)
current_architecture = cpu6812;
+ else if (strcasecmp (arg, "68hcs12") == 0)
+ current_architecture = cpu6812 | cpu6812s;
else
as_bad (_("Option `%s' is not recognized."), arg);
break;
@@ -3332,6 +3335,8 @@ md_apply_fix3 (fixP, valP, seg)
void
m68hc11_elf_final_processing ()
{
+ if (current_architecture & cpu6812s)
+ elf_flags |= EF_M68HCS12_MACH;
elf_elfheader (stdoutput)->e_flags &= ~EF_M68HC11_ABI;
elf_elfheader (stdoutput)->e_flags |= elf_flags;
}