public inbox for gcc-cvs@sourceware.org help / color / mirror / Atom feed
From: Alex Coplan <acoplan@gcc.gnu.org> To: gcc-cvs@gcc.gnu.org Subject: [gcc(refs/vendors/ARM/heads/morello)] Fix up target hooks defaults / prototypes Date: Wed, 28 Jun 2023 13:32:51 +0000 (GMT) [thread overview] Message-ID: <20230628133251.26439385842B@sourceware.org> (raw) https://gcc.gnu.org/g:95a76ba4d69fe0fbc21b7f3ba5605ba68375bd5c commit 95a76ba4d69fe0fbc21b7f3ba5605ba68375bd5c Author: Alex Coplan <alex.coplan@arm.com> Date: Thu Apr 27 10:37:27 2023 +0100 Fix up target hooks defaults / prototypes Various Morello changes add or adjust target hooks, but in some cases we missed adding prototypes for the default functions or had the wrong prototype. This patch fixes those up. Diff: --- gcc/hooks.h | 2 ++ gcc/targhooks.c | 3 ++- gcc/targhooks.h | 10 +++++++--- 3 files changed, 11 insertions(+), 4 deletions(-) diff --git a/gcc/hooks.h b/gcc/hooks.h index a20d5530c92..1f150bad442 100644 --- a/gcc/hooks.h +++ b/gcc/hooks.h @@ -121,7 +121,9 @@ extern bool default_can_output_mi_thunk_no_vcall (const_tree, HOST_WIDE_INT, extern rtx hook_rtx_rtx_identity (rtx); extern rtx hook_rtx_rtx_null (rtx); +extern rtx hook_rtx_rtx_rtx_null (rtx, rtx); extern rtx hook_rtx_tree_int_null (tree, int); +extern rtx hook_rtx_rtx_rtx_idfirst (rtx, rtx); extern char *hook_charptr_void_null (void); extern const char *hook_constcharptr_void_null (void); diff --git a/gcc/targhooks.c b/gcc/targhooks.c index 15fcbb85b28..781cae93aa2 100644 --- a/gcc/targhooks.c +++ b/gcc/targhooks.c @@ -822,7 +822,8 @@ default_function_incoming_arg (cumulative_args_t, const function_arg_info &) unsigned int default_function_arg_boundary (machine_mode mode ATTRIBUTE_UNUSED, - const_tree type ATTRIBUTE_UNUSED) + const_tree type ATTRIBUTE_UNUSED, + bool) { return PARM_BOUNDARY; } diff --git a/gcc/targhooks.h b/gcc/targhooks.h index e351257cf5b..7212ba1ebec 100644 --- a/gcc/targhooks.h +++ b/gcc/targhooks.h @@ -21,6 +21,7 @@ along with GCC; see the file COPYING3. If not see #define GCC_TARGHOOKS_H extern bool default_legitimate_address_p (machine_mode, rtx, bool); +extern bool default_mode_strict_alignment (machine_mode); extern void default_external_libcall (rtx); extern rtx default_legitimize_address (rtx, rtx, machine_mode); @@ -74,6 +75,7 @@ extern void default_print_operand (FILE *, rtx, int); extern void default_print_operand_address (FILE *, machine_mode, rtx); extern bool default_print_operand_punct_valid_p (unsigned char); extern tree default_mangle_assembler_name (const char *); +extern void default_do_cfi_startproc (FILE *, tree); extern machine_mode default_translate_mode_attribute (machine_mode); extern bool default_scalar_mode_supported_p (scalar_mode); @@ -100,8 +102,9 @@ extern tree default_builtin_reciprocal (tree); extern HOST_WIDE_INT default_static_rtx_alignment (machine_mode); extern HOST_WIDE_INT default_constant_alignment (const_tree, HOST_WIDE_INT); -extern HOST_WIDE_INT default_data_padding_size (unsigned HOST_WIDE_INT, - unsigned HOST_WIDE_INT, const_tree); +extern unsigned HOST_WIDE_INT default_data_padding_size (unsigned HOST_WIDE_INT, + unsigned HOST_WIDE_INT, + const_tree); extern HOST_WIDE_INT constant_alignment_word_strings (const_tree, HOST_WIDE_INT); extern HOST_WIDE_INT default_vector_alignment (const_tree); @@ -158,7 +161,8 @@ extern rtx default_function_arg (cumulative_args_t, const function_arg_info &); extern rtx default_function_incoming_arg (cumulative_args_t, const function_arg_info &); extern unsigned int default_function_arg_boundary (machine_mode, - const_tree); + const_tree, + bool); extern unsigned int default_function_arg_round_boundary (machine_mode, const_tree); extern bool hook_bool_const_rtx_commutative_p (const_rtx, int);
reply other threads:[~2023-06-28 13:32 UTC|newest] Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=20230628133251.26439385842B@sourceware.org \ --to=acoplan@gcc.gnu.org \ --cc=gcc-cvs@gcc.gnu.org \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).