Hi Gray ,
I tested this code under MCXprosso IDE on a MCXN947 project. There is no error after building.
volatile long _Accum myval=0;
I would suggest you trying Newlib if didn't pass build on your side. If the problem persists, please let me know how to reproduce the problem.
Thanks,
Jun Zhang