[Bug middle-end/117387] Incorrect n_named_args in expand_call

2024-10-31 Thread hjl.tools at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117387 --- Comment #3 from H.J. Lu --- Like this? diff --git a/gcc/calls.cc b/gcc/calls.cc index f67067acad4..1df064dcef6 100644 --- a/gcc/calls.cc +++ b/gcc/calls.cc @@ -2992,8 +2992,6 @@ expand_call (tree exp, rtx target, int ignore) Normally,

[Bug middle-end/117387] Incorrect n_named_args in expand_call

2024-10-31 Thread hjl.tools at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117387 --- Comment #2 from H.J. Lu --- (In reply to Andrew Pinski from comment #1) > But then later on it does: > /* Now possibly adjust the number of named args. > Normally, don't include the last named arg if anonymous args follow. > We do

[Bug middle-end/117387] Incorrect n_named_args in expand_call

2024-10-31 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117387 --- Comment #1 from Andrew Pinski --- But then later on it does: /* Now possibly adjust the number of named args. Normally, don't include the last named arg if anonymous args follow. We do include the last named arg if targetm.cal