Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for access attribute #65

Open
wants to merge 31 commits into
base: master
Choose a base branch
from

Conversation

GuillaumeGomez
Copy link
Member

This is not ready for now as I didn't add tests yet. :)

antoyo and others added 30 commits January 20, 2025 14:22
Move the code from i386-rust.cc to i386-rust-and-jit.inc so that it can
be reused by libgccjit.
gcc/jit/ChangeLog:

	* jit-playback.cc (add_error, add_error_va): Send DK_ERROR to
	add_error_va.
	(add_diagnostic): Call add_diagnostic instead of add_error.
	* jit-recording.cc (DEFINE_DIAGNOSTIC_KIND): New define.
	(recording::context::add_diagnostic): New function.
	(recording::context::add_error): Send DK_ERROR to add_error_va.
	(recording::context::add_error_va): New parameter diagnostic_kind.
	* jit-recording.h (add_diagnostic): New function.
	(add_error_va): New parameter diagnostic_kind.
	* libgccjit.cc (jit_error): Send DK_ERROR to add_error_va.

gcc/testsuite/ChangeLog:

	* jit.dg/test-error-array-bounds.c: Fix test.
Including:
1. field
2. function
3. rvalue
Fix _Float16 and __float128 support for jit. Add _Float32 and _Float64 support for jit

Add Float32 and Float54, update test-types.c
Update path: disable 128 bit integers for testing purposes

Target info extended with supported target dependent types

update patches

Replace unordered_map with unordered_set

update patches
For gcc_jit_type_is_float() add unit tests and function description

Rename gcc_jit_type_is_float to gcc_jit_type_is_floating

improve description

Remove unecessary spaces
Related to PR d/110516 but for libgccjit.

2024-01-03  Martin Rodriguez Reboredo  <[email protected]>

gcc/jit/
	* jit-playback.cc: Append TREE_THIS_VOLATILE and TREE_SIDE_EFFECTS to
	a dereference if underlying type is volatile.

Signed-off-by: Martin Rodriguez Reboredo <[email protected]>
gcc/jit/ChangeLog:

	* jit-recording.h: Remove memento_of_get_const::accepts_writes_from,
	memento_of_get_type::is_same_type_as: new method.

gcc/testsuite/ChangeLog:

	* jit.dg/all-non-failing-tests.h: Add test-const-pointer-argument.c.
	* jit.dg/test-const-pointer-argument.c: New test.
This issue happened when compiling rustc with rustc_codegen_gcc, more
specifically when compiling its rustc_parse crate.

gcc/jit/
	PR target/105827
	* dummy-frontend.cc: Fix lang_tree_node.
	* jit-common.h: New function (jit_tree_chain_next) used by
	lang_tree_node.
@GuillaumeGomez
Copy link
Member Author

Apparently it doesn't impact generated ASM at all, so can't test it unfortunately...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants