ppc476 gas warn on data in code sections
authorAlan Modra <amodra@gmail.com>
Tue, 8 Apr 2014 21:33:53 +0000 (07:03 +0930)
committerAlan Modra <amodra@gmail.com>
Wed, 9 Apr 2014 05:00:38 +0000 (14:30 +0930)
commitbf7279d5358c47b90b89c4b6b5f8be9960120be2
treede2582ff6fbf713bb62fbecdb89359f28b05969f
parent62ebcb5cbedf0fdc0b5faaa05e46aa43ced2aa68
ppc476 gas warn on data in code sections

* config/tc-ppc.c (warn_476, last_insn, last_seg, last_subseg):
New static vars.
(md_longopts, md_parse_option, md_show_usage): Add --ppc476-workaround.
(ppc_elf_cons_fix_check): New function.
(md_assemble): Set last_insn, last_seg, last_subseg.
(ppc_byte, md_apply_fix): Handle warn_476.
* config/tc-ppc.h (TC_CONS_FIX_CHECK): Define.
(ppc_elf_cons_fix_check): Declare.
* read.c (cons_worker): Invoke TC_CONS_FIX_CHECK.
gas/ChangeLog
gas/config/tc-ppc.c
gas/config/tc-ppc.h
gas/read.c