diff options
author | Alan Modra <amodra@gmail.com> | 2003-08-19 07:09:44 +0000 |
---|---|---|
committer | Alan Modra <amodra@gmail.com> | 2003-08-19 07:09:44 +0000 |
commit | 3d8aea2f4749e79200f9fc7ed5f7936a0e69cab2 (patch) | |
tree | 33d012ad844d410e32d02aef8473281f010731c2 /gas | |
parent | 7d5b217e2c32d2a2864c1da3e6b28c6f57bfdc65 (diff) | |
download | gdb-3d8aea2f4749e79200f9fc7ed5f7936a0e69cab2.zip gdb-3d8aea2f4749e79200f9fc7ed5f7936a0e69cab2.tar.gz gdb-3d8aea2f4749e79200f9fc7ed5f7936a0e69cab2.tar.bz2 |
* config/tc-ppc.c (md_parse_option): Handle -m440.
(md_apply_fix3): Warning fix.
(md_show_usage): Add -m440.
* doc/c-ppc.texi: Document -m440.
Diffstat (limited to 'gas')
-rw-r--r-- | gas/ChangeLog | 7 | ||||
-rw-r--r-- | gas/config/tc-ppc.c | 6 | ||||
-rw-r--r-- | gas/doc/c-ppc.texi | 3 |
3 files changed, 15 insertions, 1 deletions
diff --git a/gas/ChangeLog b/gas/ChangeLog index 31d5b75..c8b45f9 100644 --- a/gas/ChangeLog +++ b/gas/ChangeLog @@ -1,3 +1,10 @@ +2003-08-19 Alan Modra <amodra@bigpond.net.au> + + * config/tc-ppc.c (md_parse_option): Handle -m440. + (md_show_usage): Add -m440. + (md_apply_fix3): Warning fix. + * doc/c-ppc.texi: Document -m440. + 2003-08-16 Benjamin Kalytta <bkausbk@web.de> * read.c (s_print): Check for NULL. diff --git a/gas/config/tc-ppc.c b/gas/config/tc-ppc.c index 162a640..5f5aaea 100644 --- a/gas/config/tc-ppc.c +++ b/gas/config/tc-ppc.c @@ -910,6 +910,9 @@ md_parse_option (c, arg) || strcmp (arg, "405") == 0) ppc_cpu = (PPC_OPCODE_PPC | PPC_OPCODE_CLASSIC | PPC_OPCODE_403 | PPC_OPCODE_32); + else if (strcmp (arg, "440") == 0) + ppc_cpu = (PPC_OPCODE_PPC | PPC_OPCODE_BOOKE | PPC_OPCODE_32 + | PPC_OPCODE_440); else if (strcmp (arg, "7400") == 0 || strcmp (arg, "7410") == 0 || strcmp (arg, "7450") == 0 @@ -1074,6 +1077,7 @@ PowerPC options:\n\ -mppc, -mppc32, -m603, -m604\n\ generate code for PowerPC 603/604\n\ -m403, -m405 generate code for PowerPC 403/405\n\ +-m440 generate code for PowerPC 440\n\ -m7400, -m7410, -m7450, -m7455\n\ generate code For PowerPC 7400/7410/7450/7455\n")); fprintf (stream, _("\ @@ -5733,7 +5737,7 @@ md_apply_fix3 (fixP, valP, seg) abort (); { unsigned char *where = fixP->fx_frag->fr_literal + fixP->fx_where; - long val, mask; + unsigned long val, mask; if (target_big_endian) val = bfd_getb32 (where - 2); diff --git a/gas/doc/c-ppc.texi b/gas/doc/c-ppc.texi index 7fae6ed..553204a 100644 --- a/gas/doc/c-ppc.texi +++ b/gas/doc/c-ppc.texi @@ -48,6 +48,9 @@ Generate code for PowerPC 603/604. @item -m403, -m405 Generate code for PowerPC 403/405. +@item -m440 +Generate code for PowerPC 440. BookE and some 405 instructions. + @item -m7400, -m7410, -m7450, -m7455 Generate code for PowerPC 7400/7410/7450/7455. |