Closed Bug 293366 Opened 20 years ago Closed 17 years ago

enable-optimize=-O2 with MS VC breaks CSS support

Categories

(Core :: CSS Parsing and Computation, defect)

x86
Windows 2000
defect
Not set
normal

Tracking

()

RESOLVED WORKSFORME

People

(Reporter: mcsmurf, Unassigned)

References

()

Details

When you compile Mozilla (or Firefox) with MS VC 6.0 (with SP5 and PP of course)
and enable-optimize=-O2, the CSS support seems to break. See Attachment 139836 [details]
for a screenshot.
The code that causes this can be found somewhere in
CSSParserImpl::DoTransferTempData in nsCSSParser.cpp. If you put #pragma
optimize("", off) [...] #pragma optimize("", on) around the function, the
problem goes away.
Blocks: 136999
It works for me with Visual Studio .NET 2003 and Visual Studio 2005 Beta 2
Assignee: dbaron → nobody
QA Contact: ian → style-system
WFM as well. Given that trunk building with VC6 isn't supported and all supported MSVC versions do work with -O2, resolving WORKSFORME.
Status: NEW → RESOLVED
Closed: 17 years ago
Resolution: --- → WORKSFORME
You need to log in before you can comment on or make changes to this bug.