Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
From: "Pedro Alves" <pedro_alves@portugalmail.pt>
To: gdb-patches@sourceware.org
Subject: Fix building with Sun CC breakage 2.
Date: Thu, 25 Oct 2007 14:53:00 -0000	[thread overview]
Message-ID: <4053daab0710250749j647b4adbkdab5f69bfe4f320d@mail.gmail.com> (raw)

[-- 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"),

             reply	other threads:[~2007-10-25 14:49 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-10-25 14:53 Pedro Alves [this message]
2007-10-25 15:30 ` Daniel Jacobowitz
2007-10-25 21:50   ` Pedro Alves

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4053daab0710250749j647b4adbkdab5f69bfe4f320d@mail.gmail.com \
    --to=pedro_alves@portugalmail.pt \
    --cc=gdb-patches@sourceware.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox