Turns out that:
build_function_type_list (void_type_node, void_type_node, NULL_TREE)
doesn't do what I thought it does. It resulted in a function type
getting two `void' arguments, and this was triggering a warning in LTO
mode.
Signed-off-by: Jose E. Marchesi <jemarch@gnu.org>
gcc/algol68/ChangeLog
* a68-low-clauses.cc (a68_lower_revelation_ludes): Fix function
type for fdecl.
tree fdecl = build_decl (UNKNOWN_LOCATION, FUNCTION_DECL,
get_identifier (fname),
- build_function_type_list (void_type_node,
- void_type_node,
- NULL_TREE));
+ build_function_type (void_type_node,
+ void_list_node));
+
DECL_EXTERNAL (fdecl) = 1;
TREE_PUBLIC (fdecl) = 1;
a68_add_decl (fdecl);