Skip to contentSkip to conversation

ppc: Remove -fno-strict-aliasing

PATCH New Kumar Gala 2 participants 4 messages Sep 1, 2009 – Sep 4, 2009 Arm Samsung Exynos

lore
Share & tools
lore

Kumar Gala

author
#0 lore raw

PATCH 1/2 ppc: Remove -fno-strict-aliasing

-fno-strict-aliasing is hidding warnings.

---
 board/tqc/tqm5200/Makefile |    2 +-
 cpu/74xx_7xx/config.mk     |    2 +-
 cpu/mpc824x/config.mk      |    2 +-
 cpu/mpc8xx/config.mk       |    2 +-
 cpu/ppc4xx/config.mk       |    2 +-
 5 files changed, 5 insertions(+), 5 deletions(-)
board/tqc/tqm5200/Makefile +1 -1
index ce125e2..55c4d99 100644
@@ -41,7 +41,7 @@ distclean:	clean
 	rm -f $(LIB) core *.bak $(obj).depend
 
 cam5200_flash.o:	cam5200_flash.c
-	$(CC) $(CFLAGS) -fno-strict-aliasing -c -o $@ $<
+	$(CC) $(CFLAGS) -c -o $@ $<
 
 #########################################################################
 
cpu/74xx_7xx/config.mk +1 -1
index 324f62b..d589210 100644
@@ -21,6 +21,6 @@
 # MA 02111-1307 USA
 #
 
-PLATFORM_RELFLAGS += -fPIC -ffixed-r14 -meabi -fno-strict-aliasing
+PLATFORM_RELFLAGS += -fPIC -ffixed-r14 -meabi
 
 PLATFORM_CPPFLAGS += -DCONFIG_74xx_7xx -ffixed-r2 -mstring
cpu/mpc824x/config.mk +1 -1
index 1bb0487..b607fee 100644
@@ -21,7 +21,7 @@
 # MA 02111-1307 USA
 #
 
-PLATFORM_RELFLAGS += -fPIC -ffixed-r14 -meabi -fno-strict-aliasing
+PLATFORM_RELFLAGS += -fPIC -ffixed-r14 -meabi
 
 PLATFORM_CPPFLAGS += -DCONFIG_MPC824X -ffixed-r2 -mstring -mcpu=603e -msoft-float
 
cpu/mpc8xx/config.mk +1 -1
index 6031e7f..2b3d545 100644
@@ -21,6 +21,6 @@
 # MA 02111-1307 USA
 #
 
-PLATFORM_RELFLAGS += -fPIC -ffixed-r14 -meabi -fno-strict-aliasing
+PLATFORM_RELFLAGS += -fPIC -ffixed-r14 -meabi
 
 PLATFORM_CPPFLAGS += -DCONFIG_8xx -ffixed-r2 -mstring -mcpu=860 -msoft-float
cpu/ppc4xx/config.mk +1 -1
index baa97a4..00ad39b 100644
@@ -21,7 +21,7 @@
 # MA 02111-1307 USA
 #
 
-PLATFORM_RELFLAGS += -fPIC -ffixed-r14 -meabi -fno-strict-aliasing
+PLATFORM_RELFLAGS += -fPIC -ffixed-r14 -meabi
 PLATFORM_CPPFLAGS += -DCONFIG_4xx -ffixed-r2 -mstring -msoft-float
 
 cfg=$(shell grep configs $(OBJTREE)/include/config.h | sed 's/.*<\(configs.*\)>/\1/')
Signature · 1 line
1.6.0.6
author
#1 lore raw

PATCH 2/2 arm: Remove -fno-strict-aliasing

-fno-strict-aliasing is hidding warnings.

---
 cpu/arm1136/config.mk           |    3 +--
 cpu/arm1176/config.mk           |    3 +--
 cpu/arm1176/s3c64xx/config.mk   |    3 +--
 cpu/arm720t/config.mk           |    3 +--
 cpu/arm920t/config.mk           |    3 +--
 cpu/arm925t/config.mk           |    3 +--
 cpu/arm926ejs/config.mk         |    3 +--
 cpu/arm926ejs/davinci/config.mk |    3 +--
 cpu/arm946es/config.mk          |    3 +--
 cpu/arm_cortexa8/config.mk      |    3 +--
 cpu/arm_intcm/config.mk         |    3 +--
 cpu/ixp/config.mk               |    3 +--
 cpu/lh7a40x/config.mk           |    3 +--
 cpu/pxa/config.mk               |    3 +--
 cpu/s3c44b0/config.mk           |    3 +--
 cpu/sa1100/config.mk            |    3 +--
 16 files changed, 16 insertions(+), 32 deletions(-)
cpu/arm1136/config.mk +1 -2
index 61d5a38..3e68535 100644
@@ -20,8 +20,7 @@
 # Foundation, Inc., 59 Temple Place, Suite 330, Boston,
 # MA 02111-1307 USA
 #
-PLATFORM_RELFLAGS += -fno-strict-aliasing  -fno-common -ffixed-r8 \
-	-msoft-float
+PLATFORM_RELFLAGS += -fno-common -ffixed-r8 -msoft-float
 
 # Make ARMv5 to allow more compilers to work, even though its v6.
 PLATFORM_CPPFLAGS += -march=armv5
cpu/arm1176/config.mk +1 -2
index a31c7b0..14346cf 100644
@@ -20,8 +20,7 @@
 # Foundation, Inc., 59 Temple Place, Suite 330, Boston,
 # MA 02111-1307 USA
 #
-PLATFORM_RELFLAGS += -fno-strict-aliasing  -fno-common -ffixed-r8 \
-	-msoft-float
+PLATFORM_RELFLAGS += -fno-common -ffixed-r8 -msoft-float
 
 # Make ARMv5 to allow more compilers to work, even though its v6.
 PLATFORM_CPPFLAGS += -march=armv5t
cpu/arm1176/s3c64xx/config.mk +1 -2
index a31c7b0..14346cf 100644
@@ -20,8 +20,7 @@
 # Foundation, Inc., 59 Temple Place, Suite 330, Boston,
 # MA 02111-1307 USA
 #
-PLATFORM_RELFLAGS += -fno-strict-aliasing  -fno-common -ffixed-r8 \
-	-msoft-float
+PLATFORM_RELFLAGS += -fno-common -ffixed-r8 -msoft-float
 
 # Make ARMv5 to allow more compilers to work, even though its v6.
 PLATFORM_CPPFLAGS += -march=armv5t
cpu/arm720t/config.mk +1 -2
index 74d5283..3844c62 100644
@@ -22,8 +22,7 @@
 # MA 02111-1307 USA
 #
 
-PLATFORM_RELFLAGS += -fno-strict-aliasing  -fno-common -ffixed-r8 \
-	-msoft-float
+PLATFORM_RELFLAGS +=  -fno-common -ffixed-r8 -msoft-float
 
 PLATFORM_CPPFLAGS += -march=armv4 -mtune=arm7tdmi
 # =========================================================================
cpu/arm920t/config.mk +1 -2
index a43b156..8f6c1a3 100644
@@ -21,8 +21,7 @@
 # MA 02111-1307 USA
 #
 
-PLATFORM_RELFLAGS += -fno-strict-aliasing  -fno-common -ffixed-r8 \
-	-msoft-float
+PLATFORM_RELFLAGS += -fno-common -ffixed-r8 -msoft-float
 
 PLATFORM_CPPFLAGS += -march=armv4
 # =========================================================================
cpu/arm925t/config.mk +1 -2
index a43b156..8f6c1a3 100644
@@ -21,8 +21,7 @@
 # MA 02111-1307 USA
 #
 
-PLATFORM_RELFLAGS += -fno-strict-aliasing  -fno-common -ffixed-r8 \
-	-msoft-float
+PLATFORM_RELFLAGS += -fno-common -ffixed-r8 -msoft-float
 
 PLATFORM_CPPFLAGS += -march=armv4
 # =========================================================================
cpu/arm926ejs/config.mk +1 -2
index 90eb3c0..f8ef90f 100644
@@ -21,8 +21,7 @@
 # MA 02111-1307 USA
 #
 
-PLATFORM_RELFLAGS += -fno-strict-aliasing  -fno-common -ffixed-r8 \
-	-msoft-float
+PLATFORM_RELFLAGS += -fno-common -ffixed-r8 -msoft-float
 
 PLATFORM_CPPFLAGS += -march=armv5te
 # =========================================================================
cpu/arm926ejs/davinci/config.mk +1 -2
index 7757be3..565adda 100644
@@ -21,8 +21,7 @@
 # MA 02111-1307 USA
 #
 
-PLATFORM_RELFLAGS += -fno-strict-aliasing  -fno-common -ffixed-r8 \
-	-msoft-float
+PLATFORM_RELFLAGS += -fno-common -ffixed-r8 -msoft-float
 
 PLATFORM_CPPFLAGS += -march=armv5te
 # =========================================================================
cpu/arm946es/config.mk +1 -2
index a81321b..e783f69 100644
@@ -21,8 +21,7 @@
 # MA 02111-1307 USA
 #
 
-PLATFORM_RELFLAGS += -fno-strict-aliasing  -fno-common -ffixed-r8 \
-	 -msoft-float
+PLATFORM_RELFLAGS += -fno-common -ffixed-r8 -msoft-float
 
 PLATFORM_CPPFLAGS +=  -march=armv4
 # =========================================================================
cpu/arm_cortexa8/config.mk +1 -2
index da5ee16..49ac9c7 100644
@@ -20,8 +20,7 @@
 # Foundation, Inc., 59 Temple Place, Suite 330, Boston,
 # MA 02111-1307 USA
 #
-PLATFORM_RELFLAGS += -fno-strict-aliasing -fno-common -ffixed-r8 \
-		     -msoft-float
+PLATFORM_RELFLAGS += -fno-common -ffixed-r8 -msoft-float
 
 # Make ARMv5 to allow more compilers to work, even though its v7a.
 PLATFORM_CPPFLAGS += -march=armv5
cpu/arm_intcm/config.mk +1 -2
index a81321b..e783f69 100644
@@ -21,8 +21,7 @@
 # MA 02111-1307 USA
 #
 
-PLATFORM_RELFLAGS += -fno-strict-aliasing  -fno-common -ffixed-r8 \
-	 -msoft-float
+PLATFORM_RELFLAGS += -fno-common -ffixed-r8 -msoft-float
 
 PLATFORM_CPPFLAGS +=  -march=armv4
 # =========================================================================
cpu/ixp/config.mk +1 -2
index 2c33b40..deca3f4 100644
@@ -24,8 +24,7 @@
 
 BIG_ENDIAN = y
 
-PLATFORM_RELFLAGS += -fno-strict-aliasing  -fno-common -ffixed-r8 \
-	-msoft-float -mbig-endian
+PLATFORM_RELFLAGS += -fno-common -ffixed-r8 -msoft-float -mbig-endian
 
 PLATFORM_CPPFLAGS += -mbig-endian -march=armv5te -mtune=strongarm1100
 # =========================================================================
cpu/lh7a40x/config.mk +1 -2
index 27bc481..47b2b7b 100644
@@ -21,8 +21,7 @@
 # MA 02111-1307 USA
 #
 
-PLATFORM_RELFLAGS += -fno-strict-aliasing  -fno-common -ffixed-r8 \
-	-msoft-float
+PLATFORM_RELFLAGS += -fno-common -ffixed-r8 -msoft-float
 
 PLATFORM_CPPFLAGS += -march=armv4
 # =========================================================================
cpu/pxa/config.mk +1 -2
index f360478..a05d69c 100644
@@ -22,8 +22,7 @@
 # MA 02111-1307 USA
 #
 
-PLATFORM_RELFLAGS += -fno-strict-aliasing  -fno-common -ffixed-r8 \
-	-msoft-float
+PLATFORM_RELFLAGS += -fno-common -ffixed-r8 -msoft-float
 
 PLATFORM_CPPFLAGS += -march=armv5te -mtune=xscale
 # =========================================================================
cpu/s3c44b0/config.mk +1 -2
index 3623f25..7454d72 100644
@@ -22,8 +22,7 @@
 # MA 02111-1307 USA
 #
 
-PLATFORM_RELFLAGS += -fno-strict-aliasing  -fno-common -ffixed-r8 \
-	-msoft-float
+PLATFORM_RELFLAGS += -fno-common -ffixed-r8 -msoft-float
 
 PLATFORM_CPPFLAGS += -march=armv4 -mtune=arm7tdmi -msoft-float
 # =========================================================================
cpu/sa1100/config.mk +1 -2
index 553cd0c..6f21f41 100644
@@ -22,8 +22,7 @@
 # MA 02111-1307 USA
 #
 
-PLATFORM_RELFLAGS += -fno-strict-aliasing  -fno-common -ffixed-r8 \
-	-msoft-float
+PLATFORM_RELFLAGS += -fno-common -ffixed-r8 -msoft-float
 
 PLATFORM_CPPFLAGS += -march=armv4 -mtune=strongarm1100
 # =========================================================================
Signature · 1 line
1.6.0.6
#3 lore raw

PATCH 1/2 ppc: Remove -fno-strict-aliasing

In reply to Kumar Gala

Dear Kumar Gala,

Quoted 10 lines · In message <[email protected]> you…

-fno-strict-aliasing is hidding warnings.

---
 board/tqc/tqm5200/Makefile |    2 +-
 cpu/74xx_7xx/config.mk     |    2 +-
 cpu/mpc824x/config.mk      |    2 +-
 cpu/mpc8xx/config.mk       |    2 +-
 cpu/ppc4xx/config.mk       |    2 +-
 5 files changed, 5 insertions(+), 5 deletions(-)

Applied, thanks.

Best regards,

Wolfgang Denk

Signature · 5 lines
DENX Software Engineering GmbH,     MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de
Suffocating together ... would create heroic camaraderie.
	-- Khan Noonian Singh, "Space Seed", stardate 3142.8
#2 lore raw

PATCH 2/2 arm: Remove -fno-strict-aliasing

In reply to Kumar Gala

Dear Kumar Gala,

Quoted 13 lines · In message <[email protected]> you…

-fno-strict-aliasing is hidding warnings.

---
 cpu/arm1136/config.mk           |    3 +--
 cpu/arm1176/config.mk           |    3 +--
 cpu/arm1176/s3c64xx/config.mk   |    3 +--
 cpu/arm720t/config.mk           |    3 +--
 cpu/arm920t/config.mk           |    3 +--
 cpu/arm925t/config.mk           |    3 +--
 cpu/arm926ejs/config.mk         |    3 +--
 cpu/arm926ejs/davinci/config.mk |    3 +--
 cpu/arm946es/config.mk          |    3 +--
Quoted 8 lines
 cpu/arm_cortexa8/config.mk      |    3 +--
 cpu/arm_intcm/config.mk         |    3 +--
 cpu/ixp/config.mk               |    3 +--
 cpu/lh7a40x/config.mk           |    3 +--
 cpu/pxa/config.mk               |    3 +--
 cpu/s3c44b0/config.mk           |    3 +--
 cpu/sa1100/config.mk            |    3 +--
 16 files changed, 16 insertions(+), 32 deletions(-)

Applied, thanks.

Best regards,

Wolfgang Denk

Signature · 6 lines
DENX Software Engineering GmbH,     MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de
Ninety-Ninety Rule of Project Schedules:
        The first ninety percent of the task takes ninety percent of
the time, and the last ten percent takes the other ninety percent.