Improve compatibility of -fdump-ada-spec with warnings
authorEric Botcazou <ebotcazou@adacore.com>
Fri, 3 Sep 2021 09:18:01 +0000 (11:18 +0200)
committerEric Botcazou <ebotcazou@adacore.com>
Fri, 3 Sep 2021 09:19:23 +0000 (11:19 +0200)
commit8d34ffb4e8ed5300d0276b55f573add6db2517e8
tree6eef28190e3a3879ebcdcb7bac9cefc6c1fd3de0
parent090f0d78f194e3cda23fe904016db77ea36c38fa
Improve compatibility of -fdump-ada-spec with warnings

This makes sure that the style and warning settings used in the
C/C++ bindings generated by -fdump-ada-spec do not leak into the
units that use them.

gcc/c-family/
* c-ada-spec.c (dump_ads): Generate pragmas to disable style checks
and -gnatwu warning for the package specification.
gcc/c-family/c-ada-spec.c