On 8/9/20 10:03 PM, Peter Bergner wrote: > PR96506 shows a problem where we ICE on illegal usage, namely using MMA > types for function arguments and return values. The solution is to flag > these illegal usages as errors early, before we ICE. > > The patch below is currently bootstrapping and regtesting. Ok for trunk > once that comes back clean? Ok for GCC 10 after some bake in? > > Peter > > > gcc/ > PR target/96506 > * config/rs6000/rs6000-call.c (rs6000_promote_function_mode): Disallow > MMA types as return values. > (rs6000_function_arg): Disallow MMA types as function arguments. > > gcc/testsuite/ > PR target/96506 > * gcc.target/powerpc/pr96506.c: New test.
FYI, testing came back clean with no regressions. Peter