Integrated: 7903630: jextract emits duplicate symbols for macro clashing with enum constants

Maurizio Cimadamore mcimadamore at openjdk.org
Tue Jan 16 12:11:49 UTC 2024


On Tue, 16 Jan 2024 11:56:40 GMT, Maurizio Cimadamore <mcimadamore at openjdk.org> wrote:

> The removal of `EnumConstantLifter` caused certain name conflicts to go undetected by `DuplicateFilter`. More specifically, if a macro constant has same name as that of an enum constant, given the enum constant is no longer lifted to toplevel, `DuplicateFilter` will not see the clash. The fix is to tweak `DuplicateFilter` to recurse into enums.

This pull request has now been integrated.

Changeset: 87350629
Author:    Maurizio Cimadamore <mcimadamore at openjdk.org>
URL:       https://git.openjdk.org/jextract/commit/87350629f5a350191ee9a4005de2acd053b909d5
Stats:     17 lines in 3 files changed: 17 ins; 0 del; 0 mod

7903630: jextract emits duplicate symbols for macro clashing with enum constants

Reviewed-by: sundar

-------------

PR: https://git.openjdk.org/jextract/pull/177


More information about the jextract-dev mailing list