первоначальная версия:
Reading specs from c:/djgpp/lib/gcc-lib/djgpp/3.1/specs
Configured with: ../configure i586-pc-msdosdjgpp --prefix=/dev/env/DJDIR --disable-nls
Thread model: single
gcc version 3.1
переход на версию:
Using built-in specs.
Target: djgpp
Configured with: /gnu/gcc-4.10/configure djgpp --prefix=/dev/env/DJDIR --disable-nls --disable-werror --enable-languages=c,c++,fortran,objc,obj-c++,ada
Thread model: single
gcc version 4.1.0
Варнинги следующие
gcc-4.1)
gcc -Wall -W -O2 -nostdinc -fno-builtin -Iinclude -o objs/basio.o -c src/basio.c
gcc -Wall -W -O2 -nostdinc -fno-builtin -Iinclude -o objs/basirq.o -c src/basirq.c
gcc -Wall -W -O2 -nostdinc -fno-builtin -Iinclude -o objs/cons.o -c src/cons.c
src/cons.c: In function 'k_printf':
src/cons.c:104: warning: pointer targets in initialization differ in signedness
src/cons.c: In function 'Read_Ln':
src/cons.c:304: warning: pointer targets in assignment differ in signedness
src/cons.c: In function '_rl':
src/cons.c:320: warning: pointer targets in assignment differ in signedness
gcc -Wall -W -O2 -nostdinc -fno-builtin -Iinclude -o objs/fat12.o -c src/fat12.c
src/fat12.c: In function 'dirF12':
src/fat12.c:186: warning: pointer targets in passing argument 1 of 'findF12' differ in signedness
src/fat12.c:186: warning: pointer targets in passing argument 2 of 'findF12' differ in signedness
src/fat12.c: In function 'createF12':
src/fat12.c:276: warning: pointer targets in passing argument 2 of 'copystr' differ in signedness
gcc -Wall -W -O2 -nostdinc -fno-builtin -Iinclude -o objs/fdd.o -c src/fdd.c
src/fdd.c: In function 'fdc_rw':
src/fdd.c:222: warning: pointer targets in passing argument 1 of 'copystr' differ in signedness
src/fdd.c:222: warning: pointer targets in passing argument 2 of 'copystr' differ in signedness
src/fdd.c:296: warning: pointer targets in passing argument 1 of 'copystr' differ in signedness
src/fdd.c:296: warning: pointer targets in passing argument 2 of 'copystr' differ in signedness
gcc -Wall -W -O2 -nostdinc -fno-builtin -Iinclude -o objs/fman.o -c src/fman.c
gcc -Wall -W -O2 -nostdinc -fno-builtin -Iinclude -o objs/fs.o -c src/fs.c
src/fs.c: In function 'fopen':
src/fs.c:104: warning: pointer targets in passing argument 1 of 'copystr' differ in signedness
src/fs.c:110: warning: pointer targets in passing argument 1 of 'getdn' differ in signedness
src/fs.c:141: warning: pointer targets in passing argument 2 of 'fsys[fs].findf' differ in signedness
src/fs.c: In function 'freadb2':
src/fs.c:197: warning: dereferencing type-punned pointer will break strict-aliasing rules
src/fs.c:198: warning: dereferencing type-punned pointer will break strict-aliasing rules
src/fs.c: In function 'readdir':
src/fs.c:249: warning: pointer targets in passing argument 1 of 'getdn' differ in signedness
src/fs.c: In function 'readdir2':
src/fs.c:282: warning: dereferencing type-punned pointer will break strict-aliasing rules
src/fs.c: In function 'fwriteb2':
src/fs.c:293: warning: dereferencing type-punned pointer will break strict-aliasing rules
src/fs.c:294: warning: dereferencing type-punned pointer will break strict-aliasing rules
src/fs.c: In function 'fsize2':
src/fs.c:301: warning: dereferencing type-punned pointer will break strict-aliasing rules
gcc -Wall -W -O2 -nostdinc -fno-builtin -Iinclude -o objs/hshell.o -c src/hshell.c
src/hshell.c: In function 'printtaskinfo':
src/hshell.c:47: warning: pointer targets in passing argument 1 of 'k_printf' differ in signedness
gcc -Wall -W -O2 -nostdinc -fno-builtin -Iinclude -o objs/kernel.o -c src/kernel.c
src/kernel.c: In function 'getkey2':
src/kernel.c:722: warning: dereferencing type-punned pointer will break strict-aliasing rules
src/kernel.c: In function 'etext':
src/kernel.c:730: warning: dereferencing type-punned pointer will break strict-aliasing rules
src/kernel.c: In function '__rl':
src/kernel.c:805: warning: dereferencing type-punned pointer will break strict-aliasing rules
src/kernel.c: In function 'initdescr':
src/kernel.c:926: warning: pointer targets in passing argument 1 of 'copystr' differ in signedness
src/kernel.c: In function 'loadmodule':
src/kernel.c:943: warning: pointer targets in passing argument 1 of 'fopen' differ in signedness
src/kernel.c: In function 'mountmodfunc':
src/kernel.c:1003: warning: pointer targets in passing argument 1 of 'compareStr' differ in signedness
src/kernel.c:1003: warning: pointer targets in passing argument 2 of 'compareStr' differ in signedness
src/kernel.c: In function 'loadconf':
src/kernel.c:1030: warning: pointer targets in passing argument 1 of 'copystr' differ in signedness
src/kernel.c:1030: warning: pointer targets in passing argument 2 of 'copystr' differ in signedness
src/kernel.c:1034: warning: pointer targets in passing argument 2 of 'freadb' differ in signedness
src/kernel.c:1042: warning: pointer targets in passing argument 1 of 'copystr' differ in signedness
src/kernel.c:1042: warning: pointer targets in passing argument 2 of 'copystr' differ in signedness
src/kernel.c:1052: warning: pointer targets in passing argument 1 of 'copystr' differ in signedness
src/kernel.c:1052: warning: pointer targets in passing argument 2 of 'copystr' differ in signedness
gcc -Wall -W -O2 -nostdinc -fno-builtin -Iinclude -o objs/main.o -c src/main.c
src/main.c: In function 'main':
src/main.c:66: warning: pointer targets in passing argument 1 of 'loadmodule' differ in signedness
src/main.c:67: warning: pointer targets in passing argument 2 of 'mountmodfunc' differ in signedness
src/main.c:68: warning: pointer targets in passing argument 2 of 'mountmodfunc' differ in signedness
src/main.c:87: warning: pointer targets in passing argument 1 of 'loadmodule' differ in signedness
src/main.c:88: warning: pointer targets in passing argument 2 of 'mountmodfunc' differ in signedness
src/main.c:168: warning: pointer targets in passing argument 1 of 'thmc' differ in signedness
gcc -Wall -W -O2 -nostdinc -fno-builtin -Iinclude -o objs/math.o -c src/math.c
gcc -Wall -W -O2 -nostdinc -fno-builtin -Iinclude -o objs/mem.o -c src/mem.c
gcc -Wall -W -O2 -nostdinc -fno-builtin -Iinclude -o objs/pci.o -c src/pci.c
gcc -Wall -W -O2 -nostdinc -fno-builtin -Iinclude -o objs/strings.o -c src/strings.c
nasm -f coff -dUNDERBARS=1 -iinclude/ -o objs/kstart.obj src/kstart.asm
ld -T scripts/krnl1m.ld -nostdlib -o dist/harius objs/kstart.obj objs/basio.o objs/basirq.o objs/cons.o objs/fat12.o objs/fdd.o objs/fman.o objs/fs.o objs/hshell.o objs/kernel.o objs/main.o objs/math.o objs/mem.o objs/pci.o objs/strings.o
strip dist/harius
При компиляции на gcc-3.1 с опцией -pedantic (на соответствие ANSI-C):
gcc -Wall -W -O2 -nostdinc -fno-builtin -Iinclude -pedantic -o objs/basio.o -c src/basio.c
gcc -Wall -W -O2 -nostdinc -fno-builtin -Iinclude -pedantic -o objs/basirq.o -c src/basirq.c
gcc -Wall -W -O2 -nostdinc -fno-builtin -Iinclude -pedantic -o objs/cons.o -c src/cons.c
src/cons.c: In function `k_printf':
src/cons.c:104: warning: pointer targets in initialization differ in signedness
src/cons.c: In function `clean_src':
src/cons.c:280: warning: ISO C89 forbids mixed declarations and code
src/cons.c: In function `Read_Ln':
src/cons.c:304: warning: pointer targets in assignment differ in signedness
src/cons.c: In function `_rl':
src/cons.c:320: warning: pointer targets in assignment differ in signedness
gcc -Wall -W -O2 -nostdinc -fno-builtin -Iinclude -pedantic -o objs/fat12.o -c src/fat12.c
src/fat12.c: In function `dirF12':
src/fat12.c:186: warning: pointer targets in passing arg 1 of `findF12' differ in signedness
src/fat12.c:186: warning: pointer targets in passing arg 2 of `findF12' differ in signedness
src/fat12.c: In function `createF12':
src/fat12.c:276: warning: pointer targets in passing arg 2 of `copystr' differ in signedness
gcc -Wall -W -O2 -nostdinc -fno-builtin -Iinclude -pedantic -o objs/fdd.o -c src/fdd.c
src/fdd.c: In function `fdc_rw':
src/fdd.c:222: warning: pointer targets in passing arg 1 of `copystr' differ in signedness
src/fdd.c:222: warning: pointer targets in passing arg 2 of `copystr' differ in signedness
src/fdd.c:242: warning: ISO C89 forbids mixed declarations and code
src/fdd.c:296: warning: pointer targets in passing arg 1 of `copystr' differ in signedness
src/fdd.c:296: warning: pointer targets in passing arg 2 of `copystr' differ in signedness
gcc -Wall -W -O2 -nostdinc -fno-builtin -Iinclude -pedantic -o objs/fman.o -c src/fman.c
gcc -Wall -W -O2 -nostdinc -fno-builtin -Iinclude -pedantic -o objs/fs.o -c src/fs.c
src/fs.c: In function `fopen':
src/fs.c:104: warning: pointer targets in passing arg 1 of `copystr' differ in signedness
src/fs.c:110: warning: pointer targets in passing arg 1 of `getdn' differ in signedness
src/fs.c:141: warning: pointer targets in passing arg 2 of pointer to function differ in signedness
src/fs.c: In function `readdir':
src/fs.c:249: warning: pointer targets in passing arg 1 of `getdn' differ in signedness
gcc -Wall -W -O2 -nostdinc -fno-builtin -Iinclude -pedantic -o objs/hshell.o -c src/hshell.c
src/hshell.c: In function `printtaskinfo':
src/hshell.c:47: warning: pointer targets in passing arg 1 of `k_printf' differ in signedness
gcc -Wall -W -O2 -nostdinc -fno-builtin -Iinclude -pedantic -o objs/kernel.o -c src/kernel.c
src/kernel.c: In function `switchtask':
src/kernel.c:418: warning: ISO C89 forbids mixed declarations and code
src/kernel.c: In function `newTask':
src/kernel.c:532: warning: ISO C89 forbids mixed declarations and code
src/kernel.c: In function `print_num':
src/kernel.c:576: warning: ISO C89 forbids mixed declarations and code
src/kernel.c: In function `rirq':
src/kernel.c:680: warning: ISO C89 forbids mixed declarations and code
src/kernel.c: In function `initdescr':
src/kernel.c:908: warning: ISO C89 forbids mixed declarations and code
src/kernel.c:926: warning: pointer targets in passing arg 1 of `copystr' differ in signedness
src/kernel.c: In function `loadmodule':
src/kernel.c:943: warning: pointer targets in passing arg 1 of `fopen' differ in signedness
src/kernel.c: In function `mountmodfunc':
src/kernel.c:1003: warning: pointer targets in passing arg 1 of `compareStr' differ in signedness
src/kernel.c:1003: warning: pointer targets in passing arg 2 of `compareStr' differ in signedness
src/kernel.c: In function `loadconf':
src/kernel.c:1030: warning: pointer targets in passing arg 1 of `copystr' differ in signedness
src/kernel.c:1030: warning: pointer targets in passing arg 2 of `copystr' differ in signedness
src/kernel.c:1034: warning: pointer targets in passing arg 2 of `freadb' differ in signedness
src/kernel.c:1042: warning: pointer targets in passing arg 1 of `copystr' differ in signedness
src/kernel.c:1042: warning: pointer targets in passing arg 2 of `copystr' differ in signedness
src/kernel.c:1052: warning: pointer targets in passing arg 1 of `copystr' differ in signedness
src/kernel.c:1052: warning: pointer targets in passing arg 2 of `copystr' differ in signedness
gcc -Wall -W -O2 -nostdinc -fno-builtin -Iinclude -pedantic -o objs/main.o -c src/main.c
src/main.c: In function `main':
src/main.c:66: warning: pointer targets in passing arg 1 of `loadmodule' differ in signedness
src/main.c:67: warning: pointer targets in passing arg 2 of `mountmodfunc' differ in signedness
src/main.c:67: warning: ISO C forbids assignment between function pointer and `void *'
src/main.c:68: warning: pointer targets in passing arg 2 of `mountmodfunc' differ in signedness
src/main.c:68: warning: ISO C forbids assignment between function pointer and `void *'
src/main.c:87: warning: pointer targets in passing arg 1 of `loadmodule' differ in signedness
src/main.c:88: warning: pointer targets in passing arg 2 of `mountmodfunc' differ in signedness
src/main.c:88: warning: ISO C forbids assignment between function pointer and `void *'
src/main.c:168: warning: pointer targets in passing arg 1 of pointer to function differ in signedness
gcc -Wall -W -O2 -nostdinc -fno-builtin -Iinclude -pedantic -o objs/math.o -c src/math.c
gcc -Wall -W -O2 -nostdinc -fno-builtin -Iinclude -pedantic -o objs/mem.o -c src/mem.c
gcc -Wall -W -O2 -nostdinc -fno-builtin -Iinclude -pedantic -o objs/pci.o -c src/pci.c
gcc -Wall -W -O2 -nostdinc -fno-builtin -Iinclude -pedantic -o objs/strings.o -c src/strings.c
nasm -f coff -dUNDERBARS=1 -iinclude/ -o objs/kstart.obj src/kstart.asm
ld -T scripts/krnl1m.ld -nostdlib -o dist/harius objs/kstart.obj objs/basio.o objs/basirq.o objs/cons.o objs/fat12.o objs/fdd.o objs/fman.o objs/fs.o objs/hshell.o objs/kernel.o objs/main.o objs/math.o objs/mem.o objs/pci.o objs/strings.o
strip dist/harius