Commit Graph

24145 Commits

Author SHA1 Message Date
Mark Mitchell
8d54f0f03b ir.texi: Improve documentation for TARGET_EXPRs.
* ir.texi: Improve documentation for TARGET_EXPRs.  Discuss
	STMT_IS_FULL_EXPR_P.

From-SVN: r29647
1999-09-24 01:43:49 +00:00
Mark Mitchell
914653a2a7 cp-tree.h (language_function): Add cannot_inline.
* cp-tree.h (language_function): Add cannot_inline.
	* decl.c (start_function): Restore current_function_cannot_inline
	from the saved value.
	(save_function_data): Save current_function_cannot_inline.
	* decl2.c (start_objects): Change prototype.  Build the function
	in function-at-a-time mode.
	(finish_objects): Likewise.
	(generate_ctor_or_dtor_function): Adjust accordingly.

From-SVN: r29646
1999-09-24 01:29:29 +00:00
Mark Mitchell
0fa5e05c2f cp-tree.h (DECL_ANON_UNION_ELEMS): New macro.
* cp-tree.h (DECL_ANON_UNION_ELEMS): New macro.
	* decl2.c (finish_anon_union): Set DECL_ANON_UNION_ELEMS.
	Don't call expand_anon_union_decl here
	* semantics.c (exapnd_stmt): Call it here, instead.
	* typeck.c (mark_addressable): Addressed variables are implicitly
	used.

From-SVN: r29645
1999-09-24 01:17:29 +00:00
Mark Mitchell
a571f7a00e stmt.c (expand_start_bindings): Don't allow cleanup isntructions to disappear.
* stmt.c (expand_start_bindings): Don't allow cleanup isntructions
	to disappear.

From-SVN: r29644
1999-09-24 01:14:54 +00:00
Mark Mitchell
541b0512b1 * optabs.c (init_traps): Register trap_rtx as a GC root.
From-SVN: r29643
1999-09-24 01:03:58 +00:00
Martin v. Löwis
da8a66fc9f cp-tree.h (VAR_OR_FUNCTION_DECL_CHECK): New macro.
* cp-tree.h (VAR_OR_FUNCTION_DECL_CHECK): New macro.
	(RECORD_OR_UNION_TYPE_CHECK, LANG_IDENTIFIER_CAST): Likewise.
	(DEFARG_NODE_CHECK): Remove; replace with DEFAULT_ARG_CHECK.
	* cp-tree.h: Add tree checking macros to various tree access
	macros.
	* ptree.c (print_lang_decl): Test for function or variable
	before accessing template info.

From-SVN: r29642
1999-09-23 22:20:08 +00:00
Alexandre Oliva
48f45f57fc mips.c (function_arg_pass_by_reference): Define unconditionally, since it's called unconditionally.
* config/mips/mips.c (function_arg_pass_by_reference): Define
unconditionally, since it's called unconditionally.

From-SVN: r29641
1999-09-23 21:42:45 +00:00
Jason Merrill
3e37bef596 document -fshort-wchar
From-SVN: r29640
1999-09-23 17:19:09 -04:00
Jason Merrill
5096c664f7 lex.c: Get WCHAR_TYPE_SIZE from wchar_type_node.
* lex.c: Get WCHAR_TYPE_SIZE from wchar_type_node.
	* lang-specs.h: If -fshort-wchar, override __WCHAR_TYPE__.
	* decl2.c (lang_f_options): Add -fshort-wchar.
	* cp-tree.h: Declare flag_short_wchar.
	* decl.c (init_decl_processing): If -fshort-wchar, use 'short unsigned
	int' for wchar_t.

From-SVN: r29639
1999-09-23 17:04:10 -04:00
Jason Merrill
12a39b1264 toplev.c (documented_lang_options): Add -fshort-wchar.
* toplev.c (documented_lang_options): Add -fshort-wchar.
	* c-decl.c (c_decode_option): Likewise.
	(init_decl_processing): If -fshort-wchar, use 'short unsigned int'
	for wchar_t.
	* c-common.c, c-lex.c: Get WCHAR_TYPE_SIZE from wchar_type_node.
	* gcc.c (default_compilers): If -fshort-wchar,
	override __WCHAR_TYPE__.
	* tm.texi (C Dialect Options): Add -fshort-wchar.

From-SVN: r29638
1999-09-23 17:03:53 -04:00
Jason Merrill
e689ae6725 dwarf2out.c (output_aranges): Use DW_AT_location to find the symbol for a variable.
* dwarf2out.c (output_aranges): Use DW_AT_location to find the
	symbol for a variable.

From-SVN: r29637
1999-09-23 16:51:06 -04:00
Jason Merrill
c857e3b470 * cpplib.h (CPP_PREPROCESSED): New macro.
From-SVN: r29636
1999-09-23 16:40:51 -04:00
Alex Samuel
43fa63024d Fix PA problem in order of initializations.
* emit-rtl.c (init_emit_once): Initialize modes first.

        Also add missing ChangeLog entry.

From-SVN: r29635
1999-09-23 20:34:19 +00:00
Jason Merrill
e6ad5e9044 cpplib.c (handle_directive): Don't complain about `# NUMBER' if we're seeing this input for a second time.
* cpplib.c (handle_directive): Don't complain about `# NUMBER' if
	we're seeing this input for a second time.

From-SVN: r29634
1999-09-23 16:28:40 -04:00
Richard Henderson
d180395111 Revert unintended GGC change.
From-SVN: r29633
1999-09-23 13:07:28 -07:00
Alex Samuel
21341cfd7f ggc-page.c: New file.
* ggc-page.c: New file.
        * Makefile.in (ggc-page.o): New.

Co-Authored-By: Richard Henderson <rth@cygnus.com>

From-SVN: r29632
1999-09-23 13:00:57 -07:00
Jeffrey A Law
b6d24183df invoke.texi: Document -fdelete-null-pointer-checks
* invoke.texi: Document -fdelete-null-pointer-checks
        * toplev.c (flag_delete_null_pointer_checks): New.
        (f_options): Add entry for -fdelete-null-pointer-checks.
        (rest_of_compilation): Conditionalize null pointer check
        elimination on flag_delete_null_pointer_checks.
        (main): If -O2 or greater, enable -fdelete-null-pointer-checks

From-SVN: r29631
1999-09-23 13:57:50 -06:00
Tom Tromey
0cffaca32c jvspec.c (lang_specific_driver): Don't read spec file if -fsyntax-only given.
* jvspec.c (lang_specific_driver): Don't read spec file if
	-fsyntax-only given.

From-SVN: r29630
1999-09-23 19:45:39 +00:00
Jeff Law
dbe519e013 Should have been checked in with Kingdon's change.
From-SVN: r29629
1999-09-23 13:41:04 -06:00
Tom Tromey
8cd098069c configure: Rebuilt.
* configure: Rebuilt.
	* configure.in: Print message when checking to see if gcj can
	handle -fuse-divide-subroutine.

From-SVN: r29628
1999-09-23 19:38:11 +00:00
Jeff Law
2bcb4e7661 Fix typo in yesterday's massive change.
From-SVN: r29627
1999-09-23 13:11:51 -06:00
Tom Tromey
f08113ce11 natFirstThread.cc (run): Renamed from `run0'.
* java/lang/natFirstThread.cc (run): Renamed from `run0'.  Removed
	dead code.
	* java/lang/FirstThread.java (run0): Renamed to `run'.
	(run): Removed.

From-SVN: r29626
1999-09-23 19:05:50 +00:00
Tom Tromey
9b0cb28706 re GNATS gcj/51 (Writing on OutputStream of bad Socket kills app with "Broken pipe")
* prims.cc (main_init): New function.
	(JvRunMain): Call it.
	(_Jv_RunMain): Likewise.
	Include <signal.h>.
	(main_init): Ignore SIGPIPE.  Fixes PR 51.

From-SVN: r29625
1999-09-23 18:50:59 +00:00
Zack Weinberg
fe1dbf6c7c iso646.h, [...]: Add copyright notice and special exception to GPL.
1999-09-23 10:56 -0700  Zack Weinberg  <zack@bitmover.com>

	* iso646.h, stdarg.h, stdbool.h, stddef.h, varargs.h: Add
	copyright notice and special exception to GPL.

From-SVN: r29624
1999-09-23 18:02:55 +00:00
Kaveh R. Ghazi
bd9f1972b9 abi64.h (mips_function_value): Add prototype arguments.
* abi64.h (mips_function_value): Add prototype arguments.

	* mips-protos.h: New file with mips prototypes.

	* mips.c: Include "tm_p.h".
	(mktemp, lookup_name): Add prototype arguments.
	(extern_list, string_constant, mips_fill_delay_slot,
	mips_output_external, mips_output_external_libcall,
	mips_output_filename, mips_declare_object, function_prologue,
	mips_expand_prologue, function_epilogue, mips16_constant,
	build_mips16_function_stub, mips_output_conditional_branch):
	Constify a char*.
	(mips_va_start): Remove unused variable `u'.
	(mips_va_arg): Cast value to unsigned when comparing against one.
	(trace): Delete.
	(save_restore_insns, mips_expand_prologue): Add missing arg in
	call to `large_int'.

	* mips.h: Move prototypes to mips-protos.h.
	(data_section, memory_address_p, rdata_section,
	readonly_data_section, simple_epilogue_p, text_section): Delete
	prototypes delcared elsewhere.
	(mips_epilogue_delay_slots, print_options): Delete unused decls.
	(trace): Delete.
	(GO_PRINTF, GO_PRINTF2): Call fprintf, not trace.

	* mips.md: Delete extra args in call to `mips_move_2words'.

	* xm-iris6.h (alloca): Add prototype argument.

	* genpeep.c: Include "tm_p.h" in generated output file.

From-SVN: r29623
1999-09-23 17:46:23 +00:00
Andrew MacLeod
d675a42620 basic-block.h (find_edge_index): Change parameters.
Thu Sep 23 10:36:55 EDT 1999  Andrew MacLeod  <amacleod@cygnus.com>

	* basic-block.h (find_edge_index): Change parameters.
	* flow.c (verify_edge_list): Pass basic_block parameters to
	find_edge_index instead of integers.

From-SVN: r29622
1999-09-23 15:07:26 +00:00
Nick Clifton
7ce787fe03 Use unsigned shift instead of signed shift.
From-SVN: r29621
1999-09-23 14:58:54 +00:00
Nick Clifton
f8540d767f Add test case for this patch to combine.c:
* combine.c (simplify_comparison): Use an unsigned shift to adjust
	the constant.

From-SVN: r29620
1999-09-23 14:58:00 +00:00
Guy Harris
99e0c103d4 * gcc.1: Fix a formatting error.
From-SVN: r29619
1999-09-23 08:49:11 -06:00
Martin v. Löwis
55383d8720 install.texi (Configurations): Remove pyramid.
* install.texi (Configurations): Remove pyramid. Add fr30, i686,
	i786, mn10200, mn10300, pdp11, v850.

From-SVN: r29618
1999-09-23 13:58:53 +00:00
Martin v. Löwis
7369be0af4 * ir.texi: Fix formatting errors and typos.
From-SVN: r29617
1999-09-23 13:55:27 +00:00
Dan Nicolaescu
e8f38d1ace libgcc2.c (num_digits): Add prototype with __attribute__((const)).
* libgcc2.c (num_digits): Add prototype with
        __attribute__((const)).
        (__terminate): Add prototype.

From-SVN: r29616
1999-09-23 07:37:49 -06:00
Jeff Law
8b0212ca2a regclass.c: Include ggc.h.
* regclass.c: Include ggc.h.
        * Makefile.in (regclass.o): Add ggc.h to dependency list.

From-SVN: r29615
1999-09-23 07:07:39 -06:00
Richard Henderson
aa388f29a3 builtins.c, [...]: Include tm_p.h.
* builtins.c, dbxout.c, varasm.c: Include tm_p.h.

        * alpha/alpha.c (print_operand): Fix type of `code'.
        (alpha_output_filename): Constify.
        * alpha/alpha.h: Move all function declarations ...
        * alpha/alpha-protos.h: ... here.  New file.
        * alpha/elf.h (CONST_SECTION_FUNCTION): Prototype the function.
        (SECTION_FUNCTION_TEMPLATE): Likewise.

From-SVN: r29614
1999-09-23 05:36:06 -07:00
Bernd Schmidt
1c0290eaac Use cbranch patterns when available
From-SVN: r29613
1999-09-23 11:34:49 +00:00
Jeff Law
708d3415cf Daily bump.
From-SVN: r29612
1999-09-23 01:45:09 -06:00
Jeff Law
625bcba80f Add missing \
From-SVN: r29611
1999-09-22 20:23:48 -06:00
Mark Mitchell
203a051fdd * ir.texi: Document CLEANUP_STMT, SCOPE_STMT, and START_CATCH_STMT.
From-SVN: r29610
1999-09-23 02:10:55 +00:00
Mark Mitchell
5fdaba8942 decl.c (pushdecl): Do create a binding for extern "C" functions...
* decl.c (pushdecl): Do create a binding for extern "C" functions,
	but not for their DECL_ASSEMBLER_NAMEs.
	(lookup_name_current_level): Fix formatting.
	(xref_tag): Likewise.
	* decl2.c (start_objects): Mark static constructors and
	destructors as used.

From-SVN: r29609
1999-09-23 02:04:33 +00:00
Stan Cox
8da665d583 mips.h (GO_IF_LEGITIMATE_ADDRESS): Don't accept large register offsets; let LEGITIMIZE_ADDRESS load it into a register.
* mips.h (GO_IF_LEGITIMATE_ADDRESS): Don't accept large
register offsets; let LEGITIMIZE_ADDRESS load it into a register.
(LEGITIMIZE_ADDRESS): Use plus_constant to avoid (plus (reg) (const_int 0))
* mips.md (call_internal3c): New pattern for -mips16 -mlong-calls.

From-SVN: r29608
1999-09-23 01:03:13 +00:00
Jeffrey A Law
f38b27c7cb pa.c, [...]: Support multiple assembler dialects in most assembler templates.
* pa.c, pa.h, pa.md: Support multiple assembler dialects in
        most assembler templates.

From-SVN: r29607
1999-09-22 16:32:29 -06:00
David Edelsohn
cc0d9ba869 rs6000.c (expand_block_move): DImode loads and stores require word-aligned displacements.
* rs6000.c (expand_block_move): DImode loads and stores require
	word-aligned displacements.  Increment address registers with
	adddi3 on 64-bit platform.  Use TARGET_POWERPC64 not TARGET_64BIT.

From-SVN: r29606
1999-09-22 18:27:58 -04:00
Michael Meissner
405f63da1c Fix complex-5.c problem
From-SVN: r29604
1999-09-22 21:37:20 +00:00
Jeffrey A Law
f9bd8d8e45 pa.c (hppa_legitimize_address): Handle full offsets for PA2.0 FP loads and stores.
* pa.c (hppa_legitimize_address): Handle full offsets for PA2.0
        FP loads and stores.
        (following_call): Always return zero for the PA8000.
        * pa.h (GO_IF_LEGITIMATE_ADDRESS): Handle full offsets for PA2.0
        FP loads and stores.
        (LEGITIMIZE_RELOAD_ADDRESS): Similarly.

From-SVN: r29603
1999-09-22 14:50:44 -06:00
Tom Tromey
17f4971f7b * libgcj.spec.in: Use jc1' spec, not cc1' spec.
From-SVN: r29602
1999-09-22 20:44:41 +00:00
Jeffrey A Law
3e47bea8ab * pa.h (BRANCH_COST): Define.
From-SVN: r29601
1999-09-22 14:37:28 -06:00
Tom Tromey
ba02095155 * lang-specs.h: Added `%(jc1)' to the jc1 spec.
From-SVN: r29600
1999-09-22 20:30:30 +00:00
Jeffrey A Law
79077c3f97 * pa.md (return, return_internal): Use bve for PA2.0.
From-SVN: r29599
1999-09-22 14:29:43 -06:00
Jeffrey A Law
9a40d6bc0c pa.md (fused multiply): Add variants which reduce height for the fused multiply...
* pa.md (fused multiply): Add variants which reduce height for the
        fused multiply, but which still generate 2 insns.
        (fnegabs): Similarly.

From-SVN: r29598
1999-09-22 14:24:45 -06:00
Jeffrey A Law
80559c31a6 pa.md (subsi3): Turn into an expander.
* pa.md (subsi3): Turn into an expander.  Create two anonymous
        patterns.  One for PA2.0 one for PA1.x.  Use mtsarcm for PA2.0.
        * pa.h (EXTRA_CONSTRAINT): Handle 'S'.

From-SVN: r29597
1999-09-22 14:11:22 -06:00