Commit Graph

6866 Commits

Author SHA1 Message Date
Richard Kenner
0afbe93d23 (build_real): Add `overflow' var; pass to CHECK_FLOAT_VALUE.
From-SVN: r6829
1994-03-20 06:27:53 -05:00
Richard Kenner
d8a6c3ebeb (attrib): Use identifier' instead of IDENTIFIER' since names that
are (e.g.) typedef names are still OK.

From-SVN: r6828
1994-03-19 18:02:29 -05:00
Jim Wilson
eedd251f16 (expand_expr, case ABS_EXPR): Fix typo in last change.
From-SVN: r6827
1994-03-19 14:43:50 -08:00
Richard Kenner
6e25d15912 (newpat_used_regs): New variable.
(mark_used_regs_combine): New function.
(try_combine): Use them.
(reg_dead_at_p): Registers marked in newpat_used_regs must always be
considered to be live.

From-SVN: r6826
1994-03-19 17:13:23 -05:00
Richard Kenner
1c78fc5220 (GO_IF_INDEXABLE_BASE): Make compatible with m68k.h.
From-SVN: r6825
1994-03-19 08:44:44 -05:00
Richard Kenner
35a3523cbf (output_epilogue, insn_names): Write correct names for patterns before
first named pattern.

From-SVN: r6824
1994-03-19 08:35:45 -05:00
Richard Kenner
875fbf803b (SELECT_SECTION): Fix typo (arg names) in last change.
From-SVN: r6823
1994-03-19 07:13:32 -05:00
Richard Kenner
1ff1a2d220 (grokdeclarator): Use signed version of `sizetype' for type of array
index.

From-SVN: r6822
1994-03-19 06:29:25 -05:00
Richard Kenner
79c844cdca (const_binop): Avoid initialized aggregate local variables, for
antique compilers.

From-SVN: r6821
1994-03-19 06:25:26 -05:00
Jim Wilson
ed8969fa7d (SELECT_SECTION): Variables go in readonly data
only if the initializer is constant.

From-SVN: r6820
1994-03-18 15:43:00 -08:00
Jim Wilson
07aeab22c0 (assemble_variable): Likewise.
From-SVN: r6819
1994-03-18 15:31:17 -08:00
Richard Kenner
bdfd4e3106 (HARD_REGNO_MODE_OK): Allow DImode in FP registers.
(CONDITIONAL_REGISTER_USAGE): Delete ppcas mention from comment.
(RTX_COSTS): Costs based upon processor_type enum.

From-SVN: r6818
1994-03-18 17:53:28 -05:00
Richard Kenner
c764f757d5 (common_mode_defined): New variable.
(output_prolog): Define external common-mode calls.

From-SVN: r6817
1994-03-18 17:53:04 -05:00
Richard Kenner
8ffd9c51e4 (divmodsi4, udivsi3, divsi3, udivmodsi4): Add AIX common-mode cases.
(mulh_call, mull_call, divss_call, divus_call, quoss_call, quous_call):
AIX common-mode call patterns.
(ashlsi3): More TARGET_POWERPC to ! TARGET_POWER changes.
(addsf3, subsf3, mulsf3, divsf3, etc.): Change TARGET_POWER
to ! TARGET_POWERPC.
(fix_truncdfsi2): Use POWER/2 and PowerPC FP convert instruction.
(fpcvtsi): New pattern.
(mulsidi3): Add AIX common-mode case, add imul attribute to POWER
pattern, add PowerPC pattern, flag input operands as commutative.
(smulsi3_highpart): Add AIX common-mode case.
(movsi matcher): Add mtjmpr attribute to ! TARGET_POWER case.
(movsf): Clean up load from memory or integer register test.
(movdi matcher): Add FP register support.
(smulsi3_highpart): New patterns.
(umulsi3_highpart_power): New pattern.

From-SVN: r6816
1994-03-18 17:52:27 -05:00
Jim Wilson
1052937bba (SELECT_RTX_SECTION): Add.
(ASM_SPEC): Pass -K to assembler when PIC.

From-SVN: r6815
1994-03-18 12:47:03 -08:00
Jim Wilson
445ae75f12 (SELECT_RTX_SECTION): Delete.
From-SVN: r6814
1994-03-18 12:46:20 -08:00
Jim Wilson
2d879387e2 (include_prefix): New variable.
(process_command): Add path/include to include_prefix when see a
-Bpath option.
(do_spec_1, case 'I'): Pass include_prefix directories to cpp with
the -isystem option.

From-SVN: r6813
1994-03-18 12:37:22 -08:00
Jim Wilson
b0866c745a (before_system, last_before_system): New variables.
(main): Handle -isystem option.  Insert -isystem directories in
search chain at first_system_include.

From-SVN: r6812
1994-03-18 12:35:42 -08:00
Jim Wilson
5ea7a4ae88 (scan_loop): New variable loop_depth.
(scan_loop): New variable loop_depth.	Increment and
decrement on LOOP_BEG and LOOP_END notes.  Only use LOOP_VTOP note
if loop_depth is zero.
(strength_reduce): Likewise.

From-SVN: r6811
1994-03-18 12:31:41 -08:00
Jim Wilson
4c1b367c41 (FIXUNS_TRUNCTFSI2_LIBCALL): Define.
From-SVN: r6810
1994-03-18 12:29:08 -08:00
Jim Wilson
927c745d80 (init_optabs): Use FIXUNS_TRUNCTFSI2_LIBCALL macro.
From-SVN: r6809
1994-03-18 12:26:04 -08:00
Per Bothner
a6458cef63 stor-layout.c (layout_type, [...]): Set TREE_UNSIGNED unless TYPE_MIN_VALUE is negative.
* stor-layout.c (layout_type, case BOOLEAN_TYPE):
 Set TREE_UNSIGNED unless TYPE_MIN_VALUE is negative.

From-SVN: r6808
1994-03-17 21:33:36 -08:00
Jim Wilson
7dcf01c29c (pushdecl): Call lookup_name for external references.
Delete code to check external references against global
declarations.
(redeclaration_error_message): If newdecl has block scope, then
return string only if olddecl has the same scope.

From-SVN: r6807
1994-03-17 15:45:04 -08:00
Jim Wilson
597681f6d1 (shorten_compare): When simplify compare against
zero, check for restype_ptr unsigned instead of primop0 unsigned.

From-SVN: r6806
1994-03-17 15:39:11 -08:00
Jim Wilson
6b972c4f89 (expand_call): Undo Feb 27 change.
(expand_call): Undo Feb 27 change.  Set nregs to -1 for
normal case.

From-SVN: r6805
1994-03-17 15:36:20 -08:00
Ian Lance Taylor
5a157bc426 Define BYTE_ORDER in <sys/byteorder.h> as on UnixWare 1.1
From-SVN: r6804
1994-03-17 22:43:02 +00:00
Richard Kenner
e2a77f994d (layout_type, case INTEGER_TYPE): Properly test for nonnegative lower
bound.

From-SVN: r6803
1994-03-17 06:02:16 -05:00
Ian Lance Taylor
2109bb54ef Don't declare last parameter of stdarg function to be register.
From-SVN: r6802
1994-03-16 17:40:38 +00:00
Jeff Law
608f0dd2b1 pa.h (INITIALIZE_TRAMPOLINE): Do not mask off high bits of address passed to icacheflush.
* pa.h (INITIALIZE_TRAMPOLINE): Do not mask off high
        bits of address passed to icacheflush.

From-SVN: r6801
1994-03-16 10:06:39 -07:00
Jeff Law
3c9a7b64d9 pa.h (WCHAR_TYPE): Use "unsigned int" by default.
* pa.h (WCHAR_TYPE): Use "unsigned int" by default.
	(WCHAR_TYPE_SIZE): Change appropriately.
	* pa-ghiux.h, pa-ghpux.h, pa-gux7.h, pa-hiux.h, pa-hpux.h,
	pa-hpux7.h (WCHAR_TYPE): Delete definition.
	(WCHAR_TYPE_SIZE): Likewise.
	* pa-osf.h (WCHAR_TYPE): Override appropriately for OSF1.
	(WCHAR_TYPE_SIZE): Likewise.

From-SVN: r6800
1994-03-16 10:05:24 -07:00
Jeff Law
d13a220a06 * pa.md (DImode lo_sum): Add earlyclobber for alternative one.
From-SVN: r6799
1994-03-16 10:03:01 -07:00
Jeff Law
cface0264d pa.h (ASM_OUTPUT_ADDR_DIFF_ELT): Rewrite to match ASM_OUTPUT_ADDR_VEC_ELT which is PIC-safe.
* pa.h (ASM_OUTPUT_ADDR_DIFF_ELT): Rewrite to match
	ASM_OUTPUT_ADDR_VEC_ELT which is PIC-safe.

From-SVN: r6798
1994-03-16 10:01:27 -07:00
Richard Kenner
f8eb03658e (FUNCTION_PROLOGUE): Load sb through r0 if TARGET_REGPARM is false.
From-SVN: r6797
1994-03-16 09:07:29 -05:00
Richard Kenner
bc69bfacd4 (global_symbolic_reference_mentioned_p): Recurse only
if GET_CODE (op) == CONST.

From-SVN: r6796
1994-03-16 09:07:11 -05:00
Richard Kenner
65e8fe02bb (gen_lowpart_common...
(gen_lowpart_common, gen_highpart, operand_subword): Test input
against RTX for FP, AP, and SP, not same register number.

From-SVN: r6795
1994-03-16 09:01:34 -05:00
Richard Kenner
d6a5ac336d (expand_expr): Update comments and fix formatting.
(expand_expr, case VAR_DECL, STRING_CST, CONSTRUCTOR): If flag_force_addr, put
address in register unless REG.
(expand_expr, case CONSTRUCTOR, CONVERT_EXPR): Make TARGET with TMODE, if
specified.
(expand_expr, case IN_EXPR): Clean up.  Allow INDEX to be an unsigned type.
Always evaluate SET and INDEX in case of side effects.
(expand_expr, case CONVERT_EXPR): Use convert_modes to handle consts.
(expand_expr, case ABS_EXPR): Simplify processing of COMPLEX.
Compare with zero word-by-word if required.
(expand_expr, case ABS_EXPR, MIN_EXPR, COND_EXPR): Don't use TARGET if
not MODE.
(expand_expr, case TRUTH_*_EXPR): Modes of input and output must agree.
(expand_expr, case CONJ_EXPR): Remove redundant def of MODE.

From-SVN: r6794
1994-03-16 08:24:29 -05:00
Richard Kenner
8df0611867 (layout_record): If the place where we were going to put a field
changed, lay it out again.

From-SVN: r6793
1994-03-16 06:57:14 -05:00
Richard Kenner
6e5bea5468 (stmp-fixproto): Add missing "-" in front of "if".
(install-headers-tar, gcc.xtar): Use "-" in front of tar options.

From-SVN: r6792
1994-03-15 07:53:28 -05:00
Richard Kenner
ccdecf58a9 (assign_parms, expand_function_start): Properly set MEM_IN_STRUCT_P
for DECL_RTL of function result.

From-SVN: r6791
1994-03-14 17:31:43 -05:00
Ian Lance Taylor
d4c60bd6d6 Insert newlines for sed 'a' and 'i' commands.
From-SVN: r6790
1994-03-14 21:55:07 +00:00
Ian Lance Taylor
e1c35cd741 Don't name variables in mmap prototype.
From-SVN: r6789
1994-03-14 20:47:18 +00:00
Doug Evans
5366ab1d32 (*.o): Add explicit dependencies for Sun's VPATH.
From-SVN: r6788
1994-03-14 20:15:59 +00:00
Richard Kenner
0a43d68083 (grokdeclarator): Convert to sizetype when manipulating size of array
and use care to avoid mixed-type operations.

From-SVN: r6787
1994-03-14 08:47:18 -05:00
Richard Kenner
0207ea829b (compile_file): Call bc_write_file here and pass asm_out_file, not stdout.
(main): Don't call bc_write_file here.
Fix wording on error if -fbytecode specified on unsupported target.

From-SVN: r6786
1994-03-14 08:14:17 -05:00
Richard Kenner
66bd81d9d0 (bc_seg_write): Don't make unaligned reference to seg->data.
From-SVN: r6785
1994-03-14 08:13:43 -05:00
Richard Kenner
00f07fb912 (output_constant_def): Do hashing and make label even if bytecode.
From-SVN: r6784
1994-03-14 08:13:14 -05:00
Richard Kenner
8e2b13c322 (bc_expand_start_cond): Set exit_label if not EXITFLAG.
(bc_expand_end_bindings): Only define exit_label if set.
Don't pop nesting_stack.

From-SVN: r6783
1994-03-14 08:12:41 -05:00
Richard Kenner
542ed971f4 (bc_expand_{binary,unary}_operation): Add missing args to call to
expand_expr.

From-SVN: r6782
1994-03-14 08:12:11 -05:00
Richard Kenner
1d556704ce (expand_expr): Don't call bc_expand_expr if EXPAND_INITIALIZER.
From-SVN: r6781
1994-03-14 08:11:32 -05:00
Richard Kenner
e9aaa5a553 (fold, associate): If -ffast-math, associate FP mults.
(fold, case RDIV_EXPR): Split case; ignore division by 1.
If -ffast-math, convert to multply by reciprocal.
(fold, case *_DIV_EXPR): Simplify A/C1/C2.

From-SVN: r6780
1994-03-14 06:18:52 -05:00