Commit Graph

37580 Commits

Author SHA1 Message Date
Bryce McKinlay b056c22c8e * java/security/cert/X509Extension.java: Merge from classpath.
From-SVN: r45798
2001-09-25 05:11:21 +01:00
David Edelsohn 6a40a9d6f2 * (lwa_operand): Address must be word aligned.
From-SVN: r45795
2001-09-24 20:28:28 -04:00
Richard Kenner 6abba05560 tree.c (type_hash_marked_p): Consider as marked if debug symbol number has been set.
* tree.c (type_hash_marked_p): Consider as marked if debug symbol
	number has been set.
	(type_hash_mark): Mark type itself.

From-SVN: r45794
2001-09-24 18:58:27 -04:00
Neil Booth 4ed5bcfb1e c-lex.c (cb_def_pragma): Update.
* c-lex.c (cb_def_pragma): Update.
	(c_lex): Update, and skip padding.
	* cppexp.c (lex, parse_defined): Update, remove unused variable.
	* cpphash.h (struct toklist): Delete.
	(union utoken): New.
	(struct cpp_context): Update.
	(struct cpp_reader): New members eof, avoid_paste.
	(_cpp_temp_token): New.
	* cppinit.c (cpp_create_reader): Update.
	* cpplex.c (_cpp_temp_token): New.
	(_cpp_lex_direct): Add PREV_WHITE when parsing args.
	(cpp_output_token): Don't print leading whitespace.
	(cpp_output_line): Update.
	* cpplib.c (glue_header_name, parse_include, get__Pragma_string,
	do_include_common, do_line, do_ident, do_pragma,
	do_pragma_dependency, _cpp_do__Pragma, parse_answer,
	parse_assertion): Update.
	(get_token_no_padding): New.
	* cpplib.h (CPP_PADDING): New.
	(AVOID_LPASTE): Delete.
	(struct cpp_token): New union member source.
	(cpp_get_token): Update.
	* cppmacro.c (macro_arg): Convert to use pointers to const tokens.
	(builtin_macro, paste_all_tokens, paste_tokens, funlike_invocation_p,
	replace_args, quote_string, stringify_arg, parse_arg, next_context,
	enter_macro_context, expand_arg, _cpp_pop_context, cpp_scan_nooutput,
	_cpp_backup_tokens, _cpp_create_definition): Update.
	(push_arg_context): Delete.
	(padding_token, push_token_context, push_ptoken_context): New.
	(make_string_token, make_number_token): Update, rename.
	(cpp_get_token): Update to handle tokens as pointers to const,
	and insert padding appropriately.
	* cppmain.c (struct printer): New member prev.
	(check_multiline_token): Constify.
	(do_preprocessing, cb_line_change): Update.
	(scan_translation_unit): Update to handle spacing.
	* scan-decls.c (get_a_token): New.
	(skip_to_closing_brace, scan_decls): Update.
	* fix-header.c (read_scan_file): Update.

	* doc/cpp.texi: Update.

	* gcc.dg/cpp/macro10.c: New test.
	* gcc.dg/cpp/strify3.c: New test.
	* gcc.dg/cpp/spacing1.c: Add tests.
	* gcc.dg/cpp/19990703-1.c: Remove bogus test.
	* gcc.dg/cpp/20000625-2.c: Fudge to pass.

From-SVN: r45793
2001-09-24 22:53:12 +00:00
Kaveh R. Ghazi ad43d46f3a libiberty.h (reconcat): New function.
include:
	* libiberty.h (reconcat): New function.

libiberty:
	* concat.c (reconcat): New function.

gcc:
	* c-aux-info.c (affix_data_type): Use ATTRIBUTE_MALLOC.  Avoid
	leak by passing malloc'ed pointer to reconcat, not concat.

From-SVN: r45789
2001-09-24 22:38:22 +00:00
DJ Delorie b6fc711089 * varasm.c (array_size_for_constructor): Handle STRING_CSTs also.
From-SVN: r45785
2001-09-24 16:27:06 -04:00
DJ Delorie 1b47b7aebb * gcc.c-torture/execute/20010924-1.c: New test.
From-SVN: r45784
2001-09-24 16:17:45 -04:00
Ulrich Weigand 967bd82377 flow.c (delete_dead_jumptables): Delete jumptable if the only reference is from the literal pool.
* flow.c (delete_dead_jumptables): Delete jumptable if the only
reference is from the literal pool.

From-SVN: r45783
2001-09-24 20:13:00 +00:00
Neil Booth dea2f2dbed * testsuite/objc/execute/paste.m: Remove.
From-SVN: r45782
2001-09-24 18:14:46 +00:00
Janis Johnson b9da07dadd install.texi (Final install): Request additional information in mail about successful builds.
* doc/install.texi (Final install): Request additional information
	in mail about successful builds.

From-SVN: r45779
2001-09-24 17:29:37 +00:00
John David Anglin cf3735b8e4 pa.c (return_addr_rtx): Return NULL_RTX if count is not zero.
* pa.c (return_addr_rtx): Return NULL_RTX if count is not zero.  Use
	initial value of return pointer register instead of value in frame-20.
	Revise comments.

From-SVN: r45778
2001-09-24 16:35:04 +00:00
John David Anglin f3403757ec som.h (ASM_OUTPUT_EXTERNAL): Improve formatting.
* som.h (ASM_OUTPUT_EXTERNAL): Improve formatting.
	(ASM_OUTPUT_EXTERNAL_LIBCALL): Only generate a .IMPORT statement for
	the libcall if there isn't a referenced identifier for the symbol.

From-SVN: r45777
2001-09-24 16:30:28 +00:00
John David Anglin 8e1494b72c pa.h (TRAMPOLINE_TEMPLATE): Add two words to the template for non 64-bit machines.
* pa.h (TRAMPOLINE_TEMPLATE): Add two words to the template for
	non 64-bit machines.  Use these as a plabel for the trampoline.
	(TRAMPOLINE_SIZE): Adjust size for new words.
	(INITIALIZE_TRAMPOLINE): Initialize new words.
	(TRAMPOLINE_ADJUST_ADDRESS): New.  Adjust address to make it a
	pointer to the plabel in the trampoline.

From-SVN: r45776
2001-09-24 16:21:09 +00:00
John David Anglin b848dc65c4 pa.c (function_arg): Pass floating arguments in both general and floating registers in indirect...
* pa.c (function_arg): Pass floating arguments in both general and
	floating registers in indirect (dynamic) calls when generating code
	for the 32 bit ABI and the HP assembler.

From-SVN: r45775
2001-09-24 16:16:07 +00:00
Rainer Orth 250d568873 install.texi: Markup fixes.
* doc/install.texi: Markup fixes.
	Use Solaris 2, SunOS 4 as appropriate.
	(Specific, *-*-solaris2*): Explain this.
	Unconditionally warn against /usr/ucb tools.
	Remove Sun as warning, obsolete.
	Move X11 header bug workaround here, update patches.
	(Specific, sparc-sun-solaris2*): Detail Sun as fix status.
	(Specific, sparc-sun-solaris2.7): Update patch 106950 status.

From-SVN: r45773
2001-09-24 14:24:42 +00:00
Richard Sandiford 6d2b8c50dd Removed, since DR209 patch was reverted on this branch.
From-SVN: r45771
2001-09-24 09:17:06 +00:00
GCC Administrator d8c2a81063 Daily bump.
From-SVN: r45767
2001-09-24 07:16:50 +00:00
Bryce McKinlay 4f7279ab3e PosixProcess.java (exitValue): Implement here.
* java/lang/PosixProcess.java (exitValue): Implement here. Throw
	IllegalThreadStateException if process hasn't exited yet.
	* java/lang/natPosixProcess.cc (exitValue): Removed.
	(waitFor): Only check thread interrupted status if waitpid()
	returned an error. Use WIFEXITED and WEXITSTATUS to process process's
	exit value.

From-SVN: r45766
2001-09-24 05:51:50 +01:00
Zack Weinberg 749ced524c top level:
* errors.h (warning, error, fatal, internal_error): Don't mark
	with ATTRIBUTE_PRINTF_n.
	* toplev.h (internal_error, fatal_io_error, warning, error,
	pedwarn, pedwarn_with_file_and_line, warning_with_file_and_line,
	error_with_file_and_line, sorry, error_for_asm, warning_for_asm):
	Likewise.
cp:
	* Make-lang.in (CXX_OBJS): Take out cp/errfn.o.
	(cp/errfn.o): Delete rule.
	(cp/error.o): Depend on flags.h.
	* errfn.c: Delete file.
	* cp-tree.h: Declare warn_deprecated.  Remove definitions of
	TFF_NAMESPACE_SCOPE, TFF_CLASS_SCOPE, TFF_CHASE_NAMESPACE_ALIAS,
	and TFF_TEMPLATE_DEFAULT_ARGUMENTS. #define cp_error, cp_warning,
	cp_pedwarn, and cp_compiler_error to error, warning, pedwarn, and
	internal_error respectively.  Make cp_deprecated into a macro.
	Don't define cp_printer typedef or declare cp_printers.
	* error.c: Include flags.h.
	Delete: struct tree_formatting_info, print_function_argument_list,
	print_declaration, print_expression, print_function_declaration,
	print_function_parameter, print_type_id, print_cv_qualifier_seq,
	print_type_specifier_seq, print_simple_type_specifier,
	print_elaborated_type_specifier, print_rest_of_abstract_declarator,
	print_parameter_declaration_clause, print_exception_specification,
	print_nested_name_specifier, and definition of cp_printers.
	(locate_error): New function.
	(cp_error_at, cp_warning_at, cp_pedwarn_at): Moved here and
	rewritten in terms of locate_error and diagnostic.c.
	(cp_tree_printer): Rename cp_printer; wire up to *_to_string
	instead of deleted print_* routines.  Handle %C, %L, %O, %Q also.
	(init_error): Adjust to match.
po:
	* POTFILES.in: Remove cp/errfn.c.

From-SVN: r45765
2001-09-24 00:27:33 +00:00
Richard Kenner 7a80cf9a2f function.c (pop_function_context_from): var_refs_queue and temp slots now in GC memory.
* function.c (pop_function_context_from): var_refs_queue
	and temp slots now in GC memory.
	(mark_function_status, free_after_compilation): Likewise;
	also struct function now in GC memory.
	(assign_stack_temp_for_type): struct temp_slot now in GC memory.
	(combine_temp_slots): Likewise.
	(schedule_fixup_var_refs): var_refs_queue now in GC memory.
	(prepare_function_start): Use GC memory for struct function.
	(mark_temp_slot): Deleted.
	(gcc_mark_struct_function): struct function now in GC memory.

From-SVN: r45764
2001-09-23 19:35:38 -04:00
Richard Kenner 0629440fd8 fold-const.c (extract_muldiv, [...]): Only adjust code for division, not modulus.
* fold-const.c (extract_muldiv, case PLUS_EXPR): Only adjust
	code for division, not modulus.

From-SVN: r45763
2001-09-23 18:50:40 -04:00
Richard Kenner a0fd557a09 * rtl.def (MEM): Remove obsolete part of comment.
From-SVN: r45762
2001-09-23 18:37:05 -04:00
GCC Administrator ff4490a3a0 Daily bump.
From-SVN: r45760
2001-09-23 07:16:11 +00:00
Anthony Green 2155677ceb old fix
From-SVN: r45759
2001-09-23 01:08:05 +00:00
Anthony Green 8eba5a2b7f misc fixes
From-SVN: r45758
2001-09-23 01:05:55 +00:00
Joseph Myers 040cc0718f c-format.c (init_function_format_info): Check __builtin_printf and __builtin_fprintf even if -ffreestanding.
* c-format.c (init_function_format_info): Check __builtin_printf
	and __builtin_fprintf even if -ffreestanding.  Check C99 functions
	in gnu89 mode.

testsuite:
	* gcc.dg/format/builtin-1.c, gcc.dg/format/ext-6.c: New tests.

From-SVN: r45757
2001-09-22 20:06:29 +01:00
Alexandre Petit-Bianco f6a67a813e re PR java/4360 (libjava fails to compile on i686-pc-linux-gnu (AttributedString))
2001-09-22  Alexandre Petit-Bianco  <apbianco@redhat.com>

        * decl.c (init_decl_processing): Fixed typo in predef_filenames
        last three initializations. Fixes PR java/4360.

( http://gcc.gnu.org/ml/gcc-patches/2001-09/msg00903.html )

From-SVN: r45756
2001-09-22 11:50:09 -07:00
Richard Kenner 0c96e96535 c-common.c (format_attribute_table): Remove decl.
* c-common.c (format_attribute_table): Remove decl.
	* tree.h (format_attribute_table, lang_attribute_table): New decls.
	(lang_attribute_common): Likewise.

From-SVN: r45754
2001-09-22 11:13:42 -04:00
Richard Kenner aaed02065e attribs.c: New file, from c-common.c.
* attribs.c: New file, from c-common.c.
	(attribute_tables): Now four elements.
	(format_attribute_table, lang_attribute_common): New variables.
	(init_attributes): Reflect above changes.
	(handle_mode_attribute): Delete check for wider than uintmax.
	* c-common.c: Delete parts moved to attribs.c.
	(enum attrs): Deleted; unused.
	(c_format_attribute_table): New variable.
	(c_common_lang_init): Initialize format_attribute_table with it.
	* c-common.h (decl_attributes): Remove decl.
	* tree.h (decl_attribute): Move it to here.
	* Makefile.in (C_AND_OBJS_OBJS): Add attribs.o.
	(attribs.o): New rule.

From-SVN: r45753
2001-09-22 09:59:01 -04:00
Richard Earnshaw 283c8d8deb configure.in (__EXTENSIONS__): Define.
* libI77/configure.in (__EXTENSIONS__): Define.
* libI77/config.h.in, libI77/conifgure: regenerate.
* libU77/configure.in (__EXTENSIONS__): Likewise.

From-SVN: r45752
2001-09-22 13:32:38 +00:00
Richard Kenner 6a1d250ead function.c (fix_lexical_address): Use set_mem_alias_set.
* function.c (fix_lexical_address): Use set_mem_alias_set.
	(expand_function_start): Likewise.
	* config/alpha/alpha.h (SETUP_INCOMING_VARARGS): Likewise.

From-SVN: r45751
2001-09-22 09:27:33 -04:00
Richard Kenner f42f3c2d58 * varasm.c (output_constant): Fix unused variable warning.
From-SVN: r45750
2001-09-22 09:23:14 -04:00
Richard Kenner bb9f8221b4 attribs.c: New file, from c-common.c.
* attribs.c: New file, from c-common.c.
	(attribute_tables): Now four elements.
	(format_attribute_table, lang_attribute_common): New variables.
	(init_attributes): Reflect above changes.
	(handle_mode_attribute): Delete check for wider than uintmax.
	* c-common.c: Delete parts moved to attribs.c.
	(enum attrs): Deleted; unused.
	(c_format_attribute_table): New variable.
	(c_common_lang_init): Initialize format_attribute_table with it.
	* c-common.h (decl_attributes): Remove decl.
	* tree.h (decl_attribute): Move it to here.
	* Makefile.in (C_AND_OBJS_OBJS): Add attribs.o.
	(attribs.o): New rule.
	* ch/Make-lang.in (cc1chill): Add attribs.o.
	* cp/Make-lang.in (CXX_C_OBJS): Add attribs.o.

From-SVN: r45749
2001-09-22 09:14:40 -04:00
George Helffrich ab6e696934 strlen0.f: New test.
2001-09-22  George Helffrich  <george@geo.titech.ac.jp>

	* g77.dg/strlen0.f: New test.

From-SVN: r45748
2001-09-22 10:36:11 +00:00
George Helffrich 2bc21ba588 com.c (ffecom_subscript_check_): Loosen subscript checking rules for character strings...
Thu Sep 20 15:05:20 JST 2001  George Helffrich  <george@geo.titech.ac.jp>

	* com.c (ffecom_subscript_check_): Loosen subscript checking rules
	for character strings, to permit substring expressions like
	string(1:0).
	* news.texi: Document this as a new feature.

From-SVN: r45747
2001-09-22 10:35:05 +00:00
Andreas Jaeger b8d323b1a0 * builtins.c (c_getstr): Remove unused variable.
From-SVN: r45746
2001-09-22 10:42:05 +02:00
GCC Administrator ed41066c2d Daily bump.
From-SVN: r45745
2001-09-22 07:16:42 +00:00
Alexandre Petit-Bianco 870a5b8a90 re PR java/4366 (java class initialization bug)
2001-09-20  Alexandre Petit-Bianco  <apbianco@redhat.com>

	* parse.y (patch_method_invocation): Build class initialization
	when static finals are used to qualify method invocation.
	Fixes PR java/4366.

( http://gcc.gnu.org/ml/gcc-patches/2001-09/msg00880.html )

From-SVN: r45743
2001-09-21 22:03:35 -07:00
Richard Henderson e5eac8efac reload1.c (reload): Use delete_insn instead of splatting NOTE_INSN_DELETED.
* reload1.c (reload): Use delete_insn instead of splatting
        NOTE_INSN_DELETED.

From-SVN: r45740
2001-09-21 18:21:04 -07:00
Richard Henderson 8a9a857e91 reload.c (push_secondary_reload): Don't check for "=" in output constraint after ""->ALL_REGS check.
* reload.c (push_secondary_reload): Don't check for "=" in output
        constraint after ""->ALL_REGS check.

From-SVN: r45739
2001-09-21 14:06:18 -07:00
Richard Henderson 24ee7caee0 * predict.c (expected_value_to_br_prob): Use pc_set.
From-SVN: r45738
2001-09-21 13:43:54 -07:00
Richard Henderson ee1315aa92 optabs.c (init_one_libfunc): Gen a FUNCTION_DECL for use by ENCODE_SECTION_INFO...
* optabs.c (init_one_libfunc): Gen a FUNCTION_DECL for use by
        ENCODE_SECTION_INFO; get SYMBOL_REF from make_decl_rtl.

From-SVN: r45737
2001-09-21 13:42:14 -07:00
Richard Henderson 9defc9b7ac rtl.h (LCT_RETURNS_TWICE): New.
* rtl.h (LCT_RETURNS_TWICE): New.
        * calls.c (emit_call_1): Set current_function_calls_setjmp for
        ECF_RETURNS_TWICE.
        (emit_library_call_value_1): Map LCT_RETURNS_TWICE
        to ECF_RETURNS_TWICE.
        * except.c (sjlj_emit_function_enter): Use LCT_RETURNS_TWICE for
        call to setjmp.

        * unwind-sjlj.c: Invent the setjmp.h declarations if inhibit_libc.

        * config/stormy16/stormy16.h (DONT_USE_BUILTIN_SETJMP): New.
        (JMP_BUF_SIZE): New.

From-SVN: r45736
2001-09-21 13:26:44 -07:00
Richard Henderson 1853547e03 stormy16.h (REG_CLASS_FROM_LETTER): Map 'd' to R8_REGS.
* config/stormy16/stormy16.h (REG_CLASS_FROM_LETTER): Map 'd'
        to R8_REGS.

From-SVN: r45735
2001-09-21 13:08:10 -07:00
Richard Henderson f5ddf15465 jvm.h (_Jv_VTable): Handle function descriptors for ia64...
* include/jvm.h (_Jv_VTable): Handle function descriptors for ia64;
        add get_method, set_method, vtable_elt_size, new_vtable.
        (_Jv_ArrayVTable): Derive from _Jv_VTable.
        * resolve.cc (_Jv_PrepareClass): Use new _Jv_VTable methods.
        * interpret.cc (_Jv_InterpMethod::continue1): Likewise.
        * java/lang/natClassLoader.cc (_Jv_NewArrayClass): Likewise.

From-SVN: r45734
2001-09-21 09:59:12 -07:00
Richard Henderson 6723181663 tree.def (FDESC_EXPR): New.
gcc/
        * tree.def (FDESC_EXPR): New.
        * expr.c (expand_expr): Handle it.
        * varasm.c (initializer_constant_valid_p): Likewise.
        (output_constant): Likewise.
        * defaults.h (TARGET_VTABLE_USES_DESCRIPTORS): New.
        * config/ia64/ia64.h (TARGET_VTABLE_USES_DESCRIPTORS): New.
        (ASM_OUTPUT_FDESC): New.
        * doc/tm.texi: Document the new macros.
gcc/cp/
        * class.c (set_vindex): Mind TARGET_VTABLE_USES_DESCRIPTORS.
        (build_vtbl_initializer): Likewise.
        (build_vfn_ref): New.
        * cp-tree.h: Declare it.
        * call.c (build_over_call): Use it.
        * decl2.c (mark_vtable_entries): Mark FDESC_EXPR.
        * typeck.c (get_member_function_from_ptrfunc): Mind descriptors.
gcc/java/
        * class.c (get_dispatch_table): Handle function descriptors.
        (build_dtable_decl): Likewise.
        * expr.c (build_invokevirtual): Likewise.
gcc/testsuite/
        * g++.old-deja/g++.abi/ptrmem.C: Update for ia64 c++ abi.
        * g++.old-deja/g++.abi/vtable2.C: Likewise.

From-SVN: r45733
2001-09-21 09:58:22 -07:00
Alexandre Petit-Bianco 2e3b2d2c07 parse.h: (WFL_STRIP_BRACKET): Re-written using build_type_name_from_array_name.
2001-09-19  Alexandre Petit-Bianco  <apbianco@redhat.com>

	* parse.h: (WFL_STRIP_BRACKET): Re-written using
	build_type_name_from_array_name.
	(STRING_STRIP_BRACKETS): New macro.
	* parse.y (build_type_name_from_array_name): New function.
	(array_creation_expression:): Accumulate []s instead of [s.
	(cast_expression:): Accumulate []s instead of [s after cast type
	name.
	(build_array_from_name): Local string deleted, use
	build_type_name_from_array_name.
	(build_unresolved_array_type): Accumulate []s instead of [s after
	type name.
	(register_fields): Fixed comment.
	(resolve_class): Local name, base deleted, new locals tname and
	array_dims. Use build_type_name_from_array_name. Use array_dims to
	build array type.
	(purify_type_name): Use STRING_STRIP_BRACKETS.

( http://gcc.gnu.org/ml/gcc-patches/2001-09/msg00779.html )

From-SVN: r45732
2001-09-21 09:01:45 -07:00
Alexandre Petit-Bianco 4bad9e39d1 stringpool.c (get_identifier_with_length): New function.
2001-09-19  Alexandre Petit-Bianco  <apbianco@redhat.com>

	* stringpool.c (get_identifier_with_length): New function.
	* tree.h (get_identifier_with_length): New prototype.

( http://gcc.gnu.org/ml/gcc-patches/2001-09/msg00779.html )

From-SVN: r45731
2001-09-21 08:58:35 -07:00
Richard Earnshaw f62ce55b12 cfgcleanup.c (merge_blocks_move_successor_nojumps): Don't leave ADDR_VEC or ADDR_DIFF_VEC jump insns as part of the basic block...
* cfgcleanup.c (merge_blocks_move_successor_nojumps): Don't leave
ADDR_VEC or ADDR_DIFF_VEC jump insns as part of the basic block
once merging is complete.

From-SVN: r45730
2001-09-21 15:34:54 +00:00
Richard Kenner 97a4f671ac * integrate.c (allocate_initial_values): Eliminate unused arg warning.
From-SVN: r45729
2001-09-21 11:16:31 -04:00