]> gcc.gnu.org Git - gcc.git/commitdiff
Fix assembler name collision
authorEric Botcazou <ebotcazou@adacore.com>
Mon, 7 Dec 2020 09:40:23 +0000 (10:40 +0100)
committerEric Botcazou <ebotcazou@adacore.com>
Mon, 7 Dec 2020 09:43:05 +0000 (10:43 +0100)
Gigi uses a dummy global variable to register global types for debug
info purposes and its name can now collide with user variables.

gcc/ada/ChangeLog:
* gcc-interface/utils.c (gnat_write_global_declarations): Use the
maximum index for the dummy object to avoid a name collision.

gcc/ada/gcc-interface/utils.c

index 4ec19c7f19174d500ee0bb88a18402e302833d80..87726cbd4757ed0c7591734b1ca30aba714c6b47 100644 (file)
@@ -5804,7 +5804,7 @@ gnat_write_global_declarations (void)
       struct varpool_node *node;
       char *label;
 
-      ASM_FORMAT_PRIVATE_NAME (label, first_global_object_name, 0);
+      ASM_FORMAT_PRIVATE_NAME (label, first_global_object_name, ULONG_MAX);
       dummy_global
        = build_decl (BUILTINS_LOCATION, VAR_DECL, get_identifier (label),
                      void_type_node);
This page took 0.063789 seconds and 5 git commands to generate.