Commit Graph

6845 Commits

Author SHA1 Message Date
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
Richard Kenner
d0cb4c6591 (fold): Call tree_int_cst_sgn.
(fold, case *_DIV_EXPR): Add missing conversion.

From-SVN: r6779
1994-03-14 05:11:28 -05:00
Richard Kenner
153c149bec (expand_builtin, case BUILT_IN_RETURN_ADDRESS): Call tree_int_cst_sgn.
From-SVN: r6778
1994-03-14 05:10:47 -05:00
Richard Kenner
ab29fdfc6f (convert_to_integer): Convert integer_one_node to proper type before
tree_int_cst_lt call.

From-SVN: r6777
1994-03-14 05:09:52 -05:00
Richard Kenner
ff3225e75c (build_binary_op, pop_init_level, output_pending_init_elements): Call
tree_int_cst_sgn.

From-SVN: r6776
1994-03-14 05:09:19 -05:00
Richard Kenner
6aa10371a5 (finish_{decl,struct,enum}): Call tree_int_cst_sgn.
From-SVN: r6775
1994-03-14 05:08:06 -05:00
Richard Kenner
6d9cb074bf (tree_int_cst_sgn): New function.
From-SVN: r6774
1994-03-14 05:07:30 -05:00
Richard Kenner
40c9a5496f (tree_int_cst_sgn): New declaration.
From-SVN: r6773
1994-03-14 05:07:09 -05:00
Richard Kenner
18c0f6759f (TRUTH_*_EXPR): Convert to integer_type_node.
From-SVN: r6772
1994-03-13 21:16:59 -05:00
Richard Kenner
c9529354a0 (convert_to_integer): When changing type of truthvalue operation,
change types of inputs too.

From-SVN: r6771
1994-03-13 21:16:38 -05:00
Richard Kenner
2e15b172de Add OVERFLOW operand to CHECK_FLOAT_VALUE.
From-SVN: r6770
1994-03-13 08:34:34 -05:00
Richard Kenner
c05f751c24 (constant_expression_warning, overflow_warning): Handle REAL_CST and
COMPLEX_CST.

From-SVN: r6769
1994-03-13 08:31:27 -05:00
Richard Kenner
649ff3b44f (force_fit_value): Operate on REAL_CST as well.
(real_value_truncate): Don't use its own handler.
(const_binop): Set overflow on FP error and call force_fit_type.
(fold_convert): Likewise.

From-SVN: r6768
1994-03-13 08:30:50 -05:00
Richard Kenner
831522a46e (simplify_binary_operation): Protect real_value_truncate inside
handler.

From-SVN: r6767
1994-03-13 08:30:11 -05:00
Richard Kenner
53d74c3c5d Include setjmp.h.
(build_real_from_int_cst): Propagate overflow flags and establish float
handler.
(build_complex): Propagate overflow flags.

From-SVN: r6766
1994-03-13 08:29:32 -05:00
Richard Kenner
ae202b5602 Update comments for TREE_OVERFLOW and TREE_CONSTANT_OVERFLOW.
From-SVN: r6765
1994-03-13 08:28:55 -05:00
Richard Kenner
54a88f9251 (do_spec_1): Don't duplicate a macro starting with '__'.
From-SVN: r6764
1994-03-13 06:45:59 -05:00
Richard Kenner
c5ea5f3b33 (rtx_equal_for_thread_p): Correct error in previous change; add
missing arg in recursive call.

From-SVN: r6763
1994-03-13 05:54:28 -05:00
Richard Kenner
7b70a020c3 (NO_IMPLICIT_EXTERN_C): Defined.
From-SVN: r6762
1994-03-12 19:41:56 -05:00
Richard Kenner
89b3e3b406 (gxx_include_dir): Replacement for gxx_prefix.
From-SVN: r6761
1994-03-12 19:41:22 -05:00
Richard Kenner
c31049fdc1 Don't define emit_float_lib_cmp now that no longer static.
From-SVN: r6760
1994-03-12 16:59:18 -05:00
Richard Kenner
cb2cab79eb (emit_float_lib_cmp): Add declaration here.
From-SVN: r6759
1994-03-12 16:58:58 -05:00