xref: /netbsd-src/external/gpl3/gcc.old/dist/gcc/objc/lang-specs.h (revision 8feb0f0b7eaff0608f8350bbfa3098827b4bb91b)
136ac495dSmrg /* Definitions for specs for Objective-C.
2*8feb0f0bSmrg    Copyright (C) 1998-2020 Free Software Foundation, Inc.
336ac495dSmrg 
436ac495dSmrg This file is part of GCC.
536ac495dSmrg 
636ac495dSmrg GCC is free software; you can redistribute it and/or modify
736ac495dSmrg it under the terms of the GNU General Public License as published by
836ac495dSmrg the Free Software Foundation; either version 3, or (at your option)
936ac495dSmrg any later version.
1036ac495dSmrg 
1136ac495dSmrg GCC is distributed in the hope that it will be useful,
1236ac495dSmrg but WITHOUT ANY WARRANTY; without even the implied warranty of
1336ac495dSmrg MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
1436ac495dSmrg GNU General Public License for more details.
1536ac495dSmrg 
1636ac495dSmrg You should have received a copy of the GNU General Public License
1736ac495dSmrg along with GCC; see the file COPYING3.  If not see
1836ac495dSmrg <http://www.gnu.org/licenses/>.  */
1936ac495dSmrg 
2036ac495dSmrg 
2136ac495dSmrg /* This is the contribution to the `default_compilers' array in gcc.c
2236ac495dSmrg    for objc.  */
2336ac495dSmrg 
2436ac495dSmrg   {".m", "@objective-c", 0, 0, 0},
2536ac495dSmrg   {"@objective-c",
2636ac495dSmrg      "%{E|M|MM:cc1obj -E %{traditional|traditional-cpp:-traditional-cpp}\
2736ac495dSmrg           %(cpp_options) %(cpp_debug_options)}\
2836ac495dSmrg       %{!E:%{!M:%{!MM:\
2936ac495dSmrg 	%{traditional|traditional-cpp:\
3036ac495dSmrg %eGNU Objective C no longer supports traditional compilation}\
3136ac495dSmrg 	%{save-temps*|no-integrated-cpp:cc1obj -E %(cpp_options) -o %{save-temps*:%b.mi} %{!save-temps*:%g.mi} \n\
3236ac495dSmrg 	    cc1obj -fpreprocessed %{save-temps*:%b.mi} %{!save-temps*:%g.mi} %(cc1_options) %{print-objc-runtime-info} %{gen-decls}}\
3336ac495dSmrg 	%{!save-temps*:%{!no-integrated-cpp:\
3436ac495dSmrg 	    cc1obj %(cpp_unique_options) %(cc1_options) %{print-objc-runtime-info} %{gen-decls}}}\
3536ac495dSmrg         %{!fsyntax-only:%(invoke_as)}}}}", 0, 0, 0},
3636ac495dSmrg   {"@objective-c-header",
3736ac495dSmrg      "%{E|M|MM:cc1obj -E %{traditional|traditional-cpp:-traditional-cpp}\
3836ac495dSmrg           %(cpp_options) %(cpp_debug_options)}\
3936ac495dSmrg       %{!E:%{!M:%{!MM:\
4036ac495dSmrg 	%{traditional|traditional-cpp:\
4136ac495dSmrg %eGNU Objective C no longer supports traditional compilation}\
4236ac495dSmrg 	%{save-temps*|no-integrated-cpp:cc1obj -E %(cpp_options) -o %{save-temps*:%b.mi} %{!save-temps*:%g.mi} \n\
4336ac495dSmrg 	    cc1obj -fpreprocessed %b.mi %(cc1_options) %{print-objc-runtime-info} %{gen-decls}\
4436ac495dSmrg                         -o %g.s %{!o*:--output-pch=%i.gch}\
4536ac495dSmrg                         %W{o*:--output-pch=%*}%V}\
4636ac495dSmrg 	%{!save-temps*:%{!no-integrated-cpp:\
4736ac495dSmrg 	    cc1obj %(cpp_unique_options) %(cc1_options) %{print-objc-runtime-info} %{gen-decls}\
4836ac495dSmrg                         -o %g.s %{!o*:--output-pch=%i.gch}\
4936ac495dSmrg                         %W{o*:--output-pch=%*}%V}}}}}", 0, 0, 0},
5036ac495dSmrg   {".mi", "@objective-c-cpp-output", 0, 0, 0},
5136ac495dSmrg   {"@objective-c-cpp-output",
5236ac495dSmrg      "%{!M:%{!MM:%{!E:cc1obj -fpreprocessed %i %(cc1_options) %{print-objc-runtime-info} %{gen-decls}\
5336ac495dSmrg 			     %{!fsyntax-only:%(invoke_as)}}}}", 0, 0, 0},
5436ac495dSmrg   {"@objc-cpp-output",
5536ac495dSmrg       "%nobjc-cpp-output is deprecated; please use objective-c-cpp-output instead\n\
5636ac495dSmrg        %{!M:%{!MM:%{!E:cc1obj -fpreprocessed %i %(cc1_options) %{print-objc-runtime-info} %{gen-decls}\
5736ac495dSmrg 			     %{!fsyntax-only:%(invoke_as)}}}}", 0, 0, 0},
58