This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


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

Re: PATCH: Make -shared-libgcc default in some situations


>>>>> "Alexandre" == Alexandre Oliva <aoliva@redhat.com> writes:

    Alexandre> It seems to me that init_gcc_specs will always use shared_name -lgcc_s
    Alexandre> in this case:

Nope; init_gcc_specs is never called unless ENABLE_SHARED_LIBGCC is
defined.

I didn't conditionally compile it away because there's no real point.
Instead, following recent discussions, we should make
ENABLE_SHARED_LIBGCC a 0/1-valued thingy, and then GCC should learn to
optimize away static functions that are never called.  (Easy, when we
go to file-at-a-time processing.)

--
Mark Mitchell                   mark@codesourcery.com
CodeSourcery, LLC               http://www.codesourcery.com

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