This is the mail archive of the gcc-bugs@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: gcc compiles assert() to code that requires linking with gcc


> I believe `assert' should be implemented without using libgcc.  After
> all, the native compilers on two platforms do it right.  How would you
> feel if the native compilers were modified so that vendor libraries
> created by that compiler required linking with that compiler as well?

Thanks for your bug report. I believe the feature is by design; code
compiled by gcc in general relies on libgcc being linked e.g. for
emulating certain operations that are not available in machine code.
So compiling code without references to libgcc is not an objective in
GCC.

That said, if you feel this needs to be changed, please submit your
patch to gcc-patches@gcc.gnu.org.

Regards,
Martin

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