head 1.2; access; symbols pkgsrc-2026Q1:1.2.0.8 pkgsrc-2026Q1-base:1.2 pkgsrc-2025Q4:1.2.0.6 pkgsrc-2025Q4-base:1.2 pkgsrc-2025Q3:1.2.0.4 pkgsrc-2025Q3-base:1.2 pkgsrc-2025Q2:1.2.0.2 pkgsrc-2025Q2-base:1.2; locks; strict; comment @# @; 1.2 date 2025.06.11.13.27.05; author dkazankov; state Exp; branches; next 1.1; commitid joH59RK5E27zytYF; 1.1 date 2025.04.25.19.35.10; author dkazankov; state Exp; branches; next ; commitid UNL0eZmaL4DA6tSF; desc @@ 1.2 log @gcc14-gnat*: update to 14.3 bug-fix release @ text @$NetBSD: patch-gcc_target.def,v 1.2 2025/06/08 07:37:45 wiz Exp $ Support Darwin/aarch64, from https://github.com/Homebrew/formula-patches. --- gcc/target.def.orig 2025-05-23 11:02:05.072209824 +0000 +++ gcc/target.def @@@@ -4681,6 +4681,13 @@@@ if you would like to apply the same rule default_promote_function_mode) DEFHOOK +(promote_function_mode_ca, + "Like @@code{promote_function_mode}, but takes a cumulative_args pointer \ + and a current arg to supply the input.", + machine_mode, (cumulative_args_t, function_arg_info, const_tree, int *, int), + default_promote_function_mode_ca) + +DEFHOOK (promote_prototypes, "This target hook returns @@code{true} if an argument declared in a\n\ prototype as an integral type smaller than @@code{int} should actually be\n\ @@@@ -5134,6 +5141,18 @@@@ with the specified mode and type. The d default_function_arg_boundary) DEFHOOK +(function_arg_boundary_ca, + "This is the @@code{cumulative_args_t}-based version of\n\ +@@code{TARGET_FUNCTION_ARG_BOUNDARY}. Define this hook if you need more\n\ +fine-grained control over argument alignment, e.g. depending on whether\n\ +it is a named argument or not, or any other criteria that you choose to\n\ +place in the @@var{ca} structure.\n\ +\n\ +The default hook will call @@code{TARGET_FUNCTION_ARG_BOUNDARY}.", + unsigned int, (machine_mode mode, const_tree type, cumulative_args_t ca), + default_function_arg_boundary_ca) + +DEFHOOK (function_arg_round_boundary, "Normally, the size of an argument is rounded up to @@code{PARM_BOUNDARY},\n\ which is the default value for this hook. You can define this hook to\n\ @@@@ -5142,6 +5161,18 @@@@ value.", unsigned int, (machine_mode mode, const_tree type), default_function_arg_round_boundary) +DEFHOOK +(function_arg_round_boundary_ca, + "This is the @@code{cumulative_args_t}-based version of\n\ +@@code{TARGET_FUNCTION_ARG_ROUND_BOUNDARY}. Define this hook if you need more\n\ +fine-grained control over argument size rounding, e.g. depending on whether\n\ +it is a named argument or not, or any other criteria that you choose to\n\ +place in the @@var{ca} structure.\n\ +\n\ +The default hook will call @@code{TARGET_FUNCTION_ARG_ROUND_BOUNDARY}.", + unsigned int, (machine_mode mode, const_tree type, cumulative_args_t ca), + default_function_arg_round_boundary_ca) + /* Return the diagnostic message string if function without a prototype is not allowed for this 'val' argument; NULL otherwise. */ DEFHOOK @@@@ -7389,6 +7420,16 @@@@ DEFHOOKPOD libatomic. The default value is false.", bool, false) +/* This value represents whether __builtin_unreachable should be expanded + as a trap instruction (or an abort() if the trap is not available). */ +DEFHOOK +(unreachable_should_trap, + "This hook should return @@code{true} if the target wants \ + @@code{__builtin_unreachable} to expand to a trap or @@code{abort ()}.\n\ + The default value is false.", + bool, (void), + hook_bool_void_false) + /* Close the 'struct gcc_target' definition. */ HOOK_VECTOR_END (C90_EMPTY_HACK) @ 1.1 log @lang/gcc14-gnat*: add new packages for GCC GNAT 14 @ text @d1 1 a1 1 $NetBSD: patch-gcc_target.def,v 1.1 2025/02/05 16:30:36 adam Exp $ d5 1 a5 1 --- gcc/target.def d7 1 a7 2 @@@@ -4680,6 +4680,13 @@@@ if you would like to apply the same rules given by @@code{PROMOTE_MODE}.", const_tree funtype, int for_return), d9 2 a10 2 +DEFHOOK d17 1 a17 1 DEFHOOK d20 2 a21 2 @@@@ -5133,6 +5140,18 @@@@ with the specified mode and type. The default hook returns\n\ unsigned int, (machine_mode mode, const_tree type), d23 2 a24 2 +DEFHOOK d36 1 a36 1 DEFHOOK d39 1 d43 1 a43 1 d62 1 a62 1 d75 1 @