diagnostic_report_diagnostic: refactor pragma-handling
authorDavid Malcolm <dmalcolm@redhat.com>
Fri, 5 May 2017 20:51:18 +0000 (20:51 +0000)
committerDavid Malcolm <dmalcolm@gcc.gnu.org>
Fri, 5 May 2017 20:51:18 +0000 (20:51 +0000)
commitdc41c9b07d3da5456df2fd11ed89be084afa55ed
tree1d806129b966e092e1dc6fa4b30cee8efe4a152d
parent822856928407e34bc10f2aa7d00bc6149b43d7f8
diagnostic_report_diagnostic: refactor pragma-handling

This patch simplifies diagnostic_report_diagnostic by moving the
pragma-handling logic into a subroutine.

No functional change intended.

gcc/ChangeLog:
* diagnostic.c (diagnostic_report_diagnostic): Split out pragma
handling logic into...
(update_effective_level_from_pragmas): ...this new function.

From-SVN: r247660
gcc/ChangeLog
gcc/diagnostic.c