From d567df02b9f3e7d2e7e78b3c2907ecad9aa4bbd4 Mon Sep 17 00:00:00 2001 From: =?utf8?q?=C3=98yvind=20Harboe?= Date: Tue, 28 Jun 2011 18:35:34 +0200 Subject: [PATCH] dsp5680xx: disable for now, it generates warnings Use "git revert " to revert this commit, then build and repair and post patch to the mailing list. Warnings generated with: nios2-elf-gcc (GCC) 3.4.6 (Altera Nios II 9.1 b222) openocd/src/target/dsp5680xx.c: In function 'eonce_rx_upper_data': openocd/src/target/dsp5680xx.c:252: warning: cast increases required alignment of target type openocd/src/target/dsp5680xx.c: In function 'eonce_rx_lower_data': openocd/src/target/dsp5680xx.c:268: warning: cast increases required alignment of target type openocd/src/target/dsp5680xx.c: In function 'eonce_pc_store': openocd/src/target/dsp5680xx.c:508: warning: dereferencing type-punned pointer will break strict-aliasing rules openocd/src/target/dsp5680xx.c: In function 'dsp5680xx_read': openocd/src/target/dsp5680xx.c:736: warning: cast increases required alignment of target type openocd/src/target/dsp5680xx.c:737: warning: cast increases required alignment of target type openocd/src/target/dsp5680xx.c: In function 'dsp5680xx_write_8': openocd/src/target/dsp5680xx.c:823: warning: cast increases required alignment of target type openocd/src/target/dsp5680xx.c: In function 'dsp5680xx_write': openocd/src/target/dsp5680xx.c:938: warning: cast increases required alignment of target type openocd/src/target/dsp5680xx.c:941: warning: cast increases required alignment of target type openocd/src/target/dsp5680xx.c: In function 'dsp5680xx_f_wr': openocd/src/target/dsp5680xx.c:1355: warning: cast increases required alignment of target type --- src/flash/nor/Makefile.am | 4 +++- src/flash/nor/drivers.c | 5 +++-- src/target/Makefile.am | 6 ++++-- src/target/target.c | 5 +++-- 4 files changed, 13 insertions(+), 7 deletions(-) diff --git a/src/flash/nor/Makefile.am b/src/flash/nor/Makefile.am index 98460af7..41fb5649 100644 --- a/src/flash/nor/Makefile.am +++ b/src/flash/nor/Makefile.am @@ -30,9 +30,11 @@ NOR_DRIVERS = \ str9x.c \ str9xpec.c \ tms470.c \ - dsp5680xx_flash.c \ virtual.c +# Disabled for now, it generates warnings +# dsp5680xx_flash.c + noinst_HEADERS = \ core.h \ cfi.h \ diff --git a/src/flash/nor/drivers.c b/src/flash/nor/drivers.c index 52febf17..637c63b1 100644 --- a/src/flash/nor/drivers.c +++ b/src/flash/nor/drivers.c @@ -43,7 +43,7 @@ extern struct flash_driver faux_flash; extern struct flash_driver virtual_flash; extern struct flash_driver stmsmi_flash; extern struct flash_driver em357_flash; -extern struct flash_driver dsp5680xx_flash; +//extern struct flash_driver dsp5680xx_flash; /** * The list of built-in flash drivers. @@ -72,7 +72,8 @@ static struct flash_driver *flash_drivers[] = { &virtual_flash, &stmsmi_flash, &em357_flash, - &dsp5680xx_flash, + // Disabled for now, it generates warnings + //&dsp5680xx_flash, NULL, }; diff --git a/src/target/Makefile.am b/src/target/Makefile.am index 27ad054f..2de06463 100644 --- a/src/target/Makefile.am +++ b/src/target/Makefile.am @@ -33,8 +33,10 @@ libtarget_la_SOURCES = \ $(MIPS32_SRC) \ avrt.c \ dsp563xx.c \ - dsp563xx_once.c \ - dsp5680xx.c + dsp563xx_once.c + +# This file generates warnings, disabled for now, see also target.c +# dsp5680xx.c TARGET_CORE_SRC = \ algorithm.c \ diff --git a/src/target/target.c b/src/target/target.c index 03431560..f62915ef 100644 --- a/src/target/target.c +++ b/src/target/target.c @@ -81,7 +81,7 @@ extern struct target_type arm11_target; extern struct target_type mips_m4k_target; extern struct target_type avr_target; extern struct target_type dsp563xx_target; -extern struct target_type dsp5680xx_target; +//extern struct target_type dsp5680xx_target; extern struct target_type testee_target; extern struct target_type avr32_ap7k_target; @@ -104,7 +104,8 @@ static struct target_type *target_types[] = &mips_m4k_target, &avr_target, &dsp563xx_target, - &dsp5680xx_target, +// Disabled for now, it generates warnings +// &dsp5680xx_target, &testee_target, &avr32_ap7k_target, NULL, -- 2.39.5