On Tue, Dec 13, 2022 at 05:38:22PM +0100, Tobias Burnus wrote: > I missed that 'align' needs to be a power of 2 - contrary to 'aligned', > which does not have this restriction for some odd reason.
Yeah, odd. The C and C++ FEs indeed diagnose non-pow2p constants for align (and not for aligned clause). > > OK for mainline? Yes, thanks. Sorry for the delay. > Fortran: Extend align-clause checks of OpenMP's allocate directive > > gcc/fortran/ChangeLog: > > * openmp.cc (resolve_omp_clauses): Check also for > power of two. > > libgomp/ChangeLog: > > * testsuite/libgomp.fortran/allocate-3.f90: Fix ALIGN > usage, remove unused -fdump-tree-original. > * testsuite/libgomp.fortran/allocate-4.f90: New. Jakub