[U-Boot] [PATCH 1/2] ppc: Remove -fno-strict-aliasing

-fno-strict-aliasing is hidding warnings.
Signed-off-by: Kumar Gala galak@kernel.crashing.org --- 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(-)
diff --git a/board/tqc/tqm5200/Makefile b/board/tqc/tqm5200/Makefile index ce125e2..55c4d99 100644 --- a/board/tqc/tqm5200/Makefile +++ b/board/tqc/tqm5200/Makefile @@ -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 $@ $<
#########################################################################
diff --git a/cpu/74xx_7xx/config.mk b/cpu/74xx_7xx/config.mk index 324f62b..d589210 100644 --- a/cpu/74xx_7xx/config.mk +++ b/cpu/74xx_7xx/config.mk @@ -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 diff --git a/cpu/mpc824x/config.mk b/cpu/mpc824x/config.mk index 1bb0487..b607fee 100644 --- a/cpu/mpc824x/config.mk +++ b/cpu/mpc824x/config.mk @@ -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
diff --git a/cpu/mpc8xx/config.mk b/cpu/mpc8xx/config.mk index 6031e7f..2b3d545 100644 --- a/cpu/mpc8xx/config.mk +++ b/cpu/mpc8xx/config.mk @@ -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 diff --git a/cpu/ppc4xx/config.mk b/cpu/ppc4xx/config.mk index baa97a4..00ad39b 100644 --- a/cpu/ppc4xx/config.mk +++ b/cpu/ppc4xx/config.mk @@ -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/')

-fno-strict-aliasing is hidding warnings.
Signed-off-by: Kumar Gala galak@kernel.crashing.org --- 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(-)
diff --git a/cpu/arm1136/config.mk b/cpu/arm1136/config.mk index 61d5a38..3e68535 100644 --- a/cpu/arm1136/config.mk +++ b/cpu/arm1136/config.mk @@ -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 diff --git a/cpu/arm1176/config.mk b/cpu/arm1176/config.mk index a31c7b0..14346cf 100644 --- a/cpu/arm1176/config.mk +++ b/cpu/arm1176/config.mk @@ -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 diff --git a/cpu/arm1176/s3c64xx/config.mk b/cpu/arm1176/s3c64xx/config.mk index a31c7b0..14346cf 100644 --- a/cpu/arm1176/s3c64xx/config.mk +++ b/cpu/arm1176/s3c64xx/config.mk @@ -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 diff --git a/cpu/arm720t/config.mk b/cpu/arm720t/config.mk index 74d5283..3844c62 100644 --- a/cpu/arm720t/config.mk +++ b/cpu/arm720t/config.mk @@ -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 # ========================================================================= diff --git a/cpu/arm920t/config.mk b/cpu/arm920t/config.mk index a43b156..8f6c1a3 100644 --- a/cpu/arm920t/config.mk +++ b/cpu/arm920t/config.mk @@ -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 # ========================================================================= diff --git a/cpu/arm925t/config.mk b/cpu/arm925t/config.mk index a43b156..8f6c1a3 100644 --- a/cpu/arm925t/config.mk +++ b/cpu/arm925t/config.mk @@ -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 # ========================================================================= diff --git a/cpu/arm926ejs/config.mk b/cpu/arm926ejs/config.mk index 90eb3c0..f8ef90f 100644 --- a/cpu/arm926ejs/config.mk +++ b/cpu/arm926ejs/config.mk @@ -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 # ========================================================================= diff --git a/cpu/arm926ejs/davinci/config.mk b/cpu/arm926ejs/davinci/config.mk index 7757be3..565adda 100644 --- a/cpu/arm926ejs/davinci/config.mk +++ b/cpu/arm926ejs/davinci/config.mk @@ -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 # ========================================================================= diff --git a/cpu/arm946es/config.mk b/cpu/arm946es/config.mk index a81321b..e783f69 100644 --- a/cpu/arm946es/config.mk +++ b/cpu/arm946es/config.mk @@ -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 # ========================================================================= diff --git a/cpu/arm_cortexa8/config.mk b/cpu/arm_cortexa8/config.mk index da5ee16..49ac9c7 100644 --- a/cpu/arm_cortexa8/config.mk +++ b/cpu/arm_cortexa8/config.mk @@ -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 diff --git a/cpu/arm_intcm/config.mk b/cpu/arm_intcm/config.mk index a81321b..e783f69 100644 --- a/cpu/arm_intcm/config.mk +++ b/cpu/arm_intcm/config.mk @@ -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 # ========================================================================= diff --git a/cpu/ixp/config.mk b/cpu/ixp/config.mk index 2c33b40..deca3f4 100644 --- a/cpu/ixp/config.mk +++ b/cpu/ixp/config.mk @@ -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 # ========================================================================= diff --git a/cpu/lh7a40x/config.mk b/cpu/lh7a40x/config.mk index 27bc481..47b2b7b 100644 --- a/cpu/lh7a40x/config.mk +++ b/cpu/lh7a40x/config.mk @@ -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 # ========================================================================= diff --git a/cpu/pxa/config.mk b/cpu/pxa/config.mk index f360478..a05d69c 100644 --- a/cpu/pxa/config.mk +++ b/cpu/pxa/config.mk @@ -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 # ========================================================================= diff --git a/cpu/s3c44b0/config.mk b/cpu/s3c44b0/config.mk index 3623f25..7454d72 100644 --- a/cpu/s3c44b0/config.mk +++ b/cpu/s3c44b0/config.mk @@ -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 # ========================================================================= diff --git a/cpu/sa1100/config.mk b/cpu/sa1100/config.mk index 553cd0c..6f21f41 100644 --- a/cpu/sa1100/config.mk +++ b/cpu/sa1100/config.mk @@ -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 # =========================================================================

Dear Kumar Gala,
In message 1251822285-29417-2-git-send-email-galak@kernel.crashing.org you wrote:
-fno-strict-aliasing is hidding warnings.
Signed-off-by: Kumar Gala galak@kernel.crashing.org
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(-)
Applied, thanks.
Best regards,
Wolfgang Denk

Dear Kumar Gala,
In message 1251822285-29417-1-git-send-email-galak@kernel.crashing.org you wrote:
-fno-strict-aliasing is hidding warnings.
Signed-off-by: Kumar Gala galak@kernel.crashing.org
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
participants (2)
-
Kumar Gala
-
Wolfgang Denk