Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/lib/csu/common Revert -O1 hack for GCC 5.3, replaced by work...



details:   https://anonhg.NetBSD.org/src/rev/b496dff46db2
branches:  trunk
changeset: 345613:b496dff46db2
user:      joerg <joerg%NetBSD.org@localhost>
date:      Wed Jun 01 21:24:55 2016 +0000

description:
Revert -O1 hack for GCC 5.3, replaced by workaround in the code.

diffstat:

 lib/csu/common/Makefile.inc |  10 +---------
 1 files changed, 1 insertions(+), 9 deletions(-)

diffs (24 lines):

diff -r 4543741d8bce -r b496dff46db2 lib/csu/common/Makefile.inc
--- a/lib/csu/common/Makefile.inc       Wed Jun 01 21:21:55 2016 +0000
+++ b/lib/csu/common/Makefile.inc       Wed Jun 01 21:24:55 2016 +0000
@@ -1,4 +1,4 @@
-#      $NetBSD: Makefile.inc,v 1.31 2016/05/10 10:23:09 martin Exp $
+#      $NetBSD: Makefile.inc,v 1.32 2016/06/01 21:24:55 joerg Exp $
 
 .include <bsd.own.mk>
 
@@ -17,14 +17,6 @@
 .if ${MKPIC} == "yes"
 OBJS+=         crtbeginS.o
 CFLAGS.crtbegin.c+= -fPIE
-# XXXGCC5 - GCC 5 miscompiles crtbeginS.c on many platforms.  on SPARC it
-# XXXGCC5   emits "clr %g1; call %g1", which is effectively jumping to zero.
-. if defined(HAVE_GCC) && ${HAVE_GCC} == 53 && \
-     !exists(${ARCHDIR}/crtbegin.S)
-CFLAGS.crt0-common.c+= -O1
-CFLAGS.crtbeginS.c+=   -O1
-CFLAGS.crtbegin.c+=    -O1
-. endif
 .endif
 
 .if ${MACHINE_ARCH} == "alpha"



Home | Main Index | Thread Index | Old Index