Closed Bug 487035 Opened 15 years ago Closed 15 years ago

bit field too small

Categories

(Tamarin Graveyard :: Virtual Machine, defect)

defect
Not set
minor

Tracking

(Not tracked)

VERIFIED FIXED

People

(Reporter: tomd, Unassigned)

Details

Attachments

(1 file)

User-Agent:       Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US) AppleWebKit/525.19 (KHTML, like Gecko) Chrome/1.0.154.53 Safari/525.19
Build Identifier: tamarin-central 97a40064f87a 2009-03-27 15:16 -0700

The 2-bit 'pushes' bitfield in struct WordOpcodeAttr in core/wopcodes.h is too small for some of the op codes in core/wopcodes.cpp:  get4locals and get5locals.

'pushes' does not appear to be used anywhere, but this causes a truncation warning with gcc 4.3.3+.

Reproducible: Always

Steps to Reproduce:
1. Build tamarin with gcc 4.3.3+

Actual Results:  
~/tamarin-central/core/wopcodes.cpp:405: warning: large integer implicitly truncated to unsigned type

Expected Results:  
no warning
Attached patch proposed patchSplinter Review
The patch is good.  Do you have commit privileges or do you need me to push it?

(I believe pushes is used by an experimental optimization framework, see bug 460000.  But that framework does not operate on instructions emitted by the peephole optimizer so it was probably not affected by this bug.)
Wow!  A 12-minute response - you guys are quick...
No commit privs - so please push the patch Lars.
-tom-
redux changeset:   1678:51ad5721747d
Status: UNCONFIRMED → RESOLVED
Closed: 15 years ago
Resolution: --- → FIXED
Status: RESOLVED → VERIFIED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: