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]

[PATCH][GOLD] Fix Mac OSX build breakage due to warnings.


Hi,

    This patch fixes two problems causing OSX build breakage.  The
first issue is that Once::~Once is not declared to be virtual even
though the class Once has a pure virtual method.  The second problem
is due to printf format warning involving uint64_t and format string
%lux.  I built gold for x86_64 and ran all the tests.

-Doug

010-02-22  Doug Kwan  <dougkwan@google.com>

        * gold-threads.h (Once::~Once): Explicitly define virtual destructor.
        * icf.cc (get_section_contents): Cast snprintf argument to long long
        types to avoid warnings due to different uint64_t implementations
        on different hosts.

Attachment: patch-osx-fix.txt
Description: Text document


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