diff options
author | manu <manu@138bc75d-0d04-0410-961f-82ee72b054a4> | 2012-05-03 22:28:21 +0000 |
---|---|---|
committer | manu <manu@138bc75d-0d04-0410-961f-82ee72b054a4> | 2012-05-03 22:28:21 +0000 |
commit | bba5a20671e9ac5e4d2f4df2f9961467e983705c (patch) | |
tree | bd6e929d7b61a7f36eb09c0a4cb029426263e066 /gcc/diagnostic.c | |
parent | beaca8bbd79d085a486ab55d8c56aed3ee96d6a3 (diff) | |
download | gcc-bba5a20671e9ac5e4d2f4df2f9961467e983705c.tar.gz |
2012-05-03 Manuel López-Ibáñez <manu@gcc.gnu.org>
gcc/
* flags.h (flag_permissive): Do not declare.
* diagnostic.c (diagnostic_report_diagnostic): Handle fpermissive
option specially.
* toplev.c (flag_permissive): Do not define.
* c-tree.h (system_header_p): Delete unused.
c-family/
* c.opt (fpermissive): Add Var(flag_permissive).
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@187123 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/diagnostic.c')
-rw-r--r-- | gcc/diagnostic.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/gcc/diagnostic.c b/gcc/diagnostic.c index 729e8654298..1e2712e59b1 100644 --- a/gcc/diagnostic.c +++ b/gcc/diagnostic.c @@ -542,7 +542,8 @@ diagnostic_report_diagnostic (diagnostic_context *context, diagnostic->kind = DK_ERROR; } - if (diagnostic->option_index) + if (diagnostic->option_index + && diagnostic->option_index != permissive_error_option (context)) { diagnostic_t diag_class = DK_UNSPECIFIED; |