diff options
author | Alan Modra <amodra@gmail.com> | 2014-04-09 07:03:53 +0930 |
---|---|---|
committer | Alan Modra <amodra@gmail.com> | 2014-04-09 14:30:38 +0930 |
commit | bf7279d5358c47b90b89c4b6b5f8be9960120be2 (patch) | |
tree | de2582ff6fbf713bb62fbecdb89359f28b05969f /gas/config/tc-ppc.h | |
parent | 62ebcb5cbedf0fdc0b5faaa05e46aa43ced2aa68 (diff) | |
download | gdb-bf7279d5358c47b90b89c4b6b5f8be9960120be2.zip gdb-bf7279d5358c47b90b89c4b6b5f8be9960120be2.tar.gz gdb-bf7279d5358c47b90b89c4b6b5f8be9960120be2.tar.bz2 |
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.
Diffstat (limited to 'gas/config/tc-ppc.h')
-rw-r--r-- | gas/config/tc-ppc.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/gas/config/tc-ppc.h b/gas/config/tc-ppc.h index a5e69ca..3cd9bf1 100644 --- a/gas/config/tc-ppc.h +++ b/gas/config/tc-ppc.h @@ -235,6 +235,10 @@ extern int ppc_fix_adjustable (struct fix *); ppc_elf_parse_cons (EXP, NBYTES) extern bfd_reloc_code_real_type ppc_elf_parse_cons (expressionS *, unsigned int); +#define TC_CONS_FIX_CHECK(EXP, NBYTES, FIX) \ + ppc_elf_cons_fix_check (EXP, NBYTES, FIX) +extern void ppc_elf_cons_fix_check (expressionS *, unsigned int, struct fix *); + #define tc_frob_file_before_adjust ppc_frob_file_before_adjust extern void ppc_frob_file_before_adjust (void); |