Add --size-check=[error|warning].
authorH.J. Lu <hjl.tools@gmail.com>
Wed, 16 Mar 2011 12:58:26 +0000 (12:58 +0000)
committerH.J. Lu <hjl.tools@gmail.com>
Wed, 16 Mar 2011 12:58:26 +0000 (12:58 +0000)
commit21be61f5885f889c05f0bc9c36125a68e4995810
treee79dc6188b772e474de1647469f8214fff6a07a1
parent9a6f1302f0f4e4d12ce8fb7197d4905480eeecaa
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.
gas/ChangeLog
gas/as.c
gas/as.h
gas/config/obj-elf.c
gas/doc/as.texinfo
gas/testsuite/ChangeLog
gas/testsuite/gas/i386/bad-size.d [new file with mode: 0644]
gas/testsuite/gas/i386/bad-size.s [new file with mode: 0644]
gas/testsuite/gas/i386/bad-size.warn [new file with mode: 0644]
gas/testsuite/gas/i386/i386.exp