public inbox for frysk-bugzilla@sourceware.org
help / color / mirror / Atom feed
* [Bug general/5334] New: hpd: Size of constant expressions are hard-coded
@ 2007-11-15 18:25 tthomas at redhat dot com
  2007-11-20 16:07 ` [Bug general/5334] " tthomas at redhat dot com
  0 siblings, 1 reply; 2+ messages in thread
From: tthomas at redhat dot com @ 2007-11-15 18:25 UTC (permalink / raw)
  To: frysk-bugzilla

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

-- 
           Summary: hpd: Size of constant expressions are hard-coded
           Product: frysk
           Version: unspecified
            Status: NEW
          Severity: normal
          Priority: P2
         Component: general
        AssignedTo: frysk-bugzilla at sourceware dot org
        ReportedBy: tthomas at redhat dot com


http://sourceware.org/bugzilla/show_bug.cgi?id=5334

------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.


^ permalink raw reply	[flat|nested] 2+ messages in thread

* [Bug general/5334] hpd: Size of constant expressions are hard-coded
  2007-11-15 18:25 [Bug general/5334] New: hpd: Size of constant expressions are hard-coded tthomas at redhat dot com
@ 2007-11-20 16:07 ` tthomas at redhat dot com
  0 siblings, 0 replies; 2+ messages in thread
From: tthomas at redhat dot com @ 2007-11-20 16:07 UTC (permalink / raw)
  To: frysk-bugzilla


------- Additional Comments From tthomas at redhat dot com  2007-11-20 16:07 -------
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.

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |FIXED


http://sourceware.org/bugzilla/show_bug.cgi?id=5334

------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2007-11-20 16:07 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-11-15 18:25 [Bug general/5334] New: hpd: Size of constant expressions are hard-coded tthomas at redhat dot com
2007-11-20 16:07 ` [Bug general/5334] " tthomas at redhat dot com

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).