aboutsummaryrefslogtreecommitdiff
path: root/libgfortran/io/unix.c
diff options
context:
space:
mode:
authorPatrick Palka <ppalka@redhat.com>2024-03-04 21:32:44 -0500
committerPatrick Palka <ppalka@redhat.com>2024-03-04 21:32:44 -0500
commit08edf85f747b9ac1850f9688c8a1bc7c2bf6b4e5 (patch)
tree0ddd922015c6047ae47ebf182eeb178911b47720 /libgfortran/io/unix.c
parent264e3ad419cf71b10e7951a23750ac3507e21df9 (diff)
downloadgcc-08edf85f747b9ac1850f9688c8a1bc7c2bf6b4e5.zip
gcc-08edf85f747b9ac1850f9688c8a1bc7c2bf6b4e5.tar.gz
gcc-08edf85f747b9ac1850f9688c8a1bc7c2bf6b4e5.tar.bz2
c++/modules: relax diagnostic about GMF contents
Issuing a hard error when the GMF doesn't consist only of preprocessing directives happens to be inconvenient for automated testcase reduction via cvise. This patch relaxes this diagnostic into a pedwarn that can be disabled with -Wno-global-module. gcc/c-family/ChangeLog: * c.opt (Wglobal-module): New warning. gcc/cp/ChangeLog: * parser.cc (cp_parser_translation_unit): Relax GMF contents error into a pedwarn. gcc/ChangeLog: * doc/invoke.texi (-Wno-global-module): Document. gcc/testsuite/ChangeLog: * g++.dg/modules/friend-6_a.C: Pass -Wno-global-module instead of -Wno-pedantic. Remove now unnecessary preprocessing directives from GMF. Reviewed-by: Jason Merrill <jason@redhat.com>
Diffstat (limited to 'libgfortran/io/unix.c')
0 files changed, 0 insertions, 0 deletions