* Fix building with Sun CC breakage 2.
@ 2007-10-25 14:53 Pedro Alves
2007-10-25 15:30 ` Daniel Jacobowitz
0 siblings, 1 reply; 3+ messages in thread
From: Pedro Alves @ 2007-10-25 14:53 UTC (permalink / raw)
To: gdb-patches
[-- Attachment #1: Type: text/plain, Size: 748 bytes --]
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
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: suncc_ice.diff --]
[-- Type: text/x-patch; name=suncc_ice.diff, Size: 888 bytes --]
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"),
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Fix building with Sun CC breakage 2.
2007-10-25 14:53 Fix building with Sun CC breakage 2 Pedro Alves
@ 2007-10-25 15:30 ` Daniel Jacobowitz
2007-10-25 21:50 ` Pedro Alves
0 siblings, 1 reply; 3+ messages in thread
From: Daniel Jacobowitz @ 2007-10-25 15:30 UTC (permalink / raw)
To: Pedro Alves; +Cc: gdb-patches
On Thu, Oct 25, 2007 at 03:49:07PM +0100, Pedro Alves wrote:
> gdb/
> 2007-10-25 Pedro Alves <pedro_alves@portugalmail.pt>
>
> * memory-map.c (parse_memory_map): Don't use an empty struct
> initializer.
OK, thanks.
--
Daniel Jacobowitz
CodeSourcery
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Fix building with Sun CC breakage 2.
2007-10-25 15:30 ` Daniel Jacobowitz
@ 2007-10-25 21:50 ` Pedro Alves
0 siblings, 0 replies; 3+ messages in thread
From: Pedro Alves @ 2007-10-25 21:50 UTC (permalink / raw)
To: gdb-patches
Daniel Jacobowitz wrote:
> On Thu, Oct 25, 2007 at 03:49:07PM +0100, Pedro Alves wrote:
>> gdb/
>> 2007-10-25 Pedro Alves <pedro_alves@portugalmail.pt>
>>
>> * memory-map.c (parse_memory_map): Don't use an empty struct
>> initializer.
>
> OK, thanks.
>
I've checked it in on HEAD and branch.
Cheers,
Pedro Alves
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2007-10-25 21:47 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-10-25 14:53 Fix building with Sun CC breakage 2 Pedro Alves
2007-10-25 15:30 ` Daniel Jacobowitz
2007-10-25 21:50 ` Pedro Alves
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox