This is the mail archive of the
gcc-cvs@gcc.gnu.org
mailing list for the GCC project.
r247660 - in /trunk/gcc: ChangeLog diagnostic.c
- From: dmalcolm at gcc dot gnu dot org
- To: gcc-cvs at gcc dot gnu dot org
- Date: Fri, 05 May 2017 20:51:19 -0000
- Subject: r247660 - in /trunk/gcc: ChangeLog diagnostic.c
Author: dmalcolm
Date: Fri May 5 20:51:18 2017
New Revision: 247660
URL: https://gcc.gnu.org/viewcvs?rev=247660&root=gcc&view=rev
Log:
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.
Modified:
trunk/gcc/ChangeLog
trunk/gcc/diagnostic.c