Issue Details (XML | Word | Printable)

Key: PCC-17
Type: Bug Bug
Status: Open Open
Priority: Major Major
Assignee: Unassigned
Reporter: Stuart Cassoff
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
pcc

Integer (and possibly fp) overflows testing Tcl.

Created: 05/Jan/09 02:22 AM   Updated: 10/Aug/14 03:40 PM
Component/s: None
Affects Version/s: None
Fix Version/s: None

File Attachments: 1. File headers.c (3 kB)

Environment: Building the Tcl 8.5 port.


 Description  « Hide
To reproduce, add to ports/lang/tcl/8.5/Makefile:
CONFIGURE_ENV += CC=pcc
Make sure ulimit -s == 8192, or some large enough number to prevent stopping.
$ make regress


 All   Comments   Change History      Sort Order: Descending order - Click to sort in ascending order
Volkmar Klatt added a comment - 10/Aug/14 03:40 PM
concerning floating point:
The very good diagnostic program paranoia.c (http://www.netlib.org/paranoia/paranoia.c) reveales:
"Sticky bit used incorrectly or not at all."
Maybe this is the cause of the floating point issues?

output from paranoia:

...
Checking rounding on multiply, divide and add/subtract.
* is neither chopped nor correctly rounded.
/ is neither chopped nor correctly rounded.
Addition/Subtraction neither rounds nor chops.
Sticky bit used incorrectly or not at all.
FLAW: lack(s) of guard digits or failure(s) to correctly round or chop
(noted above) count as one flaw in the final tally below.
...

(note: on my linux, <stdlib.h> is broken,
as it does not include the necessary <inttypes.h>
so I have to include it explicit to compile paranoia)

Gregory McGarry added a comment - 24/Jan/09 01:19 AM
Here's the file from pcc-test module.


Gregory McGarry added a comment - 23/Jan/09 10:25 PM
Which operating system is this?

It occurred to me that if your system is using the header files from the libpcc library, then there may be incompatibilities which could cause problems.

I will write a test program where we can verify that the headers are correct.