]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
pch: Small cleanup
authorJakub Jelinek <jakub@redhat.com>
Mon, 13 Dec 2021 08:51:17 +0000 (09:51 +0100)
committerJakub Jelinek <jakub@redhat.com>
Mon, 13 Dec 2021 08:51:17 +0000 (09:51 +0100)
> Fixed thusly, compile tested on x86_64-linux, committed to trunk.

Here is a small cleanup.  IMHO we should use gt_pointer_operator instead of
specifying manually void (*) (void *, void *) or
void (*) (void *, void *, void *) so that next time we want to change it,
we don't have to trace all the spots.  I was afraid it wouldn't work due to
header dependencies, but it works well.  gengtype generated files also
use gt_pointer_operator.

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

* machmode.h (gt_pch_nx): Use gt_pointer_operator as type of second
argument instead of equivalent void (*) (void *, void *, void *).
* poly-int.h (gt_pch_nx): Likewise.
* wide-int.h (gt_pch_nx): Likewise.
* config/aarch64/aarch64-sve-builtins.cc (gt_pch_nx): Likewise.

gcc/config/aarch64/aarch64-sve-builtins.cc
gcc/machmode.h
gcc/poly-int.h
gcc/wide-int.h

index 27be8b9253d0d3329ca2b902e7d4c94218632501..4250eaf785fe6c8e085822ad49b554b1c613fd5a 100644 (file)
@@ -3913,7 +3913,7 @@ gt_pch_nx (function_instance *)
 }
 
 inline void
-gt_pch_nx (function_instance *, void (*) (void *, void *, void *), void *)
+gt_pch_nx (function_instance *, gt_pointer_operator, void *)
 {
 }
 
index 2e5bafd0f9675622bcdfce0b4bcb5b3aa149d166..5a43c66a70f0007edf14065a7674e4ed45d8d16e 100644 (file)
@@ -1199,7 +1199,7 @@ gt_pch_nx (pod_mode<T> *)
 
 template<typename T>
 void
-gt_pch_nx (pod_mode<T> *, void (*) (void *, void *, void *), void *)
+gt_pch_nx (pod_mode<T> *, gt_pointer_operator, void *)
 {
 }
 
index 60a38c3ea6172280053f6f89f09937e1d7e2f648..f7226e68d4270f8ce38752a8b90ad00d984da6da 100644 (file)
@@ -2717,7 +2717,7 @@ gt_pch_nx (poly_int_pod<N, C> *)
 
 template<unsigned int N, typename C>
 void
-gt_pch_nx (poly_int_pod<N, C> *, void (*) (void *, void *, void *), void *)
+gt_pch_nx (poly_int_pod<N, C> *, gt_pointer_operator, void *)
 {
 }
 
index d03a17412536599c8836afc82573a5f2b616c604..bc51aa9309f0f51e9163cf9b320f19da28de2e4e 100644 (file)
@@ -3338,7 +3338,7 @@ gt_pch_nx (generic_wide_int <T> *)
 
 template<typename T>
 void
-gt_pch_nx (generic_wide_int <T> *, void (*) (void *, void *, void *), void *)
+gt_pch_nx (generic_wide_int <T> *, gt_pointer_operator, void *)
 {
 }
 
@@ -3356,7 +3356,7 @@ gt_pch_nx (trailing_wide_ints <N> *)
 
 template<int N>
 void
-gt_pch_nx (trailing_wide_ints <N> *, void (*) (void *, void *, void *), void *)
+gt_pch_nx (trailing_wide_ints <N> *, gt_pointer_operator, void *)
 {
 }