https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119777
Jakub Jelinek <jakub at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |jakub at gcc dot gnu.org
--- Comment #3 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
So, I've diffed gcc 14 options.cc to gcc trunk options.cc and looked for
differences in entries which have CL_Cobol + at least one other language (i.e.
where COBOL version merges with the other language or common version).
The only differences were
"-fsyntax-only",
"Check for syntax errors, then stop.",
NULL,
NULL,
- NULL, NULL, N_OPTS, N_OPTS, 12, /* .neg_idx = */ 1760,
- CL_COMMON,
- 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ NULL, NULL, N_OPTS, N_OPTS, 12, /* .neg_idx = */ -1,
+ CL_Cobol | CL_COMMON,
+ 0, 0, 0, 0, 0, 0, 1 /* RejectNegative */, 0, 0, 0, 0, 0,
offsetof (struct gcc_options, x_flag_syntax_only), 0, CLVC_INTEGER, 0, -1,
-1 },
discussed here where obviously the COBOL entry should be just removed,
CL_COMMON applies to all languages, and
"-include",
"-include <file> Include the contents of <file> before other files.",
"missing filename after %qs",
NULL,
NULL, NULL, N_OPTS, N_OPTS, 7, /* .neg_idx = */ -1,
- CL_C | CL_CXX | CL_ObjC | CL_ObjCXX | CL_JOINED | CL_SEPARATE,
+ CL_C | CL_CXX | CL_Cobol | CL_ObjC | CL_ObjCXX | CL_JOINED | CL_SEPARATE,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
- (unsigned short) -1, 0, CLVC_STRING, 0, -1, -1 },
+ offsetof (struct gcc_options, x_cobol_include), 0, CLVC_STRING, 0, -1, -1
},
where probably the addition of Var(cobol_include) is not actively harmful to
other FEs, but I don't really see how one variable can hold the -include
argument.
At least in C, it is quite normal to use -include a.h -include b.h -include
c.h.