https://gcc.gnu.org/bugzilla/show_bug.cgi?id=112466

--- Comment #2 from GCC Commits <cvs-commit at gcc dot gnu.org> ---
The master branch has been updated by Antoni Boucher <[email protected]>:

https://gcc.gnu.org/g:2a54db2d8baa1de9d552dfd561849f59737c062f

commit r16-4279-g2a54db2d8baa1de9d552dfd561849f59737c062f
Author: Antoni Boucher <[email protected]>
Date:   Fri Mar 21 13:13:41 2025 -0400

    libgccjit: Add ability to get CPU features

    gcc/ChangeLog:
            PR jit/112466
            * Makefile.in (tm_jit_file_list, tm_jit_include_list, TM_JIT_H,
            JIT_TARGET_DEF, JIT_TARGET_H, JIT_TARGET_OBJS): New variables.
            (tm_jit.h, cs-tm_jit.h, jit/jit-target-hooks-def.h,
            s-jit-target-hooks-def-h, default-jit.o): New rules.
            (s-tm-texi): Also check timestamp on jit-target.def.
            (generated_files): Add TM_JIT_H and jit/jit-target-hooks-def.h.
            (build/genhooks.o): Also depend on JIT_TARGET_DEF.
            * config.gcc (tm_jit_file, jit_target_objs, target_has_targetjitm):
            New variables.
            * config/i386/t-i386 (i386-jit.o): New rule.
            * configure: Regenerate.
            * configure.ac (tm_jit_file_list, tm_jit_include_list,
            jit_target_objs): Add substitutes.
            * doc/tm.texi: Regenerate.
            * doc/tm.texi.in (targetjitm): Document.
            (target_has_targetjitm): Document.
            * genhooks.cc: Include jit/jit-target.def.
            * config/default-jit.cc: New file.
            * config/i386/i386-jit.cc: New file.
            * config/i386/i386-jit.h: New file.

    gcc/jit/ChangeLog:
            PR jit/112466
            * Make-lang.in (JIT_OBJS): New variable.
            * jit-playback.cc (replay): Include jit-target.h and initialize
            target.
            * jit-playback.h (class populate_target_info): New class.
            * jit-recording.cc (recording::context::populate_target_info): New
            method.
            * jit-recording.h (recording::context::populate_target_info): New
            method.
            (recording::context::m_populated_target_info): New field.
            * libgccjit.cc: Include jit-target.h.
            (struct gcc_jit_target_info): New struct.
            (gcc_jit_context_get_target_info, gcc_jit_target_info_release,
            gcc_jit_target_info_cpu_supports, gcc_jit_target_info_arch,
            gcc_jit_target_info_supports_target_dependent_type): New functions.
            * libgccjit.h (gcc_jit_context_get_target_info,
            gcc_jit_target_info_release, gcc_jit_target_info_cpu_supports,
            gcc_jit_target_info_arch,
            gcc_jit_target_info_supports_target_dependent_type):
            New functions.
            * libgccjit.map (LIBGCCJIT_ABI_35): New ABI tag.
            * docs/topics/compilation.rst: Add documentation for the
            functions gcc_jit_context_get_target_info,
gcc_jit_target_info_release,
            gcc_jit_target_info_cpu_supports, gcc_jit_target_info_arch,
            gcc_jit_target_info_supports_target_dependent_type.
            * docs/topics/compatibility.rst (LIBGCCJIT_ABI_35): New ABI tag.
            * jit-target-def.h: New file.
            * jit-target.cc: New file.
            * jit-target.def: New file.
            * jit-target.h: New file.

    gcc/testsuite/ChangeLog:
            PR jit/112466
            * jit.dg/all-non-failing-tests.h: Mention
            test-target-info.c.
            * jit.dg/test-target-info.c: New test.
            * jit.dg/test-error-target-info.c: New test.

Reply via email to