Bug 5334

Summary: hpd: Size of constant expressions are hard-coded
Product: frysk Reporter: Teresa Thomas <tthomas>
Component: generalAssignee: Unassigned <frysk-bugzilla>
Status: RESOLVED FIXED    
Severity: normal    
Priority: P2    
Version: unspecified   
Target Milestone: ---   
Host: Target:
Build: Last reconfirmed:
Bug Depends on:    
Bug Blocks: 2246    

Description Teresa Thomas 2007-11-15 18:25:38 UTC
Constants created in CExprEvaluator using hardcoded types. Hence their (type)
sizes not consistent with machine.

bash-3.2$ uname -p
i686

---
(fhpd) print sizeof 1
[0.0]
8
---

Expected size of long: 4
Comment 1 Teresa Thomas 2007-11-20 16:07:39 UTC
Marking fixed for now. In the future, ExprSymTab/Config may be required to
provide other type sizes as well.

Commit:

Use word size of machine to create long type, instead of hard coded size of 8 bytes.
    
    frysk-core/frysk/expr/ChangeLog
    2007-11-20  Teresa Thomas  <tthomas@redhat.com>
    
    	* CExprEvaluator.g: Use word size of machine to
    	create long type.
    	* TestbedSymTab.java (getWordSize): Return machine
    	word size.