This is the mail archive of the gcc@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: SCO experiences


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



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