jit: Fix -Wodr warning
authorMartin Liska <mliska@suse.cz>
Mon, 20 Dec 2021 10:31:50 +0000 (11:31 +0100)
committerMartin Liska <mliska@suse.cz>
Mon, 20 Dec 2021 11:35:28 +0000 (12:35 +0100)
commit7424323bd5e1e27d8ffe37257459db5b28af18d2
tree063952a7a8f8b1b4f4fa4dda57e8c1e5abefab51
parent8d081c0093a42713afd1d4f7f07d09abb6eabc9a
jit: Fix -Wodr warning

gcc/jit/libgccjit.c:3957:8: warning: type 'struct version_info' violates the C++ One Definition Rule [-Wodr]

../../gcc/jit/libgccjit.c:3957:8: warning: type 'struct version_info' violates the C++ One Definition Rule [-Wodr]
 3957 | struct version_info

../../gcc/tree-ssa-loop-ivopts.c:181: note: a different type is defined in another translation unit
  181 | struct version_info

gcc/jit/ChangeLog:

* libgccjit.c (struct version_info): Rename to jit_version_info.
(struct jit_version_info): Likewise.
(gcc_jit_version_major): Likewise.
(gcc_jit_version_minor): Likewise.
(gcc_jit_version_patchlevel): Likewise.
gcc/jit/libgccjit.c