Commit Graph

36806 Commits

Author SHA1 Message Date
DJ Delorie
667ccf73eb ifcvt.c (noce_get_alt_condition): Don't make an auxiliary set from a constant part of the condition.
* ifcvt.c (noce_get_alt_condition): Don't make an auxiliary
set from a constant part of the condition.

From-SVN: r44602
2001-08-03 12:31:44 -04:00
Richard Henderson
cba5553ae6 * libjava.jni/calls.c (Java_calls_docall): Fix typo.
From-SVN: r44601
2001-08-03 09:21:23 -07:00
Andrew Cagney
0821bff756 mkdeps.c (deps_add_default_target): Make local variable ``start'' a const char pointer.
* mkdeps.c (deps_add_default_target): Make local variable
``start'' a const char pointer.
* dwarf2out.c (compute_section_prefix): Localize use of ``p''.

From-SVN: r44600
2001-08-03 15:42:25 +00:00
Rainer Orth
b953cc4be9 install.texi (Configuration): Fix markup.
* doc/install.texi (Configuration): Fix markup.
	(Specific, i?86-*-udk): Likewise.
	(Specific, alpha*-dec-osf*): Warn against --with-gnu-as,
	--with-gnu-ld.
	Document --enable-threads and --enable-libgcj status.
	(Specific, mips-sgi-irix*): Canonicalize triples.
	(Specific, mips-sgi-irix5): Warn about problems with this config.
	Mention required GNU as patch.
	Native assembler problems are fixed.
	(Specific, mips-sgi-irix6): Update O32 ABI support status.
	Document --enable-threads and --enable-libgcj status.

From-SVN: r44599
2001-08-03 11:45:39 +00:00
Nick Clifton
ef1f96f06c Restore patch with fixed invocation of mkinstalldirs
From-SVN: r44597
2001-08-03 09:19:17 +00:00
Richard Henderson
6e5a6a6b0e sysv4.h (ASM_OUTPUT_LABELREF): Don't write to constant data.
* config/ia64/sysv4.h (ASM_OUTPUT_LABELREF): Don't write to
        constant data.

From-SVN: r44596
2001-08-03 01:43:07 -07:00
Richard Henderson
dbc1a16393 rtlanal.c (find_first_parameter_load): Stop if we reach a CODE_LABEL at BOUNDARY.
* rtlanal.c (find_first_parameter_load): Stop if we
        reach a CODE_LABEL at BOUNDARY.

From-SVN: r44595
2001-08-03 01:32:44 -07:00
Richard Henderson
54aaa4ea8d alpha.md (force_movdi): New insn.
* config/alpha/alpha.md (force_movdi): New insn.
        * config/alpha/alpha.c (alpha_expand_prologue): Use it.
        Tweek FRP marking of VMS prologue insns.
        * config/alpha/vms.h (EPILOGUE_USES): New.

From-SVN: r44594
2001-08-03 01:23:54 -07:00
GCC Administrator
62dcadeb4a Daily bump.
From-SVN: r44593
2001-08-03 07:16:48 +00:00
Richard Henderson
0360b30df2 * Makefile.in, mklibgcc.in: Revert mkinstalldirs change.
From-SVN: r44591
2001-08-02 18:36:23 -07:00
Tom Tromey
870f3799af prims.cc (JNI_OnLoad): Don't declare.
* prims.cc (JNI_OnLoad): Don't declare.
	(_JNI_OnLoad): Don't define.
	(_Jv_CreateJavaVM): Don't handle JNI_OnLoad.

From-SVN: r44590
2001-08-03 01:25:17 +00:00
Lars Brinkhoff
8aeea6e67d combine.c, [...]: consistently use "VAX", "VAXen", and "MicroVAX" in comments and documentation.
* combine.c, config.gcc, cse.c, defaults.h, real.c, reload.c,
	simplify-rtx.c, config/alpha/alpha.h, config/avr/avr.h,
	config/convex/convex.h, config/d30v/d30v.c,
	config/d30v/d30v.h, config/dsp16xx/dsp16xx.h,
	config/elxsi/elxsi.h, config/fr30/fr30.h, config/m88k/m88k.c,
	config/mips/mips.h, config/mn10200/mn10200.h,
	config/mn10300/mn10300.h, config/pdp11/pdp11.md,
	config/v850/v850.h, config/vax/openbsd.h,
	config/vax/openbsd1.h, config/vax/ultrix.h,
	config/vax/vax-protos.h, config/vax/vax.c, config/vax/vax.h,
	config/vax/vax.md, config/vax/vaxv.h, config/vax/xm-vms.h,
	cp/decl2.c, doc/contrib.texi, doc/cpp.texi, doc/gcc.texi,
	doc/install.texi, doc/invoke.texi, doc/md.texi, doc/rtl.texi,
	doc/tm.texi: consistently use "VAX", "VAXen", and "MicroVAX"
        in comments and documentation.

From-SVN: r44589
2001-08-03 01:19:20 +00:00
Alexandre Petit-Bianco
36e10d77f2 java-tree.h (all_class_filename): New macro.
2001-08-02  Alexandre Petit-Bianco  <apbianco@redhat.com>

	* java-tree.h (all_class_filename): New macro.
	(enum java_tree_index): New enum `JTI_ALL_CLASS_FILENAME.'
	(BUILD_FILENAME_IDENTIFIER_NODE): Fixed leading comment. Link
	newly created IDENTIFIER_NODE to `all_class_filename.'

(http://gcc.gnu.org/ml/gcc-patches/2001-08/msg00093.html)
 Proxima Estacion Esperanza

From-SVN: r44588
2001-08-02 17:20:50 -07:00
Stan Shebs
dff94ad747 cp-tree.h (FNADDR_FROM_VTABLE_ENTRY): Remove, no longer used.
* cp-tree.h (FNADDR_FROM_VTABLE_ENTRY): Remove, no longer used.
        (fnaddr_from_vtable_entry): Remove decl.
        * method.c (use_thunk): Update comment.

From-SVN: r44587
2001-08-03 00:14:01 +00:00
Tom Tromey
8d6a437584 RandomAccessFile.java (seek): Let seek go past end of file.
* java/io/RandomAccessFile.java (seek): Let seek go past end of
	file.
	(skipBytes): Don't fail if seeking past end of file.
	* java/io/FileInputStream.java (skip): Don't fail if seeking past
	end of file.
	* java/io/natFileDescriptorWin32.cc (seek): Handle `eof_trunc'
	argument.
	* java/io/natFileDescriptorEcos.cc (seek): Handle `eof_trunc'
	argument.
	* java/io/natFileDescriptorPosix.cc (seek): Handle `eof_trunc'
	argument.
	* java/io/FileDescriptor.java (seek): Added `eof_trunc' argument.

From-SVN: r44586
2001-08-02 23:46:39 +00:00
Mark Kettenis
ead4cf347a xregex.h (_REGEX_RE_COMP): Define.
* xregex.h (_REGEX_RE_COMP): Define.
(re_comp): Define to xre_comp.
(re_exec): Define to xre_exec.

From-SVN: r44585
2001-08-02 19:23:47 -04:00
Neil Booth
d82fc1085f line-map.c: New.
* line-map.c: New.
	* line-map.h: New.
	* Makefile.in (line-map.o): New.
	(LIBCPP_OBJS, LIBCPP_DEPS): Update.
	* c-lex.c (cb_file_change): Update for new cpp_file_change structure.
	* cpperror.c (print_containing_files): Similarly.
	(print_location): Update.  Don't output a space before _Pragma.
	* cppfiles.c (stack_include_file): Set to line 1 immediately.
	(stack_include_filee, cpp_make_system_header): Update.
	(_cpp_execute_include): Get logical line number right for calling
	as-yet-unterminated #include.
	* cpphash.h (struct cpp_reader): Add line_maps.
	(_cpp_do_file_change): Update.
	* cppinit.c (cpp_create_reader): Initialize line maps.
	(cpp_destroy): Destroy line maps.
	(cpp_start_read): Get logical line number right.
	* cpplex.c (parse_string): Only warn once for multi-line strings.
	Use boolean variable for null warning.
	* cpplib.c (_cpp_handle_directive): End the directive if it isn't
	already.
	(do_include_common): End the directive early.
	(do_line): Don't warn about out-of-range lines in preprocessed
	source.  Update.  Remove unused variables.
	(_cpp_do_file_change): Update for new line mapping.
	(pragma_cb): New typedef.
	(cpp_register_pragma): Stop looking ahead before calling the
	handler.  Clean up.
	(do_pragma_system_header): End directive early.
	(cpp_get_line_maps): New.
	(cpp_pop_buffer): Fudge logical line.  Update.
	* cpplib.h: Include line-map.h
	(enum cpp_fc_reason): Remove.
	(struct cpp_file_change): Update.
	(cpp_get_line_maps): New.
	* cppmain.c (struct_printer): New member map.
	(cb_file_change): Update for new mappings.
	* fix-header.c (cb_file_change): Similarly.
testsuite:
	* gcc.dg/cpp/19951025-1.c: Update.

From-SVN: r44584
2001-08-02 23:03:31 +00:00
Martin Kahlert
6ff02a9579 jni.cc (JNI_CreateJavaVM): Call _Jv_JNI_Init in order to initialize global_ref_table/local_ref_table.
2001-08-02  Martin Kahlert  <martin.kahlert@infineon.com>

	* jni.cc (JNI_CreateJavaVM): Call _Jv_JNI_Init in order
	to initialize global_ref_table/local_ref_table.

From-SVN: r44583
2001-08-02 22:12:40 +00:00
Jeffrey Oldham
d4d3e88298 ff90-1.f (s): Fix reference of variable z, should be x.
2001-08-02  Jeffrey Oldham  <oldham@codesourcery.com>

	* g77.dg/ff90-1.f (s): Fix reference of variable z,
	should be x.

From-SVN: r44582
2001-08-02 19:58:29 +00:00
Andrew Cagney
026c3f1335 repo.c (get_base_filename): Change return value to const char pointer.
* repo.c (get_base_filename): Change return value to const char
pointer.

From-SVN: r44581
2001-08-02 19:31:58 +00:00
Nick Clifton
6dda00f018 Use mkinstalldirs instead of mkdir.
From-SVN: r44580
2001-08-02 18:36:54 +00:00
Lars Brinkhoff
215b48a70c vax.c: include expr.h.
2001-08-02  Lars Brinkhoff  <lars@nocrew.org>

	* config/vax/vax.c: include expr.h.

From-SVN: r44579
2001-08-02 18:08:00 +00:00
Nick Clifton
e7f62dcf05 Only (re)build configure, config.in and cstamp-h.in in maintainer mode.
From-SVN: r44577
2001-08-02 17:36:33 +00:00
Tom Tromey
1518ec6053 configure: Rebuilt.
* configure: Rebuilt.
	* configure.in (THREADSPEC): Don't set THREADLIBS on Cygwin.  From
	David Billinghurst.

From-SVN: r44576
2001-08-02 17:08:37 +00:00
David Edelsohn
4b5eb038f3 * doc/install.texi (Install GCC: Binaries): Update Bull info.
From-SVN: r44575
2001-08-02 13:06:10 -04:00
David Billinghurst
a2d6e91582 configure.in: POSIX threads on cygwin does not link with -lpthreads.
2001-08-02  David Billinghurst <David.Billinghurst>

	* configure: Rebuilt.
	* configure.in:  POSIX threads on cygwin does not link with
	-lpthreads.

From-SVN: r44574
2001-08-02 16:53:38 +00:00
Rainer Orth
578672a267 re PR java/227 (mips-tfile:internal error (when compiling java code))
* gcc.c (set_collect_gcc_options): New function, split out from
	main.
	Ignore elided switches.
	(do_spec_1): Invoke before executing command.
	(set_input): Export.
	Move declaration ...
	* gcc.h (set_input): ... here.
	* config/alpha/osf.h (ASM_FINAL_SPEC): Use %U.s to refer to input
	file.

	java:
	* jvspec.c (jvgenmain_spec): Cannot use %umain, breaks
	ASM_FINAL_SPEC.
	(lang_specific_pre_link): Use set_input to set input_filename.
	Append `main' here.
	* jvgenmain.c (usage): Append literal `main' to CLASSNAME.
	(main): Fix definition.
	Strip `main' from classname.
	Fixes PR java/227.

From-SVN: r44572
2001-08-02 12:26:00 +00:00
Nathan Sidwell
1dbb6023c7 Kill -fhonor-std.
.:	Kill -fhonor-std.
	* doc/c-tree.texi (Namespaces): Remove std & -fhonor-std
	interaction.
	* doc/invoke.texi (C++ Dialect Options): Remove -fno-honor-std.
cp:
	Kill -fhonor-std.
	* NEWS: Document.
	* cp-tree.h (flag_honor_std): Remove.
	(CPTI_FAKE_STD): Remove.
	(std_node): Remove comment about it being NULL.
	(fake_std_node): Remove.
	* decl.c (in_fake_std): Remove.
	(walk_namespaces_r): Remove fake_std_node check.
	(push_namespace): Remove in_fake_std code.
	(pop_namespace): Likewise.
	(lookup_name_real): Remove fake_std_node check.
	(init_decl_processing): Always create std_node. Always add
	std:: things there.
	(builtin_function): Always put non '_' fns in std.
	* decl2.c (flag_honor_std): Remove.
	(lang_f_options): Remove honor-std.
	(unsupported_options): Add honor-std.
	(set_decl_namespace): Remove fake_std_node check.
	(validate_nonmember_using_decl): Likewise.
	(do_using_directive): Likewise.
	(handle_class_head): Likewise.
	* dump.c (cp_dump_tree): Likewise.
	* except.c (init_exception_processing): Adjust.
	* init.c (build_member_call): Remove fake_std_node check.
	(build_offset_ref): Likewise.
	* lang-options.h: Remove -fhonor-std, -fno-honor-std.
	* rtti.c (init_rtti_processing): Adjust.
testsuite:
	Kill -fhonor-std.
	* g++.old-deja/g++.ns/ns14.C: Remove special options.
	* g++.old-deja/g++.other/std1.C: Likewise.
	* g++.old-deja/g++.robertl/eb133.C: Likewise. Add using directive.

From-SVN: r44569
2001-08-02 10:51:17 +00:00
Richard Sandiford
d6b6ba2921 mips.md (movdicc): Make conditional on TARGET_64BIT.
* mips.md (movdicc): Make conditional on TARGET_64BIT.  Likewise
	for the unnamed instructions it expands to.

From-SVN: r44568
2001-08-02 10:27:03 +00:00
Richard Henderson
d3259baad8 regclass.c (call_really_used_regs): Conditionally define.
* regclass.c (call_really_used_regs): Conditionally define.
        (init_reg_sets_1): Don't use it if not defined.
        (fix_register): Similarly, don't set it.

From-SVN: r44567
2001-08-02 01:43:29 -07:00
Gerald Pfeifer
eb77eeb3f4 params.def (PARAM_MAX_INLINE_INSNS): Change default to 600.
* params.def (PARAM_MAX_INLINE_INSNS): Change default to 600.
	Correct comment that had been missed in the previous change.

From-SVN: r44566
2001-08-02 07:52:31 +00:00
GCC Administrator
a2db29a140 Daily bump.
From-SVN: r44564
2001-08-02 07:16:40 +00:00
Stan Shebs
4e08ba6c02 darwin.c (machopic_stub_name): Try matching by name.
* config/darwin.c (machopic_stub_name): Try matching by name.
        (update_stubs): New function.
        (darwin_encode_section_info):  Call it and update_non_lazy_ptrs
        unconditionally.

From-SVN: r44562
2001-08-02 01:40:01 +00:00
Richard Henderson
7a900ebc50 except.c (output_function_exception_table): Use assemble_align.
* except.c (output_function_exception_table): Use assemble_align.
        * varasm.c (assemble_eh_label): Remove.
        (assemble_eh_align, assemble_eh_integer): Remove.

From-SVN: r44561
2001-08-01 15:47:09 -07:00
Robert Lipe
551e8a74ea dwarfout.c: Remove reference to README.DWARF.
2001-08-01  Robert Lipe  <robertl@caldera.com>

        * dwarfout.c: Remove reference to README.DWARF.

From-SVN: r44560
2001-08-01 22:27:04 +00:00
Andrew MacLeod
fc1296b77a regclass.c (call_really_used_regs): New array for registers which are actually used by a call.
2001-08-01  Andrew MacLeod  <amacleod@redhat.com>

	* regclass.c (call_really_used_regs): New array for registers which
	are actually used by a call.
	(init_reg_sets_1): Initialize regs_invalidated_by_call with the
	new array.
	(fix_register): Set call_really_used too.
	* config/ia64/ia64.h (CALL_REALLY_USED_REGISTERS): Initialize.
	* doc/tm.texi (CALL_REALLY_USED_REGISTERS): Document.

From-SVN: r44558
2001-08-01 21:40:43 +00:00
Richard Henderson
b38b083acf * read-rtl.c (read_name): Consider \r whitespace.
From-SVN: r44556
2001-08-01 13:49:24 -07:00
David Billinghurst
41ae4ee667 [multiple changes]
2001-08-01  David Billinghurst <David.Billinghurst@riotinto.com>

	* lib/g77.exp:  Load gcc-defs.exp for common procedures
	(g77_pass, g77_fail, g77_finish, g77_exit,
	${tool}_check_unsupported_p} Now redundant.  Deleted.

2001-08-01 David Billinghurst <David.Billinghurst@riotinto.com>

	* g77.dg/fbackslash.f
	* g77.dg/fcase-preserve.f
	* g77.dg/ff90-1.f
	* g77.dg/ffixed-line-length-0.f
	* g77.dg/ffixed-line-length-132.f
	* g77.dg/ffixed-line-length-7.f
	* g77.dg/ffixed-line-length-72.f
	* g77.dg/ffixed-line-length-none.f
        * g77.dg/ffree-form-1.f
	* g77.dg/fno-backslash.f
	* g77.dg/fno-f90-1.f
	* g77.dg/fno-fixed-form-1.f
	* g77.dg/fno-onetrip.f
	* g77.dg/fno-typeless-boz.f
	* g77.dg/fno-underscoring.f
	* g77.dg/fno-vxt-1.f
	* g77.dg/fonetrip.f
	* g77.dg/ftypeless-boz.f
	* g77.dg/fugly-assumed.f
	* g77.dg/funderscoring.f
	* g77.dg/fvxt-1.f

From-SVN: r44555
2001-08-01 20:35:59 +00:00
Andrew Cagney
edf1b3f317 config.gcc: Recognize powerpc-*-netbsd*.
* config.gcc: Recognize powerpc-*-netbsd*.
* doc/install.texi (Host/target specific installation notes for
GCC): Mention powerpc-*-netbsd*.
* config/rs6000/netbsd.h: New file.
(STANDARD_STARTFILE_PREFIX, LINK_SHLIB_SPEC): Redefine.
(LIB_DEFAULT_SPEC, STARTFILE_DEFAULT_SPEC): Redefine.
(ENDFILE_DEFAULT_SPEC, LINK_START_DEFAULT_SPEC): Redefine.
(LINK_OS_DEFAULT_SPEC, CPP_OS_DEFAULT_SPEC): Redefine.
(TARGET_VERSION): Redefine.
* config/rs6000/t-ppccomm (MULTILIB_MATCHES_SYSV): Recognize
mcall-netbsd as a match for mcall-sysv.
(EXTRA_MULTILIB_PARTS): Add ncrti$(objext) and ncrtn$(objext).
(ncrti.S, ncrtn.S): New targets.
($(T)ncrti$(objext), $(T)ncrtn$(objext)): New targets.
* config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Recognize
"netbsd' as a V4 ABI.
(ASM_SPEC): Check for -mcall-netbsd.
(CC1_SPEC, CC1_SPEC, LINK_START_SPEC, LINK_OS_SPEC): Ditto.
(CPP_ENDIAN_SPEC, CPP_SPEC, STARTFILE_SPEC): Ditto.
(LIB_SPEC, ENDFILE_SPEC): Ditto.
(LIB_NETBSD_SPEC, STARTFILE_NETBSD_SPEC): Define.
(ENDFILE_NETBSD_SPEC, LINK_START_NETBSD_SPEC): Define.
(LINK_OS_NETBSD_SPEC, CPP_OS_NETBSD_SPEC): Define.
(SUBTARGET_EXTRA_SPECS): Add NetBSD specs.
* doc/invoke.texi (Option Summary): Add -mcall-netbsd.
(RS/6000 and PowerPC Options): Mention -mcall-netbsd.

From-SVN: r44552
2001-08-01 19:25:18 +00:00
Mark Kettenis
bda33a6e0f unwind-pe.h (base_of_encoded_value, [...]): Define only if NO_BASE_OF_ENCODED_VALUE isn't defined.
* unwind-pe.h (base_of_encoded_value, read_encoded_value): Define
	only if NO_BASE_OF_ENCODED_VALUE isn't defined.
	* unwind-dw2-fde.c (NO_BASE_OF_ENCODED_VALUE): Define before
	including "unwind-pe.h".

From-SVN: r44550
2001-08-01 21:18:42 +02:00
Jan Hubicka
75540af074 rs6000.md (define_splits): Kill unused constraints.
* rs6000.md (define_splits): Kill unused constraints.

	* function.c (thread_prologue_and_epilogue_insns): Kill code
	dealing with non-existent CFG.

From-SVN: r44548
2001-08-01 18:03:28 +00:00
Kazu Hirata
ec5c56db8b alias.c: Fix comment formatting.
* alias.c: Fix comment formatting.
	* bitmap.c: Likewise.
	* builtins.c: Likewise.
	* calls.c: Likewise.
	* c-common.c: Likewise.
	* c-decl.c: Likewise.
	* c-dump.c: Likewise.
	* c-lex.c: Likewise.
	* collect2.c: Likewise.
	* combine.c: Likewise.
	* conflict.c: Likewise.
	* cppfiles.c: Likewise.
	* cppinit.c: Likewise.
	* cpplex.c: Likewise.
	* cpplib.c: Likewise.
	* cppmacro.c: Likewise.
	* cppspec.c: Likewise.
	* c-pragma.c: Likewise.
	* crtstuff.c: Likewise.
	* cse.c: Likewise.
	* cselib.c: Likewise.
	* c-semantics.c: Likewise.
	* c-typeck.c: Likewise.

From-SVN: r44547
2001-08-01 17:57:27 +00:00
Rainer Orth
60a78ccfac re PR libgcj/3694 (natPlainDatagramSocketImpl.cc doesn't compile in ALPHA OSF1)
* include/posix.h (_POSIX_PII_SOCKET): Define.
	* configure.in (HAVE_SOCKLEN_T): Define.
	* java/net/natPlainSocketImpl.cc [!HAVE_SOCKLEN_T]: Move socklen_t
	definition up.
	(_JV_accept): New function, avoids Tru64 UNIX accept macro.
	(java::net::PlainSocketImpl::accept): Use it.
	Fixes PRs libgcj/3694, libgcj/3696.

	* configure.in (HAVE_STRUCT_IPV6_MREQ): New test.
	* acconfig.h (HAVE_STRUCT_IPV6_MREQ): Provide template.
	* configure, include/config.h.in: Regenerate.
	* java/net/natPlainDatagramSocketImpl.cc (union McastReq): Use it.
	(mcastGrp): Likewise.
	(java::net::PlainDatagramSocketImpl::setOption): Guard against
	missing IPV6_MULTICAST_IF.
	Fixes PR libgcj/3694.

From-SVN: r44546
2001-08-01 17:53:00 +00:00
H.J. Lu
2a25b23f7f linux.h (ASM_OUTPUT_IDENT): Defined.
2001-08-01  H.J. Lu <hjl@gnu.org>

	* config/mips/linux.h (ASM_OUTPUT_IDENT): Defined.

From-SVN: r44544
2001-08-01 10:24:23 -07:00
H.J. Lu
a8329479d3 linux.h (ASM_OUTPUT_SOURCE_LINE): Defined.
2001-08-01  H.J. Lu <hjl@gnu.org>

	* gcc/config/mips/linux.h (ASM_OUTPUT_SOURCE_LINE): Defined.

From-SVN: r44541
2001-08-01 09:56:37 -07:00
Jeff Sturm
868f43d886 KeepInline.java: New file.
* libjava.lang/KeepInline.java: New file.
	* libjava.lang/KeepInline.out: New file.

From-SVN: r44540
2001-08-01 12:40:06 +00:00
Jeff Sturm
9042f830ca * libgcj.spec.in: Pass -fkeep-inline-functions to jc1.
From-SVN: r44539
2001-08-01 12:33:38 +00:00
Nick Clifton
96dba75282 Remove chorus.h files from i386, rs6000 and sparc config directories.
Add config/chorus.h instead.

From-SVN: r44538
2001-08-01 10:37:59 +00:00
Ziemowit Laski
3fecf49c1a fwd-proto-1.m: New.
2001-08-01  Ziemowit Laski  <zlaski@apple.com>

	* objc.dg/fwd-proto-1.m: New.
	* objc.dg/local-decl-1.m: New.
	* objc.dg/naming-1.m: New.
	* objc.dg/naming-2.m: New.
	* objc.dg/proto-hier-1.m: New.

From-SVN: r44537
2001-08-01 08:15:11 +00:00
Ziemowit Laski
f2e6e5307b c-parse.in (OBJC_NEED_RAW_IDENTIFIER): Define macro and flag for contextualizing Objective-C class name lookup by the...
2001-08-01  Ziemowit Laski  <zlaski@apple.com>

        * c-parse.in (OBJC_NEED_RAW_IDENTIFIER): Define macro and flag for
	contextualizing Objective-C class name lookup by the lexer.
	(typespec_reserved_nonattr): Disable ObjC class name lookup after
	seeing a TYPESPEC.
	(protocoldef): Add support for forward @protocol declarations.
	(yylexname): Suppress ObjC class name lookup in certain contexts;
	re-enable after lookup is complete.
	(_yylex): Re-enable ObjC class name lookup when certain
	punctuation marks are seen.

	* objc/objc-act.c (check_protocol_recursively): New function used
	for finding circular dependencies in protocols.
	(objc_declare_protocols): New function for handling forward
	@protocol declarations.
	(receiver_is_class_object): Detect the case when 'self' is used
	inside of a class method.
	(build_message_expr): Issue a warning if class method is desired
	but instance method is found instead.
	(conforms_to_protocol): Streamline.
	(objc_comptypes): Detect the fact that 'Bar<Foo> foo' conforms to
	protocol Foo, even if 'Bar foo' does not.
	(check_protocols): Streamline.
	(start_protocol): Add checks for circular and duplicate protocol
	definitions.
	(encode_aggregate_within): For typedefs of structs, encode the
	underlying struct.
	* objc/objc-act.h (PROTOCOL_DEFINED): New tree accessor.
	(objc_declare_protocols): New prototype.

From-SVN: r44536
2001-08-01 08:10:00 +00:00