mirror of
https://gcc.gnu.org/git/gcc.git
synced 2024-12-20 17:44:53 +08:00
pch: Small cleanup
> 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.
This commit is contained in:
parent
3b61f06b2e
commit
7ed58b4274
@ -3913,7 +3913,7 @@ gt_pch_nx (function_instance *)
|
|||||||
}
|
}
|
||||||
|
|
||||||
inline void
|
inline void
|
||||||
gt_pch_nx (function_instance *, void (*) (void *, void *, void *), void *)
|
gt_pch_nx (function_instance *, gt_pointer_operator, void *)
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1199,7 +1199,7 @@ gt_pch_nx (pod_mode<T> *)
|
|||||||
|
|
||||||
template<typename T>
|
template<typename T>
|
||||||
void
|
void
|
||||||
gt_pch_nx (pod_mode<T> *, void (*) (void *, void *, void *), void *)
|
gt_pch_nx (pod_mode<T> *, gt_pointer_operator, void *)
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -2717,7 +2717,7 @@ gt_pch_nx (poly_int_pod<N, C> *)
|
|||||||
|
|
||||||
template<unsigned int N, typename C>
|
template<unsigned int N, typename C>
|
||||||
void
|
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 *)
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -3338,7 +3338,7 @@ gt_pch_nx (generic_wide_int <T> *)
|
|||||||
|
|
||||||
template<typename T>
|
template<typename T>
|
||||||
void
|
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>
|
template<int N>
|
||||||
void
|
void
|
||||||
gt_pch_nx (trailing_wide_ints <N> *, void (*) (void *, void *, void *), void *)
|
gt_pch_nx (trailing_wide_ints <N> *, gt_pointer_operator, void *)
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user