Stewart Smith | 8b90e5b | 2016-11-03 13:43:24 +1100 | [diff] [blame] | 1 | From bc7b8b21549752274b162c64dbce3c81d20f2cab Mon Sep 17 00:00:00 2001 |
| 2 | From: Stewart Smith <stewart@linux.vnet.ibm.com> |
| 3 | Date: Thu, 25 Aug 2016 20:22:30 +1000 |
| 4 | Subject: [PATCH 03/10] Default to std=gnu++03 |
| 5 | |
| 6 | Seeing as no C++ dialect was previously selected, GCC < 6 defaulted |
| 7 | to GNU++98 as the standard C++ mode. However... it seems that C++03 |
| 8 | is a better match for HostBoot code (confirmed by Patrick Williams |
| 9 | in https://github.com/open-power/hostboot/pull/62#discussion_r76830612 ) |
| 10 | |
| 11 | Change-Id: I6661b5b61319c85c2a90926beb6e2662e96dcf06 |
| 12 | Signed-off-by: Stewart Smith <stewart@linux.vnet.ibm.com> |
| 13 | --- |
| 14 | src/build/mkrules/cflags.env.mk | 2 +- |
| 15 | 1 file changed, 1 insertion(+), 1 deletion(-) |
| 16 | |
| 17 | diff --git a/src/build/mkrules/cflags.env.mk b/src/build/mkrules/cflags.env.mk |
| 18 | index c805999..0bae0ec 100644 |
| 19 | --- a/src/build/mkrules/cflags.env.mk |
| 20 | +++ b/src/build/mkrules/cflags.env.mk |
| 21 | @@ -41,7 +41,7 @@ CFLAGS += $(COMMONFLAGS) -mcpu=power7 -nostdinc -g -mno-vsx -mno-altivec\ |
| 22 | -ffunction-sections -fdata-sections -ffreestanding -mbig-endian |
| 23 | ASMFLAGS += $(COMMONFLAGS) -mcpu=power7 -mbig-endian |
| 24 | CXXFLAGS += $(CFLAGS) -nostdinc++ -fno-rtti -fno-exceptions -Wall \ |
| 25 | - -fuse-cxa-atexit |
| 26 | + -fuse-cxa-atexit -std=gnu++03 |
| 27 | LDFLAGS += --nostdlib --sort-common -EB $(COMMONFLAGS) |
| 28 | |
| 29 | INCFLAGS = $(addprefix -I, $(INCDIR) ) |
| 30 | -- |
| 31 | 2.7.4 |
| 32 | |