Discussion:
CVS commit: pcc/cc
Iain Hibbert
2012-10-20 20:08:37 UTC
Permalink
Module Name: pcc
Committed By: plunky
Date: Sat Oct 20 20:08:37 UTC 2012

Modified Files:
pcc/cc/ccom: cgram.y pftn.c
pcc/cc/cxxcom: cgram.y cxxcode.c pftn.c

Log Message:
ISFTN() and ISARY() both expand to an compare operation already,
don't compare that to zero, just invert it.. [lint]


To generate a diff of this commit:
cvs rdiff -u -r1.366 -r1.367 pcc/cc/ccom/cgram.y
cvs rdiff -u -r1.359 -r1.360 pcc/cc/ccom/pftn.c
cvs rdiff -u -r1.4 -r1.5 pcc/cc/cxxcom/cgram.y
cvs rdiff -u -r1.3 -r1.4 pcc/cc/cxxcom/cxxcode.c
cvs rdiff -u -r1.6 -r1.7 pcc/cc/cxxcom/pftn.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Iain Hibbert
2012-10-22 08:51:48 UTC
Permalink
Module Name: pcc
Committed By: plunky
Date: Mon Oct 22 08:51:48 UTC 2012

Modified Files:
pcc/cc/ccom: builtins.c
pcc/cc/cxxcom: builtins.c

Log Message:
lint says:
warning: conversion of 'int' to 'char' is out of range [119]

fix this by using unsigned storage for the floating constants data

while here, use const also


To generate a diff of this commit:
cvs rdiff -u -r1.45 -r1.46 pcc/cc/ccom/builtins.c
cvs rdiff -u -r1.3 -r1.4 pcc/cc/cxxcom/builtins.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Iain Hibbert
2012-10-22 08:55:33 UTC
Permalink
Module Name: pcc
Committed By: plunky
Date: Mon Oct 22 08:55:33 UTC 2012

Modified Files:
pcc/cc/ccom: trees.c
pcc/cc/cxxcom: trees.c

Log Message:
remove unused variable 'msk'


To generate a diff of this commit:
cvs rdiff -u -r1.316 -r1.317 pcc/cc/ccom/trees.c
cvs rdiff -u -r1.4 -r1.5 pcc/cc/cxxcom/trees.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Iain Hibbert
2012-10-22 09:03:22 UTC
Permalink
Module Name: pcc
Committed By: plunky
Date: Mon Oct 22 09:03:22 UTC 2012

Modified Files:
pcc/cc/ccom: pass1.h
pcc/cc/cxxcom: pass1.h

Log Message:
remove unused variable declarations: got_type, pragma_renamed & lastloc

* #pragma renamed was removed in ccom, should be in cxxcom also?


To generate a diff of this commit:
cvs rdiff -u -r1.253 -r1.254 pcc/cc/ccom/pass1.h
cvs rdiff -u -r1.4 -r1.5 pcc/cc/cxxcom/pass1.h

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Iain Hibbert
2012-10-22 09:25:40 UTC
Permalink
Module Name: pcc
Committed By: plunky
Date: Mon Oct 22 09:25:40 UTC 2012

Modified Files:
pcc/cc/ccom: pftn.c
pcc/cc/cxxcom: pftn.c

Log Message:
static var lpole is unused (and, the name is also used in init.c)
so remove it.
while here remove the unused next field, as this is a singly linked list


To generate a diff of this commit:
cvs rdiff -u -r1.361 -r1.362 pcc/cc/ccom/pftn.c
cvs rdiff -u -r1.7 -r1.8 pcc/cc/cxxcom/pftn.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Iain Hibbert
2012-10-22 09:29:50 UTC
Permalink
Module Name: pcc
Committed By: plunky
Date: Mon Oct 22 09:29:50 UTC 2012

Modified Files:
pcc/cc/ccom: trees.c
pcc/cc/cxxcom: trees.c

Log Message:
remove set but unused variable tsz [lint]


To generate a diff of this commit:
cvs rdiff -u -r1.319 -r1.320 pcc/cc/ccom/trees.c
cvs rdiff -u -r1.7 -r1.8 pcc/cc/cxxcom/trees.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Loading...