diff mbox series

[committed] pch: Fix aarch64 build [PR71934]

Message ID 20211209165954.GJ2646553@tucnak
State New
Headers show
Series [committed] pch: Fix aarch64 build [PR71934] | expand

Commit Message

Jakub Jelinek Dec. 9, 2021, 4:59 p.m. UTC
Hi!

On Thu, Dec 09, 2021 at 05:42:10PM +0100, Christophe Lyon wrote:
> This also broke aarch64 I think:
> In file included from
> /tmp/6140018_6.tmpdir/aci-gcc-fsf/sources/gcc-fsf/gccsrc/gcc/config/aarch64/aarch64-sve-builtins.cc:3920:0:
> ./gt-aarch64-sve-builtins.h: In function 'void
> gt_pch_p_19registered_function(void*, void*, gt_pointer_operator, void*)':
> ./gt-aarch64-sve-builtins.h:86:44: error: no matching function for call to
> 'gt_pch_nx(aarch64_sve::function_instance*, void (*&)(void*, void*, void*),
> void*&)'
>      gt_pch_nx (&((*x).instance), op, cookie);

Fixed thusly, compile tested on x86_64-linux, committed to trunk.

2021-12-09  Jakub Jelinek  <jakub@redhat.com>

	PR pch/71934
	* config/aarch64/aarch64-sve-builtins.cc (gt_pch_nx): Change type of
	second argument from function with 2 pointer arguments to function
	with 3 pointer arguments.



	Jakub
diff mbox series

Patch

--- gcc/config/aarch64/aarch64-sve-builtins.cc.jj	2021-09-06 12:53:10.000000000 +0200
+++ gcc/config/aarch64/aarch64-sve-builtins.cc	2021-12-09 17:53:37.161178764 +0100
@@ -3913,7 +3913,7 @@  gt_pch_nx (function_instance *)
 }
 
 inline void
-gt_pch_nx (function_instance *, void (*) (void *, void *), void *)
+gt_pch_nx (function_instance *, void (*) (void *, void *, void *), void *)
 {
 }