Commit Graph

25140 Commits

Author SHA1 Message Date
Andrew Haley
6c85df6949 varasm.c (function_defined): Remove.
1999-11-22  Andrew Haley  <aph@cygnus.com>

        * varasm.c (function_defined): Remove.
        (make_function_rtl): Don't set function_defined.
        (make_decl_rtl): Remove global register warning.
        * regclass.c (no_global_reg_vars): New variable.
        (globalize_reg): Warn if function has already been defined.
        (regclass_init): Set no_global_reg_vars.

From-SVN: r30611
1999-11-22 14:20:35 +00:00
Jan Hubicka
9ffc5a70f8 regclass.c (reg_pref): New structure and static variable
* regclass.c (reg_pref): New structure and static variable
	(prefclass): Delete.
	(altclass): Delete.
	(all uses of prefclass and altclass): Use reg_pref instead.

From-SVN: r30610
1999-11-22 13:43:39 +00:00
Jeff Law
28a22acb45 Daily bump.
From-SVN: r30609
1999-11-22 01:45:06 -07:00
Anthony Green
48aedbca8b constants.c (find_methodref_index): Unwrap method names before inserting them in the constant pool.
* constants.c (find_methodref_index): Unwrap method names before
        inserting them in the constant pool.

        * jcf-parse.c (jcf_parse): Display `interface' when appropriate.

        * class.c (assume_compiled_node): New typedef.
        (assume_compiled_tree): New static data.
        (find_assume_compiled_node): New function.
        (add_assume_compiled): New function.
        (assume_compiled): New function.
        * class.c (make_class_data): Use assume_compiled.
        (is_compiled_class): Use assume_compiled.

        * java-tree.h (add_assume_compiled): Declare.

        * lang.c (lang_decode_option): Parse new options.

From-SVN: r30608
1999-11-21 23:37:58 +00:00
Alexandre Oliva
250ba2372c * delete2.C, delete3.C, delete4.C, delete5.C: New tests.
From-SVN: r30607
1999-11-21 17:49:59 +00:00
Alexandre Oliva
c7edeea32a cp-tree.h (build_vec_delete): Remove `auto_delete' argument.
* cp-tree.h (build_vec_delete): Remove `auto_delete' argument.
* init.c (build_vec_delete, build_vec_delete_1): Likewise.
Always destruct virtual bases of array components, but never
delete them.
(build_vec_init): Adjust invocations.
(build_delete): Likewise.
* decl2.c (delete_sanity): Likewise.

From-SVN: r30606
1999-11-21 17:44:34 +00:00
Nick Clifton
5f1e6755ec Rename -mshort-load-bytes switch to -malignment-traps
From-SVN: r30604
1999-11-21 16:11:20 +00:00
Jan Hubicka
5b8ad69915 Oops, forgot the Changleog entry.
* global.c (allocno): New structure and static variable.
	(allocno_reg): Remove, all references replaced by allocno.
	(allocno_size): Likewise.
	(hard_reg_conflicts): Likewise.
	(hard_reg_preferences): Likewise.
	(hard_reg_copy_preferences): Likewise.
	(hard_reg_full_preferences): Likewise.
	(regs_someone_prefers): Likewise.
	(allocno_calls_crossed): Likewise.
	(allocno_n_refs): Likewise.
	(allocno_live_length): Likewise.
	(find_reg): Rename ALLOCNO to NUM.

From-SVN: r30603
1999-11-21 12:56:01 +00:00
Jan Hubicka
5c0ecffe47 global.c (allocno): New structure and static variable.
* global.c (allocno): New structure and static variable.
	(allocno_reg): Remove, all references replaced by allocno.
	(allocno_size): Likewise.
	(hard_reg_conflicts): Likewise.
	(hard_reg_preferences): Likewise.
	(hard_reg_copy_preferences): Likewise.
	(hard_reg_full_preferences): Likewise.
	(regs_someone_prefers): Likewise.
	(allocno_calls_crossed): Likewise.
	(allocno_n_refs): Likewise.
	(allocno_live_length): Likewise.
	(find_reg): Rename ALLOCNO to NUM.

From-SVN: r30602
1999-11-21 12:53:31 +00:00
Jan Hubicka
ee59f29bd9 regclass.c (may_move_in_cost): Rename from may_move_cost, all references updated.
* regclass.c (may_move_in_cost): Rename from may_move_cost, all
	references updated.
	(may_move_out_cost): New variable.
	(init_reg_sets_1): Initialize may_move_out_cost.
	(record_reg_classes): Use may_move_out_cost.

From-SVN: r30601
1999-11-21 12:40:47 +00:00
Jan Hubicka
246fd41f2d regclass.c (dump_regclass): New function.
* regclass.c (dump_regclass): New function.
	(regclass): New parameter DUMP, call DUMP_REGCLASS.
	* toplev.c (rest_of_compilation): Opent lreg dump file before regclass,
	pass rtl_dump_file to regclass.
	* rtl.h (regclass): Update prototype.

From-SVN: r30600
1999-11-21 12:33:17 +00:00
Jeff Law
eeae2112fa Daily bump.
From-SVN: r30599
1999-11-21 01:45:07 -07:00
Geoff Keating
8b1cb95b76 varasm.c (output_constructor): Solve problem with long long bitfields...
* varasm.c (output_constructor): Solve problem with long long
bitfields, even on BYTES_BIG_ENDIAN machines (testcase 991118-1).

From-SVN: r30598
1999-11-21 07:53:01 +00:00
Jan Hubicka
06a964de82 i386.md (neg, [...]): Revmap to use ix86_expand_unary_operator and ix86_unary_operator_ok.
* i386.md (neg, not and abs patterns): Revmap to use
        ix86_expand_unary_operator and ix86_unary_operator_ok.
        (add?f and sub?f expanders): Force operand 1 to register.
        * i386.c (ix86_expand_unary_operator): Rewrite.
        (ix86_unary_operator_ok): Ensure that memory operands
        match real opcode.
        (ix86_binary_operator_ok): Do not allow operand 1 to
        come into memory and operand 0 not.
        (ix86_expand_binary_operator): Ensure that
        src1 is not non-matching memory.

From-SVN: r30597
1999-11-21 01:34:22 +00:00
Jan Hubicka
1ce485ec43 i386.md (negs?2): Rewrite to expanders...
* i386.md (negs?2): Rewrite to expanders, new patterns and splitters
	to support integer registers and memory.
	(abss?2_integer): Likewise.

From-SVN: r30596
1999-11-21 00:04:15 +00:00
Jeff Law
65c93378bc Daily bump.
From-SVN: r30595
1999-11-20 01:45:06 -07:00
Jan Hubicka
8fcaaa8099 i386.h (enum reg_class): Add FLOAT_INT_REGS.
* i386.h (enum reg_class): Add FLOAT_INT_REGS.
	(REG_CLASS_NAMES): Likewise.
	(REG_CLASS_CONTENTS): Define FLOAT_INT_REGS as union of FLOAT_REGS
	and GENERAL_REGS.
	* i386.md (pushsf): Do not preferre FLOAT_REGS over GENERAL_REGS.
	(movsf): Likewise; unify 4th and 5th alternative.
	(pushdf): Likewise.
	(movdf_1): Likewise; rename to movdf_integer.
	(pushxf): Likewise; rename to pushxf_integer; fix output template;
	remove redundant splitter.
	(movxf_1): Likewise; rename to movxf_integer; fix splitter's condition.
	(movdf_nointeger): New.
	(movxf_nointeger): New.
	(pushxf_nointeger): New.

From-SVN: r30594
1999-11-19 20:50:36 +00:00
Jan Hubicka
f97d9ec377 i386.md (extend?f?f): Split to expander and pattern, refuse two memory operands in patterns.
* i386.md (extend?f?f): Split to expander and pattern, refuse two
	memory operands in patterns.
	(fop*): Refuse two memory operands.

From-SVN: r30593
1999-11-19 20:27:08 +00:00
Jan Hubicka
c37d59c3e7 i386.md (ashrsi3_31): Allow cltd when optimizing for size even on !TARGET_USE_CLTD CPUs.
* i386.md (ashrsi3_31): Allow cltd when optimizing for size even
	on !TARGET_USE_CLTD CPUs.

From-SVN: r30592
1999-11-19 20:12:14 +00:00
Tom Tromey
3cf88fb4e8 sjlj jumbo patch
From-SVN: r30591
1999-11-19 19:13:42 +00:00
Diego Novillo
2395f8059c * MAINTAINERS: Add new 'write after approval' maintainer.
From-SVN: r30590
1999-11-19 13:23:48 -05:00
Diego Novillo
14592a41e8 rtl.texi (mem): Add documentation for alias-set argument to RTX `mem'.
* rtl.texi (mem): Add documentation for alias-set argument
	to RTX `mem'.

From-SVN: r30589
1999-11-19 12:23:37 -05:00
Nathan Sidwell
e5315fad4d * g++.old-deja/g++.ext/restrict1.C: New test.
From-SVN: r30588
1999-11-19 13:04:48 +00:00
Nathan Sidwell
535233a89f extend.texi: Document C++ restricted pointers and references.
* extend.texi: Document C++ restricted pointers and references.

	* cp-tree.h (grok_method_quals): Return this pointer qualifiers.
	* decl.c (grokdeclarator): Adjust calls to grok_method_quals.
	* decl2.c (grok_method_quals): Accept `restrict' as applying to
	the object pointer. Return such qualifiers.
	(grokclassfn): Apply this pointer qualifiers. Cleanup unused
	variables.

From-SVN: r30587
1999-11-19 13:03:00 +00:00
Bernd Schmidt
73d65336b7 addr_affects_sp_p now unconditional
From-SVN: r30586
1999-11-19 11:36:25 +00:00
Jan Hubicka
96e7ae40d8 i386.h (struct_processor_costs): New fileds int_load, int_store, fp_move, fp_load and fp_store
* i386.h (struct_processor_costs): New fileds int_load, int_store, fp_move,
	fp_load and fp_store
	(REGISTER_MOVE_COST): Fix comment, calculate exactly the cost of
	fp->int moves
	(MEMORY_MOVE_COST): New macro.
	* i386.c (386_cost): Define new fields.
	(i486_cost): Likewise.
	(pentium_cost): Likewise.
	(pentiumpro_cost): Likewise.
	(k6_cost): Likewise.

From-SVN: r30585
1999-11-19 09:12:18 +00:00
Jeff Law
25b540c639 Daily bump.
From-SVN: r30584
1999-11-19 01:45:07 -07:00
Alexandre Oliva
6630745103 * template7.C: Crash test passes, bug error is now bogus.
From-SVN: r30583
1999-11-19 06:36:45 +00:00
Alexandre Oliva
0f7324bf0a Changed my e-mail address to oliva@lsd.ic.unicamp.br
From-SVN: r30582
1999-11-19 03:23:11 +00:00
Alexandre Petit-Bianco
4832340ccc class.c (layout_class): Always convert TYPE_SIZE_UNIT to int_type_node...
Wed Nov 17 21:09:28 1999  Alexandre Petit-Bianco  <apbianco@cygnus.com>

	* class.c (layout_class): Always convert TYPE_SIZE_UNIT to
 	int_type_node: that's what `_Jv_AllocObject' expects.

From-SVN: r30581
1999-11-18 17:43:21 -08:00
Gabriel Dos Reis
9c5c5c8a31 valarray_meta.h (_DEFINE_EXPR_UNARY_FUNCTION): Don't forget to define tanh.
1999-11-19  Gabriel Dos Reis  <dosreis@cmla.ens-cachan.fr>

        * std/valarray_meta.h (_DEFINE_EXPR_UNARY_FUNCTION): Don't forget
        to define tanh.

From-SVN: r30580
1999-11-19 01:40:12 +00:00
Greg McGary
b71733d53f m68kelf.h: Suppress '/* within comment' warning.
* config/m68k/m68kelf.h: Suppress '/* within comment' warning.

* config/m68k/m68k.h (MASK_PCREL): Don't use same value as
MASK_ALIGN_INT.

* config/m68k/m68k.h (MASK_NO_STRICT_ALIGNMENT): New macro.
(TARGET_STRICT_ALIGNMENT): New macro.
(TARGET_SWITCHES): Add "strict-align" and "no-strict-align".
(STRICT_ALIGNMENT): Depend on TARGET_STRICT_ALIGNMENT.
* invoke.texi (M680x0 Options): Document -mstrict-align.

Co-Authored-By: Geoff Keating <geoffk@cygnus.com>

From-SVN: r30579
1999-11-19 00:23:01 +00:00
Jan Hubicka
2450a05729 i386-protos.h (split_xf, [...]): Remove.
* i386-protos.h (split_xf, ix86_split_movdi): Remove.
        (ix86_split_long_move): Declare.
        * i386.c (split_xf, ix86_split_movdi): Remove.
        (ix86_split_to_parts, ix86_split_long_move): New.
        * i386.md (dimode move splitters): Use ix86_split_long_move.
        (dfmode move splitters): Likewise.
        (xfmode move splitters): Likewise.
        (movsf_1): Allow F->r.
        (movdf_1, movxf_1): Allow F->ro.

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

From-SVN: r30578
1999-11-18 11:10:44 -08:00
Mark Mitchell
4a6ef811c8 except.c (expand_end_catch_block): Fix typo.
* except.c (expand_end_catch_block): Fix typo.
	(expand_exception_blocks): Simplify.  Don't call
	expand_leftover_cleanups.

From-SVN: r30577
1999-11-18 17:52:27 +00:00
Mark Mitchell
1e4ceb6f9e except.h (struct eh_entry): Add goto_entry_p.
* except.h (struct eh_entry): Add goto_entry_p.
	(eh_region_from_symbol): Remove prototype.
	* except.c (find_func_region_from_symbol): New function.
	(emit_cleanup_handler): Likewise.
	(eh_region_from_symbol): Make it static.
	(add_new_handler): Verify the argument.
	(find_func_region): Update comment.
	(expand_eh_region_end): Expand handlers here, rater than waiting
	until expand_leftover_cleanups or start_all_catch.
	(expand_leftover_cleanups): Don't expand here.
	(expand_start_all_catch): Or here.
	(expand_rethrow): Check the return value from find_func_region.
	* function.c (expand_function_end): Emit the catch_clauses.

From-SVN: r30576
1999-11-18 17:50:56 +00:00
Gavin Romig-Koch
0e6b2107ca * integrate.c (expand_inline_function): Add necessary check for NULL.
From-SVN: r30575
1999-11-18 15:12:51 +00:00
Nick Clifton
bb51178fb1 Fix command line parsing to report unrecognised options.
From-SVN: r30574
1999-11-18 11:01:34 +00:00
Jeff Law
7f7df3111d Daily bump.
From-SVN: r30573
1999-11-18 01:45:07 -07:00
Michael Gschwind
5a42589324 basic-block.h (update_life_extent): Remove trailing comma on enumeration type list.
* basic-block.h (update_life_extent): Remove trailing comma on
        enumeration type list.

From-SVN: r30572
1999-11-18 01:00:50 -07:00
Herman A.J. ten Brugge
dfb2c079b1 * varasm.c (output_constructor) Solved problem with long long
bitfields. Corrected calculating this_time and shift. Also
        corrected calculating mask when BITS_PER_UNIT == 32 (c4x).

From-SVN: r30571
1999-11-18 00:57:32 -07:00
Herman A.J. ten Brugge
ee7602056e * gcc.c-torture/execute/991118-1.c: New test.
From-SVN: r30570
1999-11-18 00:56:12 -07:00
Tom Tromey
8cb9ab4b7e * no-threads.cc (_Jv_ThreadStart): Use JvFail and not JvAssert.
From-SVN: r30569
1999-11-18 07:32:50 +00:00
Tom Tromey
5b8c39e0aa natClass.cc (MCACHE_SIZE): Define as a power of 2 minus 1.
* java/lang/natClass.cc (MCACHE_SIZE): Define as a power of 2
	minus 1.
	(method_cache): Made larger.

From-SVN: r30568
1999-11-18 07:19:00 +00:00
Jeffrey A Law
9aa137f325 flow.c (split_edge): Take looping structure into account when determining where to put the new block...
* flow.c (split_edge): Take looping structure into account when
	determining where to put the new block note.

From-SVN: r30567
1999-11-17 23:45:55 -07:00
Godmar Back
7c2e3b9b52 typeck.c: (lookup_java_method): search all inherited interfaces when...
Wed Nov  3 15:20:02 MST 1999  Godmar Back <gback@cs.utah.edu>

        * typeck.c: (lookup_java_method):  search all inherited
        interfaces when looking up interface method.

From-SVN: r30566
1999-11-17 19:59:48 -08:00
Jeff Law
13aa2d0521 Replace spaces with tab in last change.
From-SVN: r30565
1999-11-17 20:59:33 -07:00
Jeff Holcomb
d7160de971 Makefile.in (ggc-none.o): Provide host specific version if needed.
* Makefile.in (ggc-none.o): Provide host specific version if
        needed.

From-SVN: r30564
1999-11-17 20:52:39 -07:00
Richard Henderson
e7a59e04e7 cse.c (delete_trivially_dead_insns): Identify no-op insns containing subregs too.
* cse.c (delete_trivially_dead_insns): Identify no-op insns
        containing subregs too.

From-SVN: r30563
1999-11-17 16:52:07 -08:00
Diego Novillo
919509ceea invoke.texi: Add documentation for -muninit-const-in-rodata.
* invoke.texi: Add documentation for -muninit-const-in-rodata.
	* config/mips/mips.h (MASK_UNINIT_CONST_IN_RODATA): Define.
	(TARGET_UNINIT_CONST_IN_RODATA): Define.
	(text_section): Add switches -munint-const-in-rodata and
	-mno-uninit-const-in-rodata.
	(ASM_OUTPUT_COMMON): Remove.
	(ASM_OUTPUT_ALIGNED_DECL_COMMON): Define. Check if uninitialized
	const objects should be placed in read-only data. Otherwise declare
	them in common.

From-SVN: r30562
1999-11-17 19:41:13 -05:00
Richard Henderson
d49256bbdf * jump.c (jump_optimize_1): Revert last change.
From-SVN: r30561
1999-11-17 16:39:00 -08:00