gcc compiles assert() to code that requires linking with gcc

Martin v. Loewis martin@loewis.home.cs.tu-berlin.de
Sun Jun 25 13:04:00 GMT 2000

> 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

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


More information about the Gcc-bugs mailing list