This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Fix building with Sun CC breakage 2.
- From: "Pedro Alves" <pedro_alves at portugalmail dot pt>
- To: gdb-patches at sourceware dot org
- Date: Thu, 25 Oct 2007 15:49:07 +0100
- Subject: Fix building with Sun CC breakage 2.
Hi,
I also needed this, otherwise I'd get an ICE:
cc -c -g -I. -I../../gdb-6.7.0.20071025/gdb
-I../../gdb-6.7.0.20071025/gdb/config
-DLOCALEDIR="\"/usr/local/share/locale\"" -DHAVE_CONFIG_H
-I../../gdb-6.7.0.20071025/gdb/../include/opcode
-I../../gdb-6.7.0.20071025/gdb/../readline/.. -I../bfd
-I../../gdb-6.7.0.20071025/gdb/../bfd
-I../../gdb-6.7.0.20071025/gdb/../include -I./../intl -DMI_OUT=1
-DTUI=1 -I/usr/local/include
../../gdb-6.7.0.20071025/gdb/memory-map.c
"../../gdb-6.7.0.20071025/gdb/memory-map.c", line 183: warning: syntax
error: empty initializer
"../../gdb-6.7.0.20071025/gdb/memory-map.c", line 199: internal
compiler error: Wasted space
cc: acomp failed for ../../gdb-6.7.0.20071025/gdb/memory-map.c
Cheers,
Pedro Alves
gdb/
2007-10-25 Pedro Alves <pedro_alves@portugalmail.pt>
* memory-map.c (parse_memory_map): Don't use an empty struct
initializer.
---
gdb/memory-map.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
Index: gdb-6.7.0.20071025/gdb/memory-map.c
===================================================================
--- gdb-6.7.0.20071025.orig/gdb/memory-map.c 2007-08-23 19:08:36.000000000 +0100
+++ gdb-6.7.0.20071025/gdb/memory-map.c 2007-10-25 15:01:43.006009000 +0100
@@ -180,7 +180,7 @@ parse_memory_map (const char *memory_map
struct gdb_xml_parser *parser;
VEC(mem_region_s) *result = NULL;
struct cleanup *before_deleting_result, *back_to;
- struct memory_map_parsing_data data = {};
+ struct memory_map_parsing_data data = { NULL };
back_to = make_cleanup (null_cleanup, NULL);
parser = gdb_xml_create_parser_and_cleanup (_("target memory map"),