Commit Graph

3391 Commits

Author SHA1 Message Date
Richard Stallman e58cd767bb (parser_build_binary_op): Warn about overflows and conversions of out-of-range...
(parser_build_binary_op): Warn about overflows and
conversions of out-of-range constants in parser-built binary expressions.
(build_conditional_expr): Check conversions in if-then-else expressions.
(build_c_cast): Ignore any integer overflow caused by a cast.
(convert_for_assignment): Warn if source had overflow in folding.
(process_init_constructor): Report overflows in array initializer indexes.

From-SVN: r3404
1993-02-02 04:40:04 +00:00
Richard Stallman 5303129fc9 (unary_expr): Warn about overflows in parser-built unary expressions.
From-SVN: r3403
1993-02-02 04:39:14 +00:00
Richard Stallman 90374cc2ff (finish_decl, grokdeclarator, finish_struct): Report overflows in storage sizes.
(finish_decl, grokdeclarator, finish_struct): Report
overflows in storage sizes.
(build_enumerator): Report overflows in enumerators.

From-SVN: r3402
1993-02-02 04:38:30 +00:00
Richard Stallman e0f776fbcb (same_sign): Removed.
(lshift_double): Don't report arithmetic overflow, since the
C standard doesn't seem to require it here.
(force_fit_type): Accept new parameter specifying whether a signed
overflow has already occurred.  Yield overflow indication.
All callers changed.
(neg_double): Don't report overflow when -0 yields 0.
(const_binop): Propagate operand overflow for warnings.
Don't report overflow when -1 + 1 yields 0.

From-SVN: r3401
1993-02-02 04:37:37 +00:00
Richard Stallman 42b85a5532 (expand_builtin): Report overflow if __builtin_args_info arg exceeds one word.
(expand_builtin): Report overflow if __builtin_args_info
arg exceeds one word.
Fix punctuation of error messages.

From-SVN: r3400
1993-02-02 04:26:15 +00:00
Richard Stallman e05d627094 (iorsi3): Add CC_STATUS_INIT if use bset.
From-SVN: r3399
1993-02-01 16:58:37 +00:00
Richard Kenner fc06d7aaee (simplify_and_const_int): Never consider bits outside of MODE.
From-SVN: r3398
1993-01-31 17:44:48 -05:00
Doug Evans 8935266327 * (build_module_descriptor): fix call to start_function
From-SVN: r3397
1993-01-31 20:24:19 +00:00
Torbjorn Granlund 56a65d12a8 (zvdep32): Handle 5 bit immediates for operand 1.
(ashlsi3): Likewise.
(and + ashift): New combine pattern.

From-SVN: r3396
1993-01-31 18:07:14 +00:00
Richard Stallman 32d2858d9b Include gvarargs.h before system headers.
From-SVN: r3395
1993-01-31 17:43:09 +00:00
Doug Evans 43a5a54258 * (build_compound_expr): insert missing return
From-SVN: r3394
1993-01-30 23:46:58 +00:00
Jeff Law 222727e8f6 of the comparison.
(cmpXf insns): Allow 0.0 for either operand of the
	comparison.  Update output template to handle 0.0 as one
	of the operands.
	(movsi insn, fp->fp case): Update constraints and template to
	allow store of zero into an FP register.
	(movhi insn, fp->fp case): Likewise.
	(movqi insn, fp->fp case): Likewise.
	(movdi insn, fp->fp case): Likewise.
	(movDF const_double pattern): Do not apply this pattern
	if the const_double is zero.
	(movdf insn, fp->fp and gr->gr cases): Update constraints
	and output template to allow store of zero into a FP or GR.
	Update condition string to allow zero as operand 1.
	(movsf insn, fp->fp and gr->gr cases): Likewise.  Also allow
	store of zero into a memory location.

From-SVN: r3393
1993-01-30 14:10:29 -07:00
Jeff Law af69aabbee pa.h (CONST_DOUBLE_OK_FOR_LETTER_P): Generalize.
* pa.h (CONST_DOUBLE_OK_FOR_LETTER_P): Generalize.
	(LEGITIMATE_CONSTANT_P): Allow 0.0.
	(CONST_COSTS, case CONST_DOUBLE): fp0.0 is free when
	not used in a SET expression.

From-SVN: r3392
1993-01-30 14:10:07 -07:00
Jeff Law f048ca473f pa.c (reg_or_0_operand): Use CONST0_RTX instead of const0_rtx.
* pa.c (reg_or_0_operand): Use CONST0_RTX instead of
	const0_rtx.
	(reg_or_0_or_nonsymb_mem_operand): New function.
	(emit_move_sequence): Copying CONST0_RTX into any
	register can be done directly.  Use CONST0_RTX instead
	of const0_rtx.
	(output_fp_move_double): Handle copying a CONST0_RTX
	into FP or integer registers.
	(print_operand): Handle "%r0" for DFmode and SFmode
	values too.

From-SVN: r3391
1993-01-30 14:09:51 -07:00
Richard Stallman 7c57c7983d Add many prototypes from bill@cygnus.com.
From-SVN: r3390
1993-01-30 19:59:11 +00:00
Niklas Hallqvist 5d63b07f42 * c-decl.c (c_build_type_variant): Moved to c-common.c.
From-SVN: r3389
1993-01-30 06:06:30 +00:00
Niklas Hallqvist 0b73773ce6 c-common.c (c_build_type_variant): Moved here from c-decl.c.
* c-common.c (c_build_type_variant): Moved here from c-decl.c.
	Redirected the TYPE_MAIN_VARIANT to the "real" main variant.
	Build the possibly new array type on the permanent obstack if it
        the original type was permanent.
	(permanent_obstack): Added extern declaration.

From-SVN: r3388
1993-01-30 06:06:09 +00:00
Richard Stallman 42f769c15a (force_fit_type): Abort if T not INTEGER_CST.
From-SVN: r3387
1993-01-30 01:57:54 +00:00
Richard Stallman 4d7d0403c6 (size_in_bytes): Only call force_fit_type for an INTEGER_CST.
From-SVN: r3386
1993-01-30 01:56:57 +00:00
Jeff Law f2fbfe928c reload.c (find_reloads_toplev): When handling a (subreg (reg)) where (reg) will be replaced by a memory...
* reload.c (find_reloads_toplev): When handling a (subreg (reg))
	where (reg) will be replaced by a memory reference, if the memory
	address is invalid for the mode of the subreg, then search the
	memory address for reloads.

From-SVN: r3385
1993-01-29 10:09:30 -07:00
Jeff Law d39b685469 * pa.h (FIXED_REGISTERS): %r31 is not fixed.
From-SVN: r3384
1993-01-29 10:07:33 -07:00
James Van Artsdalen dc78213e1a (compare_for_stack_reg): Properly swap operands of a COMPARE.
From-SVN: r3383
1993-01-29 05:48:47 +00:00
Jeff Law 9a82d0bb78 pa.md (iorsi3): Split into two patterns...
* pa.md (iorsi3): Split into two patterns, a named "iorsi3" which
	only accepts registers, and a combiner pattern which accepts a
	restricted set of constant integers for one term.

From-SVN: r3382
1993-01-28 11:59:42 -07:00
Jeff Law 15f6ed9f8b * pa.c (ior_operand): Do not accept registers.
From-SVN: r3381
1993-01-28 11:59:15 -07:00
Jeff Law 8f262c0d3e * pa.h (LEGITIMIZE_ADDRESS): Delete cases which can never happen.
From-SVN: r3380
1993-01-28 11:56:26 -07:00
Jeff Law 3518f90492 pa.h (CPP_SPEC for OLD_CC): Delete.
* pa.h (CPP_SPEC for OLD_CC): Delete.
	(CC1_SPEC for OLD_CC): Likewise.
	(MODES_TIEABLE_P): Simplify.
	(ASM_OUTPUT_ADDR_VEC_ELT): Fix comment.
	(leaf_function): Delete unused variable.
	(HARD_REGNO_MODE_OK): Delete old useless version.
	(FIRST_PARM_OFFSET): Likewise.
	(FIRST_PARM_CALLER_OFFSET): Likewise.
	(EXPAND_BUILTIN_SAVEREGS): Likewise.
	(ASM_OUTPUT_REG_PUSH): Likewise.
	(ASM_OUTPUT_REG_POP): Likewise

From-SVN: r3379
1993-01-28 11:53:11 -07:00
Ian Lance Taylor 2ac5f14ab3 print_operand accepts %/ for REGISTER_PREFIX.
From-SVN: r3378
1993-01-28 15:55:26 +00:00
Ian Lance Taylor bb66e0f69a Use %/ before register names in 68000 version of umul_ppmm.
From-SVN: r3377
1993-01-28 15:55:26 +00:00
Richard Kenner 6574a8c4c3 Remove 29050-specific variants of patterns generating loadm that have earlyclobber.
Remove 29050-specific variants of patterns generating loadm that have
earlyclobber.  This was put in for some very old version of the '050,
which isn't used anymore, that had a bug.

From-SVN: r3376
1993-01-28 07:30:12 -05:00
Richard Kenner 7ba7267ac2 change /include and -I values from [.config] to [.config.] (this trailing...
change /include and -I values from [.config] to [.config.] (this
trailing period works with GNU C's preprocessor but not with VAX C's).

From-SVN: r3375
1993-01-28 06:55:47 -05:00
Richard Kenner bcc81b8594 change instances of [.config] to [.config.vax].
From-SVN: r3374
1993-01-28 06:54:18 -05:00
Richard Kenner d94f844d87 (init_fixtab, init_optabs): Fix typos in QFmode and HFmode
initialization.

From-SVN: r3373
1993-01-28 06:48:47 -05:00
Richard Kenner 02b8f30077 (simplify_relation_operation): We can compute the result of a comparison of...
(simplify_relation_operation): We can compute the result of a
comparison of CONST_INTs no matter what mode the computation is to be
done in.

From-SVN: r3372
1993-01-27 19:23:36 -05:00
Richard Kenner c2615a67c7 (emit_store_flag): Swap operands if first is a constant and second is not.
Abort if compare_from_rtx didn't return an rtx with the code we expect.

From-SVN: r3371
1993-01-27 19:23:02 -05:00
Richard Kenner bf743ac5ed (compare_from_rtx): Only swap operand if first is a constant and
second is not.

From-SVN: r3370
1993-01-27 19:22:17 -05:00
Richard Kenner c81fe25de9 (init_decl_processing): Make the arrays 200 long instead of 10 to
leave more room for most names.

From-SVN: r3369
1993-01-27 19:21:30 -05:00
Richard Kenner 97d17ac21c (declare_function_name): If char_array_type_node isn't large enough
for the name, make a larger type.

From-SVN: r3368
1993-01-27 19:21:01 -05:00
Richard Kenner e15762df9d (put_var_into_stack, fixup_var_refs_insns): Minor cleanups.
(fixup_var_refs_1, case SET): Correctly check for simple insns that don't
need fixups.

From-SVN: r3367
1993-01-27 13:27:18 -05:00
Richard Stallman 4b7179be95 (includedir): Use local_prefix.
From-SVN: r3366
1993-01-27 18:11:43 +00:00
Jeff Law 9bc906845f pa.c (check_fp_mov): Delete unused function
* pa.c (check_fp_mov): Delete unused function
	(register_or_short_operand): Likewise
	(eq_or_neq): Likewise
	(gen_compare_reg): Likewise
	(reverse_relop): Likewise
	(frame_base)name): Delete unused variable.

From-SVN: r3365
1993-01-27 10:06:08 -07:00
Jeff Law ec04655e33 * pa-ghpux.h (HAVE_ATEXIT): Delete. This is defined in pa.h
From-SVN: r3364
1993-01-27 10:05:33 -07:00
Richard Kenner 7243ba7d92 Delete ISCOFF macro which was in #ifdef _AIX.
From-SVN: r3363
1993-01-27 06:46:40 -05:00
Richard Kenner 2c440f06b8 (MY_ISCOFF): New macro.
From-SVN: r3362
1993-01-27 06:46:02 -05:00
Brendan Kehoe d960abef0f fix typos
From-SVN: r3361
1993-01-26 21:28:16 -05:00
Richard Kenner 721f13b342 (simplify_binary_operation, case SMAX): Correctly compute largest
possible signed integer.

From-SVN: r3360
1993-01-26 19:32:45 -05:00
Richard Kenner bef9925b88 (combine_instructions): Initialize undobuf in the event
`gen_rtx_combine' is called before `try_combine'.

From-SVN: r3359
1993-01-26 19:30:38 -05:00
Richard Kenner 42118350f7 (rest.cross, gfloat.h, stmp-headers, mostlyclean): Build and install
gfloat.h instead of float.h.

From-SVN: r3358
1993-01-26 19:27:55 -05:00
Richard Kenner ad37ba0b5b (CLIB): Add -lld.
From-SVN: r3357
1993-01-26 19:25:55 -05:00
Richard Kenner cc122dbc43 (ONLY_INT_FIELDS): Define if not __GNUC__.
From-SVN: r3356
1993-01-26 19:23:57 -05:00
Jim Wilson e13502d79c Change all uses of EX to SED.
From-SVN: r3355
1993-01-26 15:29:45 -08:00