[gs-bugs] [Bug 692171] intel c compiler; problems with ifdef HAVE_INCBIN
bugzilla-daemon at ghostscript.com
bugzilla-daemon at ghostscript.com
Mon Sep 19 07:49:01 UTC 2011
http://bugs.ghostscript.com/show_bug.cgi?id=692171
--- Comment #18 from Hin-Tak Leung <hintak at ghostscript.com> 2011-09-19 07:48:58 UTC ---
(In reply to comment #13)
> >
> > Likely the optimization - try changing/dropping some of the -O3 -xSSE2 -ipo
<snipped>
> maybe optimization has no relation with this bug.
<snipped>
I was right all along. ICCCFLAGS and ICCCXXFLAGS has no effect.
you need to edit CFLAGS on line 14 of Makerules to switch off optimization.
(from -02 to -O0).
You could do:
CC=icc make build=release
<- at this point, the binary is miscompiled
rm build/release/pdf_fontfile.o
(edit line 14 of Makerules to change -O2 to -O0)
<- recompile just "build/release/pdf_fontfile.o" at -O0
CC=icc make build=release
<- this gives a working binary.
-O1 also generates broken binary. You can see the object file is broken by
running objdump -d on it.
Just modifying font_CJK.h does not fix everything - font_base14.h is also
mis-compiled. While removing #ifdef HAVE_INCBIN may work, it is extremely slow
and resource-hungry.
Between speed/resources and correctness, it is probably best finding out what
specific optimization leads to mis-compilation and just switch that particular
option off for intel compiler.
$ icc --version
icc (ICC) 12.0.4 20110427
Copyright (C) 1985-2011 Intel Corporation. All rights reserved.
--
Configure bugmail: http://bugs.ghostscript.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
More information about the gs-bugs
mailing list