poly-int: Fix struct vs class confusion
We currently issue a good deal of warnings of the following kind:
In file included from /scratch/tmp/gerald/GCC-HEAD/gcc/coretypes.h:500:
.../GCC-HEAD/gcc/poly-int.h:378:1: warning: 'poly_int' defined as a
struct template here but previously declared as a class template; this
is valid, but may result in linker errors under the Microsoft C++ ABI
[-Wmismatched-tags]
378 | struct poly_int
| ^
.../GCC-HEAD/gcc/poly-int.h:32:38: note: did you mean struct here?
32 | template<unsigned int N, typename T> class poly_int;
| ^~~~~
| struct
A `grep "'poly_int' defined as a struct template" | cut -d: -f1 | uniq -c`
shows 749 issue for a typical bootstrap.
Addressing this brings down the bootstrap log by 8.5% - from 80454 lines
down to 73613.
gcc:
* poly-int.h: Change struct poly_int to class poly_int.
1 file changed