http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50273
Richard Guenther <rguenth at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |NEW Last reconfirmed| |2011-09-02 Ever Confirmed|0 |1 --- Comment #1 from Richard Guenther <rguenth at gcc dot gnu.org> 2011-09-02 10:11:32 UTC --- > ./f951 -quiet t.f90 -Wpadded f951: warning: padding struct size to alignment boundary [-Wpadded] f951: warning: padding struct to align 'pending' [-Wpadded] f951: warning: padding struct size to alignment boundary [-Wpadded] t.f90: In function 'test': t.f90:1:0: warning: padding struct size to alignment boundary [-Wpadded] Note that suggesting -fno-align-commons shouldn't be done - using it can severely reduce performance. Not sure where the first three warnings come from - probably from frontend generated entities which are not detected as "builtin" if (DECL_SOURCE_LOCATION (field) != BUILTINS_LOCATION) warning (OPT_Wpadded, "padding struct to align %q+D", field); if (TREE_CONSTANT (unpadded_size) && simple_cst_equal (unpadded_size, TYPE_SIZE (rli->t)) == 0 && input_location != BUILTINS_LOCATION) warning (OPT_Wpadded, "padding struct size to alignment boundary");