• R/O
  • HTTP
  • SSH
  • HTTPS

Commit

Tags
No Tags

Frequently used words (click to add to your profile)

javac++androidlinuxc#windowsobjective-ccocoa誰得qtpythonphprubygameguibathyscaphec計画中(planning stage)翻訳omegatframeworktwitterdomtestvb.netdirectxゲームエンジンbtronarduinopreviewer

GNU Binutils with patches for OS216


Commit MetaInfo

Revisióne3bdafe2bac1672da335fde734b337c5504e5437 (tree)
Tiempo2015-10-29 21:55:01
AutorPedro Alves <palves@redh...>
CommiterPedro Alves

Log Message

compile: Rename struct type_map_instance::gcc_type field

Fixes:

src/gdb/compile/compile-c-types.c:36:12: error: declaration of ‘gcc_type type_map_instance::gcc_type’ [-fpermissive]
gcc_type gcc_type;


In file included from src/gdb/../include/gcc-c-interface.h:23:0,

from src/gdb/compile/compile-internal.h:21,
from src/gdb/compile/compile-c-types.c:23:

src/gdb/../include/gcc-interface.h:32:28: error: changes meaning of ‘gcc_type’ from ‘typedef long long unsigned int gcc_type’ [-fpermissive]
typedef unsigned long long gcc_type;


src/gdb/compile/compile-c-types.c: In function ‘gcc_type convert_qualified(compile_c_instance*, type*)’:
src/gdb/compile/compile-c-types.c:310:19: error: invalid conversion from ‘int’ to ‘gcc_qualifiers’ [-fpermissive]

quals);

gdb/ChangeLog:
2015-10-29 Pedro Alves <palves@redhat.com>

* compile/compile-c-types.c (struct type_map_instance)
<gcc_type>: Rename to gcc_type_handle.
(insert_type, convert_type): Adjust.

Cambiar Resumen

Diferencia incremental

--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,5 +1,11 @@
11 2015-10-29 Pedro Alves <palves@redhat.com>
22
3+ * compile/compile-c-types.c (struct type_map_instance)
4+ <gcc_type>: Rename to gcc_type_handle.
5+ (insert_type, convert_type): Adjust.
6+
7+2015-10-29 Pedro Alves <palves@redhat.com>
8+
39 * dwarf2-frame-tailcall.c (dwarf2_tailcall_sniffer_first): Don't
410 assume that "break" breaks out of a TRY/CATCH.
511 * python/py-framefilter.c (py_print_single_arg): Don't assume
--- a/gdb/compile/compile-c-types.c
+++ b/gdb/compile/compile-c-types.c
@@ -31,7 +31,7 @@ struct type_map_instance
3131
3232 /* The corresponding gcc type handle. */
3333
34- gcc_type gcc_type;
34+ gcc_type gcc_type_handle;
3535 };
3636
3737 /* Hash a type_map_instance. */
@@ -72,13 +72,13 @@ insert_type (struct compile_c_instance *context, struct type *type,
7272 void **slot;
7373
7474 inst.type = type;
75- inst.gcc_type = gcc_type;
75+ inst.gcc_type_handle = gcc_type;
7676 slot = htab_find_slot (context->type_map, &inst, INSERT);
7777
7878 add = (struct type_map_instance *) *slot;
7979 /* The type might have already been inserted in order to handle
8080 recursive types. */
81- if (add != NULL && add->gcc_type != gcc_type)
81+ if (add != NULL && add->gcc_type_handle != gcc_type)
8282 error (_("Unexpected type id from GCC, check you use recent enough GCC."));
8383
8484 if (add == NULL)
@@ -388,7 +388,7 @@ convert_type (struct compile_c_instance *context, struct type *type)
388388 inst.type = type;
389389 found = (struct type_map_instance *) htab_find (context->type_map, &inst);
390390 if (found != NULL)
391- return found->gcc_type;
391+ return found->gcc_type_handle;
392392
393393 result = convert_type_basic (context, type);
394394 insert_type (context, type, result);