From: Ian Lance Taylor Date: Wed, 17 Dec 2014 14:26:55 +0000 (+0000) Subject: mksysinfo: Pass -O to compiler to avoid warnings on CentOS. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=658b028ad0a535d2c5ed9805d56d902b5f82867e;p=gcc.git mksysinfo: Pass -O to compiler to avoid warnings on CentOS. From Uros Bizjak. https://gcc.gnu.org/ml/gcc-patches/2014-12/msg01366.html From-SVN: r218819 --- diff --git a/libgo/Makefile.am b/libgo/Makefile.am index 48114d11d50..380caf53c6b 100644 --- a/libgo/Makefile.am +++ b/libgo/Makefile.am @@ -1812,7 +1812,7 @@ s-syscall_arch: Makefile sysinfo.go: s-sysinfo; @true s-sysinfo: $(srcdir)/mksysinfo.sh config.h - CC="$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(OSCFLAGS)" $(SHELL) $(srcdir)/mksysinfo.sh + CC="$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(OSCFLAGS) -O" $(SHELL) $(srcdir)/mksysinfo.sh $(SHELL) $(srcdir)/mvifdiff.sh tmp-sysinfo.go sysinfo.go $(STAMP) $@ diff --git a/libgo/Makefile.in b/libgo/Makefile.in index 259d134c914..d495bf66dd7 100644 --- a/libgo/Makefile.in +++ b/libgo/Makefile.in @@ -4421,7 +4421,7 @@ s-syscall_arch: Makefile sysinfo.go: s-sysinfo; @true s-sysinfo: $(srcdir)/mksysinfo.sh config.h - CC="$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(OSCFLAGS)" $(SHELL) $(srcdir)/mksysinfo.sh + CC="$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(OSCFLAGS) -O" $(SHELL) $(srcdir)/mksysinfo.sh $(SHELL) $(srcdir)/mvifdiff.sh tmp-sysinfo.go sysinfo.go $(STAMP) $@