Commit Graph

67 Commits

Author SHA1 Message Date
Richard Kenner
6a22e3a731 (substitute_expr): Don't abort for RTL_EXPR and SAVE_EXPR; just do
nothing.

From-SVN: r6357
1994-01-04 07:34:51 -05:00
Richard Kenner
1810c3fa48 (chainon): Detect more circularities.
From-SVN: r6266
1993-12-22 14:18:06 -05:00
Richard Kenner
49b08aba12 (copy_node): Handle length of INTEGER_CST like make_node.
From-SVN: r6241
1993-12-15 18:43:52 -05:00
Richard Kenner
af49386505 (type_hash_canon): Clean up obstack usage a bit.
From-SVN: r6223
1993-12-12 08:04:10 -05:00
Richard Kenner
19e7d35474 (save_tree_status): Function_maybepermanent_obstack is the function_obstack of parent function.
(save_tree_status): Function_maybepermanent_obstack is the function_obstack
of parent function.
(restore_tree_status): Only free objects later than maybepermanent_firstobj in
function_maybepermanent_obstack.
(make_node): Fix logic error in PARM_DECL code.
Put PARM_DECL in parent function's saveable obstack.

From-SVN: r5713
1993-10-10 17:10:19 -04:00
Richard Stallman
14b6efffc7 (pop_momentary_nofree): New function.
From-SVN: r5703
1993-10-10 05:20:40 +00:00
Richard Kenner
c5af99013b (save_expr): Update tombstone comment.
From-SVN: r5649
1993-10-06 18:45:41 -04:00
Richard Stallman
4b1d0feaca Comment change.
From-SVN: r5644
1993-10-06 21:07:12 +00:00
Richard Stallman
3aa7750055 Comment change.
From-SVN: r5629
1993-10-06 06:11:07 +00:00
Richard Kenner
a56e713327 (contains_placeholder_p): Return 0 for CONSTRUCTOR.
(substitute_in_expr): Don't allow CONSTRUCTOR.

From-SVN: r5625
1993-10-05 22:44:02 -04:00
Richard Kenner
f52b5958f0 (make_node, case 'd'): Refine in which obstack PARM_DECLs are
allocated.

From-SVN: r5624
1993-10-05 22:33:19 -04:00
Richard Kenner
67c8d7deb2 (contains_placeholder): Return 0 for WITH_RECORD_EXPR.
From-SVN: r5620
1993-10-05 19:13:31 -04:00
Richard Kenner
526a62535a (build_string): Remove previous change and comment why string text has
to be in saveable_obstack.

From-SVN: r5589
1993-10-04 05:51:29 -04:00
Richard Kenner
492c86a4c5 (staticp): DECL_EXTERNAL is not defined for CONSTRUCTOR.
From-SVN: r5586
1993-10-03 21:51:27 -04:00
Richard Kenner
dec20b4bae (save_expr): Don't evaluate something containing a PLACEHOLDER_EXPR.
(contains_placeholder_p, substitute_in_{expr,type}): New functions.

From-SVN: r5581
1993-10-03 21:46:17 -04:00
Richard Kenner
3cd252c320 (build_string): Make lifetime of string the same as tree node.
From-SVN: r5558
1993-10-02 14:03:56 -04: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
Per Bothner
bb28827839 (get_file_function_name): New function.
From-SVN: r5136
1993-08-11 19:43:49 -07:00
Richard Kenner
c4be79d289 (print_obstack_name): New function; derived from original debug_obstack.
(debug_obstack): Call print_obstack_name.

From-SVN: r5095
1993-08-07 07:39:47 -04:00
Richard Kenner
d9cbc259b2 (make_node, copy_node): Set TYPE_OBSTACK.
(build_type_variant, build_type_copy, build_pointer_type): Put new node in
same obstack as old node; use push/pop obstacks.

From-SVN: r5078
1993-08-05 19:23:22 -04:00
Richard Stallman
956af06945 Comment change.
From-SVN: r5072
1993-08-04 23:18:30 +00:00
Doug Evans
e02b99578f (get_narrower): Preserve unsignedness when bitschange == 0.
From-SVN: r4842
1993-07-05 06:25:00 +00:00
Richard Kenner
c0560b8b7c (array_type_nelts): Tighten up code and make more general.
(build_function_type): Allow function to return array.
(decl_function_context): Treat QUAL_UNION_TYPE like UNION_TYPE.

From-SVN: r4771
1993-06-27 18:50:04 -04:00
Richard Stallman
a7d9040199 Fix comment syntax typo.
From-SVN: r4431
1993-05-12 18:09:10 +00:00
Richard Stallman
2026444ac9 (real_value_from_int_cst): Use temporary variable `e' to
work around bugs in 386 PCC.

(build_array_type): Delete the code to set TYPE_MAIN_VARIANT.

(build_array_type):
Don't change TYPE_MAIN_VARIANT if incomplete (domain not known).

From-SVN: r4428
1993-05-12 04:29:00 +00:00
Richard Stallman
15c76378f6 (change_main_variant): New function.
(build_array_type): Use that to set the TYPE_MAIN_VARIANT.

(real_value_from_int_cst):
If I is unsigned, use REAL_VALUE_FROM_UNSIGNED_INT.

From-SVN: r4418
1993-05-11 04:38:47 +00:00
Richard Stallman
84db222add (build_array_type): The main variant of an array type
should always be an array whose element type is the main variant.

From-SVN: r4328
1993-05-05 03:18:13 +00:00
Richard Kenner
579f50b6c5 (next_type_uid): Move definition to reasonable place. (copy_node):
Make new DECL_UID and TYPE_UID as comments say.

From-SVN: r3968
1993-03-31 16:03:25 -05:00
Richard Stallman
ae698e41ed (stabilize_reference_1): For division and remainder, make a save_expr.
From-SVN: r3889
1993-03-27 07:23:42 +00:00
Jim Wilson
238a185624 Fix typo in comment.
From-SVN: r3656
1993-03-05 09:49:44 -08:00
Richard Stallman
8e27715a9a (build_complex): Set the TREE_TYPE based on real part.
From-SVN: r3625
1993-03-03 21:25:11 +00:00
Per Bothner
742e43a2fa Define and use new function build_range_type.
From-SVN: r3624
1993-03-03 12:35:27 -08:00
Jim Wilson
02e39be120 (rtl_in_saveable_obstack): Always switch to saveable_obstack.
Return type now void instead of int.

From-SVN: r3599
1993-03-02 12:54:45 -08:00
Richard Stallman
86aed40b12 (simple_cst_equal): New default case handles most tree codes based on TREE_CODE_CLASS.
(simple_cst_equal): New default case handles most
tree codes based on TREE_CODE_CLASS.  Delete newly redundant cases
for specific tree codes.

From-SVN: r3559
1993-02-27 19:13:55 +00:00
Richard Stallman
b6542989bc (size_in_bytes): Add 2nd arg to force_fit_type.
From-SVN: r3443
1993-02-09 06:13:46 +00:00
Richard Stallman
4d7d0403c6 (size_in_bytes): Only call force_fit_type for an INTEGER_CST.
From-SVN: r3386
1993-01-30 01:56:57 +00:00
Richard Stallman
5a0e778b76 (int_size_in_bytes): Change ret type back to int.
From-SVN: r3061
1993-01-02 21:44:10 +00:00
Richard Stallman
cdc5a032d9 (build_index_type): Leave TYPE_MAX_VALUE as -1 if it was;
don't truncate the high bits.

(size_in_bytes): Call force_fit_type with end result.
(int_size_in_bytes): Avoid overflow as long as result fits.
Return type is now unsigned int.

From-SVN: r3006
1992-12-31 08:32:47 +00:00
Richard Kenner
66212c2f76 (make_node, case 'c'): For INTEGER_CST, use size of struct containing constant, just like for reals.
(make_node, case 'c'): For INTEGER_CST, use size of struct containing
constant, just like for reals.  Also, clean up code to avoid confusing
fallthrough.

From-SVN: r2919
1992-12-26 22:18:12 -05:00
Richard Stallman
11b459cf9a (copy_node): Copy the excess bytes--don't clear them.
From-SVN: r2551
1992-10-22 12:04:02 +00:00
Richard Stallman
2f145821b7 (make_node, copy_node): Don't assume node length is multiple of int.
From-SVN: r2524
1992-10-20 08:57:43 +00:00
Richard Stallman
dcffa15b6e (int_fits_type_p): Negative ints never fit unsigned
types, and unsigned ints with top-bit-set never fit signed types.

From-SVN: r2126
1992-09-15 21:37:22 +00:00
Richard Stallman
bc99efc9d6 (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
1992-09-09 07:00:48 +00:00
Richard Stallman
c7ee7249fc (make_node): Fix typo in July 6 change:
assignment of DECL_IN_SYSTEM_HEADER was inserted in bad place.

From-SVN: r2011
1992-09-01 06:19:13 +00:00
Richard Stallman
f47ee9f26e (chainon): Check for op2 being the last elt of the chain.
From-SVN: r1987
1992-08-29 03:11:59 +00:00
Richard Stallman
52d2830e77 Fix comment.
From-SVN: r1963
1992-08-26 18:56:07 +00:00
Richard Kenner
f8d97cf472 Put include of stdio.h after GCC header files (for i860-stardent-sysv4).
From-SVN: r1905
1992-08-20 05:58:18 -04:00
Torbjorn Granlund
858a47b165 Fix spelling errors in comments.
From-SVN: r1825
1992-08-14 11:33:04 +00:00
Richard Kenner
d69c4bd158 (TYPE_HASH): Use HOST_WIDE_INT instead of int when casting pointers to
integers.

From-SVN: r1752
1992-08-02 21:40:19 -04:00
Richard Stallman
cfd6bb3d08 (make_node): Fix white space.
From-SVN: r1708
1992-07-29 03:31:44 +00:00