Created attachment 209500 [details]
$ pcc -I
Segmentation fault (core dumped)
$ gdb --args pcc -I
GNU gdb (GDB) 8.2 [GDB v8.2 for FreeBSD]
Starting program: /usr/local/bin/pcc -I
Program received signal SIGSEGV, Segmentation fault.
0x28205c1d in strlen () from /lib/libc.so.7
#0 0x28205c1d in strlen () from /lib/libc.so.7
#1 0x28127bd0 in strdup () from /lib/libc.so.7
#2 0x0804c3ff in ?? ()
#3 0x0804c0e4 in ?? ()
#4 0x08049b03 in ?? ()
#5 0x08048d6b in ?? ()
#6 0x08048c38 in ?? ()
#7 0x00000000 in ?? ()
The attached patch fix the incorrect comparison of counter 'lac', in function 'nxtopt'; it also changes the loop control statement to prevent accidently lowering 'lac' to an negative value.
The patch was merged with the previous patch for same source file 'cc/cc/cc.c'.
Created attachment 209501 [details]
lang.pcc.files.patch-cc_cc_cc.c.diff (svn diff)
Use a SVN diff file instead.