This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: SCO experiences
- To: Bill Walker <bw at student dot ecok dot edu>
- Subject: Re: SCO experiences
- From: "J. Kean Johnston" <jkj at sco dot com>
- Date: Fri, 3 Oct 1997 12:53:07 -0700 (PDT)
- cc: egcs at cygnus dot com
On Fri, 3 Oct 1997, Bill Walker wrote:
> Experience 3:
>
> I found that the following (bad) usage of command line switches would dump
> core: (it was in a makefile)
>
> gcc -s -c file1.c
> gcc -s -c file2.c
> gcc -s file1.o file2.o <-- dumps core here
>
> When I remade the makefile to do this:
>
> gcc -c file1.c
> gcc -c file2.c
> gcc -s file1.o file2.o
>
If you tried this on 5.0.4, I am not surprised. It depends on the size of
file1.o and file2.o, but there is a known (but currently unfixed) problem
with the SCO linker which causes -s to make it dump core. It is sporadic,
which makes it a bitch to track down. If you have a repeatable, small test
case which exhibits the problem, I'd welcome it so that I can fix the
linker.
As to your comment about size of Emacs, what I suggest you do is this:
a) Compile with -fno-exceptions
b) after building temacs, do a :
strip temacs; mcs -d temacs
Do this with both compilers. If 970929 is still 500K larger, we have a
real problem. If not ... its probably the exception handling code
that increased the size of your executable. Just a guess, but I'd be
interested in the outcome. I'd do it myself if real work didnt prevent
me from doing so :-)
JKJ