Don't warn function alignment if warn_if_not_aligned_p is true
authorH.J. Lu <hongjiu.lu@intel.com>
Tue, 12 Sep 2017 16:35:39 +0000 (16:35 +0000)
committerH.J. Lu <hjl@gcc.gnu.org>
Tue, 12 Sep 2017 16:35:39 +0000 (09:35 -0700)
commit12263f13ac02720a2e67f4837533b93752fb154b
tree6bb3cf38f22ec1b20c8542ddc388dff7706a6d42
parent917a804c6117a8b6aed2594b6695caf4dbcca217
Don't warn function alignment if warn_if_not_aligned_p is true

When warn_if_not_aligned_p is true, a warning will be issued on function
declaration later.  There is no need to warn function alignment when
warn_if_not_aligned_p is true.

* c-attribs.c (common_handle_aligned_attribute): Don't warn
function alignment if warn_if_not_aligned_p is true.

From-SVN: r252036
gcc/c-family/ChangeLog
gcc/c-family/c-attribs.c