debug/103047 - argument order of inlined functions
commitb702dc980215074a06535e3aa52a766bef38af4c
authorRichard Biener <rguenther@suse.de>
Fri, 26 Jan 2024 14:11:47 +0000 (26 15:11 +0100)
committerRichard Biener <rguenther@suse.de>
Mon, 29 Jan 2024 07:41:20 +0000 (29 08:41 +0100)
treed8f143c6a3d7ad24a11450ee5852b962dfdf0b6e
parent5b393ac7f1715328ee92236071edc3885bf53317
debug/103047 - argument order of inlined functions

The inliner puts variables for parameters of the inlined functions
in the inline scope in reverse order.  The following reverses them
again so that we get consistent ordering between the
DW_TAG_subprogram DW_TAG_formal_parameter and the
DW_TAG_inlined_subroutine DW_TAG_formal_parameter set.

I failed to create a testcase with regexps since the inline
instances have just abstract origins and so I can't match them up.

PR debug/103047
* tree-inline.cc (initialize_inlined_parameters): Reverse
the decl chain of inlined parameters.
gcc/tree-inline.cc