Commit Graph

5404 Commits

Author SHA1 Message Date
Richard Stallman 94ba506964 (set_init_index): Don't allow variable indices.
(output_init_element): When putting an elt into a
CONSTRUCTOR, always set the TREE_PURPOSE (even for arrays).
Copy the node if it's an INTEGER_CST.
(output_pending_init_elements): If have gap and not incremental,
advance constructor_unfilled_fields or constructor_unfilled_index.

(push_init_level): Pop any implicit levels
that have been filled up.
Don't die if constructor_type is 0.
(process_init_element): If VALUE is 0 for union type,
update constructor_bit_index.

From-SVN: r5317
1993-09-13 20:19:42 +00:00
Richard Stallman ecd4cee03c (complete_array_type): Handle TREE_PURPOSE of array constructor elements.
From-SVN: r5316
1993-09-13 20:17:48 +00:00
Richard Stallman 03dc44a614 (store_constructor): Handle TREE_PURPOSE of array constructor.
(expand_expr, ARRAY_REF case): Likewise.

From-SVN: r5315
1993-09-13 20:16:51 +00:00
Richard Stallman 3181cbfdd5 (output_constructor): Handle index value in
the TREE_PURPOSE, for array constructors.

From-SVN: r5314
1993-09-13 18:13:56 +00:00
Per Bothner d4c8913966 (expand_expr, ARRAY_REF): Coerce low_bound to sizetype.
From-SVN: r5313
1993-09-12 23:01:37 -07:00
Doug Evans 59b22f6465 (digest_init): Remove obsolete comments on args TAIL, OF_WHAT.
From-SVN: r5312
1993-09-12 14:58:02 +00:00
Richard Stallman 3f15938e00 (protect_from_queue): Don't alter an existing MEM.
(convert_modes): Use X's mode (not OLDMODE) unless it is VOIDmode.

From-SVN: r5311
1993-09-12 13:19:38 +00:00
Richard Stallman 7056f7e883 (basic_induction_var): New arg MODE.
Use it to call convert_modes.
(strength_reduce): Supply the new arg to basic_induction_var.

From-SVN: r5310
1993-09-12 13:08:35 +00:00
Richard Stallman c2ec26b8af (expand_shift): Use convert_modes.
(emit_store_flag): Likewise.

From-SVN: r5309
1993-09-12 12:51:14 +00:00
Richard Stallman 3fad11c921 (convert_modes): Declared.
From-SVN: r5308
1993-09-12 12:37:26 +00:00
Doug Evans 588e387f14 (main): Provide upward compatibility with old version
of collect (avoids infinite mutual recursion between the two).

From-SVN: r5307
1993-09-11 20:46:39 +00:00
Per Bothner cc77d4d5c4 New variable constructor_no_implicit, set by Chill front-end.
From-SVN: r5306
1993-09-11 13:06:48 -07:00
Richard Stallman 92bd489fd6 Fix previous change.
From-SVN: r5305
1993-09-10 13:50:12 +00:00
Richard Stallman a357ac88c0 (check_init_type_bitfields): Check for mismatch
between field's mode and its type's mode.

From-SVN: r5304
1993-09-10 13:49:30 +00:00
Richard Stallman 5be957a209 (expand_inline_function): Use convert_modes.
From-SVN: r5303
1993-09-10 13:47:31 +00:00
Roland McGrath 94a6c46f8c Recognize operating system `netbsd*'.
From-SVN: r5302
1993-09-10 05:01:21 +00:00
Roland McGrath 7a1487cd77 *** empty log message ***
From-SVN: r5301
1993-09-10 04:22:01 +00:00
Per Bothner 2bede72998 Add support for array with non-zero lower bounds. (Used by Chill.)
From-SVN: r5300
1993-09-09 18:04:26 -07:00
Jim Wilson e97b2a1c48 (make_node): Put PARM_DECLs of nested functions onto
parent's saveable obstack.

From-SVN: r5299
1993-09-09 16:20:32 -07:00
Ian Lance Taylor b857971992 Set CROSS_LIBGCC1 to be libgcc1.null
From-SVN: r5298
1993-09-09 20:05:26 +00:00
Richard Stallman 5ffe63ed99 (convert_modes): New function.
(convert_to_mode): Use that.

From-SVN: r5297
1993-09-09 19:51:59 +00:00
Richard Stallman 0661a3dea1 (expand_twoval_binop): Use convert_modes.
(expand_complex_abs): Likewise.
(emit_cmp_insn): Likewise.
(expand_inline_function): Likewise.

(widen_operand): New arg OLDMODE.
(expand_binop, expand_unop): Fix calls to widen_operand.

From-SVN: r5296
1993-09-09 19:50:55 +00:00
Richard Stallman 81722fa979 (emit_store_flag, expand_divmod): Use convert_modes.
From-SVN: r5295
1993-09-09 19:19:51 +00:00
Ian Lance Taylor b0bfa18629 Use CROSS_LIBGCC1 for a cross-compiler
From-SVN: r5294
1993-09-09 18:18:07 +00:00
Richard Stallman 4d87de75c5 (expand_expr): Set ignore for COND_EXPR with VOID_TYPE.
From-SVN: r5293
1993-09-09 13:49:54 +00:00
Doug Evans 6a4bb1fae1 Cosmetic changes only. Just reordered code a little.
From-SVN: r5292
1993-09-08 22:24:29 +00:00
Jim Wilson 25b5c537ba (dbxout_parms): For parameters in registers, if use
DECL_RTL, then must use TREE_TYPE instead of DECL_ARG_TYPE.

From-SVN: r5291
1993-09-08 12:19:32 -07:00
Jim Wilson d1460eef26 (fix_truncdfsi2, fixtruncsfsi2): Mark SImode scratch
register as early clobbered when dest is in memory.

From-SVN: r5290
1993-09-08 12:15:32 -07:00
Jim Wilson 0ff7639849 (sbusdev/audiovar.h): Fix wrongly edited // comments
nested within /* */ comments.

From-SVN: r5289
1993-09-08 12:10:46 -07:00
Jim Wilson fa0d53694e (process_command): Don't warn for -x after last input file
if spec_lang is zero.

From-SVN: r5288
1993-09-08 12:08:15 -07:00
Jim Wilson 431a6ecab3 (convert_move): When truncating, call force_reg first if
it is something that gen_lowpart won't understand.

From-SVN: r5287
1993-09-08 11:58:14 -07:00
Jim Wilson 054b53fe74 (getrlimit, getrusage, setrlimit): Return int not void.
From-SVN: r5286
1993-09-08 11:49:36 -07:00
John Hassey a64ddde578 (output_call): Avoid use of jsr.n r1, this loses on
the 88110.

From-SVN: r5285
1993-09-08 15:31:02 +00:00
Richard Kenner cfb557c409 (define_attr): Expand list of instruction attributes.
(define_function_unit): Compute delay information based upon processor type
and expand functional unit types.
(mulsi3, divsi3, divmodsi4, divsf3, divdf3, muldf3, movsf): Use expanded
attributes.
(load with update): Likewise.

From-SVN: r5284
1993-09-08 10:50:35 -04:00
Richard Kenner 5248c9618c (rs6000_cpu, rs6000_cpu_string): New variables.
(rs6000_override_options): New function.

From-SVN: r5283
1993-09-08 10:49:49 -04:00
Richard Kenner fb623df501 (MASK_*, TARGET_*): Add target masks and tests.
(TARGET_SWITCHES): Add target switches for various architectures and mnemonics
options.
(TARGET_OPTIONS): Add cpu type as special target option.
(OVERRIDE_OPTIONS): Call rs6000_override_options to decipher.

From-SVN: r5282
1993-09-08 10:49:18 -04:00
Richard Stallman 8348547afc (output_init_element): When adding to constructor_pending_elts, copy field.
From-SVN: r5281
1993-09-08 10:36:19 +00:00
Richard Kenner 4b46230e9d (make_tree, case CONST_INT): Properly set high part if unsigned.
From-SVN: r5280
1993-09-08 06:15:49 -04:00
Richard Stallman 91fa3c30b7 (push_init_level): Diagnose extra brace group at end of record.
(push_init_level): Diagnose extra brace group at end
of record.  Set constructor_type to 0.
(pop_init_level): Don't output anything if constructor_type is 0.
(process_init_element): Do nothing if constructor_type is 0.

From-SVN: r5279
1993-09-08 09:56:15 +00:00
Richard Kenner 90b5a681ce (c_build_type_variant): Allocate new type in same obstack as old one.
From-SVN: r5278
1993-09-07 19:11:15 -04:00
Richard Stallman e3a12f0cb1 (digest_init): Fix error message text.
From-SVN: r5277
1993-09-07 21:46:24 +00:00
Richard Kenner 943cc24261 (expand_binop): Must always widen second operand of shift.
From-SVN: r5276
1993-09-07 14:54:27 -04:00
Richard Kenner 9e1835de3e (schedule_block): Correct type of BIT.
From-SVN: r5275
1993-09-07 14:40:27 -04:00
Richard Kenner ac27d58987 (fold): Don't try to process an RTL_EXPR.
From-SVN: r5274
1993-09-07 14:32:05 -04:00
Richard Stallman 71f1501370 (dbxout_type): Handle enum constants bigger than one word.
Don't print big unsigned values as negative.

From-SVN: r5273
1993-09-07 12:27:26 +00:00
Richard Stallman 86463d5d64 (default_conversion): For enum that's unsigned,
if it's at least as wide as int, convert to an unsigned type.

From-SVN: r5272
1993-09-07 12:26:58 +00:00
Richard Stallman 75b4643788 (build_enumerator): Choose type properly for wide constants.
(finish_enum): Always set type of the enumerators to the enum type.

From-SVN: r5271
1993-09-07 12:26:20 +00:00
Richard Stallman ebf3718c05 (LIB_SPEC, LINK_SPEC, SWITCH_TAKES_ARG):
Definitions copied from sparc/sol2.h.
(CPP_SPEC): Copied from sparc/sol2.h, but deleted -msparclite.

From-SVN: r5270
1993-09-07 10:21:11 +00:00
Richard Kenner 809ffa71e1 (insn_name_ptr): Define for debugging.
(walk_rtx, case MATCH_OP_DUP): Expand recog_dup_loc using XEXP not XVECEXP.

From-SVN: r5269
1993-09-06 14:42:55 -04:00
Richard Kenner ccf5f34234 (emit_libcall_block): Don't move insns that reference things set in
previous insns.

From-SVN: r5268
1993-09-06 13:27:49 -04:00