Commit Graph

3733 Commits

Author SHA1 Message Date
Michael Meissner b5e9dd0342 Fix integer overflows
From-SVN: r3446
1993-02-09 17:06:09 +00:00
Richard Kenner ac889e46a9 Undefine ABS; some POSIX systems define it as 1.
From-SVN: r3445
1993-02-09 05:46:08 -05:00
Richard Kenner d79f08e0b8 (combine_instructions): When calling set_nonzero_bits_and_sign_copies,
set things up so that we can call get_last value; call
record_dead_and_set_regs in loop.
(set_nonzero_bits_and_sign_copies): Handle paradoxical SET.

From-SVN: r3444
1993-02-09 05:45:36 -05:00
Richard Stallman b6542989bc (size_in_bytes): Add 2nd arg to force_fit_type.
From-SVN: r3443
1993-02-09 06:13:46 +00:00
John Hassey f2dabd38de (compile_file): Don't flag global register variables as unused.
From-SVN: r3442
1993-02-08 15:17:53 +00:00
James Van Artsdalen 74c475adae (extendsidi2): Use correct mnemonic for cwtl opcode.
From-SVN: r3441
1993-02-08 14:09:00 +00:00
Richard Kenner 4ab561180c Allow passing nonaligned BLKmode structs in regs.
(struct arg_data): New fields aligned_regs and n_aligned_regs.
(expand_call): Set and use these fields when required.
(store_one_arg): Don't pass reg to emit_push_insn if we have previously
formed aligned registers.

From-SVN: r3440
1993-02-08 05:51:58 -05:00
Richard Kenner cd04883188 (emit_push_insn): If REG is zero, don't set regs here.
From-SVN: r3439
1993-02-08 05:49:27 -05:00
Richard Kenner e7cf2d7e55 (MUST_PASS_IN_STACK_BAD_ALIGN): Deleted.
(MUST_PASS_IN_STACK): No problem anymore with nonaligned structs.

From-SVN: r3438
1993-02-08 05:49:05 -05:00
Richard Stallman 522ae84c3d (emit_store_flag): Add missing arg to convert_move.
From-SVN: r3437
1993-02-08 04:34:45 +00:00
Richard Kenner 1efe644834 (struct arg_data): New field MODE.
(expand_call, store_one_arg): Use it to ensure that all args get
promoted if requested, not just those passed in registers.

From-SVN: r3436
1993-02-07 16:12:57 -05:00
Richard Stallman 2e90c25ade (yylex): At eof, if binding levels not popped,
imagine some close-braces to pop them.

From-SVN: r3435
1993-02-07 18:15:41 +00:00
Richard Stallman ef2bf0c061 (fold): Call force_fit_type with two parameters.
(force_fit_type): Don't examine the tree until
it is known to an INTEGER_CST.  If it isn't, just return.

From-SVN: r3434
1993-02-07 17:24:37 +00:00
Richard Stallman 3ceb5ed36c (movqi): For special case of moving byte to stack, push into low byte and then copy to high byte.
(movqi): For special case of moving byte
to stack, push into low byte and then copy to high byte.
For case of moving to/from address reg, exchange it with d0.

From-SVN: r3433
1993-02-07 01:24:09 +00:00
Richard Stallman 6a5bbbe6b8 (expand_expr_stmt): Bypass fetching a volatile value if it is VOIDmode.
From-SVN: r3432
1993-02-06 01:02:25 +00:00
Jim Wilson 266f95411b Initial revision
From-SVN: r3431
1993-02-05 15:50:44 -08:00
Jim Wilson d68398271c (i[34]86sol2): New abbrev for i[34]86-unknown-solaris2.
From-SVN: r3430
1993-02-05 15:42:43 -08:00
Jim Wilson 5868ca2010 (__do_global_ctors_aux): Use FORCE_INIT_SECTION_ALIGN
to avoid Solaris 2, x86 linker bug.

From-SVN: r3429
1993-02-05 15:41:52 -08:00
Jim Wilson 9ad2c69271 (EXTRA_CONSTAINTS): Delete 'R' support.
(CONST_OK_FOR_LETTER_P): Correct 'K' comment.

From-SVN: r3428
1993-02-05 15:37:09 -08:00
Jim Wilson 193013107a (CEIL): Delete.
(restore_referenced_regs): New var NUMREGS.  Pass NUMREGS to
insert_save_restore instead of using using CEIL.

From-SVN: r3427
1993-02-05 15:35:32 -08:00
Jim Wilson 0b298be417 (true_dependence, anti_dependence, output_dependence):
Assume that MEM_IN_STRUCT_P QImode varying addresses can overlap a
non-MEM_IN_STRUCT_P fixed address.

From-SVN: r3426
1993-02-05 15:33:36 -08:00
Jim Wilson 0a56ad627e (legitimate_address_p): Accept either REG or SUBREG where
a register is valid in an address.

From-SVN: r3425
1993-02-05 15:31:30 -08:00
Jim Wilson 2e4f452909 (finclude): Error if try to include a directory.
(S_ISDIR): Add a default definition.

From-SVN: r3424
1993-02-05 15:26:54 -08:00
Richard Stallman 53b01f59f9 (build_c_cast): Bypass default_conversion when casting to void.
From-SVN: r3423
1993-02-05 23:00:46 +00:00
Richard Stallman ed3eea740a Add some prototypes.
From-SVN: r3422
1993-02-05 22:56:37 +00:00
Brendan Kehoe 9350744414 * toplev.c (lang_options): Remove `-fSOS' and `-fno-SOS'.
From-SVN: r3421
1993-02-05 13:33:46 -05:00
Richard Stallman 4e7c9a2248 (emit_library_call, emit_library_call_value):
Handle STACK_BOUNDARY when using push insns.

From-SVN: r3420
1993-02-03 23:26:51 +00:00
Richard Stallman f79322f009 (init_objc): Use xrealoc, not realloc.
From-SVN: r3419
1993-02-03 23:23:22 +00:00
Richard Stallman b82a0ad986 Fix typos.
From-SVN: r3418
1993-02-03 01:48:09 +00:00
Richard Stallman 41fe4d9e58 (assemble_zeros): Output nothing rather than empty skip.
From-SVN: r3417
1993-02-03 00:16:18 +00:00
Richard Stallman a4d8855c2a Comment fixes.
From-SVN: r3416
1993-02-02 23:38:03 +00:00
Richard Stallman 5abb45f22e (build_conditional_expr): Always convert and check
both result operands even if condition is constant.

From-SVN: r3415
1993-02-02 23:37:23 +00:00
Richard Stallman e681c5a107 Add some braces for clarity.
From-SVN: r3414
1993-02-02 23:35:04 +00:00
Richard Stallman 98e4b83582 (stmp-fixincludes): Don't run FIXINCLUDES if it is Makefile.in.
From-SVN: r3413
1993-02-02 23:10:57 +00:00
Richard Stallman 030f365a0d (pushdecl): DECL_EXTERNAL implies TREE_PUBLIC, so test just the latter.
From-SVN: r3412
1993-02-02 22:54:34 +00:00
Richard Stallman 089e575bb0 (int_reg_class_contents): Make unsigned to avoid signed integer overflow.
(init_reg_sets): Avoid signed integer overflow.

From-SVN: r3411
1993-02-02 22:25:11 +00:00
Richard Stallman b670485b6a (parse_escape): Support \E and \e like cc1:
they mean \033, and they generate a warning if pedantic.

From-SVN: r3410
1993-02-02 22:14:40 +00:00
Richard Stallman 585ec9386c (install-headers-cpio): Delete spurious parens from around the whole command.
(install-headers-tar): Delete parens around the "source" tar cmd.

From-SVN: r3409
1993-02-02 21:39:02 +00:00
Jim Wilson e9d0deecab (INSTALL_TARGET): Delete.
From-SVN: r3408
1993-02-02 12:17:24 -08:00
Brendan Kehoe 5c5390871f Makefile.in (gcc.o): Depend upon config.status...
* Makefile.in (gcc.o): Depend upon config.status, so any changes
        in prefix will be communicated to the build process.
        (cccp.o): Likewise.

From-SVN: r3407
1993-02-02 14:18:03 -05:00
Torbjorn Granlund 202571cd40 (cmov): Use @ for output.
From-SVN: r3406
1993-02-02 12:10:28 +00:00
Richard Stallman d74154d508 (constant_expression_warning): Suppress duplicate warnings.
(convert_and_check, overflow_warning, unsigned_conversion_warning):
New functions.  Prototypes added to c-tree.h.

From-SVN: r3405
1993-02-02 04:40:43 +00:00
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