Richard Kenner
a43ea3192f
(c_expand_asm_operands): Check for read-only output operand where the
...
variable is read-only but the type is not.
From-SVN: r10232
1995-08-13 21:42:59 -04:00
Richard Kenner
ba11c17994
(pointer_int_sum): Don't distribute if intop is unsigned and not the
...
same size as ptrop.
From-SVN: r10186
1995-07-28 09:36:30 -04:00
Richard Kenner
fb695d4a37
({unsigned,signed}_type): Handle intXX_type_node types.
...
From-SVN: r10142
1995-07-17 14:28:37 -04:00
Richard Kenner
e8b87aac1c
(lookup_field): Change name comparison to match what field_decl_cmp
...
does.
From-SVN: r10138
1995-07-14 19:23:27 -04:00
Richard Kenner
940d9d638b
Update FSF address.
...
From-SVN: r9959
1995-06-15 07:33:25 -04:00
Michael Meissner
977e6fb533
Fix problem initializing bitfields to enums.
...
From-SVN: r9824
1995-05-26 15:03:12 +00:00
Richard Kenner
ddd5a7c180
Fix typos in comments.
...
From-SVN: r9711
1995-05-16 08:14:26 -04:00
Doug Evans
64c01f8071
(build_binary_op): Warn when ~unsigned is compared against unsigned...
...
(build_binary_op): Warn when ~unsigned is compared
against unsigned, and type promotions result in an unexpected answer.
From-SVN: r9670
1995-05-12 23:22:34 +00:00
Richard Kenner
d949d5dfde
(convert_for_assignment): Don't give errors about adding const or
...
volatile unless both sides point to functions.
From-SVN: r9590
1995-05-08 17:56:12 -04:00
Richard Kenner
8d75e50998
(process_init_element): Don't clear_momentary if constructor_stack is
...
not empty.
From-SVN: r9584
1995-05-05 19:14:07 -04:00
Richard Kenner
ddcf4abcac
(build_binary_op): Also warn about ordered comparison of pointer with
...
zero if -Wall.
From-SVN: r9580
1995-05-05 14:51:56 -04:00
Richard Kenner
48dd3a7cb1
(pop_init_level, output_init_element): Pass require_constant_* to
...
digest_init.
From-SVN: r9534
1995-04-28 10:40:50 -04:00
Doug Evans
88a781e84c
(common_type): Call lookup_attribute instead of value_member.
...
From-SVN: r9524
1995-04-28 01:11:28 +00:00
Richard Kenner
4160009ff8
(output_init_element): Constructor is not simple if a bitfield is
...
being assigned a non-integer.
From-SVN: r9472
1995-04-26 08:35:12 -04:00
Richard Kenner
e4376e63ac
(push_init_level): Update constructor_depth when we push spelling
...
level.
From-SVN: r9471
1995-04-26 08:04:28 -04:00
Jason Merrill
605a99f6be
(build_binary_op): Don't call common_type for uncommon pointer types.
...
From-SVN: r9317
1995-04-06 21:31:01 +00:00
Jason Merrill
2e14370ed4
oops
...
From-SVN: r9308
1995-04-03 23:16:19 +00:00
Jason Merrill
293c9fdd72
avoid spurious signed/unsigned comparison warnings.
...
From-SVN: r9289
1995-04-01 20:18:49 +00:00
Richard Kenner
0e7c47fabe
(internal_build_compound_expr): Warn if LHS of comma expression has no side effects...
...
(internal_build_compound_expr): Warn if LHS of comma expression has no
side effects, or computes value which is not used.
From-SVN: r9264
1995-03-30 18:21:34 -05:00
Richard Kenner
caf2e8e401
(convert_for_assignment): Fix typo in testing for pointer to function
...
type.
From-SVN: r9142
1995-03-09 09:00:50 -05:00
Jason Merrill
912b4fc3a4
(build_binary_op): Avoid spurious warning
...
| comparing enumerator to unsigned variable.
From-SVN: r9113
1995-03-02 23:39:09 +00:00
Jason Merrill
d2d7ed3e17
Fix signed/unsigned comparison warning.
...
From-SVN: r9045
1995-02-23 08:14:12 +00:00
Richard Kenner
abe80e6df5
(c_expand_return): Refine check for returning pointer to local
...
variable to allow subtracting a pointer from it.
From-SVN: r8837
1995-01-28 15:14:09 -05:00
Richard Kenner
e14417facf
Include output.h.
...
From-SVN: r8712
1994-12-30 07:59:51 -05:00
Jim Wilson
6cb70f0c96
(build_binary_op): Can shorten shift only if shift count
...
is less than size in bits of arg0.
From-SVN: r8528
1994-11-19 15:38:04 -08:00
Per Bothner
333a5daee5
In the case of {[LO .. HI] = VALUE}, only evaluate VALUE once.
...
From-SVN: r8358
1994-10-28 16:24:27 -07:00
Richard Kenner
61179109fe
(convert_for_assignment): When converting object to union...
...
(convert_for_assignment): When converting object to union, allow
converting the constant zero into a pointer member of the union.
From-SVN: r8162
1994-09-29 13:23:41 -04:00
Richard Kenner
bbbd670050
(mark_addressable): Give different error if trying to put object with volatile fields into register...
...
(mark_addressable): Give different error if trying to put object with
volatile fields into register; don't use DECL_NAME.
From-SVN: r8115
1994-09-21 14:45:25 -04:00
Richard Kenner
aae43c5f40
(convert_arguments): Give proper warnings when converting
...
COMPLEX_TYPE; widen check to include all integral types.
From-SVN: r8012
1994-09-01 19:13:19 -04:00
Richard Kenner
ea3373cd2d
(type_lists_compatible_p): Treat transparent unions just like unnamed
...
ones.
From-SVN: r7979
1994-08-25 11:30:29 -04:00
Richard Kenner
d4424a75ec
(default_conversion): Don't substitute constant value if array since
...
will return address.
From-SVN: r7970
1994-08-24 18:28:40 -04:00
Richard Kenner
7eec3328e2
(push_init_level): Don't blow up if construct_type is null (can happen
...
with missing brace).
From-SVN: r7964
1994-08-24 14:34:20 -04:00
Richard Kenner
0e9cff7f3a
(build_unary_op, case *INCREMENT_EXPR): Add size in bytes, not value
...
of sizeof.
From-SVN: r7822
1994-07-29 18:33:29 -04:00
Jim Wilson
ee7204ee55
(process_init_element): Do not call push_init_level
...
if the value is error_mark_node.
From-SVN: r7796
1994-07-26 10:56:03 -07:00
Richard Kenner
20e5a99102
Update last change.
...
From-SVN: r7636
1994-07-01 17:41:55 -04:00
Richard Kenner
81f415f0b0
(push_init_level): If not at "unfilled" position, set
...
constructor_incremental to 0.
From-SVN: r7635
1994-07-01 17:33:07 -04:00
Richard Kenner
8c3a647770
(decl_constant_value): Test for const and not iterator.
...
(default_conversion, digest_init): Remove redundant checks before calling
decl_constant_value.
(convert_for_assignment): See if RHS has a constant value.
From-SVN: r7565
1994-06-24 17:46:59 -04:00
Richard Kenner
796bb3734a
(build_c_cast): Issue a warning for non-matching cast from a function
...
call (like malloc without proto).
From-SVN: r7562
1994-06-24 16:17:42 -04:00
Jim Wilson
1d33b2a9b9
(process_init_element): For fieldtype, don't access
...
TYPE_MAIN_VARIANT field if the type is error_mark_node.
From-SVN: r7521
1994-06-18 13:58:57 -07:00
Richard Kenner
9c4dcbc7d3
(initializer_constant_valid_p): Rework to use precision, not size.
...
Allow conversions from integer to pointer if int is wide enough.
From-SVN: r7305
1994-05-16 15:48:07 -04:00
Richard Kenner
4b027d160e
(common_type): Add attribute merging.
...
(comp_types): Use COMP_TYPE_ATTRIBUTES macro.
From-SVN: r7254
1994-05-06 18:29:58 -04:00
Richard Kenner
b8c21346e9
(comptypes): An enum type if compatible with type of same signedness
...
as well as precision.
From-SVN: r7227
1994-05-06 12:59:23 -04:00
Richard Kenner
053da6b50d
(convert_arguments): Truncate and reextend for PROMOTE_PROTOTYPES so
...
we can give error on overflow.
From-SVN: r7004
1994-04-09 09:39:42 -04:00
Jim Wilson
45ce961e2f
(pop_init_level): Correct typo in use of tree_int_cst_sgn.
...
From-SVN: r6934
1994-03-31 16:53:32 -08:00
Richard Kenner
0e0c5bc168
(convert_arguments): Remove decls of unused variables.
...
From-SVN: r6874
1994-03-25 13:57:04 -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
6946afd3a5
(pointer_int_sum): Multiplication should be done signed.
...
(pointer_diff): Likewise the division.
From-SVN: r6733
1994-03-09 16:49:14 -05:00
Jim Wilson
96d8f1d82d
(build_binary_op): Pass TREE_TYPE (orig_op0) not
...
orig_op0 to TREE_UNSIGNED.
From-SVN: r6684
1994-03-01 16:26:06 -08:00
Jim Wilson
d27c148b76
(process_init_element): Check for constructor_type
...
set before dereferencing it in the string cst code.
From-SVN: r6656
1994-02-27 14:41:53 -08:00
Richard Kenner
9d5f3e49d7
(type_lists_compatible_p): Initialize NEWVAL.
...
(pop_init_level): Initialize SIZE.
(output_pending_init_elements): Initialize NEXTPOS_TREE.
From-SVN: r6639
1994-02-27 10:44:32 -05:00