changeset 2843:e6d5126cb479

Work around GCC 4.3 problem - simplify memcpy() call - reported by Jose Vasconcellos
author gthomas
date Wed, 04 Mar 2009 17:23:47 +0000
parents 0c230453dd02
children c71ab84ece95
files packages/redboot/current/ChangeLog packages/redboot/current/src/fconfig.c
diffstat 2 files changed, 6 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/packages/redboot/current/ChangeLog
+++ b/packages/redboot/current/ChangeLog
@@ -1,3 +1,8 @@
+2009-03-04  Gary Thomas  <gary@mlbassoc.com>
+
+	* src/fconfig.c (get_config): Simplify memcpy() call to
+	work around GCC 4.3 code generation error.  BZ#1000672
+
 2009-02-20  Jonathan Larmour  <jifl@eCosCentric.com>
 
 	* src/flash.c (do_flash_init): Call cyg_flash_init() with
--- a/packages/redboot/current/src/fconfig.c
+++ b/packages/redboot/current/src/fconfig.c
@@ -385,7 +385,7 @@ get_config(char *dp, char *title, int li
         break;
 #ifdef CYGPKG_REDBOOT_NETWORKING
     case CONFIG_IP:
-        memcpy(&hold_ip_val.s_addr, &((in_addr_t *)val_ptr)->s_addr, sizeof(in_addr_t));
+        memcpy(&hold_ip_val, val_ptr, sizeof(in_addr_t));
         if (!_gethostbyname(line, &new_ip_val)) {
             return CONFIG_BAD;
         }