[Patch, Fortran] PR50273 - Fix -Walign-commons diagnostic
Tobias Burnus
burnus@net-b.de
Thu Oct 6 12:12:00 GMT 2011
*ping*
http://gcc.gnu.org/ml/fortran/2011-09/msg00160.html
On 09/30/2011 10:50 AM, Tobias Burnus wrote:
> Dear all,
>
> with the following change in 4.5, the -Walign-commons warning got
> disabled:
>
> "The |COMMON| default padding has been changed – instead of adding the
> padding before a variable it is now added afterwards, which increases
> the compatibility with other vendors and helps to obtain the correct
> output in some cases."
>
> The attached patch restores the warning. I actually got a bit lost
> tracking the offset (and the "max_align" usage), hence, I wouldn't
> mind a careful review. However, testing didn't show any alignment issues.
>
> Build and regtested (trunk) on x86-64-linux.
> Ok for the trunk, 4.6 and 4.5?
>
> Tobias
More information about the Fortran
mailing list