OSDN Git Service

2009-06-05 Doug Kwan <dougkwan@google.com>
authordougkwan <dougkwan>
Fri, 5 Jun 2009 21:32:56 +0000 (21:32 +0000)
committerdougkwan <dougkwan>
Fri, 5 Jun 2009 21:32:56 +0000 (21:32 +0000)
commite0d8b287d75cbfee63d59cca2da30b5e07f17ac6
tree2d9b4d28970a35b082dc0b7c1fc87d51935a6a86
parenta343f3b12ca3b82a09a7d70567e96e9e1f9b2916
2009-06-05  Doug Kwan  <dougkwan@google.com>

* Makefile.am (CCFILES): Add target.cc.
* Makefile.in: Regenerate.
* i386.cc (class Target_i386): Define new virtual method to
override do_is_local_label_name in parent.
* object.cc (Sized_relobj::do_count_local_symbols): Discard
local symbols if --discard-locals or -X is given.
* options.h (class General_options): Declare new options
'--discard-locals' and '-X' for discarding locals.
* target.h (class Target): Define new methods is_local_label_name.
Declare new virtual method do_is_local_label_name.
* target.cc: New file.
* testsuite/Makefile.am (check_PROGRAMS): Add discard_locals_test.
(check_SCRIPTS): Add discard_locals_test.sh.
(check_DATA): Add discard_local_tests.syms.
(discard_locals_test_SOURCES, discard_locals_test_LDFLAGS): Define.
(discard_local_tests.syms, discard_locals_test.o): New make rules.
* testsuite/Makefile.in: Regenerate.
* testsuite/discard_locals_test.c: New file.
* testsuite/discard_locals_test.sh: Same.
12 files changed:
gold/ChangeLog
gold/Makefile.am
gold/Makefile.in
gold/i386.cc
gold/object.cc
gold/options.h
gold/target.cc [new file with mode: 0644]
gold/target.h
gold/testsuite/Makefile.am
gold/testsuite/Makefile.in
gold/testsuite/discard_locals_test.c [new file with mode: 0644]
gold/testsuite/discard_locals_test.sh [new file with mode: 0755]