Kai Schaetzl wrote:
> Oliver Fromme wrote:
>
> > Bottom line: Try updating your gcc, and/or try compiling
> > that particular file with a lower optimization level
> > (-O0 if everything else fails).
>
> Thanks a lot for the recommendation. Setting CFLAGS=-O1 or -O0 gets it
> going. I looked in the Makefile and configure.status, but didn't find a
> way to apply that flag only for compiling this object file. Anyway, is it
> correct that this is only a compile-time optimization and not a runtime
> optimization of the produced binary? So, the result is just the same, but
> may take a bit longer to compile?
No, the optimization is for the code generation backend.
So the resulting binary _might_ be slower. The difference
between -O2 and -O1 usually isn't large (I've even seen
programs that were actually faster with -O1), but -O0 is
often noticeably slower.
Compiling just that one file with different optimization
should be easy. Basically it works like this:
Build the whole app with the standard optimization and
watch for the file causing the trouble (where it hangs).
Abort with ^C, change to the proper directory if necessary,
copy the compiler call to your shell prompt, replace the
optimization option with the lower one and execute it
manually. Then continue building. The "make" tool will
recognize that the object file is already up to date, and
it will continue compiling the rest of the files with the
standard optimization.
Best regards
Oliver
--
Oliver Fromme, secnetix GmbH & Co. KG, Marktplatz 29, 85567 Grafing b. M.
Handelsregister: Registergericht Muenchen, HRA 74606, Gesch\ufffdftsfuehrung:
secnetix Verwaltungsgesellsch. mbH, Handelsregister: Registergericht M\ufffdn-
chen, HRB 125758, Gesch\ufffdftsf\ufffdhrer: Maik Bachmann, Olaf Erb, Ralf Gebhart
FreeBSD-Dienstleistungen, -Produkte und mehr: http://www.secnetix.de/bsd
"It combines all the worst aspects of C and Lisp: a billion different
sublanguages in one monolithic executable. It combines the power of C
with the readability of PostScript."
-- Jamie Zawinski, when asked: "What's wrong with perl?"