Skip to content

Commit

Permalink
Use std=gnu89, the gcc 4.8 default
Browse files Browse the repository at this point in the history
RTC:176497
Change-Id: Ibac4a602dd0436143a901edaeb13b6a313c5fbba
Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/42653
Tested-by: FSP CI Jenkins <fsp-CI-jenkins+hostboot@us.ibm.com>
Reviewed-by: Martha Broyles <mbroyles@us.ibm.com>
Reviewed-by: Andres A. Lugo-Reyes <aalugore@us.ibm.com>
Reviewed-by: William A. Bryan <wilbryan@us.ibm.com>
  • Loading branch information
wilbryan committed Jun 30, 2017
1 parent 7adb49a commit 6a00709
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 8 deletions.
4 changes: 2 additions & 2 deletions src/occBootLoader/img_defs.mk
Expand Up @@ -5,7 +5,7 @@
#
# OpenPOWER OnChipController Project
#
# Contributors Listed Below - COPYRIGHT 2015,2016
# Contributors Listed Below - COPYRIGHT 2015,2017
# [+] International Business Machines Corp.
#
#
Expand Down Expand Up @@ -226,7 +226,7 @@ PIPE-CFLAGS = -pipe -Wa,-m405
GCC-CFLAGS += -g -Wall -fsigned-char -msoft-float \
-m32 -mbig-endian -mcpu=405 -mmultiple -mstring \
-meabi -msdata=eabi -ffreestanding -fno-common \
-fno-inline-functions-called-once
-fno-inline-functions-called-once -std=gnu89

CFLAGS = -c $(GCC-CFLAGS) $(PIPE-CFLAGS) $(GCC-O-LEVEL) $(INCLUDES)

Expand Down
4 changes: 2 additions & 2 deletions src/occ_405/img_defs.mk
Expand Up @@ -5,7 +5,7 @@
#
# OpenPOWER OnChipController Project
#
# Contributors Listed Below - COPYRIGHT 2015,2016
# Contributors Listed Below - COPYRIGHT 2015,2017
# [+] International Business Machines Corp.
#
#
Expand Down Expand Up @@ -253,7 +253,7 @@ PIPE-CFLAGS = -pipe -Wa,-m405
GCC-CFLAGS += -g -Wall -fsigned-char -msoft-float \
-m32 -mbig-endian -mcpu=405 -mmultiple -mstring \
-meabi -msdata=eabi -ffreestanding -fno-common \
-fno-inline-functions-called-once
-fno-inline-functions-called-once -std=gnu89

CFLAGS = -c $(GCC-CFLAGS) $(PIPE-CFLAGS) $(GCC-O-LEVEL) $(INCLUDES)

Expand Down
6 changes: 4 additions & 2 deletions src/occ_gpe0/img_defs.mk
Expand Up @@ -5,7 +5,7 @@
#
# OpenPOWER OnChipController Project
#
# Contributors Listed Below - COPYRIGHT 2015,2016
# Contributors Listed Below - COPYRIGHT 2015,2017
# [+] International Business Machines Corp.
#
#
Expand Down Expand Up @@ -222,7 +222,8 @@ GCC-CFLAGS += -Wall -fsigned-char -msoft-float \
-ffixed-r22 -ffixed-r23 -ffixed-r24 -ffixed-r25 \
-ffixed-r26 -ffixed-r27 \
-ffixed-cr1 -ffixed-cr2 -ffixed-cr3 -ffixed-cr4 \
-ffixed-cr5 -ffixed-cr6 -ffixed-cr7 -Werror
-ffixed-cr5 -ffixed-cr6 -ffixed-cr7 -Werror \
-std=gnu89

else
PIPE-CFLAGS = -pipe
Expand All @@ -238,6 +239,7 @@ GCC-CFLAGS += -meabi
GCC-CFLAGS += -ffreestanding
GCC-CFLAGS += -fno-common
GCC-CFLAGS += -fno-inline-functions-called-once
GCC-CFLAGS += -std=gnu89
endif

CFLAGS = -c $(GCC-CFLAGS) $(PIPE-CFLAGS) $(GCC-O-LEVEL) $(INCLUDES)
Expand Down
6 changes: 4 additions & 2 deletions src/occ_gpe1/img_defs.mk
Expand Up @@ -5,7 +5,7 @@
#
# OpenPOWER OnChipController Project
#
# Contributors Listed Below - COPYRIGHT 2015,2016
# Contributors Listed Below - COPYRIGHT 2015,2017
# [+] International Business Machines Corp.
#
#
Expand Down Expand Up @@ -222,7 +222,8 @@ GCC-CFLAGS += -Wall -fsigned-char -msoft-float \
-ffixed-r22 -ffixed-r23 -ffixed-r24 -ffixed-r25 \
-ffixed-r26 -ffixed-r27 \
-ffixed-cr1 -ffixed-cr2 -ffixed-cr3 -ffixed-cr4 \
-ffixed-cr5 -ffixed-cr6 -ffixed-cr7 -Werror
-ffixed-cr5 -ffixed-cr6 -ffixed-cr7 -Werror \
-std=gnu89

else
PIPE-CFLAGS = -pipe
Expand All @@ -238,6 +239,7 @@ GCC-CFLAGS += -meabi
GCC-CFLAGS += -ffreestanding
GCC-CFLAGS += -fno-common
GCC-CFLAGS += -fno-inline-functions-called-once
GCC-CFLAGS += -std=gnu89
endif

CFLAGS = -c $(GCC-CFLAGS) $(PIPE-CFLAGS) $(GCC-O-LEVEL) $(INCLUDES)
Expand Down

0 comments on commit 6a00709

Please sign in to comment.