Print this page
5196 The cw wrapper restricts gcc to -O2

@@ -19,10 +19,11 @@
 #
 
 # Copyright (c) 2005, 2010, Oracle and/or its affiliates. All rights reserved.
 # Copyright (c) 2012 Nexenta Systems, Inc. All rights reserved.
 # Copyright (c) 2013 Andrew Stormont.  All rights reserved.
+# Copyright 2014 Gary Mills
 
 #
 #       This makefile contains the common definitions for all intel
 #       implementation architecture independent modules.
 #

@@ -114,12 +115,12 @@
 
 CFLAGS_XARCH_32         = $(i386_CFLAGS)
 CFLAGS_XARCH_64         = $(amd64_CFLAGS)
 CFLAGS_XARCH            = $(CFLAGS_XARCH_$(CLASS))
 
-COPTFLAG_32             = $(COPTFLAG)
-COPTFLAG_64             = $(COPTFLAG64)
+COPTFLAG_32             = -_gcc=-fno-toplevel-reorder $(COPTFLAG)
+COPTFLAG_64             = -_gcc=-fno-toplevel-reorder $(COPTFLAG64)
 COPTIMIZE               = $(COPTFLAG_$(CLASS))
 
 CFLAGS                  = $(CFLAGS_XARCH)
 CFLAGS                  += $(COPTIMIZE)
 CFLAGS                  += $(INLINES) -D_ASM_INLINES