PGCC and the kernel

John Twilley (jmt@NDA.COM)
28 Jul 1997 14:26:51 -0400


I'm using the newest version of PGCC I can find. Here's the version
string:

gcc driver version 2.7.2p snapshot 970522 executing gcc version 2.7.2p

I'd like to know if there are any tweaks I should make to kernel
makefiles other than changing '-O2' to '-O6 -frisc'.

Also, the kernel compiles fine except for arch/i386/lib/checksum.c,
where it fails with this error:

gcc -D__KERNEL__ -I/usr/src/linux/include -Wall -Wno-sign-compare
-Wstrict-prototypes -O5 -frisc -fomit-frame-pointer -D__SMP__ -pipe
-fno-strength-reduce -mpentium -malign-loops=2 -malign-jumps=2
-malign-functions=2 -DCPU=586 -D__SMP__ -c -o checksum.o checksum.c
{standard input}: Assembler messages:
{standard input}:509: Fatal error: Symbol end_of_body already defined.

It compiles fine with -O2. I'm going to try all the different
optimizations between -O2 and -O6 just to see what's breaking, and
report it to the PGCC crew. Has anyone else noticed this?

This error covers at least 2.0.30, 2.1.45, and 2.1.47.

If anyone needs more information from me, please let me know.

Jack.

-- 
John Twilley | Net Daemons Associates, Inc.       | Voice: (617) 937-3338
jmt@nda.com  | 800 West Cummings Park, Suite 2050 | Fax:   (617) 937-3775
Coke & Twix! | Woburn, MA 01801                   | Pager: (617) 671-7580