diagnostic_report_diagnostic: refactor pragma-handling
commit85d113d89d2e2e02de8c6c190c015a029ca9955c
authordmalcolm <dmalcolm@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 5 May 2017 20:51:18 +0000 (5 20:51 +0000)
committerdmalcolm <dmalcolm@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 5 May 2017 20:51:18 +0000 (5 20:51 +0000)
tree1d806129b966e092e1dc6fa4b30cee8efe4a152d
parent284b54c98177a4b5662f317f5ffe4de1d1dcb620
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.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@247660 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/ChangeLog
gcc/diagnostic.c