diff options
author | H.J. Lu <hjl.tools@gmail.com> | 2011-03-16 12:58:26 +0000 |
---|---|---|
committer | H.J. Lu <hjl.tools@gmail.com> | 2011-03-16 12:58:26 +0000 |
commit | 21be61f5885f889c05f0bc9c36125a68e4995810 (patch) | |
tree | e79dc6188b772e474de1647469f8214fff6a07a1 /gas/as.h | |
parent | 9a6f1302f0f4e4d12ce8fb7197d4905480eeecaa (diff) | |
download | gdb-21be61f5885f889c05f0bc9c36125a68e4995810.zip gdb-21be61f5885f889c05f0bc9c36125a68e4995810.tar.gz gdb-21be61f5885f889c05f0bc9c36125a68e4995810.tar.bz2 |
Add --size-check=[error|warning].
gas/
2011-03-16 H.J. Lu <hongjiu.lu@intel.com>
* as.c (show_usage): Add --size-check=.
(parse_args): Add and handle OPTION_SIZE_CHECK.
* as.h (flag_size_check): New.
* config/obj-elf.c (elf_frob_symbol): Use as_bad to report
bad .size directive only for --size-check=error.
* doc/as.texinfo: Document --size-check=.
gas/testsuite/
2011-03-16 H.J. Lu <hongjiu.lu@intel.com>
* gas/i386/bad-size.d: New.
* gas/i386/bad-size.s: Likewise.
* gas/i386/bad-size.warn: Likewise.
* gas/i386/i386.exp: Run bad-size for ELF targets.
Diffstat (limited to 'gas/as.h')
-rw-r--r-- | gas/as.h | 10 |
1 files changed, 10 insertions, 0 deletions
@@ -575,6 +575,16 @@ COMMON unsigned int found_comment; COMMON char * found_comment_file; #endif +#if defined OBJ_ELF || defined OBJ_MAYBE_ELF +/* If .size directive failure should be error or warning. */ +COMMON enum + { + size_check_error = 0, + size_check_warning + } +flag_size_check; +#endif + #ifndef DOLLAR_AMBIGU #define DOLLAR_AMBIGU 0 #endif |