mirror of
git://gcc.gnu.org/git/gcc.git
synced 2025-04-03 07:10:28 +08:00
c-decl.c (c_decode_option): Don't handle -lang-objc.
* c-decl.c (c_decode_option): Don't handle -lang-objc. * objc/lang-options.h: Remove -lang-objc. * objc/lang-specs.h: Don't pass -lang-objc to cc1obj. * objc/objc-act.c (lang_init_options): Set c_language. From-SVN: r37859
This commit is contained in:
parent
fc81ccd3e5
commit
0eaed3c665
@ -1,3 +1,10 @@
|
||||
2000-11-29 Neil Booth <neilb@earthling.net>
|
||||
|
||||
* c-decl.c (c_decode_option): Don't handle -lang-objc.
|
||||
* objc/lang-options.h: Remove -lang-objc.
|
||||
* objc/lang-specs.h: Don't pass -lang-objc to cc1obj.
|
||||
* objc/objc-act.c (lang_init_options): Set c_language.
|
||||
|
||||
2000-11-29 Jakub Jelinek <jakub@redhat.com>
|
||||
|
||||
* expr.c (can_store_by_pieces): Reinitialize max_size for reverse
|
||||
|
@ -507,9 +507,7 @@ c_decode_option (argc, argv)
|
||||
|
||||
strings_processed = cpp_handle_option (parse_in, argc, argv);
|
||||
|
||||
if (!strcmp (p, "-lang-objc"))
|
||||
c_language = clk_objective_c;
|
||||
else if (!strcmp (p, "-ftraditional") || !strcmp (p, "-traditional"))
|
||||
if (!strcmp (p, "-ftraditional") || !strcmp (p, "-traditional"))
|
||||
{
|
||||
flag_traditional = 1;
|
||||
flag_writable_strings = 1;
|
||||
|
@ -27,7 +27,6 @@ The Free Software Foundation is independent of Sun Microsystems, Inc. */
|
||||
|
||||
DEFINE_LANG_NAME ("Objective C")
|
||||
|
||||
{ "-lang-objc", "" },
|
||||
{ "-gen-decls", "Dump decls to a .decl file" },
|
||||
{ "-fgnu-runtime", "Generate code for GNU runtime environment" },
|
||||
{ "-fno-gnu-runtime", "" },
|
||||
|
@ -29,15 +29,15 @@ Boston, MA 02111-1307, USA. */
|
||||
%{!E:%{!M:%{!MM:\
|
||||
%{save-temps:%(trad_capable_cpp) -lang-objc %{ansi:-std=c89}\
|
||||
%(cpp_options) %b.mi \n\
|
||||
cc1obj -fpreprocessed %b.mi -lang-objc %(cc1_options) %{gen-decls}}\
|
||||
cc1obj -fpreprocessed %b.mi %(cc1_options) %{gen-decls}}\
|
||||
%{!save-temps:\
|
||||
%{traditional|ftraditional|traditional-cpp:\
|
||||
tradcpp0 -lang-objc %{ansi:-std=c89} %(cpp_options) %{!pipe:%g.mi} |\n\
|
||||
cc1obj -fpreprocessed %{!pipe:%g.mi} -lang-objc %(cc1_options) %{gen-decls}}\
|
||||
cc1obj -fpreprocessed %{!pipe:%g.mi} %(cc1_options) %{gen-decls}}\
|
||||
%{!traditional:%{!ftraditional:%{!traditional-cpp:\
|
||||
cc1obj -lang-objc %{ansi:-std=c89} %(cpp_options) %(cc1_options) %{gen-decls}}}}}\
|
||||
cc1obj %{ansi:-std=c89} %(cpp_options) %(cc1_options) %{gen-decls}}}}}\
|
||||
%{!fsyntax-only:%(invoke_as)}}}}"},
|
||||
{".mi", "@objc-cpp-output"},
|
||||
{"@objc-cpp-output",
|
||||
"%{!M:%{!MM:%{!E:cc1obj -lang-objc %i %(cc1_options) %{gen-decls}\
|
||||
"%{!M:%{!MM:%{!E:cc1obj -fpreprocessed %i %(cc1_options) %{gen-decls}\
|
||||
%{!fsyntax-only:%(invoke_as)}}}}"},
|
||||
|
@ -694,7 +694,8 @@ generate_struct_by_value_array ()
|
||||
void
|
||||
lang_init_options ()
|
||||
{
|
||||
parse_in = cpp_create_reader (CLK_GNUC89);
|
||||
parse_in = cpp_create_reader (CLK_OBJC);
|
||||
c_language = clk_objective_c;
|
||||
}
|
||||
|
||||
void
|
||||
|
Loading…
x
Reference in New Issue
Block a user