Subject: strange gcc
To: None <current-users@NetBSD.ORG>
From: Carsten Hammer <chammer@post.uni-bielefeld.de>
List: current-users
Date: 03/26/1997 10:17:44
Hi,
does NetBSD have a file 

/usr/src/lib/libc/hash/sha1.c ?

I experience very strange compilation times with -fpic and -O on 
OpenBSD (50 times slower than without). This is gcc 2.7.2.1 and i don't 
really think this is an effect of the os but would like to learn about it
on NetBSD. Unfortunatly i only track the Kernel sources of NetBSD, 
so i cant test it myself.
The object file seems to be ok but i wonder if this effect is expected
or not.
This machine is a P133.

bash$ time gcc -o /tmp/out /usr/src/lib/libc/hash/sha1.c -c
        5.28 real         2.74 user         0.14 sys
bash$ time gcc -o /tmp/out /usr/src/lib/libc/hash/sha1.c -c -fpic
       12.71 real         2.69 user         0.18 sys
bash$ time gcc -o /tmp/out /usr/src/lib/libc/hash/sha1.c -c -fpic -O
      868.11 real       146.05 user         2.03 sys
bash$ time gcc -o /tmp/out /usr/src/lib/libc/hash/sha1.c -c -O
       10.34 real         3.49 user         0.18 sys

ciao
Carsten