Closed Bug 64067 Opened 24 years ago Closed 23 years ago

mFlags type in nsBlockReflowState tickles Alpha/Linux compiler bug

Categories

(Core :: Layout, defect)

DEC
Linux
defect
Not set
normal

Tracking

()

RESOLVED INVALID

People

(Reporter: msw, Assigned: blizzard)

Details

When compiled with -O, the PRInt16 type of mFlags causes some bitfield
operations to fail.  This ultimately causes misrendering (as max element sizes
aren't calculated because the flag doesn't get set properly.)

Changing the type to PRInt32 is the workaround until the compiler is fixed (a
bug is already filed against our gcc, but I don't know when a fixed compiler
will be released.

It is odd, however, that the flags are #defined as 32 bit values, but mFlags is
16 bit...
changing platform to DEC
Hardware: PC → DEC
I think the best solution here is to build a configure test for this and don't
build if the bad compiler is found.  This compiler bug is pretty serious IMHO
and might cause other bugs to crop up.  There's a work around in my rpm.  When
the fixed compiler is released I'll whip up a compiler test.

This only affects RH 7 users on alpha so our risk is relatively minor.
Assignee: clayton → blizzard
Cross-reference to redhat bugzilla bug on gcc:
http://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=23123
(that's the right one, right?)
New compilers fix this problem.
Status: NEW → RESOLVED
Closed: 23 years ago
Resolution: --- → INVALID
You need to log in before you can comment on or make changes to this bug.