[PATCH] gold: add --incremental, --incremental-changed, --incremental-unchanged and --incremental-unknown command line options

Mikolaj Zalewski mikolajz@google.com
Thu Feb 5 23:48:00 GMT 2009


  This patch adds the incremental command line options. They have no
effect yet. The --incremental-* disposition is stored in the
Input_file_argument. Files added by plug-ins and scripts are always
--incremental-unknowns. The latter causes -lXXX libraries to be always
--incremental-unknown. I can look into it later, but I wanted to show
the patch already in case there are some problems with the approach
and the patch needs to be made differently. Specifying --incremental-*
without --incremental is considered an error.

2009-02-05  Mikolaj Zalewski  <mikolajz@google.com>
       * fileread.cc (Input_file::Input_file): Add
Incremental_disposition argument
       All callers changed
       (Input_file::incremental_disposition): New function
       * options.cc (Incremental_disposition): New enum
       (General_options::parse_incremental_changed): New function
       (General_options::parse_incremental_unchanged): New function
       (General_options::parse_incremental_unknown): New function
       (General_options::finalize): Check for use of --incremental-*
without --incremental
       (Input_arguments::set_incremental_disposition): New function
       * options.h (Input_file_argument::Input_file_argument): Add
Incremental_disposition argument
       All callers changed
       (Input_file_argument::incremental_disposition): New function
       (Input_arguments::Input_arguments): Initialize new field
current_incremental_disposition_
       (Input_arguments::set_incremental_disposition): New function
       (Input_arguments::current_incremental_disposition): New function
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-gold-add-support-for-incremental-incremental-c.patch
Type: text/x-patch
Size: 14306 bytes
Desc: not available
URL: <https://sourceware.org/pipermail/binutils/attachments/20090205/ba34182b/attachment.bin>


More information about the Binutils mailing list