Commit Graph

24331 Commits

Author SHA1 Message Date
Jason Merrill
57be4e89e8 tlink.c (scan_linker_output): Look for keywords before accepting a mangled name in quotes.
* tlink.c (scan_linker_output): Look for keywords before accepting
	a mangled name in quotes.

From-SVN: r29479
1999-09-17 14:35:31 -04:00
Nathan Sidwell
b5534c6553 Revert call.c 1.173 change, do same effect, but more obviously.
* call.c (perform_implicit_conversion): Deal with error_mark_node.

From-SVN: r29478
1999-09-17 18:25:54 +00:00
Mark Mitchell
963d575811 decl.c (warn_extern_redeclared_static): Don't get confused by static member functions.
* decl.c (warn_extern_redeclared_static): Don't get confused by
	static member functions.
	(duplicate_decls): Merge DECL_THIS_STATIC.

	* decl.c (expand_static_init): Make sure assignments to local
	statics actually occur.

From-SVN: r29477
1999-09-17 18:15:21 +00:00
Gabriel Dos Reis
80d789a4d5 1999-09017 Gabriel Dos Reis <dosreis@cmla.ens-cachan.fr>
* std/valarray_array.h (__valarray_copy): Fix typo.

From-SVN: r29476
1999-09-17 15:19:20 +00:00
Nathan Sidwell
ba76f5c569 * call.c (perform_implicit_conversion): Deal with error_mark_node.
From-SVN: r29475
1999-09-17 10:59:07 +00:00
Gabriel Dos Reis
fcc32134a0 complext.cc (pow): Don't expect floating point promotion in presence of template argument deduction.
1999-09-17 Gabriel Dos Reis  <dosreis@cmla.ens-cachan.fr>

        * std/complext.cc (pow): Don't expect floating point promotion
        in presence of template argument deduction.  There is no such
        thing.

From-SVN: r29474
1999-09-17 09:08:26 +00:00
Jeff Law
745d757c07 Daily bump.
From-SVN: r29473
1999-09-17 01:45:09 -06:00
Mark Mitchell
273a708f27 cp-tree.h (poplevel_class): Declare.
* cp-tree.h (poplevel_class): Declare.
	* class.c (popclass): Use poplevel_class, not poplevel.
	* decl.c (poplevel_class): Don't make it static.  Don't return a
	value.
	(poplevel): Don't call poplevel_class; abort in a class
	binding level is seen.
	* semantics.c (finish_translation_unit): Use pop_everything.
	* parse.y (member_init): Allow errors.
	(pending_inline): Call finish_function.
	* parse.c: Regenerated.
	* Makefile.in (CONFLICTS): Adjust.

From-SVN: r29472
1999-09-17 07:35:07 +00:00
Jason Merrill
7c39cdd458 revert
From-SVN: r29471
1999-09-17 02:30:59 -04:00
Gabriel Dos Reis
905d7d33da Add missing Changelog entry.
From-SVN: r29470
1999-09-17 03:07:00 +00:00
Gabriel Dos Reis
5f77d6cc51 error.c: Reduce code duplication.
1999-09-17  Gabriel Dos Reis  <gdr@codesourcery.com>

        * error.c: Reduce code duplication.
        (dump_template_value): New function.
        (dump_type_real): Use it.
        (dump_decl): Likewise.
        (dump_function_name): Likewise.
        (dump_function_decl): Don't be too talkative about function return
        type variety.

From-SVN: r29469
1999-09-17 01:49:29 +00:00
Jason Merrill
51925d8a2a decl.c (saved_scope_p): New fn.
* decl.c (saved_scope_p): New fn.
	* class.c (pushclass): Don't clear class_cache_obstack if we have
	saved scopes.

From-SVN: r29468
1999-09-16 21:44:05 -04:00
Richard Henderson
0868989e57 alpha-interix.h (DWARF2_UNWIND_INFO): Define to zero.
* alpha/alpha-interix.h (DWARF2_UNWIND_INFO): Define to zero.
        * alpha/osf2or3.h (DWARF2_UNWIND_INFO): Likewise.

From-SVN: r29467
1999-09-16 16:48:09 -07:00
Richard Henderson
626e2d6db5 alpha.md: Revert Thu Nov 26 change that came in through the last gcc2 merge...
* alpha.md: Revert Thu Nov 26 change that came in through the
        last gcc2 merge: reinstate (plus (plus ...)) reload patterns.
        Avoid earlyclobber when possible.

From-SVN: r29466
1999-09-16 16:38:51 -07:00
Kaveh R. Ghazi
a218d5ba2b libgcc2.c (__do_global_ctors): Call atexit with one arg.
* libgcc2.c (__do_global_ctors): Call atexit with one arg.

	* sparc/sunos4.h (on_exit): Wrap prototype parameters in PARAMS().
	Define HAVE_ON_EXIT.

From-SVN: r29465
1999-09-16 22:51:47 +00:00
Kaveh R. Ghazi
fffeac96e0 lex.c (init_cpp_parse): Call xcalloc, not malloc/bzero.
* lex.c (init_cpp_parse): Call xcalloc, not malloc/bzero.

	* xref.c (SALLOC): Call xstrdup, not xmalloc/strcpy.

From-SVN: r29464
1999-09-16 22:33:10 +00:00
Kaveh R. Ghazi
92a438d13c system.h (CTYPE_CONV, [...]): New macros.
* system.h (CTYPE_CONV, TOUPPER, TOLOWER): New macros.  Use
	CTYPE_CONV in all ctype macros.

	* cccp.c (initialize_char_syntax): Use uppercase ctype macro
	from system.h.

	* cexp.y (initialize_random_junk): Likewise.

	* c4x.c (c4x_interrupt_function_p, c4x_handle_pragma): Likewise.

	* i370.c (handle_pragma): Likewise.

	* i370.h (ASM_OUTPUT_LABELREF, ASM_OUTPUT_ASCII): Likewise.

	* v850.c (override_options): Likewise.

	* doprint.c (_doprnt): Likewise.

	* fixinc/fixincl.c (main, quoted_file_exists, extract_quoted_files):
	Likewise.

	* fixinc/server.c (load_data): Likewise.

	* fold-const.c (real_hex_to_f): Likewise.

	* genattr.c (write_upcase, gen_attr): Likewise.

	* genattrtab.c (convert_const_symbol_ref, evaluate_eq_attr,
	write_upcase): Likewise.

	* genemit.c (print_code): Likewise.

	* genopinit.c (gen_insn): Likewise.

	* genpeep.c (print_code): Likewise.

	* genrecog.c (print_code): Likewise.

	* optabs.c (init_libfuncs): Likewise.

ch:

	* lex.c (maybe_downcase, getlc, handle_generic_pragma,
	check_newline): Likewise.

f:

	* bad.c (ffebad_finish): Likewise.

	* fini.c (main): Likewise.

	* intrin.c (ffeintrin_init_0): Likewise.

	* lex.c (ffelex_hash_): Likewise.

	* src.c (ffesrc_init_1): Likewise.

From-SVN: r29463
1999-09-16 22:20:44 +00:00
Mark Mitchell
7bd41ea6c8 haifa-sched.c (sched_analyze): Keep the list of notes organized in pairs.
* haifa-sched.c (sched_analyze): Keep the list of notes organized
	in pairs.
	(reemit_notes): Likewise.

From-SVN: r29462
1999-09-16 21:00:21 +00:00
Alex Samuel
96df4529dc ggc.h (ggc_root): Move to ggc-common.c.
Thu Sep 16 11:50:52 1999  Alex Samuel  <samuel@codesourcery.com>

        * ggc.h (ggc_root): Move to ggc-common.c.
        (roots): Remove.
        (ggc_mark_rtx, ggc_mark_tree): Change to macro.
        (ggc_mark_rtvec, ggc_mark_tree_varray): Declare extern.
        (ggc_mark_tree_hash_table, ggc_mark_string, ggc_mark): Likewise.
        (ggc_mark_roots, ggc_mark_rtx_children, ggc_mark_tree_children): New.
        * ggc-common.c (ggc_root): Move from ggc.h.
        (roots): Declare, static.
        (ggc_mark_rtx, ggc_mark_tree): Renamed to...
        (ggc_mark_rtx_children, ggc_mark_tree_children): Don't check for
        null or check/set mark bit.
        (ggc_mark_roots): New.
        * ggc-simple.c (ggc_collect): Call ggc_mark_roots.

From-SVN: r29461
1999-09-16 12:27:01 -07:00
Mark Mitchell
2a6ec461e1 Add missing ChangeLog entry
From-SVN: r29460
1999-09-16 18:54:23 +00:00
Richard Henderson
61f3b78faa m32r.c: Include toplev.h.
* m32r.c: Include toplev.h.
        (*): Add ATTRIBUTE_UNUSED as needed to arguments.
        (gen_compare): Rename swap_p to must_swap to match uses.
        Add default abort case.
        (m32r_output_function_epilogue): Remove unused variables.
        (m32r_print_operand): Use HOST_WIDE_INT_PRINT_HEX.
        * m32r.h (PROTO, STDIO_PROTO): Rename XPROTO; unconditionally
        define to empty parameter list.  Update all uses.
        (predicate decls): Use enum machine_mode not int.
        * m32r.md (movsi): Call abort, not fatal_insn.
        (zero_branch_insn, rev_zero_branch_insn): Add default abort case.

From-SVN: r29459
1999-09-16 11:38:52 -07:00
Jason Merrill
033ed3404f decl2.c (finish_file): Also call check_global_declarations for the pending_statics list.
* decl2.c (finish_file): Also call check_global_declarations for
	the pending_statics list.

From-SVN: r29458
1999-09-16 13:48:20 -04:00
Kaveh R. Ghazi
c2e3db9254 gjavah.c (get_field_name, [...]): Use xmalloc, not malloc.
* gjavah.c (get_field_name, print_method_info, print_include,
	add_namelet): Use xmalloc, not malloc.

	* jcf-depend.c (add_entry): Likewise.  Use xstrdup, not strdup.
	(munge): Use xrealloc, not realloc, trust xrealloc to handle a
	NULL pointer.

	* jcf-io.c (open_in_zip, find_class): Use xstrdup, not strdup.

	* jcf-parse.c (jcf_out_of_synch, yyparse): Likewise.

	* jcf-path.c (add_entry): Likewise.

	* jcf.h (ALLOC, REALLOC): Use xmalloc/xrealloc, not malloc/realloc.

	* jv-scan.c (xmalloc): Remove definition.

	* jvgenmain.c (xmalloc): Likewise.

	* jvspec.c (lang_specific_driver): Use xcalloc, not xmalloc/bzero.

	* lex.c (java_store_unicode): Use xrealloc, not realloc.

	* parse-scan.y: Use concat, not of xmalloc/assign/strcpy.  Use
	concat, not xmalloc/sprintf.
	(java_push_parser_context): Use xcalloc, not xmalloc/bzero.
	(xstrdup): Remove definition.

	* parse.y (duplicate_declaration_error_p,
	constructor_circularity_msg, verify_constructor_circularity,
	check_abstract_method_definitions, java_check_regular_methods,
	java_check_abstract_methods, patch_method_invocation,
	check_for_static_method_reference, patch_assignment, patch_binop,
	patch_cast, array_constructor_check_entry, patch_return,
	patch_conditional_expr): Use xstrdup, not strdup.

	* zextract.c (ALLOC): Use xmalloc, not malloc.

From-SVN: r29457
1999-09-16 15:45:15 +00:00
Andrew Haley
7ca3e7133c mips.md (movsi_usw): if operand 1 is const_int 0, use $0 instead of 0.
1999-09-14  Andrew Haley  <aph@cygnus.com>

	* config/mips/mips.md (movsi_usw): if operand 1 is const_int 0,
	use $0 instead of 0.

From-SVN: r29456
1999-09-16 12:06:56 +00:00
Bernd Schmidt
2feb9704c2 Bugfix in order_regs_for_reload
From-SVN: r29455
1999-09-16 09:55:48 +00:00
Jeff Law
7402eca07a Daily bump.
From-SVN: r29454
1999-09-16 01:45:10 -06:00
Mark Mitchell
21204d3437 function.c (identify_blocks): Don't shadow a variable in an outer scope.
* function.c (identify_blocks): Don't shadow a variable in an
	outer scope.
	* integrate.c (integrate_decl_tree): Don't use pushlevel,
	pushdecl, or poplevel to build up the new BLOCK tree.
	(expand_inline_function): Likewise.
	(integrate_parm_decls): Likewise.

From-SVN: r29453
1999-09-16 04:39:52 +00:00
Mark Mitchell
afbadaa701 * c-typeck.c (qualify_type): Merge qualifiers from both types.
From-SVN: r29451
1999-09-16 04:16:32 +00:00
Mark Mitchell
24f30ed448 decl.c (warn_extern_redeclared_static): Simplify.
* decl.c (warn_extern_redeclared_static): Simplify.  Catch
	problems with extern "C" functions redeclared as static.
	(duplicate_decls): When a builtin is redeclared static, make the
	new function have internal linkage.

From-SVN: r29450
1999-09-16 01:20:45 +00:00
Brad Lucier
9605da8a3f toplev.c: Allow -f[no-]math-errno to set (clear) flag_errno_math
* toplev.c: Allow -f[no-]math-errno to set (clear) flag_errno_math
        * invoke.texi: Document this change.

From-SVN: r29449
1999-09-15 18:17:50 -07:00
Richard Henderson
fa51b01b55 emit-rtl.c (free_emit_status): Don't check DECL_DEFER_OUTPUT.
* emit-rtl.c (free_emit_status): Don't check DECL_DEFER_OUTPUT.
        Free the struct.
        (mark_emit_status): Renamed from mark_emit_state.
        * except.c (mark_eh_status): Renamed from mark_eh_state.
        Check not null before marking.
        (free_eh_status): New.
        * expr.c (mark_expr_status, free_expr_status): New.
        * function.c (free_machine_status): New.
        (free_after_parsing): New.
        (free_after_compilation): Move bits to free_after_parsing; call
        free_eh_status, free_expr_status; zero the marked members of the
        function state.
        (prepare_function_start): No can_garbage_collect.
        Call init_eh_for_function.
        (expand_dummy_function_end): Free up current_function state.
        (mark_function_status): Renamed from mark_function_state.
        (mark_function_chain): No can_garbage_collect.  Call mark_expr_status.
        * function.h (struct function): No can_garbage_collect.
        (free_machine_status, free_after_parsing): Declare.
        (free_eh_status, free_expr_status): Declare.
        * ggc.h (mark_expr_status): Declare.
        * stmt.c (free_stmt_status): Free the struct.
        (mark_stmt_status): Renamed from mark_stmt_state.
        (init_stmt): Don't call init_eh.
        (init_stmt_for_function): Don't call init_eh_for_function.
        * toplev.c (compile_file): Call init_eh.
        (rest_of_compilation): Free basic block info before ggc_collect.
        Call free_after_parsing; conditionally call free_after_compilation.
        * varasm.c (mark_varasm_status): Renamed from mark_varasm_state.
        Check not null before marking.

From-SVN: r29448
1999-09-15 18:12:25 -07:00
Richard Henderson
637194e69a * c-lex.c (yylex): Initialize warn.
From-SVN: r29447
1999-09-15 17:54:31 -07:00
Jeffrey A Law
dd8c13e387 pa.c (emit_move_sequence): Properly set the mode of the scratch register when...
* pa.c (emit_move_sequence): Properly set the mode of the scratch
        register when performing secondary reloads for the SAR register.

From-SVN: r29446
1999-09-15 18:38:00 -06:00
Mark Mitchell
5019d7a7f0 * tree.h (reorder_block): Change prototype.
From-SVN: r29445
1999-09-16 00:23:25 +00:00
Jason Merrill
777ffbda17 lex.c (cp_pragma_implementation): Allow #pragma implementation in header files.
* lex.c (cp_pragma_implementation): Allow #pragma implementation
	in header files.

From-SVN: r29444
1999-09-15 20:02:09 -04:00
Jason Merrill
d4c2d8af76 fix comment
From-SVN: r29443
1999-09-15 20:01:54 -04:00
Richard Henderson
01fba8d9ba * lex.c (mark_impl_file_chain): Follow the next chain.
From-SVN: r29442
1999-09-15 16:08:16 -07:00
Mark Mitchell
1a4450c78f rtl.h (NOTE_BLOCK_NUMBER): Replace with ...
* rtl.h (NOTE_BLOCK_NUMBER): Replace with ...
	(NOTE_BLOCK): New macro.
	(NOTE_BLOCK_LIVE_RANGE_BLOCK): Remove.
	* function.h (identify_blocks): CHange prototype.
	* function.c (identify_blocks): Simplify.
	(reorder_blocks): Likewise.
	* ggc-common.c (ggc_mark_rtx): Mark the BLOCK associated with a
	NOTE_INSN_BLOCK_{BEG,END}.
	* haifa-sched.c (sched_analyze): Don't put NOTE_BLOCK_NUMBER on
	the list of saved notes if the note isn't a
	NOTE_INSN_BLOCK_{BEG,END}.
	(move_insn1): Use NOTE_EH_HANDLER in comment, rather than
	NOTE_BLOCK_NUMBER.
	(reemit_notes): Adjust recreation of notes to reflect new saved
	note structure.
	* print-rtl.c (print_rtx): Print the address of the BLOCK when
	printing a block note.
	* stmt.c (block_vector): Remove.
	(find_loop_tree_blocks): Simplify.
	(unroll_block_trees): Likewise.

From-SVN: r29441
1999-09-15 23:05:05 +00:00
Mark Mitchell
371534a917 decl2.c (build_expr_from_tree): Handle VA_ARG_EXPR.
* decl2.c (build_expr_from_tree): Handle VA_ARG_EXPR.
	* pt.c (tsubst_copy): Likewise.
	* tree.c (search_tree): Likewise.
	(mapcar): Likewise.

From-SVN: r29440
1999-09-15 22:49:33 +00:00
Jason Merrill
c063dc9813 gbl-ctors.h: Lose HAVE_ATEXIT.
* gbl-ctors.h: Lose HAVE_ATEXIT.  Don't define ON_EXIT.
	* libgcc2.c: Lose obsolete defn of WEAK_ALIAS.
	(__bb_init_func, __bb_init_prg): Use atexit instead of ON_EXIT.
	(__do_global_dtors): Likewise.  Don't mess with _exit_dummy_decl.
	(atexit, exit): Simplify.
	* tm.texi: Document NEED_ATEXIT and ON_EXIT.  Remove HAVE_ATEXIT.
	* config/lots: Remove defns of HAVE_ATEXIT.

From-SVN: r29439
1999-09-15 17:41:16 -04:00
Mark Mitchell
19832c7774 calls.c (precompute_arguments): Fix typo in comment.
* calls.c (precompute_arguments): Fix typo in comment.
	* expr.c (preexpand_calls): Don't preexpand the cleanup in a
	TARGET_EXPR.

From-SVN: r29438
1999-09-15 17:21:35 +00:00
Mark Mitchell
640e1822bc * dsp16xx.c (override_options): Fix typos in GC root registration.
From-SVN: r29437
1999-09-15 16:55:37 +00:00
Philip Blundell
e68eda9101 Fix profiling support and unique section support.
From-SVN: r29436
1999-09-15 14:27:19 +00:00
Kaveh R. Ghazi
23fb21ff10 * actions.c (warn_unhandled): Use xstrdup, not xmalloc/strcpy.
From-SVN: r29435
1999-09-15 14:18:33 +00:00
Kaveh R. Ghazi
c1b59dce97 genattr.c (main): Add extern prototype.
* genattr.c (main): Add extern prototype.  Call return, not exit.
	* genattrtab.c (main): Likewise.
	* gencheck.c (main): Likewise.
	* gencodes.c (main): Likewise.
	* genconfig.c (main): Likewise.
	* genemit.c (main): Likewise.
	* genextract.c (main): Likewise.
	* genflags.c (main): Likewise.
	* gengenrtl.c (main): Likewise.
	* genopinit.c (main): Likewise.
	* genoutput.c (main): Likewise.
	* genpeep.c (main): Likewise.
	* genrecog.c (main): Likewise.

	* genattr.c (get_insn_name): Mark parameter with ATTRIBUTE_UNUSED.
	* genattrtab.c (get_insn_name): Likewise.
	* gencodes.c (get_insn_name): Likewise.
	* genconfig.c (get_insn_name): Likewise.
	* genemit.c (get_insn_name): Likewise.
	* genextract.c (get_insn_name): Likewise.
	* genflags.c (get_insn_name): Likewise.
	* genopinit.c (get_insn_name): Likewise.
	* genpeep.c (get_insn_name): Likewise.

	* gencheck.c (usage): Add static prototype.
	* genextract.c (print_path): Constify a char*.
	* genopinit.c (optabs): Likewise.
	* genoutput.c (operand_data, data, output_predicate_decls,
	compare_operands): Likewise.
	* genrecog.c (write_tree): Add default case in switch.

From-SVN: r29434
1999-09-15 14:13:50 +00:00
Kaveh R. Ghazi
7adfcfed37 rtl.h (get_insn_name, [...]): Add prototypes.
* rtl.h (get_insn_name, print_rtl_with_bb): Add prototypes.

	* print-rtl.c (get_insn_name): Remove prototype.

	* toplev.h (progname): Declare const.

	* toplev.c (init_decl_processing, init_obstacks, init_tree_codes,
	init_regs, init_optabs, init_stmt, init_reg_sets, dump_flow_info,
	dump_sched_info, dump_local_alloc, regset_release_memory,
	print_rtl, print_rtl_with_bb, rest_of_decl_compilation,
	error_with_file_and_line, error_with_decl, error_for_asm, error,
	fatal, warning_with_file_and_line, warning_with_decl, warning,
	pedwarn, pedwarn_with_decl, pedwarn_with_file_and_line, sorry):
	Remove redundant prototypes.

	(notice, check_lang_option, report_file_and_line, vnotice,
	mark_file_stack): Add static prototype.
	(set_fatal_function): Add prototype.
	(vnotice, report_file_and_line, set_fatal_function,
	check_lang_option): Constify a char*.
	(main): Prototype.  Call return, not exit.

cp:

	* typeck2.c (ack): Don't declare progname.

From-SVN: r29433
1999-09-15 14:04:10 +00:00
Kaveh R. Ghazi
04cabffc4e aclocal.m4 (AC_GCC_C_LONG_DOUBLE): New macro.
* aclocal.m4 (AC_GCC_C_LONG_DOUBLE): New macro.

        * configure.in (AC_GCC_C_LONG_DOUBLE): Call it.

        * gansidecl.h (HAVE_LONG_DOUBLE): Define if gcc for stage2.

        * ggc-simple.c (HAVE_LONG_DOUBLE): Test before using long double.

From-SVN: r29432
1999-09-15 13:53:46 +00:00
Bernd Schmidt
0d1416c6a2 Remove second arg from assign_parms
From-SVN: r29431
1999-09-15 10:07:22 +00:00
Nathan Sidwell
dd42155e21 typeck.c (expr_sizeof): Reinstall and augment OFFSET_REF comment.
* typeck.c (expr_sizeof): Reinstall and augment OFFSET_REF
	comment.

From-SVN: r29429
1999-09-15 08:58:51 +00:00
Jeff Law
7462a33f04 Daily bump.
From-SVN: r29428
1999-09-15 01:45:08 -06:00