Skip to content

Conversation

luismgsilva
Copy link
Member

Changed the test case to declare separate functions with explicit prototypes:

  • f1() replaces the old K&R-style f() for calls with no arguments.
  • f2(int,int,int,void*) is used when passing a pointer to _nl_C_locobj.
  • f3(int,int,int,struct s) is used when passing _nl_C_locobj by value.

This ensures the test compiles cleanly on GCC 15, preserving the _nl_C_locobj access patterns for the assembly scan.

Thanks for taking the time to contribute to GCC! Please be advised that if you are
viewing this on github.com, that the mirror there is unofficial and unmonitored.
The GCC community does not use github.com for their contributions. Instead, we use
a mailing list ([email protected]) for code submissions, code reviews, and
bug reports. Please send patches there instead.

Changed the test case to declare separate functions with
explicit prototypes:

- `f1()` replaces the old K&R-style `f()` for calls with no arguments.
- `f2(int,int,int,void*)` is used when passing a pointer to `_nl_C_locobj`.
- `f3(int,int,int,struct s)` is used when passing `_nl_C_locobj` by
  value.

This ensures the test compiles cleanly on GCC 15, preserving the
`_nl_C_locobj` access patterns for the assembly scan.

Signed-off-by: Luis Silva <[email protected]>
@luismgsilva luismgsilva self-assigned this Aug 29, 2025
@MichielDerhaeg
Copy link
Contributor

Ah, it's because of this: https://gcc.gnu.org/gcc-15/porting_to.html#c23-fn-decls-without-parameters

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants