This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Re: gcc compiles assert() to code that requires linking with gcc
- To: martin at xemacs dot org
- Subject: Re: gcc compiles assert() to code that requires linking with gcc
- From: "Martin v. Loewis" <martin at loewis dot home dot cs dot tu-berlin dot de>
- Date: Sun, 25 Jun 2000 21:59:42 +0200
- CC: bug-gcc at gnu dot org
- References: <14677.51452.374640.308424@mule.m17n.org>
> 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