From: Andrew Crabtree Message-Id: <199705191644.AA139310256@typhoon.rose.hp.com> Subject: Recompiling libc with pgcc To: djgpp AT delorie DOT com Date: Mon, 19 May 1997 9:44:15 PDT Precedence: bulk Hello - I've heard that there is some difficulty getting libc to recompile with pentium-gcc. So, I thought I'd post some things to try. First - Most of the flags are passed to the compiler by using as @file include syntax. So, we need to change that file. change [dj_dir]/src/gcc.opt as follows Specify -O6 instead of -O3 (line 2) Add -Wno-sign-compare after the last line This takes care of a lot of the problems. I also had trouble with some of the assembly files not getting run through the pre-processor. I think this must have been a screw-up on my part when unzipping, but I'll describe it anyway. After a make line like so as -o ??? *.s craps out with something like this Error: Invalid character '(' in opcode I had to use windows explorer to change the extension from .s (lowercase) to .S (uppercase). If your plain old dos don't know what happens here. Most of the other cases should be easy to work around. If gcc complains about 'return type default to int' just put an int in as the return type. If gcc complains that 'var foo may be used unitialized in this function' then initialize foo to 0 when declared. I'll add this to the readme for future release and try to work on getting DJ a diff to fix the other problems. Andrew