Fortran: Fix Explicit cobounds of a procedures parameter not respected [PR78466]
[official-gcc.git] / gcc / cp / lang-specs.h
blobe5651567a2d13c71cec0333555b19b2858411fc3
1 /* Definitions for specs for C++.
2 Copyright (C) 1995-2024 Free Software Foundation, Inc.
4 This file is part of GCC.
6 GCC is free software; you can redistribute it and/or modify
7 it under the terms of the GNU General Public License as published by
8 the Free Software Foundation; either version 3, or (at your option)
9 any later version.
11 GCC is distributed in the hope that it will be useful,
12 but WITHOUT ANY WARRANTY; without even the implied warranty of
13 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 GNU General Public License for more details.
16 You should have received a copy of the GNU General Public License
17 along with GCC; see the file COPYING3. If not see
18 <http://www.gnu.org/licenses/>. */
20 /* This is the contribution to the `default_compilers' array in gcc.cc for
21 g++. */
23 #ifndef CPLUSPLUS_CPP_SPEC
24 #define CPLUSPLUS_CPP_SPEC 0
25 #endif
27 {".cc", "@c++", 0, 0, 0},
28 {".cp", "@c++", 0, 0, 0},
29 {".cxx", "@c++", 0, 0, 0},
30 {".cpp", "@c++", 0, 0, 0},
31 {".c++", "@c++", 0, 0, 0},
32 {".C", "@c++", 0, 0, 0},
33 {".CPP", "@c++", 0, 0, 0},
34 {".H", "@c++-header", 0, 0, 0},
35 {".hpp", "@c++-header", 0, 0, 0},
36 {".hp", "@c++-header", 0, 0, 0},
37 {".hxx", "@c++-header", 0, 0, 0},
38 {".h++", "@c++-header", 0, 0, 0},
39 {".HPP", "@c++-header", 0, 0, 0},
40 {".tcc", "@c++-header", 0, 0, 0},
41 {".hh", "@c++-header", 0, 0, 0},
42 /* Module interface unit. Should there also be a .C counterpart? */
43 {".ixx", "@c++", 0, 0, 0}, /* MSVC */
44 {".cppm", "@c++", 0, 0, 0}, /* Clang/libc++ */
45 {".cxxm", "@c++", 0, 0, 0},
46 {".c++m", "@c++", 0, 0, 0},
47 {".ccm", "@c++", 0, 0, 0},
48 {"@c++-header",
49 "%{E|M|MM:cc1plus -E %{fmodules-ts:-fdirectives-only -fmodule-header}"
50 " %(cpp_options) %2 %(cpp_debug_options)}"
51 "%{!E:%{!M:%{!MM:"
52 " %{save-temps*|no-integrated-cpp:cc1plus -E"
53 " %{fmodules-ts:-fdirectives-only -fmodule-header}"
54 " %(cpp_options) %2 -o %{save-temps*:%b.ii} %{!save-temps*:%g.ii} \n}"
55 " cc1plus %{save-temps*|no-integrated-cpp:-fpreprocessed"
56 " %{fmodules-ts:-fdirectives-only}"
57 " %{save-temps*:%b.ii} %{!save-temps*:%g.ii}}"
58 " %{!save-temps*:%{!no-integrated-cpp:%(cpp_unique_options)}}"
59 " %{fmodules-ts:-fmodule-header %{fpreprocessed:-fdirectives-only}}"
60 " %(cc1_options) %2"
61 " %{!fsyntax-only:"
62 " %{!S:-o %g.s}"
63 " %{!fmodule-*:%{!fmodules-*:%{!fdump-ada-spec*:"
64 " %{!o*:--output-pch %w%i.gch}%W{o*:--output-pch %w%*}}}}%{!S:%V}}"
65 "}}}",
66 CPLUSPLUS_CPP_SPEC, 0, 0},
67 {"@c++-system-header",
68 "%{E|M|MM:cc1plus -E"
69 " %{fmodules-ts:-fdirectives-only -fmodule-header=system}"
70 " %(cpp_options) %2 %(cpp_debug_options)}"
71 "%{!E:%{!M:%{!MM:"
72 " %{save-temps*|no-integrated-cpp:cc1plus -E"
73 " %{fmodules-ts:-fdirectives-only -fmodule-header=system}"
74 " %(cpp_options) %2 -o %{save-temps*:%b.ii} %{!save-temps*:%g.ii} \n}"
75 " cc1plus %{save-temps*|no-integrated-cpp:-fpreprocessed"
76 " %{fmodules-ts:-fdirectives-only}"
77 " %{save-temps*:%b.ii} %{!save-temps*:%g.ii}}"
78 " %{!save-temps*:%{!no-integrated-cpp:%(cpp_unique_options)}}"
79 " %{fmodules-ts:-fmodule-header=system"
80 " %{fpreprocessed:-fdirectives-only}}"
81 " %(cc1_options) %2"
82 " %{!fsyntax-only:"
83 " %{!S:-o %g.s}"
84 " %{!fmodule-*:%{!fmodules-*:%{!fdump-ada-spec*:"
85 " %{!o*:--output-pch %w%i.gch}%W{o*:--output-pch %w%*}}}}%{!S:%V}}"
86 "}}}",
87 CPLUSPLUS_CPP_SPEC, 0, 0},
88 {"@c++-user-header",
89 "%{E|M|MM:cc1plus -E"
90 " %{fmodules-ts:-fdirectives-only -fmodule-header=user}"
91 " %(cpp_options) %2 %(cpp_debug_options)}"
92 "%{!E:%{!M:%{!MM:"
93 " %{save-temps*|no-integrated-cpp:cc1plus -E"
94 " %{fmodules-ts:-fdirectives-only -fmodule-header=user}"
95 " %(cpp_options) %2 -o %{save-temps*:%b.ii} %{!save-temps*:%g.ii} \n}"
96 " cc1plus %{save-temps*|no-integrated-cpp:-fpreprocessed"
97 " %{fmodules-ts:-fdirectives-only}"
98 " %{save-temps*:%b.ii} %{!save-temps*:%g.ii}}"
99 " %{!save-temps*:%{!no-integrated-cpp:%(cpp_unique_options)}}"
100 " %{fmodules-ts:-fmodule-header=user %{fpreprocessed:-fdirectives-only}}"
101 " %(cc1_options) %2"
102 " %{!fsyntax-only:"
103 " %{!S:-o %g.s}"
104 " %{!fmodule-*:%{!fmodules-*:%{!fdump-ada-spec*:"
105 " %{!o*:--output-pch %w%i.gch}%W{o*:--output-pch %w%*}}}}%{!S:%V}}"
106 "}}}",
107 CPLUSPLUS_CPP_SPEC, 0, 0},
108 {"@c++",
109 "%{E|M|MM:cc1plus -E %(cpp_options) %2 %(cpp_debug_options)}"
110 "%{!E:%{!M:%{!MM:"
111 " %{save-temps*|no-integrated-cpp:cc1plus -E"
112 " %(cpp_options) %2 -o %{save-temps*:%b.ii} %{!save-temps*:%g.ii} \n}"
113 " cc1plus %{save-temps*|no-integrated-cpp:-fpreprocessed"
114 " %{save-temps*:%b.ii} %{!save-temps*:%g.ii}}"
115 " %{!save-temps*:%{!no-integrated-cpp:%(cpp_unique_options)}}"
116 " %(cc1_options) %2"
117 " %{!fsyntax-only:"
118 " %{fmodule-only:%{!S:-o %g.s%V}}"
119 " %{!fmodule-only:%(invoke_as)}}"
120 "}}}",
121 CPLUSPLUS_CPP_SPEC, 0, 0},
122 {".ii", "@c++-cpp-output", 0, 0, 0},
123 {"@c++-cpp-output",
124 "%{!E:%{!M:%{!MM:"
125 " cc1plus -fpreprocessed %i %(cc1_options) %2"
126 " %{!fsyntax-only:"
127 " %{fmodule-only:%{!S:-o %g.s%V}}"
128 " %{!fmodule-only:%{!fmodule-header*:%(invoke_as)}}}"
129 "}}}", 0, 0, 0},