Commit Graph

228 Commits

Author SHA1 Message Date
Kaveh Ghazi
5987a4f34a genattr.c: Wrap prototype of `free' in NEED_DECLARATION_FREE.
* genattr.c: Wrap prototype of `free' in NEED_DECLARATION_FREE.
        * genattrtab.c: Likewise.
        * genconfig.c: Likewise.
        * genemit.c: Likewise.
        * genextract.c: Likewise.
        * genflags.c: Likewise.
        * genopinit.c: Likewise.
        * genoutput.c: Likewise.
        * genpeep.c: Likewise.
        * genrecog.c: Likewise.
        * tlink.c: Likewise.  Also wrap `getenv' in NEED_DECLARATION_GETENV.

From-SVN: r18284
1998-02-27 08:23:47 +00:00
Robert Lipe
69d4ca36f4 c-lang.c (finish_file): Bracket declaration of static_ctors, static_dtors.
* c-lang.c (finish_file): Bracket declaration of static_ctors,
	static_dtors.
	* calls.c (expand_call): Bracket declaration of 'rtx_before_call',
	'old_stack_arg_under_construction'
	(emit_library_call): Bracket declaration of 'upper_bound',
	'lower_bound', 'i', 'reg_parm_stack_space'
	(emit_library_call_value): Likewise.
	(store_one_arg):
	* collect2.c: include <unistd.h> when appropriate.
	Bracket declaration of 'exportf' and 'full_real_ld_suffix'.
	* emit-rtl.c (prev_cc0_setter): Remove unused variable 'link'.
	* explow.c (plus_constant_for_output_wide): Remove unused variable
	'code'.
	(memory_address): Remove unused variable 'orig_x'.
	* genattrtab.c (make_canonical): Remove unreferenced label 'cond:'.
	(write_const_num_delay_slots): Remove unused variable 'i'.
	* genopinit.c (main): Remove unused variables 'dummy', 'insn_ptr'.
	(gen_insn): Remove unused variable 'obstack_ptr'.
        * libgcc2.c (__bb_exit_func): Remove unused variables 'ret',
        'j', 'tmp', 'i'.
	(__bb_exit_trace_func): Remove unused variable 'e'.
	* optabs.c (expand_binop): remove unused variables 'lhs', 'rhs',
	'funexp'.
	(expand_unop): Remove unused variable 'funexp'.
	(expand_complex_abs): Remove unused variable 'funexp'.
	(init_optabs): Bracket declaration of 'j'.
	(init_complex_libfuncs): Deleted.  Dead static function.
	* profile.c (branch_prob): Remove unused variables 'insn', 'dest'.
	* reg-stack.c: Fix typo in proto for 'get_asm_operand_lengths'
	(reg_to_stack): 'initialized', 'before_function_beg'
	explictly type as ints instead of defaulting.
	(emit_swap_insn): Remove unused variable 'i2'.
	(compare_for_stack_reg): Remove unused variable 'src_note'.
	* rtlanal.c (computed_jump_p): Remove unused variable 'computed_jump'.
	* sched.c (actual_hazard): Bracket declaration of 'this_cost'.
	* stmt.c (add_case_node): Add parens for assignment used as truth.
	(all_cases_count):  Remove unused variable 'count_high'.
	(mark_seen_cases): Remove unused variable 'i'.
	(check_for_full_enumeration_handling): Remove unused variable 't'.
	Bracket declaration of  'all_values', 'l'.
	* tlink.c: Include <stdlib.h>, <unistd.h>, <string.h>/<strings.h>.
	* varasm.c (assemble_string): Remove unused variable 'i'.
	(immed_double_const): Remove unused variable 'in_current_obstack'.
	(immed_real_const_1): Likewise.
	(output_constant_pool): Remove unreferenced label 'done'.
	(output_constant): Remove unused variable 'x'.
        * i386/i386.h (ENCODE_SECTION_INFO): TREE_PUBLIC is an int, not
        a string.
        * i386/sco5.h (ASM_OUTPUT_ASCII): Add parens for assignment used
        as truth.

From-SVN: r17901
1998-02-13 05:30:56 +00:00
John Carr
2e0dd623cd bitmap.c (bitmap_debug_file): HOST_PTR_PRINTF converts a pointer, not a HOST_WIDE_INT.
* bitmap.c (bitmap_debug_file): HOST_PTR_PRINTF converts a pointer,
	not a HOST_WIDE_INT.
	* calls.c (expand_call): Change test of expand_inline_function
	return value to stop compiler warning.
	* genattrtab.c (RTL_HASH): Cast pointer to long, not HOST_WIDE_INT.

From-SVN: r17777
1998-02-08 05:26:43 -07:00
Robert Lipe
ccd043a956 c-common.c: Include <stdlib.h> and <string.h>/<strings.h>.
* c-common.c: Include <stdlib.h> and <string.h>/<strings.h>.
        * calls.c (expand_call): Remove unused variables funtree,
        n_regs, and tmpmode.
        * dbxout.c, except.c: Include <string.h>/<strings.h>.
        * explow.c: (plus_constant_for_output_wide) Removed unused
        variable all_constant.
        * c-decl.c, genattr.c, genattrtab.c, getconfig.c, genemit.c
        genextract.c, genflags.c, genopinit.c genoutput.c, genpeep.c,
        genrecog.c, global.c, integrate.c , stupid.c : Include
        <stdlib.h>.
        * genextract.c: (walk_rtx) Remove unused variable link.
        * genrecog.c: (concat) Remove unreferenced static function.
        * prefix.c: Include <string.h>/<strings.h>, <stdlib.h>
        * stmt.c: Include <stdlib.h>.
        (expand_asm_operands): Remove unused variable val1.
        (expand_return): Remove unused variable block.
        (pushcase): Remove unused variables l and n.
        (pushcaserange): Likewise.
        * unroll.c (unroll_loop): Remove unused variable temp.

From-SVN: r17766
1998-02-07 15:55:54 -07:00
Jeff Law
c5afbb4907 Forgot to commit these...
From-SVN: r17555
1998-01-30 01:04:59 -07:00
Jeff Law
76d31c6373 rtl.c (read_rtx): Use atol/atoq based upon disposition of HOST_WIDE_INT.
* rtl.c (read_rtx): Use atol/atoq based upon disposition of
        HOST_WIDE_INT.
        * genattrtab.c (write_test_expr): Use HOST_WIDE_INT_PRINT_DEC
        as needed.
        * genemit.c (gen_exp): Likewise.
        * genpeep.c (match_rtx): Likewise.
        * genrecog.c (write_tree_1): Likewise.
        * c-lex.c (yyprint): Use proper format string based upon
        disposition of HOST_BITS_PER_WIDE_INT.
        (yylex): Put casts in right place for args to build_int_2.
        * combine.c: Fix typos in Jan27 changes.

From-SVN: r17544
1998-01-28 16:25:15 -07:00
Mike Stump
21ca87b81b rtlanal.c (dead_or_set_regno_p): Ignore REG_DEAD notes after reload completes.
* rtlanal.c (dead_or_set_regno_p): Ignore REG_DEAD notes after
        reload completes.
        * genattrtab.c (reload_completed): Define.
        * m32r.md, mips.md, mn10200.md, mn10300.md, pyr.md: Remove obsolete
        comments.

From-SVN: r17542
1998-01-28 12:21:54 -07:00
Jim Wilson
5830e3a0ca Fix time/space problem when (const_int 1) occurs in conflict_list.
* genattrtab.c (find_and_mark_used_attributes): Handle CONST_INT.
	(add_values_to_cover): Revert last change (which had no ChangeLog
	entry).
	(simplify_with_current_value_aux): Handle CONST_INT.

From-SVN: r17421
1998-01-19 03:16:37 -08:00
Jeff Law
c85f7c16ad Bring in final gcc-2.8.0 changes.
From-SVN: r17355
1998-01-14 13:57:58 -07:00
Paul Eggert
95b8c0c8cb genattrtab.c (main): Check HAVE_{G,S}ETRLIMIT in addition to RLIMIT_STACK.
* genattrtab.c (main): Check HAVE_{G,S}ETRLIMIT in addition to
        RLIMIT_STACK.  This maintains consistency with the recent, similar
        patch to cccp.c and toplev.c.

From-SVN: r17218
1997-12-23 04:55:03 -07:00
Richard Henderson
71d9b4930e genattrtab.c (expand_units): For large nr opclasses, expand function_units_used with ORX to prevent blowups.
* genattrtab.c (expand_units): For large nr opclasses, expand
function_units_used with ORX to prevent blowups.  Tag with FFS.
(num_unit_opclasses): New variable.
(gen_unit): Update it.
(enum operator): Add ORX_OP.
(operate_exp): Treat ORX as or, except don't expand across an if.
Reuse number rtx's after operating on them.
(check_attr_value): Accept IOR, AND, & FFS.
(write_test_expr): Transmute `in_comparison' to `flags'.  Allow
for attribute value caching.  Handle CONST_STRING, IF_THEN_ELSE.
(write_expr_attr_cache, write_toplevel_expr): New functions.
(write_attr_get): Handle FFS-tagged expressions.
(make_canonical): Don't expand const attributes.
(convert_const_symbol_ref): Dike out.
(evaluate_eq_attr): Handle SYMBOL_REF.
(main): Don't emit get_attr_foo for const attributes.
* alpha.c (override_options): Reinstate PROCESSOR_EV6.
(alpha_adjust_cost): Add EV6 tuning; streamline EV5 tests.
* alpha.h (REGISTER_MOVE_COST): Increase ftoi/itof cost slightly.
* alpha.md: Redo all of the scheduling, adding EV6 support, and
combining function units where possible.
(attr "type"): Split loads, stores, cmov into int/fp.  Combine
multiplies and divides.  Add EV6 sqrt, ftoi, itof.
(attr "opsize"): New attribute.
(sqrtsf2-1, sqrtdf2-1): Provide proper TP_INSN patterns.
(movsf2-[12], movdf2-[12]): Provide CIX varients; don't allow CIX
to control register allocation.
(movsi2-1, movdi2-1): Likewise.

From-SVN: r17212
1997-12-22 21:34:27 -08:00
John F. Carr
68d753125e rtl.h (global_rtl): New variable, replacing separate variables for commonly used rtl.
* rtl.h (global_rtl): New variable, replacing separate variables for
        commonly used rtl.
        (const_int_rtx): Now array of rtx_def, not rtx.
        * emit-rtl.c: Update for new rtl data structures.
        * genattrtab.c: Define global_rtl.

From-SVN: r17049
1997-12-11 17:27:40 -07:00
Jeff Law
956d69504d Merge from gcc-2.8
From-SVN: r16987
1997-12-06 17:31:01 -07:00
Jeff Law
e9a25f70a0 Update mainline egcs to gcc2 snapshot 971021.
From-SVN: r16278
1997-11-02 14:19:36 -07:00
Jeffrey A Law
2a1777af22 jump.c (jmp_uses_reg_or_mem): Deleted unused function.
* jump.c (jmp_uses_reg_or_mem): Deleted unused function.
        (find_basic_blocks): Use computed_jump_p to determine if a
        particular JUMP_INSN is a computed jump.
        * reg-stack.c (find_blocks): Use computed_jump_p to determine
        if a particular JUMP_INSN is a computed jump.
        * rtlanal.c (jmp_uses_reg_or_mem): New function.
        (computed_jump_p): Likewise.
        * rtl.h (computed_jump_p): Declare.
        * genattrtab.c (pc_rtx): Define and initialize.
        * loop.c (loop_optimize): Always determine if the current
        function has a computed jump.
        (indirect_jump_in_function_p): Use computed_jump_p to determine
        if a particular JUMP_INSN is a computed jump.
General (and haifa) cleanups.

From-SVN: r15615
1997-09-21 18:49:32 -06:00
Jeffrey A Law
8c660648ca * Integrate Haifa instruction scheduler.
* Integrate regmove pass.
See ChangeLog for deatils.

From-SVN: r14770
1997-08-11 22:07:19 -06:00
Richard Kenner
ec743e556b (simplify_cond): Make TESTS an array of rtunions.
From-SVN: r13170
1996-11-15 14:12:24 -05:00
Doug Evans
5ab7138b86 sparc.c (label_ref_operand): New function.
* sparc/sparc.c (label_ref_operand): New function.
	(emit_move_sequence): Pass label_ref to gen_move_label_di to not
	lose flags.
	* sparc/sparc.md (move_label_di): Operand one is label_ref now.
	* genattrtab.c (write_test_expr): Allow label_ref in match_dup.

From-SVN: r12643
1996-08-15 19:05:21 +00:00
Mike Stump
0f41302f47 formatting tweaks
From-SVN: r12390
1996-07-03 22:07:53 +00:00
Richard Kenner
685db9cd21 (fatal): Declare A1 and A2 as char *.
From-SVN: r12297
1996-06-18 07:17:21 -04:00
Richard Kenner
a35311b035 Update FSF address.
From-SVN: r9961
1995-06-15 07:52:21 -04:00
Richard Kenner
426cd2f4ed (write_test_expr, case MATCH_DUP): Use operands[N] instead of JUMP_LABEL (which may not be set).
(write_test_expr, case MATCH_DUP): Use operands[N] instead of
JUMP_LABEL (which may not be set).
(walk_attr_value, case MATCH_DUP): Set must_extract.

From-SVN: r9640
1995-05-12 07:13:25 -04:00
Richard Kenner
9916c524e3 (check_attr_value): Change error message text.
(simplify_test_exp): Likewise.

From-SVN: r8806
1995-01-25 14:27:39 -05:00
Ian Lance Taylor
bd1b089342 Skip optimize_attrs if num_insn_ents is zero
From-SVN: r8265
1994-10-13 14:45:11 +00:00
Ian Lance Taylor
1c69865d5b Allocate attr_value_list with xmalloc rather than alloca
From-SVN: r8261
1994-10-12 15:31:29 +00:00
Richard Kenner
4c9a05bc55 Cast pointer operands to bzero, bcopy, and bcmp to (char *).
From-SVN: r7472
1994-06-14 18:19:28 -04:00
Richard Kenner
45620ed410 No longer handle LSHIFT.
From-SVN: r7020
1994-04-10 08:03:37 -04:00
Richard Kenner
04fe43855a Include <stdarg.h> instead of "gstdarg.h"; similarly for varargs.
From-SVN: r6922
1994-03-30 17:15:20 -05:00
Richard Kenner
24f89e3de0 (expand_units): Remove decl of unused variable.
From-SVN: r6884
1994-03-25 14:10:15 -05:00
Ian Lance Taylor
2109bb54ef Don't declare last parameter of stdarg function to be register.
From-SVN: r6802
1994-03-16 17:40:38 +00:00
Richard Kenner
d18225c493 Use PVPROTO for varargs prototypes.
From-SVN: r6744
1994-03-11 08:01:45 -05:00
Richard Kenner
91c3c0a817 (attr_printf): Remove `register' from decl of FMT.
From-SVN: r6700
1994-03-05 19:38:51 -05:00
Jim Wilson
81fe0dbc99 (expand_units): Fix blockage calculation.
From-SVN: r6575
1994-02-16 12:39:39 -08:00
Richard Kenner
9e1b65036d If __STDC__, include gstdarg and use ANSI form of varargs.
(attr_printf): Only declare when defined.

From-SVN: r6515
1994-02-10 08:08:17 -05:00
Jim Wilson
cb1520bc9f (expand_units): When calculate BLOCKAGE, reverse terms to POS_MINUS_OP.
(expand_units): When calculate BLOCKAGE, reverse
terms to POS_MINUS_OP.  Clarify comment before BLOCKAGE computation.
(write_complex_function): Use EXECUTING_INSN for first switch, and
CANDIDATE_INSN for second switch.

From-SVN: r6442
1994-01-31 12:43:02 -08:00
Doug Evans
e408ec3591 * genattrtab.c (hard_frame_pointer_rtx): New Dummy definition.
From-SVN: r5457
1993-09-24 19:43:43 +00:00
Richard Kenner
742f704138 Include gvarargs.h after hconfig.h, like elsewhere.
From-SVN: r5067
1993-08-04 07:34:51 -04:00
Richard Stallman
5836dc64e2 (substitute_address): In prototype, don't specify
the arg types of the arg functions.

From-SVN: r5054
1993-08-02 19:17:13 +00:00
Richard Kenner
9a63e81dec (clear_struct_flag): Add void return type defn.
(count_subs_rtx): Add int return type and add definition.
(simplify_test_exp): Delete debugging junk.
(do_nothing): Delete.

From-SVN: r4128
1993-04-13 15:46:38 -04:00
Jeff Law
0b0316dc43 genattrtab.c (write_eligible_delay): Add new variable "flags" to the generated functions.
* genattrtab.c (write_eligible_delay): Add new variable
	"flags" to the generated functions.  All callers changed.
	(check_attr_test): Handle ATTR_FLAG.
	(clear_struct_flag): Likewise.
	(count_sub_rtxs): Likewise.
	(write_test_expr): Likewise.

From-SVN: r3903
1993-03-28 14:23:09 -07:00
Richard Kenner
dedb78d47c (write_test_expr): Use INSN_CODE == -2, not 0, for constant
attributes.

From-SVN: r3671
1993-03-06 17:52:30 -05:00
Richard Kenner
f75d38a795 Add prototypes in forward declarations.
Add some missing parameters to a few calls.

From-SVN: r3669
1993-03-06 08:42:58 -05:00
Jim Wilson
dea2643ccd (write_const_num_delay_slots): Output 'rtx insn' not
'rtx *insn' for const_num_delay_slot argument.

From-SVN: r3613
1993-03-02 13:23:48 -08:00
Richard Stallman
31f0534ce6 (obstack.h): Include after sys/time.h.
From-SVN: r2804
1992-11-26 05:35:53 +00:00
Richard Kenner
f0cdf2b265 (main): Unlimit stack size.
From-SVN: r2737
1992-11-10 10:28:47 -05:00
Richard Stallman
0d64891c95 Include hconfig.h, not config.h.
From-SVN: r2419
1992-10-13 04:24:45 +00:00
Richard Kenner
d7c665bf13 (length_used): New variable.
(walk_attr_value): Set it when we have (eq_attr "length" ...).
(write_const_num_delay_slots): Value is 1 unless LENGTH_USED is set.

From-SVN: r2229
1992-09-24 07:28:09 -04:00
Timothy Moore
a9ab5e000d *** empty log message ***
From-SVN: r2112
1992-09-13 15:11:55 +00:00
Richard Kenner
d98c1e3389 (RTL_HASH, attr_rtx): Avoid warnings by casting pointers to
HOST_WIDE_INT instead of int.

From-SVN: r1996
1992-08-29 22:41:36 -04:00
Michael Meissner
0e9414fd5c Allocate enough space for attr_printf; Use obstack_alloc instead of xmalloc.
From-SVN: r1974
1992-08-27 20:56:29 +00:00
Tom Wood
bee757e1c0 (struct attr_desc): Add unsigned_p field.
(struct function_unit_op): Add issue_delay, conflict_exp, and
	issue_exp fields.  Drop busyexp field.
	(struct function_unit): Add needs_blockage_function,
	needs_range_function, issue_delay, and max_blockage fields.  Drop
	costexp, and busy delay fields.
	(enum operator): Add POS_MINUS_OP, EQ_OP, MIN_OP, RANGE_OP.
	(operate_exp): Implement new ops.
	(make_internal_attr): Set unsigned_p based on the value of SPECIAL.
	(write_attr_get): Function is unsigned when unsigned_p is true.
	(write_attr_valueq): Write hex value of large constants in a comment.
	(simplify_by_exploding): Check for EXP having no EQ_ATTR expressions
	and for all values as the default.
	(find_and_mark_used_attributes): Add TERMS and NTERMS parameters.
	(max_attr_value): Allow IF_THEN_ELSE.
	(simplify_knowing, write_complex_function, extend_range): New
	functions.
	(gen_unit): Use local variables to name the fields.  Change the
	meaning of busy-delay to issue-delay.
	(expand_units): Compute issue_exp.  Write attributes for computing
	`<name>_unit_blockage' and `<name>_unit_blockage_range' functions.
	Compute max_blockage, and the needs_*_function values.
	(write_function_unit_info): Write blockage function and conflict cost
	functions using write_complex_function.  Write new function_unit_desc
	fields.
(expand_units): Use the normalized values of the
	unit's CONDEXP and BUSYEXP.

From-SVN: r1952
1992-08-25 20:26:02 +00:00
Richard Kenner
f8d97cf472 Put include of stdio.h after GCC header files (for i860-stardent-sysv4).
From-SVN: r1905
1992-08-20 05:58:18 -04:00
Michael Meissner
b5b6ad4638 Add missing return; delete unused vars & static functions.
From-SVN: r1874
1992-08-17 17:45:19 +00:00
Tom Wood
72f1215c58 (simplify_by_exploding, find_and_mark_used_attributes,
unmark_used_attributes, add_values_to_cover, increment_current_value,
	test_for_current_value, simplify_with_current_value,
	simplify_with_current_value_aux): New functions.
	(struct function_unit): Add max_busy_cost, {min,max}_busy_delay.
	(expand_units): Use simplify_by_exploding to simplify the
	function_units_used attribute.  Compute the ready cost attributes
	as a COND in numeric order.
	(gen_unit): Compute {min,max}_ready_cost and {min,max}_busy_delay.
	(write_function_unit_info): Determine if there is only one busy
	delay value by comparing the minimum and maximum busy delay.
	Write the initializer for function_units in numeric order.
	Write out the maximum busy delay field.

(attr_desc): Add negative_ok field.
	(find_attr, make_internal_attr): Initialize negative_ok.
	(check_attr_value): Allow negative values for CONST_STRING for
	numeric attributes with negative_ok.
	(encode_units_mask): Change the encoding of the function_units_used
	result.

{....

From-SVN: r1848
1992-08-14 22:53:16 +00:00
Richard Stallman
3d678dca19 entered into RCS
From-SVN: r1470
1992-07-06 20:02:55 +00:00
Richard Stallman
f72aed244a *** empty log message ***
From-SVN: r1263
1992-06-24 03:59:40 +00:00
Richard Stallman
4504465545 *** empty log message ***
From-SVN: r1026
1992-05-20 02:47:28 +00:00
Richard Stallman
b31a5831c2 *** empty log message ***
From-SVN: r933
1992-05-07 20:01:01 +00:00
Richard Stallman
6dc42e49d3 *** empty log message ***
From-SVN: r930
1992-05-07 06:41:23 +00:00
Richard Stallman
3715a5180f *** empty log message ***
From-SVN: r925
1992-05-06 23:13:18 +00:00
Richard Stallman
85093b9c59 *** empty log message ***
From-SVN: r911
1992-05-06 02:37:42 +00:00
Richard Stallman
81fd4c6eb3 *** empty log message ***
From-SVN: r910
1992-05-05 21:48:14 +00:00
Richard Stallman
4ad05694ea *** empty log message ***
From-SVN: r897
1992-05-05 03:40:23 +00:00
Richard Stallman
61abc2ca7a *** empty log message ***
From-SVN: r895
1992-05-05 03:06:39 +00:00
Richard Stallman
eaed71194c *** empty log message ***
From-SVN: r894
1992-05-05 02:55:45 +00:00
Richard Stallman
7339c88dc5 *** empty log message ***
From-SVN: r888
1992-05-04 22:57:54 +00:00
Richard Kenner
052aaaef39 *** empty log message ***
From-SVN: r861
1992-04-29 22:20:02 -04:00
Richard Stallman
31d04616b5 *** empty log message ***
From-SVN: r843
1992-04-27 19:09:18 +00:00
Richard Kenner
29ebe69a72 *** empty log message ***
From-SVN: r666
1992-04-02 06:03:52 -05:00
Richard Kenner
e7c33f5411 *** empty log message ***
From-SVN: r652
1992-03-31 18:13:36 -05:00
Richard Kenner
c114787aa9 *** empty log message ***
From-SVN: r587
1992-03-25 21:19:06 -05:00
Richard Stallman
d45cf215ee *** empty log message ***
From-SVN: r472
1992-03-14 05:07:15 +00:00
Tom Wood
ca2d2f1ed0 *** empty log message ***
From-SVN: r414
1992-03-07 19:54:12 +00:00
Tom Wood
3e7b531304 *** empty log message ***
From-SVN: r403
1992-03-06 22:25:46 +00:00
Richard Kenner
412dc3482f *** empty log message ***
From-SVN: r380
1992-03-03 08:06:22 -05:00
Richard Stallman
5548575620 *** empty log message ***
From-SVN: r207
1992-01-18 02:42:28 +00:00
Richard Stallman
ae90e6a355 *** empty log message ***
From-SVN: r202
1992-01-17 23:03:50 +00:00
Tom Wood
41299f4171 Initial revision
From-SVN: r47
1991-10-24 17:21:48 +00:00