Richard Kenner
cbf6a543dc
(simplify_*_operation, fold_rtx, record_jump_cond, cse_insn): Use
...
INTEGRAL_MODE_P and FLOAT_MODE_P.
From-SVN: r4780
1993-06-27 21:20:38 -04:00
Richard Kenner
3ad2180a02
(subst, apply_distributive_law): Use INTEGRAL_MODE_P and FLOAT_MODE_P.
...
(reversible_comparison_p): Likewise.
Can reverse if MODE_COMPLEX_INT or MODE_PARTIAL_INT.
From-SVN: r4779
1993-06-27 21:19:42 -04:00
Richard Kenner
ae1ae48cdb
(INTEGRAL_MODE_P, FLOAT_MODE_P): New macros.
...
From-SVN: r4778
1993-06-27 21:18:58 -04:00
Richard Kenner
40d055518b
(fixup_stack_1): Handle current_function_internal_arg_pointer.
...
From-SVN: r4777
1993-06-27 21:15:50 -04:00
Richard Kenner
5e9bec999e
Add prototypes for layout_record and layout_union.
...
(smallest_mode_for_size): New function.
(variable_size): Allow variable sizes if global_bindings_p returns a negative
value.
(mode_for_size): Fix incorrect comment.
(layout_decl): If DECL has a size already, don't copy from type.
(layout_type, case INTEGER_TYPE, ENUMERAL_TYPE): Use smallest integer mode
that fits, whether or not it fits exactly.
From-SVN: r4776
1993-06-27 21:14:04 -04:00
Richard Kenner
457a2d9ce6
(restore_emit_status): Clear LAST_LABEL_NUM.
...
From-SVN: r4775
1993-06-27 21:10:23 -04:00
Richard Stallman
f072210714
(copy_rtx_if_shared): Don't try to copy a 0-length vector.
...
From-SVN: r4774
1993-06-28 00:41:41 +00:00
Richard Kenner
ef5d30c934
(expand_call): If function hasn't been used before, call
...
assemble_external.
From-SVN: r4773
1993-06-27 18:57:34 -04:00
Richard Kenner
e44842fede
(store_constructor): Treat QUAL_UNION_TYPE just like UNION_TYPE.
...
(safe_from_p, case ADDR_EXPR): EXP is safe from X it is is static or if the
object whose address is being taken is safe from X.
(expand_expr): Fix misplaced comment from last change.
(expand_expr, case *_DECL): If not already used, assemble external.
(expand_expr, case EXIT_EXPR): Simplify.
(expand_expr, TRUTH_{AND,OR}IF_EXPR): Properly handle IGNORE case.
From-SVN: r4772
1993-06-27 18:55:11 -04:00
Richard Kenner
c0560b8b7c
(array_type_nelts): Tighten up code and make more general.
...
(build_function_type): Allow function to return array.
(decl_function_context): Treat QUAL_UNION_TYPE like UNION_TYPE.
From-SVN: r4771
1993-06-27 18:50:04 -04:00
Richard Kenner
62d8b51eb2
(fold, case TRUTH_XOR_EXPR): End with `return', not `break'.
...
From-SVN: r4770
1993-06-27 18:48:22 -04:00
Richard Kenner
77b83b95e4
(output_compile_unit_die): Add support for Ada.
...
From-SVN: r4769
1993-06-27 18:43:10 -04:00
Richard Kenner
93e4100a85
(collect_iterators, case SAVE_EXPR): Simplify code added in previous
...
change.
From-SVN: r4768
1993-06-27 18:41:45 -04:00
Richard Kenner
3319a3472f
Fix typo: was ARGS_GROW_DOWNARD.
...
From-SVN: r4767
1993-06-27 18:40:04 -04:00
Richard Stallman
75487059d8
(TAROUTOPTS): New definition.
...
From-SVN: r4766
1993-06-27 22:24:54 +00:00
Richard Stallman
68760136a9
Canonicalize -sco4 and -sco3.2.4 to -sco3.2v4.
...
From-SVN: r4765
1993-06-27 21:26:43 +00:00
Richard Stallman
176badaf8d
entered into RCS
...
From-SVN: r4764
1993-06-27 19:36:53 +00:00
Richard Kenner
3e61c21976
(subst, case IF_THEN_ELSE): Install correct version of last change.
...
From-SVN: r4763
1993-06-27 08:31:48 -04:00
Richard Stallman
73f6789529
(find_reloads): When merging reloads again after they have been changed...
...
(find_reloads): When merging reloads again after they have
been changed, do check reload_reg_class and reload_nocombine.
From-SVN: r4762
1993-06-26 21:19:02 +00:00
Richard Kenner
6491dbbb81
(reload): Use reg_equiv_address for invalid addresses
...
of the form (mem (reg)).
From-SVN: r4761
1993-06-26 17:08:49 -04:00
Richard Stallman
73ebbfdff0
(movdf recognizer): Remove `&' from constraint for loading mem to cpu reg.
...
From-SVN: r4760
1993-06-26 20:50:27 +00:00
Richard Stallman
cd1db1088e
(expand_assignment): If FROM is scalar function call,
...
expand_expr FROM before TO.
From-SVN: r4759
1993-06-26 20:45:13 +00:00
Richard Stallman
fff26804c9
(translate_options): `*' inhibits warning of extraneous arg.
...
From-SVN: r4758
1993-06-26 19:43:09 +00:00
Richard Kenner
6a96fcb495
(fold, case PLUS_EXPR, MINUS_EXPR): Apply distributive law to multiplication.
...
(fold, case *_DIV_EXPR): Replace code to handle (A*C1)/C2 with more general
code to handle addition as well.
(fold, case *_MOD_EXPR): Add simplified version of above code.
From-SVN: r4757
1993-06-26 11:55:06 -04:00
Richard Kenner
f62f398a28
Remove #define of alloca to __builtin_alloca.
...
From-SVN: r4756
1993-06-26 11:43:50 -04:00
Richard Kenner
47df02623a
(poplevel): Start new function context when writing inline function.
...
From-SVN: r4755
1993-06-26 11:21:20 -04:00
Richard Kenner
86ef2ef98c
(compile_file): Switch to temporary allocation when writing out inline
...
functions.
From-SVN: r4754
1993-06-26 11:19:08 -04:00
Richard Kenner
a6dd1cb60d
(function_cannot_inline_p): Can now inline nested functions.
...
(expand_inline_function): Set up static chain if needed.
(output_inline_function): Don't switch to temporary allocation here.
From-SVN: r4753
1993-06-26 11:18:28 -04:00
Richard Kenner
a34731a692
(init_decl_processing): When making SIZETYPE, start with name in SIZE_TYPE.
...
(init_decl_processing): When making SIZETYPE, start with name in
SIZE_TYPE. If -traditional, use a signed version of that type, if it
is unsigned.
From-SVN: r4752
1993-06-26 11:15:29 -04:00
Richard Kenner
4b63dccb38
Add more decls for functions in fold-const.c.
...
From-SVN: r4751
1993-06-26 11:13:41 -04:00
Richard Kenner
6dc7571d06
Add prototypes for static functions.
...
({l,r}{shift,rotate}_double): COUNT arg is HOST_WIDE_INT, PREC is int.
(all_ones_mask): Remove __inline__.
(range_test): Make static; not used elsewhere.
From-SVN: r4750
1993-06-26 11:12:58 -04:00
Richard Kenner
6e716e89dc
(expand_calls): Fix typo: ALLOCATE_OUTGOING_ARGS
...
should be ACCUMULATE_OUTGOING_ARGS.
From-SVN: r4749
1993-06-26 11:09:26 -04:00
Richard Kenner
224eeff2ea
(subst): apply_distributive_law can also handle AND.
...
(subst, case IF_THEN_ELSE): Make a shift when appropriate.
(simplify_shift_const): If we have an outer operation and made a shift, see if
it can be simplified.
From-SVN: r4748
1993-06-26 11:06:55 -04:00
Richard Kenner
af508edd0a
(do_store_flag): When computing via a shift, allow for an inner RSHIFT_EXPR in BITNUM.
...
(do_store_flag): When computing via a shift, allow for an inner RSHIFT_EXPR
in BITNUM.
Sometimes do the operations as signed.
From-SVN: r4747
1993-06-26 11:06:01 -04:00
Richard Kenner
96d4cf0ace
(fold_truthop): Treat a BIT_AND_EXPR with a constant of one as if it were surrounded with an NE_EXPR.
...
(fold_truthop): Treat a BIT_AND_EXPR with a constant of one as if it were
surrounded with an NE_EXPR.
(fold): Don't move operation into conditional if it is BIT_{AND,OR}_EXPR with
the constant 1; change it to TRUTH_*_EXPR instead.
When moving things inside conditions, move comparisons as well as binary
operations.
Don't make a SAVE_EXPR when moving things inside conditionals unless the value
would really have been used twice.
From-SVN: r4746
1993-06-26 11:05:12 -04:00
Richard Kenner
e9b3df3116
(TRUTH_{AND,OR,XOR}_EXPR): Make code class be 'e' like the rest of the
...
truth operations.
From-SVN: r4745
1993-06-26 11:04:22 -04:00
Richard Stallman
8ffd69e449
Include ctype.h.
...
(isalnum, isdigit): Macros deleted.
From-SVN: r4744
1993-06-26 12:27:32 +00:00
Richard Stallman
6baacf6322
Include ctype.h.
...
From-SVN: r4743
1993-06-26 12:27:06 +00:00
Richard Stallman
bdec790ce6
(output_move_double): Handle reg[n,n+1] = mem[reg[n] + reg[n+1]].
...
From-SVN: r4742
1993-06-26 07:44:01 +00:00
Richard Stallman
ae49c611b6
(movdi): Delete the earlyclobber in load case.
...
From-SVN: r4741
1993-06-26 07:42:26 +00:00
Doug Evans
5e3f49d1ce
(option_map): Add missing comma.
...
From-SVN: r4740
1993-06-26 07:14:53 +00:00
Richard Stallman
c569c2c1dc
Clean up formatting.
...
From-SVN: r4739
1993-06-26 07:05:47 +00:00
Richard Stallman
9f4d9f6cd7
(calls_function_1): Add declaration.
...
From-SVN: r4738
1993-06-26 06:31:09 +00:00
Richard Stallman
1c8d7aef51
(calls_function): Don't scan a single save_expr twice.
...
(calls_function_1): New subroutine for the actual recursion.
From-SVN: r4737
1993-06-26 02:37:19 +00:00
Richard Stallman
4d06f1a218
(all_iter_stmt_simple): Add missing `else'.
...
From-SVN: r4736
1993-06-26 00:14:16 +00:00
Brendan Kehoe
c157db53e9
only 13 reduce/reduce
...
From-SVN: r4735
1993-06-25 19:17:30 -04:00
Brendan Kehoe
e701d556d1
add C++ flags
...
From-SVN: r4734
1993-06-25 19:16:44 -04:00
Richard Stallman
10ba57e571
Convert ...-sysvr4 into ...-sysv4.
...
From-SVN: r4733
1993-06-25 21:57:48 +00:00
Richard Stallman
f7c680ed1e
(CPP_PREDEFINES): Have two alternatives,
...
one for motorola and one for not motorola.
From-SVN: r4732
1993-06-25 21:35:23 +00:00
Richard Stallman
4381295b18
(CPP_PREDEFINES): Add __motorola__.
...
From-SVN: r4731
1993-06-25 21:34:25 +00:00