Richard Kenner
41dfd40ca0
Fix error in last change.
...
From-SVN: r8215
1994-10-04 21:42:54 -04:00
Richard Kenner
34661f5c30
(do_jump_for_compare): Properly scan insns when branch is at start of
...
sequence.
From-SVN: r8214
1994-10-04 19:06:09 -04:00
Jim Wilson
1899299599
(result_vector): Use INCOMING_REGNO when !savep instead
...
of when savep.
From-SVN: r8170
1994-09-29 17:02:36 -07:00
Mike Stump
7ee055f4ae
expr.c (do_jump): Handle cleanups in TRUTH_ANDIF_EXPR and TRUTH_ORIF_EXPR.
...
* expr.c (do_jump): Handle cleanups in TRUTH_ANDIF_EXPR and
TRUTH_ORIF_EXPR.
From-SVN: r8164
1994-09-29 20:45:05 +00:00
Richard Kenner
0407367d53
(convert_move): Added handling of PDImode conversions.
...
From-SVN: r8161
1994-09-28 19:32:44 -04:00
Richard Kenner
809ab85718
(emit_move_insn_1): Never make a no-conflict block.
...
From-SVN: r7951
1994-08-19 19:23:00 -04:00
Richard Kenner
ba558a85d2
(expand_builtin): Relegate sin and cos to ffast-math.
...
From-SVN: r7886
1994-08-11 12:56:59 -04:00
Jason Merrill
fd67d2b620
(expand_expr...
...
(expand_expr, COND_EXPR case): Use truthvalue_conversion
to make the condition for running cleanups acceptable to
invert_truthvalue.
From-SVN: r7861
1994-08-05 19:02:42 +00:00
Jason Merrill
4ea8537b90
(defer_cleanups_to): Put back line which was mistakenly
...
removed.
From-SVN: r7857
1994-08-05 01:49:31 +00:00
Richard Kenner
72bb971732
(move_block_to_reg): Do nothing if NREGS == 0.
...
From-SVN: r7820
1994-07-29 17:36:13 -04:00
Richard Kenner
62acb9781f
(expand_expr, case CONJ_EXPR): Use correct mode for parts of a complex
...
expression.
From-SVN: r7815
1994-07-28 19:48:33 -04:00
Richard Kenner
ad2e7dd004
(expand_expr, case ARRAY_REF): Don't fold L"foo"[2].
...
From-SVN: r7797
1994-07-26 19:45:11 -04:00
Jim Wilson
24a13950ca
(store_field): Set MEM_IN_STRUCT_P on object and
...
blk_object.
From-SVN: r7767
1994-07-13 13:35:03 -07:00
Richard Kenner
03747aa399
(convert_move): Add some conversions for TQFmode.
...
From-SVN: r7733
1994-07-11 19:27:23 -04:00
Richard Kenner
e74a220154
(expand_builtin, case BUILT_IN_FSQRT): Don't use asterisk in name of
...
`errno'.
From-SVN: r7695
1994-07-10 06:02:49 -04:00
Richard Kenner
5069803972
(expand_expr, case CONVERT_EXPR): If changing signedness and we have a
...
promoted SUBREG, clear the promotion flag.
From-SVN: r7686
1994-07-08 18:22:46 -04:00
Jim Wilson
6be583037c
(get_inner_unaligned_p): New function.
...
(expand_assignment, expand_expr): Use it.
From-SVN: r7685
1994-07-08 14:41:02 -07:00
Mike Stump
d93d4205f1
fix temp lifetime (FOR TARGET_EXPRs only)
...
From-SVN: r7681
1994-07-08 20:45:14 +00:00
Mike Stump
61d6b1cca1
expr.c (expand_expr, [...]): All cleanups have to be protected by interim exception handling code.
...
* expr.c (expand_expr, defer_cleanups_to, expand_cleanups_to): All
cleanups have to be protected by interim exception handling code.
* stmt.c (expand_decl_cleanup, expand_cleanups): Ditto.
* toplev.c (interim_eh_hook): Hook for interim exception handling.
* toplev.c (interim_eh): Default implementation for exception
handling that does nothing.
* toplev.c (main): Set default for interim_eh_hook.
From-SVN: r7666
1994-07-07 03:08:23 +00:00
Richard Kenner
3e073e7297
(expand_increment): If pre-incrementing a promoted variable, don't
...
adjust OP0 since the result won't be used.
From-SVN: r7655
1994-07-05 18:27:27 -04:00
Richard Kenner
2f6e6d22ea
(do_jump, case BIT_AND_EXPR): Only narrow to a type that corresponds
...
to a mode.
From-SVN: r7580
1994-06-28 05:44:57 -04:00
Richard Kenner
119af78aa8
(expand_expr, case ADDR_EXPR): If result is ignored, just return
...
const0_rtx.
From-SVN: r7421
1994-06-02 08:13:33 -04:00
Richard Kenner
94b25f81ca
Update comments.
...
From-SVN: r7420
1994-06-02 07:24:33 -04:00
Doug Evans
0304dfbb67
expr.c (use_reg): Fix recording of USE information.
...
* expr.c (use_reg): Fix recording of USE information.
(use_regs): Likewise.
Delete argument `reg'. All callers changed.
* expr.h (use_regs): Update prototype.
* calls.c (expand_call): Update call to use_regs. Call use_reg
if parm is wholly in registers.
From-SVN: r7378
1994-05-27 23:27:50 +00:00
Richard Kenner
d720b9d197
(expand_expr...
...
(expand_expr, case CONSTRUCTOR): If constant and large enough for
memcpy to be used, build constructor into static memory.
From-SVN: r7365
1994-05-27 14:56:31 -04:00
Richard Kenner
4ac0968744
Use #ifdef TARGET_EDOM, not #if.
...
From-SVN: r7307
1994-05-16 16:18:54 -04:00
Richard Kenner
930b4e398e
(convert_move): When {zero,sign}_extending, allow a wider intermediate
...
than to_mode if truncation is a no-op.
From-SVN: r7306
1994-05-16 16:16:12 -04:00
Mike Stump
5dab5552a1
calls.c (expand_call): Only destroy temporaries at the end of function calls, if flag_short_temps is set.
...
* calls.c (expand_call): Only destroy temporaries at the end
of function calls, if flag_short_temps is set.
* expr.c (safe_from_p, expand_expr): Handle CLEANUP_POINT_EXPRs.
* expr.c (expand_expr): Improve handling of temporaries inside
COND_EXPRs, cures call to sorry.
* expr.c (defer_cleanups_to): New routine to handle the deferral
of cleanups.
* flags.h (flag_short_temps): New flag, to allow better control
over the lifetime of temporaries.
* toplev.c (flag_short_temps, lang_options): Ditto.
* tree.def (CLEANUP_POINT_EXPR): Add, to allow better control over
the lifetime of temporaries.
From-SVN: r7289
1994-05-13 00:19:57 +00:00
Richard Kenner
6d100794d0
(expand_builtin_apply): Put new function usage data at end of any data
...
already there.
From-SVN: r7274
1994-05-11 16:23:11 -04:00
Richard Kenner
b3f8cf4ab9
(use_regs, expand_builtin_apply): Change from USE and CLOBBER insns to
...
using CALL_INSN_FUNCTION_USAGE.
From-SVN: r7240
1994-05-06 17:47:35 -04:00
Richard Kenner
1ee86d1598
(expand_builtin...
...
(expand_builtin, case BUILT_IN_ALLOCA): Don't set
current_function_calls_alloca here nor record new stack level for
nonlocal gotos.
From-SVN: r7230
1994-05-06 13:44:56 -04:00
Mike Stump
d3158f1a23
tell expand_expr that we are going to ignore the cleanup.
...
TREE_SIDE_EFFECTS should be set on these things.
From-SVN: r7222
1994-05-06 10:13:17 +00:00
Mike Stump
19d3f3c523
minor tweak.
...
From-SVN: r7220
1994-05-06 09:02:42 +00:00
Doug Evans
33162bebd8
(expand_builtin): Fix typo in previous patch
...
(allow __builtin_next_arg in varargs functions).
From-SVN: r7164
1994-04-28 16:39:50 +00:00
Per Bothner
05e3bdb9cb
Use new macro AGGREGATE_TYPE_P.
...
From-SVN: r7160
1994-04-26 16:56:21 -07:00
Richard Kenner
e70d22c84f
(expand_expr, case SAVE_EXPR): Fix error in last change.
...
From-SVN: r7141
1994-04-24 11:17:02 -04:00
Jim Wilson
c1da1f33b7
(store_expr): Don't check the TYPE_MODE of an ERROR_MARK.
...
From-SVN: r7122
1994-04-21 12:46:31 -07:00
Richard Kenner
9bac07c3dd
(bc_expand_expr): Call expand_decl and expand_decl_init, not the bc_
...
versions.
From-SVN: r7114
1994-04-21 15:28:59 -04:00
Jason Merrill
6fcc9690b3
(expand_expr): Don't force ignore when expanding the subexpression of a WITH_CLEANUP_EXPR.
...
(expand_expr): Don't force ignore when expanding the
subexpression of a WITH_CLEANUP_EXPR. Don't check ignore when
deciding whether or not to expand the cleanup for a TARGET_EXPR.
From-SVN: r7100
1994-04-20 18:12:36 +00:00
Doug Evans
bf76bb5a49
#include regs.h.
...
#include regs.h.
(use_regs): Use reg_raw_mode.
From-SVN: r7085
1994-04-20 03:34:57 +00:00
Richard Kenner
ccfa6cbb7b
(expand_builtin_apply): Pass new arg to prepare_call_address.
...
From-SVN: r7074
1994-04-18 16:37:34 -04:00
Richard Kenner
78911e8b93
(expand_expr, case VAR_DECL, SAVE_EXPR): Use promote_mode.
...
From-SVN: r7069
1994-04-18 14:52:26 -04:00
Richard Kenner
e4493c0410
(expand_builtin, case BUILT_IN_NEXT_ARG): Test whether an argunment
...
has been passed to __builtin_next_arg; warn if not.
From-SVN: r6994
1994-04-06 21:33:57 -04:00
Richard Kenner
17bbab26bb
(expand_builtin): Allow builtin_next_arg for varargs functions as
...
well.
From-SVN: r6984
1994-04-06 07:48:06 -04:00
Richard Kenner
682ba3a67b
(expand_expr, case ADDR_EXPR): Return const0_rtx if taking address of
...
an ERROR_MARK; also do some minor cleanup.
From-SVN: r6908
1994-03-25 19:53:32 -05:00
Richard Kenner
3d0f0ad043
(expand_expr, case ABS_EXPR): Compare with 0 of proper mode.
...
From-SVN: r6901
1994-03-25 17:02:56 -05:00
Jim Wilson
c4dfe0fc06
(expand_builtin, BUILT_IN_NEXT_ARG case): Verify that
...
parameter is last named argument.
From-SVN: r6854
1994-03-23 14:16:55 -08:00
Richard Kenner
987c71d9bc
(expand_expr, case ADDR_EXPR): Update temp slot address if we put it
...
in a register; mark result as pointer.
From-SVN: r6842
1994-03-21 17:14:41 -05:00
Jim Wilson
eedd251f16
(expand_expr, case ABS_EXPR): Fix typo in last change.
...
From-SVN: r6827
1994-03-19 14:43:50 -08:00
Richard Kenner
d6a5ac336d
(expand_expr): Update comments and fix formatting.
...
(expand_expr, case VAR_DECL, STRING_CST, CONSTRUCTOR): If flag_force_addr, put
address in register unless REG.
(expand_expr, case CONSTRUCTOR, CONVERT_EXPR): Make TARGET with TMODE, if
specified.
(expand_expr, case IN_EXPR): Clean up. Allow INDEX to be an unsigned type.
Always evaluate SET and INDEX in case of side effects.
(expand_expr, case CONVERT_EXPR): Use convert_modes to handle consts.
(expand_expr, case ABS_EXPR): Simplify processing of COMPLEX.
Compare with zero word-by-word if required.
(expand_expr, case ABS_EXPR, MIN_EXPR, COND_EXPR): Don't use TARGET if
not MODE.
(expand_expr, case TRUTH_*_EXPR): Modes of input and output must agree.
(expand_expr, case CONJ_EXPR): Remove redundant def of MODE.
From-SVN: r6794
1994-03-16 08:24:29 -05:00