Richard Stallman [Tue, 15 Sep 1992 04:47:08 +0000 (04:47 +0000)]
(record_reg_classes): Ignore leading % when examining constraint.
Don't bypass usual cost computation when a pseudo "matches"
a non-pseudo in matching operands.
From-SVN: r2123
Richard Stallman [Tue, 15 Sep 1992 04:09:42 +0000 (04:09 +0000)]
(ftell): Declaration deleted.
From-SVN: r2122
Richard Stallman [Mon, 14 Sep 1992 20:38:33 +0000 (20:38 +0000)]
(parse_number): Diagnose integer constants that are too large.
Diagnose duplicate `l' and `u' suffixes. Diagnose ` 0x ' and ` 0a '.
Warn about integer constants that are so large that they are unsigned.
From-SVN: r2121
Richard Stallman [Mon, 14 Sep 1992 18:45:50 +0000 (18:45 +0000)]
(yylex): Warn about integers so large that they are unsigned.
From-SVN: r2120
Richard Stallman [Mon, 14 Sep 1992 14:33:07 +0000 (14:33 +0000)]
*** empty log message ***
From-SVN: r2119
Richard Stallman [Sun, 13 Sep 1992 17:36:33 +0000 (17:36 +0000)]
(exp): Detect signed integer overflow.
Replace `(unsigned)' with `(unsigned long)'. When
evaluating << and >>, compute the correct answer without shifting
by more than HOST_BITS_PER_LONG, or by a negative quantity.
(integer_overflow, left_shift, right_shift): New functions.
From-SVN: r2118
Richard Stallman [Sun, 13 Sep 1992 17:26:24 +0000 (17:26 +0000)]
(expand_binop): Convert op1 of shift libcall to word_mode.
From-SVN: r2117
Torbjorn Granlund [Sun, 13 Sep 1992 16:02:23 +0000 (16:02 +0000)]
Clean up indentation.
From-SVN: r2116
Torbjorn Granlund [Sun, 13 Sep 1992 15:39:59 +0000 (15:39 +0000)]
(compute_xdepi_operands_from_integer): New function.
Some code come from output_zdepi.
(output_zdepi): Removed. (depi_cint_operand): New name for zdepi_operand.
(consec_zeros_p, and_operand, ior_mask_p, ior_operand,
output_and, output_ior): New functions.
(output_load_address): Removed. Nothing uses it.
From-SVN: r2115
Torbjorn Granlund [Sun, 13 Sep 1992 15:38:06 +0000 (15:38 +0000)]
(output_and, output_ior): Declare.
(CONST_OK_FOR_LETTER_P): Add 'O' and 'P'.
From-SVN: r2114
Torbjorn Granlund [Sun, 13 Sep 1992 15:28:38 +0000 (15:28 +0000)]
(several patterns): Make sure # of attribute alternatives match # of constraint alternatives.
(several patterns): Make sure # of attribute alternatives
match # of constraint alternatives.
Return assembler output template instead of calling output_asm_insn.
Don't write to operands[n] for n >= max operand number in the
pattern, use xoperands instead.
(casesi): Rewrite. Used to be buggy and slow.
(and-not patterns): Make them canonical. Put operands in the right order.
(negsi2): Don't use @ for just one output template.
(movstrsi): Change `!= 4' => `< 4' in test for alignment.
(adddi3): Extend to handle CONST_INT.
(ior-with-immediate optimizer): New pattern.
(and-with-immediate optimizer): New pattern.
(sCC, bCC expanders): Remove constraints.
(high:DI recognizer): Add return \"\".
From-SVN: r2113
Timothy Moore [Sun, 13 Sep 1992 15:11:55 +0000 (15:11 +0000)]
*** empty log message ***
From-SVN: r2112
Richard Stallman [Sat, 12 Sep 1992 19:08:12 +0000 (19:08 +0000)]
(yylex): If integer value overflows so highword is negative,
it needs unsigned long long.
From-SVN: r2111
Richard Stallman [Sat, 12 Sep 1992 08:45:46 +0000 (08:45 +0000)]
(__gcc_bcmp): New function, in cond on L__gcc_bcmp.
From-SVN: r2110
Richard Stallman [Sat, 12 Sep 1992 01:10:28 +0000 (01:10 +0000)]
(va_alist): Supply `int' as the type to define it as.
From-SVN: r2109
Richard Stallman [Fri, 11 Sep 1992 23:22:07 +0000 (23:22 +0000)]
(duplicate_decls): For file-scope redefinitions,
error message distinguishes previous definitions from mere decls.
From-SVN: r2108
Jeff Law [Fri, 11 Sep 1992 16:39:13 +0000 (10:39 -0600)]
pa.md (non-[cf]branch define_delay): Use a single delay description for the delay slots in "branch"...
* pa.md (non-[cf]branch define_delay): Use a single delay description
for the delay slots in "branch", "call", and "milli" insns.
(fbranch define_delay): fbranches have a single delay slot which
may be nullified when the branch is taken (regardless of direction
or distance to the target.)
(in_branch_delay attribute): Disallow fbranch insns explicitly.
(floating point branches): Use "fbranch" attribute for these insns.
Update output template to properly handle nullification.
From-SVN: r2107
Richard Stallman [Fri, 11 Sep 1992 08:53:34 +0000 (08:53 +0000)]
(build_binary_op): When checking shift widths, don't assume target integer
fits in a HOST_WIDE_INT.
From-SVN: r2106
Richard Stallman [Fri, 11 Sep 1992 08:52:38 +0000 (08:52 +0000)]
(finish_struct): Don't assume that a target integer
fits in a HOST_WIDE_INT when checking bit-field widths.
From-SVN: r2105
Richard Stallman [Fri, 11 Sep 1992 07:35:32 +0000 (07:35 +0000)]
(convert_to_integer): Don't pass truncation thru lshift if shift count >= width of narrower type.
(convert_to_integer): Don't pass truncation thru lshift
if shift count >= width of narrower type. Instead, just use 0.
From-SVN: r2104
Richard Stallman [Fri, 11 Sep 1992 05:07:29 +0000 (05:07 +0000)]
(SIZE_TYPE): Defined.
From-SVN: r2103
Richard Stallman [Fri, 11 Sep 1992 02:01:46 +0000 (02:01 +0000)]
Comment changes.
From-SVN: r2102
Richard Stallman [Fri, 11 Sep 1992 01:15:31 +0000 (01:15 +0000)]
(expand_binop): Fix typo, `mode' => `methods'.
(expand_binop): Delete #ifdef GPC; complex code now uncond.
(expand_binop): Fix typo, `mode' => `methods'.
From-SVN: r2101
Timothy Moore [Thu, 10 Sep 1992 22:27:06 +0000 (22:27 +0000)]
*** empty log message ***
From-SVN: r2100
Timothy Moore [Thu, 10 Sep 1992 22:20:56 +0000 (22:20 +0000)]
(main) Write declaration for const_num_delay_slots ().
From-SVN: r2099
Timothy Moore [Thu, 10 Sep 1992 22:20:15 +0000 (22:20 +0000)]
(shorten_branches): Do shorten branches with delay slots
if the number of delay slots is constant.
From-SVN: r2098
Michael Meissner [Thu, 10 Sep 1992 21:37:46 +0000 (21:37 +0000)]
Do not allow memory->memory moves to be generated.
From-SVN: r2097
Torbjorn Granlund [Thu, 10 Sep 1992 16:47:30 +0000 (16:47 +0000)]
(casesi): Add `&' to constraint for clobber operand.
From-SVN: r2096
Richard Stallman [Thu, 10 Sep 1992 05:33:47 +0000 (05:33 +0000)]
(declare_function_name): Allow for anonymous function.
From-SVN: r2095
Richard Stallman [Thu, 10 Sep 1992 04:31:39 +0000 (04:31 +0000)]
Add comments.
From-SVN: r2094
Richard Stallman [Thu, 10 Sep 1992 04:21:33 +0000 (04:21 +0000)]
(init_fixtab): Fix typo for fix_truncdfqi2.
From-SVN: r2093
Richard Stallman [Thu, 10 Sep 1992 01:00:39 +0000 (01:00 +0000)]
(init_optabs): Use __gcc_bcmp, not real bcmp.
(expand_unop): Handle NEG for complex modes.
(expand_binop): Likewise.
(expand_complex_binop): New function.
From-SVN: r2092
Richard Stallman [Thu, 10 Sep 1992 00:47:35 +0000 (00:47 +0000)]
(mostlyclean): Delete xlimits.h.
From-SVN: r2091
Richard Stallman [Wed, 9 Sep 1992 20:35:19 +0000 (20:35 +0000)]
(output_addr_const): If 2nd arg of MINUS is negative integer, put it in parens.
From-SVN: r2090
Michael Meissner [Wed, 9 Sep 1992 14:12:07 +0000 (14:12 +0000)]
Fix va_arg for structures larger than 8 bytes.
From-SVN: r2089
Richard Stallman [Wed, 9 Sep 1992 09:03:13 +0000 (09:03 +0000)]
(.nope): Really store into environ.
From-SVN: r2088
Richard Stallman [Wed, 9 Sep 1992 07:00:48 +0000 (07:00 +0000)]
(build_index_type, build_index_2_type): Don't pass HOST_WIDE_INT to routine expecting an int.
(build_index_type, build_index_2_type): Don't pass
HOST_WIDE_INT to routine expecting an int. Don't pass negative
value even if hash code is INT_MIN.
From-SVN: r2087
Richard Stallman [Wed, 9 Sep 1992 06:56:35 +0000 (06:56 +0000)]
(convert_to_integer): When optimizing LSHIFT_EXPR and
RSHIFT_EXPR, do compares at tree level.
From-SVN: r2086
Richard Stallman [Wed, 9 Sep 1992 06:45:00 +0000 (06:45 +0000)]
Declare gen_highpart.
From-SVN: r2085
Richard Stallman [Wed, 9 Sep 1992 06:43:57 +0000 (06:43 +0000)]
(gen_highpart): New function.
From-SVN: r2084
Richard Stallman [Wed, 9 Sep 1992 06:40:37 +0000 (06:40 +0000)]
(print_node): Handle BOOLEAN_TYPE and CHAR_TYPE.
From-SVN: r2083
Richard Stallman [Wed, 9 Sep 1992 06:38:59 +0000 (06:38 +0000)]
(expand_expr): Support IN_EXPR.
(init_expr_once): Don't try HARD_REGNO_MODE_OK on VOIDmode or BLKmode.
(emit_move_insn): When moving word by word,
mark the whole thing as a libcall block.
(group_insns): New function.
(expand_expr): Implement COMPLEX_EXPR, REALPART_EXPR, IMAGPART_EXPR, CONJ_EXPR.
From-SVN: r2082
Richard Stallman [Wed, 9 Sep 1992 06:37:33 +0000 (06:37 +0000)]
(LIB2FUNCS): Add L__gcc_bcmp.
From-SVN: r2081
Richard Stallman [Wed, 9 Sep 1992 06:28:36 +0000 (06:28 +0000)]
(layout_type): Caller must give size of FILE_TYPE.
(layout_type): Handle BOOLEAN_TYPE, CHAR_TYPE, FILE_TYPE for Pascal.
(fixup_signed_type): New function.
From-SVN: r2080
Richard Stallman [Wed, 9 Sep 1992 00:27:40 +0000 (00:27 +0000)]
(dbxout_type_fields): Handle nameless subrecords for Pascal.
(dbxout_type): Handle CHAR_TYPE, BOOLEAN_TYPE. FILE_TYPE, SET_TYPE.
From-SVN: r2079
Richard Stallman [Tue, 8 Sep 1992 21:55:42 +0000 (21:55 +0000)]
(ASM_OUTPUT_OPCODE): Deleted.
From-SVN: r2078
Mike Stump [Tue, 8 Sep 1992 09:25:09 +0000 (09:25 +0000)]
Add BINFO_VPTR_FIELD definition.
From-SVN: r2077
Brendan Kehoe [Mon, 7 Sep 1992 23:42:39 +0000 (19:42 -0400)]
Moved constant_expression_warning into c-common.c.
From-SVN: r2076
Richard Stallman [Mon, 7 Sep 1992 21:22:56 +0000 (21:22 +0000)]
(convert_for_assignment): Warn about constant integer
overflow even if no conversion is involved.
From-SVN: r2075
Richard Stallman [Mon, 7 Sep 1992 06:57:50 +0000 (06:57 +0000)]
(duplicate_decls): Set DECL_INLINE in newdecl so it is copied into olddecl.
Don't set DECL_EXTERNAL in olddecl.
Preserve DECL_UID of olddecl.
From-SVN: r2074
Richard Stallman [Mon, 7 Sep 1992 06:17:38 +0000 (06:17 +0000)]
(FSGLMUL_USE_S): Defined.
From-SVN: r2073
Richard Stallman [Mon, 7 Sep 1992 06:17:16 +0000 (06:17 +0000)]
(fsglmul pattern): If FSGLMUL_USE_S, opcode has .s, not .x.
From-SVN: r2072
Richard Stallman [Mon, 7 Sep 1992 06:08:44 +0000 (06:08 +0000)]
(grokparms): Copy arg type list to savable obstack if nec.
From-SVN: r2071
Richard Stallman [Mon, 7 Sep 1992 06:07:30 +0000 (06:07 +0000)]
(check_case_value): Call constant_expression_warning.
From-SVN: r2070
Richard Stallman [Mon, 7 Sep 1992 06:06:12 +0000 (06:06 +0000)]
(const_binop): Fix typo.
From-SVN: r2069
Richard Stallman [Mon, 7 Sep 1992 06:04:38 +0000 (06:04 +0000)]
(main): No program should return the error_count!
Return 2 if failure due to signal, 1 if just errors.
(execute): Increment signal_count.
From-SVN: r2068
Richard Stallman [Mon, 7 Sep 1992 05:56:52 +0000 (05:56 +0000)]
(record_reg_class): For matching operands...
(record_reg_class): For matching operands, handle
case where the earlier one is not a pseudo like the case
where the later one is not a pseudo.
From-SVN: r2067
Richard Stallman [Mon, 7 Sep 1992 05:32:35 +0000 (05:32 +0000)]
(simplify_binary_operation): For DIV by 0, do nothing.
From-SVN: r2066
Jeff Law [Mon, 7 Sep 1992 00:42:04 +0000 (18:42 -0600)]
pa.c (output_function_prologue): Undo Aug.
* pa.c (output_function_prologue): Undo Aug. 13 change.
If profiling, then this function makes calls. Reflect this in
CALLINFO.
(output_function_epilogue): If profiling, then be restore "rp" here.
* pa.c (use_milli_regs): Deleted.
From-SVN: r2065
Jeff Law [Mon, 7 Sep 1992 00:41:25 +0000 (18:41 -0600)]
pa.md (indirect_jump): Annul the next instruction if the delay slot could not be filled instead of...
* pa.md (indirect_jump): Annul the next instruction if the delay
slot could not be filled instead of emitting a nop.
* pa.md (use_milli_regs attribute): Deleted, not necessary anymore.
All references deleted.
From-SVN: r2064
Torbjorn Granlund [Sun, 6 Sep 1992 21:37:08 +0000 (21:37 +0000)]
(MOVE_MAX): Define as 4.
From-SVN: r2063
Torbjorn Granlund [Sun, 6 Sep 1992 21:23:36 +0000 (21:23 +0000)]
(hard_regno_mode_ok): Don't abort if unknown mode,
return 0 instead. Declare argument MODE as `enum machine_mode'.
From-SVN: r2062
Torbjorn Granlund [Sun, 6 Sep 1992 21:10:16 +0000 (21:10 +0000)]
(HARD_REGNO_MODE_OK): Allow BLKmode.
From-SVN: r2061
James Van Artsdalen [Sun, 6 Sep 1992 10:36:53 +0000 (10:36 +0000)]
(cmpstrsi): Rewrite expander to handle operands correctly.
From-SVN: r2060
Richard Kenner [Sun, 6 Sep 1992 02:55:22 +0000 (22:55 -0400)]
(try_combine): Make change missing from last modification to splitting
code.
From-SVN: r2059
Torbjorn Granlund [Sat, 5 Sep 1992 22:51:40 +0000 (22:51 +0000)]
(before functions): Remove xmalloc decl.
(arm_asm_output_label): Cast value from xmalloc.
From-SVN: r2058
Torbjorn Granlund [Sat, 5 Sep 1992 20:36:46 +0000 (20:36 +0000)]
(storehi): Use match_operand for operand 0.
Use gen_lowpart to change mode of operand 0.
(storeinthi): Use match_operand for operand 0.
Change output code to reassign operand 0.
(truncsihi2, truncsiqi2, trunchiqi2): Remove these patterns.
From-SVN: r2057
Richard Stallman [Sat, 5 Sep 1992 06:40:27 +0000 (06:40 +0000)]
(ASM_OUTPUT_OPCODE): Defined.
From-SVN: r2056
Richard Stallman [Sat, 5 Sep 1992 03:22:36 +0000 (03:22 +0000)]
(mulsi3_big): Use low half of result.
Use offset 1 in subregs in actual fmlow insn.
(fmlow pattern): Split this into alternatives for big and little end.
From-SVN: r2055
Richard Stallman [Sat, 5 Sep 1992 02:03:04 +0000 (02:03 +0000)]
Comment change for meaning of TREE_CONSTANT_OVERFLOW.
From-SVN: r2054
Richard Stallman [Sat, 5 Sep 1992 02:02:17 +0000 (02:02 +0000)]
(left_shift_overflows, same_sign, overflow_sum_sign): New macros.
(add_double, div_and_round_double, lshift_double, mul_double):
(neg_double, const_binop, fold): Check for signed integer overflow.
Propagate overflow flags from operands to result.
(const_binop, fold_convert): Use pedwarn for overflow warnings.
Say `constant expression', not `constant folding', for user's sake.
From-SVN: r2053
Richard Stallman [Sat, 5 Sep 1992 02:01:30 +0000 (02:01 +0000)]
(constant_expression_warning): Check INTEGER_CST for TREE_CONSTANT_OVERFLOW.
From-SVN: r2052
Torbjorn Granlund [Fri, 4 Sep 1992 21:27:17 +0000 (21:27 +0000)]
(output_move_double): Use %R to store at auto-incr/decr addr.
(output_move_double): Use %R to store at auto-incr/decr
addr. Split incr and decr cases for store.
From-SVN: r2051
Richard Stallman [Fri, 4 Sep 1992 04:40:25 +0000 (04:40 +0000)]
(install): Add semicolon to make an empty command.
(SYSTEM_HEADER_DIR): New variable.
(xlimits.h): New target, broken out from install-limits-h.
Look in SYSTEM_HEADER_DIR for system's limits.h.
(start.encap): Dep on xlimits.h.
(install-limits-h): Install xlimits.h already made.
From-SVN: r2050
Richard Stallman [Thu, 3 Sep 1992 23:25:40 +0000 (23:25 +0000)]
(setup_save_areas): Don't look at WORDS_BIG_ENDIAN.
From-SVN: r2049
Richard Stallman [Thu, 3 Sep 1992 22:13:44 +0000 (22:13 +0000)]
(IDENTIFIER_LIMBO_VALUE): New macro.
(struct lang_identifier): New field limbo_value.
From-SVN: r2048
Michael Meissner [Thu, 3 Sep 1992 18:28:12 +0000 (18:28 +0000)]
properly close comment.
From-SVN: r2047
Richard Stallman [Thu, 3 Sep 1992 08:55:41 +0000 (08:55 +0000)]
If we find a link pointing to ., make a similar link to ., not a link to an absolute name.
If we find a link pointing to ., make a similar
link to ., not a link to an absolute name.
(stdio.h): Change stdio.h to use stdarg.h to get va_list.
When link points to a dir $dirname outside $INPUT,
copy that dir into $LIB/root$dirname. Translate the link itself
into a link to that new dir. Make a file DONE in each treetop dir
so no treetop is scanned twice. Improve progress messages.
From-SVN: r2046
Richard Stallman [Thu, 3 Sep 1992 08:40:32 +0000 (08:40 +0000)]
(process_command): Correct for spaz by patch, installing last change.
From-SVN: r2045
Richard Stallman [Thu, 3 Sep 1992 07:23:31 +0000 (07:23 +0000)]
(SYSTEM_HEADER_DIR): Overridden.
From-SVN: r2044
Richard Stallman [Thu, 3 Sep 1992 07:15:21 +0000 (07:15 +0000)]
(main): Use new loop var J to avoid conflict with I.
From-SVN: r2043
Richard Stallman [Thu, 3 Sep 1992 07:13:23 +0000 (07:13 +0000)]
(insert_save_restore): Correct test for
determining whether multiple registers can be saved.
From-SVN: r2042
Richard Stallman [Thu, 3 Sep 1992 06:47:05 +0000 (06:47 +0000)]
Comment syntax fix.
From-SVN: r2041
Torbjorn Granlund [Thu, 3 Sep 1992 05:49:58 +0000 (05:49 +0000)]
(casesi): Use match_dup for second mention of operand 4.
From-SVN: r2040
Richard Stallman [Wed, 2 Sep 1992 23:19:20 +0000 (23:19 +0000)]
(default_compilers): Add missing comma between strings, so that traditional compilers can compile gcc.c.
(default_compilers): Add missing comma between strings, so
that traditional compilers can compile gcc.c.
(main): Don't pass strcpy or strlen a NULL pointer if some of the
spec strings in default_compilers are NULL.
(validate_all_switches): Don't dereference a NULL pointer if some of
the spec strings in defalut_compilers are NULL.
From-SVN: r2039
Jeff Law [Wed, 2 Sep 1992 23:08:44 +0000 (17:08 -0600)]
caller-save.c (init_caller_save): If we were unable to find a simple insn which meets all its constraints to save...
* caller-save.c (init_caller_save): If we were unable to
find a simple insn which meets all its constraints to save
and restore with a single insn in a mode, then set
regno_save_mode to VOIDmode to insure that this mode is never
used to caller-save the current register.
From-SVN: r2038
Richard Stallman [Wed, 2 Sep 1992 21:21:19 +0000 (21:21 +0000)]
(find_reloads): If have any earlyclobbers, don't let any reloads overlap with them.
(find_reloads): If have any earlyclobbers, don't let any
reloads overlap with them. Make everything RELOAD_OTHER.
From-SVN: r2037
Brendan Kehoe [Wed, 2 Sep 1992 20:10:54 +0000 (16:10 -0400)]
(default_compilers, ".C" and ".ii"): Pass `+e*' into cc1plus.
(process_command): Allow +e[012] to be passed down into cc1plus.
From-SVN: r2036
Jim Wilson [Wed, 2 Sep 1992 18:25:15 +0000 (11:25 -0700)]
(SImode ldd peepholes): Add `f' to constraints.
From-SVN: r2035
Jim Wilson [Wed, 2 Sep 1992 17:45:35 +0000 (10:45 -0700)]
(handle_pragma_token): Delete.
From-SVN: r2034
Jim Wilson [Wed, 2 Sep 1992 17:45:11 +0000 (10:45 -0700)]
(HANDLE_PRAGMA): Delete.
From-SVN: r2033
Tom Wood [Wed, 2 Sep 1992 16:38:37 +0000 (16:38 +0000)]
Drop \v in last change.
From-SVN: r2032
Jim Wilson [Wed, 2 Sep 1992 16:34:08 +0000 (09:34 -0700)]
Change the location of the Sun bundled C compiler (for backup defaults).
From-SVN: r2031
Tom Wood [Wed, 2 Sep 1992 16:10:04 +0000 (16:10 +0000)]
(MOVE_MAX): Express in bytes not bits.
From-SVN: r2030
Tom Wood [Wed, 2 Sep 1992 16:09:16 +0000 (16:09 +0000)]
(output_ascii): Output known escape characters and don't
terminate the constant if an octal escape is used.
From-SVN: r2029
Richard Kenner [Wed, 2 Sep 1992 10:37:38 +0000 (06:37 -0400)]
(make_compound_operation...
(make_compound_operation, case ASHIFTRT): Add new code to
handle (ashiftrt (neg (ashift FOO C1) C2)) just like we currently
handle (ashiftrt (OP (ashiftrt FOO C1) C2) C2).
From-SVN: r2028
Richard Stallman [Wed, 2 Sep 1992 06:59:00 +0000 (06:59 +0000)]
(print_node): Avoid 1 << (HOST_BITS_PER_INT - 1),
which overflows. Use unsigned % to compute HASH.
From-SVN: r2027
Richard Stallman [Wed, 2 Sep 1992 06:19:04 +0000 (06:19 +0000)]
Initial revision
From-SVN: r2026
Richard Stallman [Wed, 2 Sep 1992 06:18:15 +0000 (06:18 +0000)]
(X_CFLAGS): Deleted.
From-SVN: r2025
Richard Stallman [Wed, 2 Sep 1992 05:33:36 +0000 (05:33 +0000)]
(lang_options): Add terminating zero.
From-SVN: r2024