Commit Graph

44667 Commits

Author SHA1 Message Date
Mark Wielaard
b4a12d090d Thanks to Vladimir Puskas <vpuskas@eunet.yu>
Thanks to Vladimir Puskas <vpuskas@eunet.yu>
	* gnu/java/security/provider/MD5.java: Extends MessageDigest, not
	MessageDigestSpi (fixes Classpath bug #783).

From-SVN: r56425
2002-08-18 18:30:09 +00:00
GCC Administrator
e48171d718 Daily bump.
From-SVN: r56423
2002-08-18 07:17:22 +00:00
Neil Booth
463f1b2b93 re PR preprocessor/7602 (C++ header files found in CPLUS_INCLUDE_PATH treated as C headers)
PR preprocessor/7602
	* cppinit.c (path_include): Treat the system environment
	variables as being cxx_aware.

From-SVN: r56416
2002-08-18 06:26:11 +00:00
Tim Josling
88fe2466a0 treelang fixes to accommodate chaqnges elsewhere.
From-SVN: r56412
2002-08-17 23:13:12 +00:00
Joseph Myers
2984fe6496 c-decl.c (flexible_array_type_p): New function.
* c-decl.c (flexible_array_type_p): New function.
	(grokdeclarator, finish_struct): Use it.
	* doc/extend.texi: Document constraints on use of structures with
	flexible array members.

testsuite:
	* gcc.dg/c90-flex-array-1.c, gcc.dg/c99-flex-array-3.c,
	gcc.dg/c99-flex-array-4.c: New tests.

From-SVN: r56411
2002-08-17 15:48:28 +01:00
Richard Sandiford
fded6d781c t-coff, [...] (MULTILIB_MATCHES): Define.
* config/mips/t-coff, config/mips/t-elf, config/mips/t-isa3264,
	config/mips/t-r3900 (MULTILIB_MATCHES): Define.
	* config/mips/mips.h (ASM_SPEC): Use %(endian_spec).

From-SVN: r56410
2002-08-17 13:04:39 +00:00
Gabriel Dos Reis
8a5f437990 Fix PR/7621
Fix PR/7621
        * typeck.c (finish_class_member_access_expr): Diagnose cases where
        name lookup finds nothing.

From-SVN: r56409
2002-08-17 12:26:01 +00:00
GCC Administrator
046fff34a5 Daily bump.
From-SVN: r56408
2002-08-17 07:17:10 +00:00
Jason Merrill
5d764395db semantics.c (finish_then_clause): Remove redundant assignment.
* semantics.c (finish_then_clause): Remove redundant assignment.
        (finish_if_stmt, begin_switch_stmt, finish_switch_stmt): Move the
        extra binding level outside the if/switch statement.
        (finish_while_cond, finish_for_cond): Rewrite complex condition
        into the loop body.

From-SVN: r56402
2002-08-16 21:17:24 -04:00
Stan Shebs
8aa5074e79 c-common.c (cb_register_builds): Define __NEXT_RUNTIME__ for ObjC with -fnext-runtime.
* c-common.c (cb_register_builds): Define __NEXT_RUNTIME__
	for ObjC with -fnext-runtime.
	* doc/cpp.texi: Document it.

	* objc/execute/selector-1.m: Add __NEXT_RUNTIME__ case.

From-SVN: r56390
2002-08-16 23:31:06 +00:00
Tom Tromey
ca75573a5d gcj.texi (Class Initialization): Mention class initialization of arrays.
* gcj.texi (Class Initialization): Mention class initialization of
	arrays.

From-SVN: r56386
2002-08-16 21:49:33 +00:00
Janis Johnson
f97a5bda3a install.texi (Final installation): Replace links to individual build status pages with a link to a common page...
2002-08-16  Janis Johnson  <janis187@us.ibm.com>

	* doc/install.texi (Final installation): Replace links to individual
	build status pages with a link to a common page that lists them all.

From-SVN: r56385
2002-08-16 21:27:31 +00:00
Sylvain Pion
d3075b6cac invoke.texi: Fix typo.
2002-08-16  Sylvain Pion <pion@cs.nyu.edu>

	* doc/invoke.texi: Fix typo.

From-SVN: r56384
2002-08-16 21:18:14 +00:00
H.J. Lu
400639e641 libjava.exp (gcc_version): Removed.
2002-08-16  H.J. Lu <hjl@gnu.org>

	* lib/libjava.exp (gcc_version): Removed.
	(libgcj_jar): New.
	(libjava_init): Set libgcj_jar with tcl glob.
	(libjava_arguments): Use libgcj_jar.

From-SVN: r56382
2002-08-16 11:19:00 -07:00
David Edelsohn
fdf68669ec * doc/install.texi (*-ibm-aix*): Explain AIX shared object versioning.
From-SVN: r56380
2002-08-16 13:24:33 -04:00
Aldy Hernandez
7aecca3dc9 MAINTAINERS: Add self to rs6000 vector extensions.
2002-08-16  Aldy Hernandez  <aldyh@redhat.com>

	* MAINTAINERS: Add self to rs6000 vector extensions.

From-SVN: r56379
2002-08-16 17:10:21 +00:00
Andrew Haley
7149627b8e Make-lang.in (java-tree-inline.o): New.
2002-07-30  Andrew Haley  <aph@cambridge.redhat.com>

        * Make-lang.in (java-tree-inline.o): New.
        (JAVA_OBJS): Add java-tree-inline.o.
        * parse.y (source_end_java_method): Call java_optimize_inline.
        (java_expand_method_bodies): Save method's tree in
        DECL_SAVED_TREE.
        (add_stmt_to_compound): Keep track of the number of statments.
        * lang.c (java_init): Enable flag_inline_trees.
        (java_post_options): If flag_inline_functions is on, enable
        flag_inline_trees instread.
        (decl_constant_value): New.
        (java_tree_inlining_walk_subtrees): New.
        * java-tree.h (DECL_NUM_STMTS): New macro.
        (java_optimize_inline): Declare.
        * expr.c (java_expand_expr): Allow a BLOCK to return a value.
        Handle a LABEL_EXPR.
        * decl.c (build_result_decl): If we already have a DECL_RESULT
        don't make another.
        (dump_function): New.
        (java_optimize_inline): New.
        (dump_function): New.

From-SVN: r56377
2002-08-16 10:32:30 +00:00
Andrew Haley
d436bff8d6 tree-inline.c: Add includes for Java inliner.
2002-07-30  Andrew Haley  <aph@redhat.com>

        * tree-inline.c: Add includes for Java inliner.
        (remap_decl): Don't handle anonymous types for Java.
        (remap_block): Add handling for Java trees.
        (copy_scope_stmt): Conditionalize for non-Java use only.
        (copy_body_r): Handle Java trees.  Add handling for
        LABELED_BLOCK_EXPR, EXIT_BLOCK_EXPR, Java blocks.
        (initialize_inlined_parameters):  Handle Java trees.
        (declare_return_variable): Likewise.
        (expand_call_inline): Handle Java trees.
        (walk_tree): Likewise.
        (copy_tree_r): Don't handle SCOPE_STMTs for Java.
        (add_stmt_to_compound): New function.

From-SVN: r56376
2002-08-16 10:29:45 +00:00
GCC Administrator
408caa3aa2 Daily bump.
From-SVN: r56375
2002-08-16 07:17:08 +00:00
Benjamin Kosnik
6e52332ec7 re PR libstdc++/7445 (poor performance of std::locale::classic() in multi-threaded applications)
2002-08-15  Benjamin Kosnik  <bkoz@redhat.com>

	* include/ext/stdio_filebuf.h (stdio_filebuf): Explicitly set
	_M_buf_size_opt to zero when unbuffering.
	* include/bits/fstream.tcc (filebuf::showmanyc): Simplify.
	Consistency checks for _M_buf_size_opt.

	Revert PR libstdc++/7445
	* src/locale.cc (locale::classic): Revert.

	* docs/html/17_intro/TODO: Add.

From-SVN: r56365
2002-08-15 22:25:39 +00:00
Richard Henderson
204250d2fc Makefile.in (LOOSE_WARN): Remove -fno-common.
* Makefile.in (LOOSE_WARN): Remove -fno-common.
        (NOCOMMON_FLAG): New substitution point.
        (GCC_WARN_CFLAGS): Include it.
        * configure.in (ac_checking): Set nocommon_flag.
        (nocommon_flag): New substitution point.

From-SVN: r56362
2002-08-15 14:45:47 -07:00
Alexandre Oliva
8ea4b195de * libiberty/configure: Reverted unintended yesterday's check in.
From-SVN: r56361
2002-08-15 21:24:00 +00:00
Jakub Jelinek
2a2bfc59c0 typeof-1.c: New test.
* gcc.dg/typeof-1.c: New test.
* g++.dg/ext/typeof2.C: New test.

From-SVN: r56360
2002-08-15 21:17:16 +00:00
Alexandre Oliva
c01b9ec8eb parse.y (sizeof, [...]): New non-terminals to increment skip_evaluation.
* parse.y (sizeof, alignof, typeof): New non-terminals to
increment skip_evaluation.  Replace terminals with them and
decrement skip_evaluation at the end of rules using them.
* decl2.c (mark_used): Don't assemble_external if
skipping evaluation.

From-SVN: r56359
2002-08-15 21:16:52 +00:00
Alexandre Oliva
25587e40f5 c-tree.h (skip_evaluation): Move declaration...
* c-tree.h (skip_evaluation): Move declaration...
* c-common.h: ... here.
* c-typeck.c (build_external_ref): Don't assemble_external nor
mark a tree as used if skip_evaluation is set.
* c-parse.in (typeof): New non-terminal to set skip_evaluation
around TYPEOF.
(typespec_nonreserved_nonattr): Use it.

From-SVN: r56358
2002-08-15 21:16:23 +00:00
Phil Edwards
0053afb965 documentation.html: Update doxygen links for 3.2.
2002-08-15  Phil Edwards  <pme@gcc.gnu.org>

	* docs/html/documentation.html:  Update doxygen links for 3.2.

From-SVN: r56357
2002-08-15 20:19:11 +00:00
Douglas B Rupp
702ada3d94 dbxout.c (dbx_debug_hooks): Update end_prologue, end_epilogue.
* dbxout.c (dbx_debug_hooks): Update end_prologue, end_epilogue.
	(xcoff_debug_hooks): Update end_prologue.
	* debug.c (do_nothing_debug_hooks): Update end_prologue, end_epilogue.
	* debug.h (end_prologue): Add file arg.
	(end_epilogue): Add line and file args.
	(dwarf2out_end_epilogue): Add line and file args.
	(vmsdbgout_after_prologue): Remove.
	* dwarf2out.c (dwarf2out_end_epilogue): Add line and file args.
	(dwarf2_debug_hooks): Update end_prologue.
	* dwarfout.c (dwarfout_end_epilogue): Add line and file args.
	(dwarfout_end_prologue): Add file arg.
	* final.c (vmsdbgout_after_prologue): Remove
	(final_end_function): Update end_epilogue call.
	(final_scan_insn): Update end_prologue call.
	* sdbout.c (sdbout_end_epilogue): Add line and file args.
	(sdbout_end_prologue): Add file arg.
	(sdb_debug_hooks): Update end_prologue.
	(sdb_begin_prologue): Update sdbout_end_prologue call.
	* vmsdbgout.c (vmsdbg_debug_hooks): Add vmsdbgout_end_prologue,
	vmsdbgout_end_function.
	(vmsdbgout_end_prologue): New function renamed from
	vmsdbgout_after_prologue. Call vmsdbgout_source_line.
	(vmsdbgout_end_function): New function.
	(vmsdbgout_end_epilogue): Add line and file args. Call
	vmsdbgout_source_line.
	(write_pclines): Write only valid line numbers.
	(write_srccorr): Don't write source correlation records if 0 lines.
	* xcoffout.c (xcoffout_end_epilogue): Add line and file args.

From-SVN: r56356
2002-08-15 19:59:29 +00:00
Steve Ellcey
cb94b1559a unwind-cxx.h (__cxa_exception): Change catchTemp type from void* to _Unwind_Ptr.
* libstdc++-v3/libsupc++/unwind-cxx.h (__cxa_exception):
	Change catchTemp type from void* to _Unwind_Ptr.
	* libstdc++-v3/libsupc++/eh_personality.cc (PERSONALITY_FUNCTION):
	Do not cast landing_pad or base_of_encoded_value to (void *).
	* libstdc++-v3/libsupc++/eh_throw.cc (__gxx_exception_cleanup):
	Accept _URC_NO_REASON as a valid reason code.

From-SVN: r56352
2002-08-15 18:05:41 +00:00
Steve Ellcey
9ef30f834e unwind.h (_Unwind_Ptr): Make 64 bits on IA64 HP-UX.
* gcc/unwind.h (_Unwind_Ptr): Make 64 bits on IA64 HP-UX.
	(_Unwind_Internal_Ptr): 32 bit version for use in
	read_encoded_value_with_base.
	* gcc/unwind-pe.h (read_encoded_value_with_base): Use
	_Unwind_Internal_Ptr instead of _Unwind_Ptr in order to get the
	right size.

From-SVN: r56351
2002-08-15 18:01:30 +00:00
Kaveh R. Ghazi
f7043461db loop.c (scan_loop, [...]): Cast to avoid signed/unsigned warnings.
* loop.c (scan_loop, move_movables, count_one_set): Cast to avoid
	signed/unsigned warnings.

	* regclass.c (init_reg_sets_1, choose_hard_reg_mode,
	record_reg_classes): Likewise.

	* reload.c (reload_inner_reg_of_subreg, push_reload,
	find_reloads_address_1): Likewise.

From-SVN: r56350
2002-08-15 17:44:10 +00:00
David Edelsohn
b4d330e163 rs6000.c (output_mi_thunk): Return to function section on TARGET_ELF.
* rs6000.c (output_mi_thunk): Return to function section on
        TARGET_ELF.

        * rs6000-c.c (rs6000_cpu_cpp_builtins): Define __PPC405__ if PPC405.

From-SVN: r56348
2002-08-15 10:51:00 -04:00
Gabriel Dos Reis
e8fe46d4d6 *** empty log message ***
From-SVN: r56347
2002-08-15 11:42:51 +00:00
Nathan Sidwell
eac5ce6c93 re PR c++/7598 (offsetof broken)
cp:
	PR c++/7598
	* typeck.c (build_unary_op): Fold offsetof idiom. Fixes
	regression caused by my 2002-08-08 patch.
testsuite:
	* g++.dg/other/offsetof1.C: New test

From-SVN: r56346
2002-08-15 10:34:05 +00:00
Ulrich Weigand
61f02ff548 s390.c (legitimize_address): Optimize loading of large displacements.
* config/s390/s390.c (legitimize_address): Optimize loading
	of large displacements.

From-SVN: r56345
2002-08-15 09:55:31 +00:00
GCC Administrator
6848fc973f Daily bump.
From-SVN: r56344
2002-08-15 07:17:09 +00:00
Douglas B Rupp
1330f7d5b6 alpha-protos.h: Update.
* config/alpha/alpha-protos.h: Update.

	* config/alpha/alpha.c: (LINKAGE_SYMBOL_REF_P): New macro.
	(alpha_legitimate_address_p): Test LINKAGE_SYMBOL_REF_P.
	(alpha_linkage_symbol_p): New static function.
	(print_operand_address): Print linkage operand.

	(alpha_funcs_num, alpha_funcs_tree, alpha_links_tree): New static
	variables.
	(reloc_kind): New enum.
	(struct alpha_funcs): New struct.
	(struct alpha_links): Add reloc_kind field. Rename links_kind field.

	(alpha_need_linkage): Rewrite.
	(alpha_use_linkage): New global function.
	(alpha_write_linkage): Rewrite and make static.
	(alpha_write_one_linkage): Rewrite

	(alpha_start_function): Remove procedure descriptor output.
	(alpha_end_function): Write linkages at end of each function.

	* config/alpha/alpha.md (call_vms, call_value_vms): Rewrite.
	(call_vms_1, call_value_vms_1): Rewrite.

	* config/alpha/vms.h (ASM_FILE_END): Remove.

From-SVN: r56338
2002-08-15 05:04:27 +00:00
Richard Henderson
d1f1cc6a0f ggc-page.c (RTL_SIZE): New.
* ggc-page.c (RTL_SIZE): New.
        (extra_order_size_table): Add specializations for 2 and 10 rtl slots.
        * rtl.def (BARRIER, NOTE): Pad to 9 slots.

From-SVN: r56337
2002-08-14 18:03:43 -07:00
Richard Henderson
55ae907993 * gcc.dg/tls/diag-3.c: Fix expected message strings.
From-SVN: r56336
2002-08-14 17:16:11 -07:00
Richard Henderson
236261548b calls.c: Include target.h.
* calls.c: Include target.h.
        * Makefile.in (calls.o): Update.

        * config/alpha/alpha.c (alpha_end_function): Use targetm.binds_local_p.
        * config/alpha/alpha.h (FUNCTION_OK_FOR_SIBCALL): Likewise.

From-SVN: r56335
2002-08-14 17:07:55 -07:00
Richard Henderson
fd350d241f Makefile.in (LOOSE_WARN): Add -fno-common.
* Makefile.in (LOOSE_WARN): Add -fno-common.
        * c-common.h (constant_string_class_name): Add missing extern.

From-SVN: r56334
2002-08-14 17:00:56 -07:00
Neil Booth
182d89a3e9 re PR preprocessor/7358 (Changes to Sun's make Dependencies)
PR preprocessor/7358
	* c-opts.c (check_deps_environment_vars): Ignore main file
	for SUNPRO_DEPENDENCIES.
	* cppfiles.c (stack_include_file): Ignore main file if
	appropriate.
	* cpplib.h (struct cpp_options): New member in deps.
	* doc/cppenv.texi: Update.

From-SVN: r56333
2002-08-14 22:34:50 +00:00
Neil Booth
8bfb14674d re PR preprocessor/7526 (cpp0 core dump when _Pragma implies #pragma dependency)
PR preprocessor/7526
	* cpplib.c (run_directive): Kludge so _Pragma dependency works.
testsuite:
	* gcc.dg/cpp/_Pragma3.c: New test.

From-SVN: r56332
2002-08-14 20:17:55 +00:00
Nathan Sidwell
4168506336 invoke.texi (-a): Remove documentation.
* doc/invoke.texi (-a): Remove documentation.
	(-fprofile-arcs): Remove reference to -a, -ax options.
	* doc/gcov.texi (Gcov Data Files): Data might be merged.

From-SVN: r56331
2002-08-14 20:06:12 +00:00
Jesse Rosenstock
093f02000f natPosixProcess.cc (cleanup): Added `path' argument.
2002-08-14  Jesse Rosenstock  <jmr@ugcs.caltech.edu>

	* java/lang/natPosixProcess.cc (cleanup): Added `path' argument.
	(startProcess): Allocate path for chdir in async-signal-safe way.

From-SVN: r56330
2002-08-14 19:53:54 +00:00
Gabriel Dos Reis
77893a23f9 Fix PR/7566
Fix PR/7566
        * c-semantics.c (genrtl_case_label): Don't (mis)use
        warning_with_decl.

From-SVN: r56329
2002-08-14 17:50:48 +00:00
Dale Johannesen
260f91c292 Insert memory clobbers before the code that pops variable arrays.
This prevents the scheduler from moving references to the arrays
below the stack pop.

From-SVN: r56328
2002-08-14 17:41:52 +00:00
Jonathan Wakely
615d009f6d messages.html: Use HTML entities for punctuation.
2002-08-14  Jonathan Wakely  <jw@kayari.org>

	* docs/html/22_locale/messages.html:  Use HTML entities for
	punctuation.

From-SVN: r56300
2002-08-14 17:29:19 +00:00
Neil Booth
cd79e2100b * c-opts.c (c_common_post_options): Correct test.
From-SVN: r56299
2002-08-14 17:19:28 +00:00
Kaveh R. Ghazi
3eb75a737b m88k.h (ASM_OUTPUT_SOURCE_FILENAME): Fix incorrect argument order in call to fprintf.
* m88k.h (ASM_OUTPUT_SOURCE_FILENAME): Fix incorrect argument
	order in call to fprintf.

From-SVN: r56298
2002-08-14 16:25:36 +00:00
Rainer Orth
be3a0ce2ca * config/sparc/sol2.h (SUBTARGET_EXTRA_SPECS): Define.
From-SVN: r56297
2002-08-14 16:12:33 +00:00