summaryrefslogtreecommitdiff
path: root/libgo
diff options
context:
space:
mode:
authorian <ian@138bc75d-0d04-0410-961f-82ee72b054a4>2014-12-17 14:26:55 +0000
committerian <ian@138bc75d-0d04-0410-961f-82ee72b054a4>2014-12-17 14:26:55 +0000
commit4e67450f3c5574a3d44bdd6490e39310913fdacb (patch)
tree5b0bc7168770a2ee9798f51c074f47497da658d2 /libgo
parentd0c02882a6ba8f5cebc2f5c90715770eeddd4675 (diff)
downloadgcc-4e67450f3c5574a3d44bdd6490e39310913fdacb.tar.gz
mksysinfo: Pass -O to compiler to avoid warnings on CentOS.
From Uros Bizjak. https://gcc.gnu.org/ml/gcc-patches/2014-12/msg01366.html git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@218819 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libgo')
-rw-r--r--libgo/Makefile.am2
-rw-r--r--libgo/Makefile.in2
2 files changed, 2 insertions, 2 deletions
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) $@