This is the mail archive of the ecos-patches@sources.redhat.com mailing list for the eCos project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Kludge to work around problem in arm-elf-gcc 3.2 toolchain


While we are waiting for the arm-elf-gcc 3.2 toolchain to be eroded away
from the planets surface, here is a kludge to work around the problem.

For those that want to read more:


http://sources.redhat.com/ml/ecos-patches/2003-09/msg00102.html
http://sources.redhat.com/ml/ecos-patches/2003-08/msg00006.html


Øyvind

Index: ecos/packages/fs/jffs2/current/ChangeLog
===================================================================
RCS file: /cvs/ecos/ecos/packages/fs/jffs2/current/ChangeLog,v
retrieving revision 1.26
diff -a -w -u -r1.26 ChangeLog
--- ecos/packages/fs/jffs2/current/ChangeLog	9 Mar 2004 08:12:08 -0000	1.26
+++ ecos/packages/fs/jffs2/current/ChangeLog	9 Mar 2004 14:44:38 -0000
@@ -1,3 +1,8 @@
+2004-03-09  Oyvind Harboe <oyvind.harboe@zylin.com>
+	
+	* Added a kludge to workaround a problem in arm-elf-gcc 3.2. 
+	Backwards and forwards compatible.
+	
 2004-02-20  Vincent Catros  <Vincent.Catros@elios-informatique.fr>
 
 	* src/fs-ecos.c :
Index: ecos/packages/fs/jffs2/current/src/erase.c
===================================================================
RCS file: /cvs/ecos/ecos/packages/fs/jffs2/current/src/erase.c,v
retrieving revision 1.6
diff -a -w -u -r1.6 erase.c
--- ecos/packages/fs/jffs2/current/src/erase.c	11 Dec 2003 23:33:54 -0000	1.6
+++ ecos/packages/fs/jffs2/current/src/erase.c	9 Mar 2004 14:44:38 -0000
@@ -365,11 +365,12 @@
 		jeb->dirty_size = 0;
 		jeb->wasted_size = 0;
 	} else {
-		struct jffs2_unknown_node marker = {
-			.magic =	cpu_to_je16(JFFS2_MAGIC_BITMASK),
-			.nodetype =	cpu_to_je16(JFFS2_NODETYPE_CLEANMARKER),
-			.totlen =	cpu_to_je32(c->cleanmarker_size)
-		};
+		
+		struct jffs2_unknown_node marker;
+		memset(&marker, 0, sizeof(marker));
+		marker.magic =	cpu_to_je16(JFFS2_MAGIC_BITMASK);
+		marker.nodetype =	cpu_to_je16(JFFS2_NODETYPE_CLEANMARKER);
+		marker.totlen =	cpu_to_je32(c->cleanmarker_size);
 
 		marker.hdr_crc = cpu_to_je32(crc32(0, &marker, sizeof(struct jffs2_unknown_node)-4));
 

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]