Commit Graph

4745 Commits

Author SHA1 Message Date
Richard Stallman
fff26804c9 (translate_options): `*' inhibits warning of extraneous arg.
From-SVN: r4758
1993-06-26 19:43:09 +00:00
Richard Kenner
6a96fcb495 (fold, case PLUS_EXPR, MINUS_EXPR): Apply distributive law to multiplication.
(fold, case *_DIV_EXPR): Replace code to handle (A*C1)/C2 with more general
code to handle addition as well.
(fold, case *_MOD_EXPR): Add simplified version of above code.

From-SVN: r4757
1993-06-26 11:55:06 -04:00
Richard Kenner
f62f398a28 Remove #define of alloca to __builtin_alloca.
From-SVN: r4756
1993-06-26 11:43:50 -04:00
Richard Kenner
47df02623a (poplevel): Start new function context when writing inline function.
From-SVN: r4755
1993-06-26 11:21:20 -04:00
Richard Kenner
86ef2ef98c (compile_file): Switch to temporary allocation when writing out inline
functions.

From-SVN: r4754
1993-06-26 11:19:08 -04:00
Richard Kenner
a6dd1cb60d (function_cannot_inline_p): Can now inline nested functions.
(expand_inline_function): Set up static chain if needed.
(output_inline_function): Don't switch to temporary allocation here.

From-SVN: r4753
1993-06-26 11:18:28 -04:00
Richard Kenner
a34731a692 (init_decl_processing): When making SIZETYPE, start with name in SIZE_TYPE.
(init_decl_processing): When making SIZETYPE, start with name in
SIZE_TYPE.  If -traditional, use a signed version of that type, if it
is unsigned.

From-SVN: r4752
1993-06-26 11:15:29 -04:00
Richard Kenner
4b63dccb38 Add more decls for functions in fold-const.c.
From-SVN: r4751
1993-06-26 11:13:41 -04:00
Richard Kenner
6dc7571d06 Add prototypes for static functions.
({l,r}{shift,rotate}_double): COUNT arg is HOST_WIDE_INT, PREC is int.
(all_ones_mask): Remove __inline__.
(range_test): Make static; not used elsewhere.

From-SVN: r4750
1993-06-26 11:12:58 -04:00
Richard Kenner
6e716e89dc (expand_calls): Fix typo: ALLOCATE_OUTGOING_ARGS
should be ACCUMULATE_OUTGOING_ARGS.

From-SVN: r4749
1993-06-26 11:09:26 -04:00
Richard Kenner
224eeff2ea (subst): apply_distributive_law can also handle AND.
(subst, case IF_THEN_ELSE): Make a shift when appropriate.
(simplify_shift_const): If we have an outer operation and made a shift, see if
it can be simplified.

From-SVN: r4748
1993-06-26 11:06:55 -04:00
Richard Kenner
af508edd0a (do_store_flag): When computing via a shift, allow for an inner RSHIFT_EXPR in BITNUM.
(do_store_flag): When computing via a shift, allow for an inner RSHIFT_EXPR
in BITNUM.
Sometimes do the operations as signed.

From-SVN: r4747
1993-06-26 11:06:01 -04:00
Richard Kenner
96d4cf0ace (fold_truthop): Treat a BIT_AND_EXPR with a constant of one as if it were surrounded with an NE_EXPR.
(fold_truthop): Treat a BIT_AND_EXPR with a constant of one as if it were
surrounded with an NE_EXPR.
(fold): Don't move operation into conditional if it is BIT_{AND,OR}_EXPR with
the constant 1; change it to TRUTH_*_EXPR instead.
When moving things inside conditions, move comparisons as well as binary
operations.
Don't make a SAVE_EXPR when moving things inside conditionals unless the value
would really have been used twice.

From-SVN: r4746
1993-06-26 11:05:12 -04:00
Richard Kenner
e9b3df3116 (TRUTH_{AND,OR,XOR}_EXPR): Make code class be 'e' like the rest of the
truth operations.

From-SVN: r4745
1993-06-26 11:04:22 -04:00
Richard Stallman
8ffd69e449 Include ctype.h.
(isalnum, isdigit): Macros deleted.

From-SVN: r4744
1993-06-26 12:27:32 +00:00
Richard Stallman
6baacf6322 Include ctype.h.
From-SVN: r4743
1993-06-26 12:27:06 +00:00
Richard Stallman
bdec790ce6 (output_move_double): Handle reg[n,n+1] = mem[reg[n] + reg[n+1]].
From-SVN: r4742
1993-06-26 07:44:01 +00:00
Richard Stallman
ae49c611b6 (movdi): Delete the earlyclobber in load case.
From-SVN: r4741
1993-06-26 07:42:26 +00:00
Doug Evans
5e3f49d1ce (option_map): Add missing comma.
From-SVN: r4740
1993-06-26 07:14:53 +00:00
Richard Stallman
c569c2c1dc Clean up formatting.
From-SVN: r4739
1993-06-26 07:05:47 +00:00
Richard Stallman
9f4d9f6cd7 (calls_function_1): Add declaration.
From-SVN: r4738
1993-06-26 06:31:09 +00:00
Richard Stallman
1c8d7aef51 (calls_function): Don't scan a single save_expr twice.
(calls_function_1): New subroutine for the actual recursion.

From-SVN: r4737
1993-06-26 02:37:19 +00:00
Richard Stallman
4d06f1a218 (all_iter_stmt_simple): Add missing `else'.
From-SVN: r4736
1993-06-26 00:14:16 +00:00
Brendan Kehoe
c157db53e9 only 13 reduce/reduce
From-SVN: r4735
1993-06-25 19:17:30 -04:00
Brendan Kehoe
e701d556d1 add C++ flags
From-SVN: r4734
1993-06-25 19:16:44 -04:00
Richard Stallman
10ba57e571 Convert ...-sysvr4 into ...-sysv4.
From-SVN: r4733
1993-06-25 21:57:48 +00:00
Richard Stallman
f7c680ed1e (CPP_PREDEFINES): Have two alternatives,
one for motorola and one for not motorola.

From-SVN: r4732
1993-06-25 21:35:23 +00:00
Richard Stallman
4381295b18 (CPP_PREDEFINES): Add __motorola__.
From-SVN: r4731
1993-06-25 21:34:25 +00:00
Richard Stallman
c2e6aff601 (store_expr): If TARGET is volatile mem ref, return it.
From-SVN: r4730
1993-06-25 18:14:35 +00:00
Richard Stallman
c7daad388b (lang_options): Add -fdollars-in-identifiers.
From-SVN: r4729
1993-06-25 18:01:51 +00:00
Richard Stallman
a419ff54d6 (c_decode_option): Handle -fdollars-in-identifiers.
From-SVN: r4728
1993-06-25 18:01:20 +00:00
Jeff Law
816edf8b02 pa-hpux.h (LINK_SPEC): Search shared libraries by default...
* pa-hpux.h (LINK_SPEC): Search shared libraries by default; turn off
	shared library searching if -static is specified.
	* pa-ghpux.h (LINK_SPEC): Likewise.

From-SVN: r4727
1993-06-25 11:43:16 -06:00
Jeff Law
d5e87e5eed pa.c: References to TARGET_SHARED_LIBS deleted.
* pa.c: References to TARGET_SHARED_LIBS deleted.
	* pa.md: Likewise.

From-SVN: r4726
1993-06-25 11:41:01 -06:00
Jeff Law
5a079bea22 pa.h (TARGET_SHARED_LIBS): Delete switch and all references to the switch.
* pa.h (TARGET_SHARED_LIBS): Delete switch and all references to
	the switch.

From-SVN: r4725
1993-06-25 11:40:42 -06:00
Jeff Law
24c6ab1c8b * pa.h (TARGET_DISABLE_INDEXING): Clean up comments.
From-SVN: r4724
1993-06-25 11:35:30 -06:00
Jeff Law
7c6c204ffe pa-utahmach.h (TARGET_DEFAULT): Allow indexing on Mach ports.
* pa-utahmach.h (TARGET_DEFAULT): Allow indexing on Mach ports.
	* pa1-utahmach.h (TARGET_DEFAULT): Likewise.

From-SVN: r4723
1993-06-25 11:35:04 -06:00
Richard Stallman
e7d7b3dcb3 (negdi2, negdi2_internal): Renamed from negdi3...
From-SVN: r4722
1993-06-25 04:51:39 +00:00
Richard Stallman
f7f1b4a40e (option_map): Make --version alias for -dumpversion.
From-SVN: r4721
1993-06-24 04:32:25 +00:00
Richard Stallman
68a91d8d3a (decl_attributes): If first_arg_num is 0, no error for it.
From-SVN: r4720
1993-06-24 03:36:08 +00:00
Richard Kenner
e15eb3aa70 (alloc_qty_for_scratch): Can allocate likely-spilled register classes for SCRATCH.
(alloc_qty_for_scratch): Can allocate likely-spilled register classes
for SCRATCH.
(block_alloc): Likewise for regs in small register classes.

From-SVN: r4719
1993-06-23 19:17:47 -04:00
Richard Kenner
0f21219f14 (DBX_REGPARM_STABS_LETTER, DEBUGGER_{AUTO,ARG}_OFFSET): New macros.
From-SVN: r4718
1993-06-23 07:56:43 -04:00
Richard Kenner
d1abe60219 (output_prologue): Delete unused var, INSN.
(output_encoded_offset): New function.
(output_epilogue): Minor changes to traceback table; call
new output_encoded_offset.
(romp_debugger_{auto,arg}_correction): New functions.

From-SVN: r4717
1993-06-23 07:56:13 -04:00
Richard Kenner
963d6142cc (fill_slots_from_thread): When replacing a use of a register with what it was set to...
(fill_slots_from_thread): When replacing a use of a register with what
it was set to, don't do it when either the destination or source of
the copy is set in the insn.

From-SVN: r4716
1993-06-23 07:54:14 -04:00
Richard Kenner
c71ebae3c4 (jump_optimize): Properly make jump into store-flag sequence when...
(jump_optimize): Properly make jump into store-flag sequence when the
jump can't be reversed but the TRUE branch is const0_rtx.

From-SVN: r4715
1993-06-23 07:52:14 -04:00
Richard Kenner
dd27116b8f (expand_expr): Set IGNORE if target is const0_rtx or result type is VOID.
Move most IGNORE processing to one place to avoid expanding things that don't
need to be expanded.
(expand_expr, case CONSTRUCTOR, case COND_EXPR): If IGNORE, don't expand
anything we don't have to.
(expand_expr, case CONVERT_EXPR): Don't deal with IGNORE here.

From-SVN: r4714
1993-06-23 07:50:02 -04:00
Richard Kenner
bd5f197aa1 (scratch_block, scratch_list{,_length}, scratch_index): New variables.
(local_alloc): Allocate and initialize them.
(block_alloc): Only allocate a SCRATCH if it can fit in the block we make.
Don't mark regs used in SCRATCH live here; instead, make entry in new tables.

From-SVN: r4713
1993-06-23 07:47:16 -04:00
Richard Kenner
c307c23778 (mark_scratch_live): New function.
(reload): Call it on each SCRATCH.
Free scratch list and block.
(spill_hard_reg): Reallocate any SCRATCH whose register we want to spill.

From-SVN: r4712
1993-06-23 07:46:27 -04:00
Richard Kenner
a65b6597c4 (scratch_list, scratch_block, scratch_list_length): New vars.
From-SVN: r4711
1993-06-23 07:45:47 -04:00
Brendan Kehoe
6b46c09032 toplev.c (report_error_function): Change format of the included-file stack to be more readable.
* toplev.c (report_error_function): Change format of the
	included-file stack to be more readable.
	* cccp.c (print_containing_files): Likewise.

From-SVN: r4710
1993-06-22 13:56:40 -04:00
Brendan Kehoe
e5301904b9 toplev.c (report_error_function): Change format of the included-file stack to be more readable.
* toplev.c (report_error_function): Change format of the
	included-file stack to be more readable.
	* cccp.c (print_containing_files): Likewise.
	* toplev.c (report_error_function): Change format of the
	included-file stack to be more readable.
	* cccp.c (print_containing_files): Likewise.

From-SVN: r4709
1993-06-22 13:56:40 -04:00