This is the mail archive of the binutils@sourceware.org mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH] gold: Add --rosegment-gap option


> 2013-05-10  Roland McGrath  <mcgrathr@google.com>
>
>         * options.h (General_options): Add --rosegment-gap option.
>         * options.cc (finalize): --rosegment-gap implies --rosegment.
>         * layout.cc (set_segment_offsets): Let user option override
>         target->rosegment_gap().


> +                 uint64_t gap = target->rosegment_gap();
> +                 if (parameters->options().user_set_rosegment_gap())
> +                   gap = parameters->options().rosegment_gap();

No need to call target->rosegment_gap() if user_set_rosegment_gap() is
true. Move that call to an else clause.

OK with that change.

-cary


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]