diff options
| author | Andrew Pinski <andrew.pinski@oss.qualcomm.com> | 2025-10-27 22:22:08 -0700 |
|---|---|---|
| committer | Andrew Pinski <andrew.pinski@oss.qualcomm.com> | 2025-11-07 12:26:05 -0800 |
| commit | c66ebc3e22138dc505b18865f5337b05a61012ad (patch) | |
| tree | 828a0ec582960ea1e57ac9b565d46335ad3dd21c /libjava/java/security/Engine.java | |
| parent | 9da7ccf12e6d5f8c4d73e99cd9d9013e84d634e1 (diff) | |
| download | gcc-c66ebc3e22138dc505b18865f5337b05a61012ad.zip gcc-c66ebc3e22138dc505b18865f5337b05a61012ad.tar.gz gcc-c66ebc3e22138dc505b18865f5337b05a61012ad.tar.bz2 | |
Move build_call_nary away from va_list
Instead of a va_list here we can create a std::initializer_list that contains the
arguments and pass that.
This is just one quick version of what was mentioned during the Reviewing refactoring
goals and acceptable abstractions.
The generated code should be similar or slightly better. Plus there is extra checking
of bounds of the std::initializer_list.
I didn't remove the n argument from build_call_nary at this stage as I didn't want to change
the calls to build_call_nary but I added a gcc_checking_assert to make sure the number passed
is the number of arguments.
Changes since v1:
* v2: Fix build_call's access of std::initializer_list.
gcc/ChangeLog:
* tree.cc (build_call_nary): Remove decl.
Add template definition that uses std::initializer_list<tree>
and call build_call.
(build_call): New declaration.
* tree.h (build_call_nary): Remove.
(build_call): New function.
Signed-off-by: Andrew Pinski <andrew.pinski@oss.qualcomm.com>
Diffstat (limited to 'libjava/java/security/Engine.java')
0 files changed, 0 insertions, 0 deletions
