]> git.ipfire.org Git - thirdparty/gcc.git/commit
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)
commit95e76abccf109803db9e0a00bfae97921ac94ef4
tree35a5de88fcdf75b6564c96ac8d64568eec13e61f
parent5f2aa971d9700f4de8598f781c3862ad1d5fa51d
Fix assembler name collision

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