This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[LTO][PATCH] Fix zlib.h inclusions in LTO


This patch fixes a bug in zlib header inclusions for LTO.  Without this fix,
LTO builds can fail to find zlib.h on systems that do not have an installed
zlib.

gcc/ChangeLog.lto
2009-05-21  Simon Baldwin  <simonb@google.com>

	* Makefile.in: Added ZLIBINC to lto-compress.o compilation.


Index: gcc/Makefile.in
===================================================================
--- gcc/Makefile.in	(revision 147760)
+++ gcc/Makefile.in	(working copy)
@@ -2082,6 +2082,10 @@ convert.o: convert.c $(CONFIG_H) $(SYSTE
 
 double-int.o: double-int.c $(CONFIG_H) $(SYSTEM_H) coretypes.h $(TM_H) $(TREE_H)
 
+lto-compress.o: lto-compress.c $(CONFIG_H) $(SYSTEM_H) coretypes.h \
+	$(TREE_H) langhooks.h lto-header.h $(LTO_SECTION_OUT_H) lto-compress.h
+	$(CC) -c $(ALL_CFLAGS) $(ALL_CPPFLAGS) $(ZLIBINC) $< $(OUTPUT_OPTION)
+
 lto-stream-debug.o : lto-stream-debug.c $(CONFIG_H) $(SYSTEM_H) coretypes.h \
    $(TOPLEV_H) $(FLAGS_H) $(PARAMS_H) input.h debug.h  $(TREE_H) \
    lto-header.h 
@@ -2118,8 +2122,6 @@ lto-section-out.o : lto-section-out.c $(
    tree-pass.h tree-flow.h $(CGRAPH_H) $(FUNCTION_H) $(GGC_H) $(DIAGNOSTIC_H) \
    except.h debug.h $(TIMEVAR_H) lto-header.h $(LTO_SECTION_OUT_H) output.h \
    dwarf2asm.h dwarf2out.h  $(BITMAP_H) lto-utils.h $(LTO_OPTS_H) lto-compress.h
-lto-compress.o: lto-compress.c $(CONFIG_H) $(SYSTEM_H) coretypes.h \
-   $(TREE_H) langhooks.h lto-header.h $(LTO_SECTION_OUT_H) lto-compress.h
 lto-symtab.o: lto-symtab.c $(LTO_TREE_IN_H) $(CONFIG_H) coretypes.h \
    $(SYSTEM_H) toplev.h $(LTO_TREE_H) $(GGC_H) $(LAMBDA_H) \
    $(GIMPLE_H) $(HASHTAB_H) $(LTO_TREE_IN_H) gt-lto-symtab.h


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]