Commit Graph

49 Commits

Author SHA1 Message Date
Richard Stallman d3c738e1ce (print_table, scan_table): Add support for XPG4's %S and %C formats for printing/reading wide characters.
(print_table, scan_table): Add support for XPG4's %S and %C formats
for printing/reading wide characters.  %lc and %ls too.

From-SVN: r2522
1992-10-20 07:37:27 +00:00
Richard Stallman c2f4acb703 (process_init_constructor): When initializing a union,
handle the case of an empty init list.

From-SVN: r2507
1992-10-18 08:12:53 +00:00
Richard Stallman 8706edbc5c (build_unary_op): Address of nested fcn isn't constant.
From-SVN: r2268
1992-09-28 16:07:29 +00:00
Richard Stallman 1bbe928048 (initializer_constant_valid_p): Really use endtype.
From-SVN: r2249
1992-09-25 22:31:38 +00:00
Richard Stallman f0c70ef08a (initializer_constant_valid_p): Warn about address arithmetic destined for a type that's too narrow.
(initializer_constant_valid_p): Warn about address
arithmetic destined for a type that's too narrow.
New argument ENDTYPE.

From-SVN: r2159
1992-09-19 04:47:57 +00:00
Richard Stallman 17651386ee (build_binary_op): When checking shift widths, don't assume target integer
fits in a HOST_WIDE_INT.

From-SVN: r2106
1992-09-11 08:53:34 +00:00
Brendan Kehoe 9657188305 Moved constant_expression_warning into c-common.c.
From-SVN: r2076
1992-09-07 19:42:39 -04:00
Richard Stallman 9e9bd45dd9 (constant_expression_warning): Check INTEGER_CST for TREE_CONSTANT_OVERFLOW.
From-SVN: r2052
1992-09-05 02:01:30 +00:00
Richard Stallman 4f77a31b9e (process_init_constructor): Handle ranges.
From-SVN: r2023
1992-09-02 05:32:43 +00:00
Richard Stallman e64bddee63 (check_format): DEL isn't printable.
From-SVN: r1972
1992-08-27 05:48:11 +00:00
Richard Stallman 7d2d49af12 (build_unary_op): For ADDR_EXPR, just set TREE_CONSTANT
if staticp, but don't clear TREE_CONSTANT.

From-SVN: r1939
1992-08-24 22:13:54 +00:00
Richard Stallman 48c730637d (build_conditional_expr):
Use TREE_READONLY and TREE_THIS_VOLATILE, not TYPE_...

From-SVN: r1929
1992-08-21 20:48:11 +00:00
Richard Stallman edc7c4ec3b (parser_build_binary_op): Replace the assignment of CLASS.
For Z<Y<Z warning, test class of CODE; don't use TREE_CODE (result).

From-SVN: r1921
1992-08-21 06:05:17 +00:00
Richard Stallman b39a6d4337 Fix typo in last change.
From-SVN: r1880
1992-08-18 02:55:50 +00:00
Richard Stallman 2726966da1 (digest_init): Test TREE_TYPE (inside_init) is
nonzero before testing anything else about it.

From-SVN: r1879
1992-08-18 02:55:07 +00:00
Richard Stallman 3c3fa1471c (digest_init): Use TYPE_MAIN_VARIANT comparing type of inside_init.
(process_init_constructor): Warn about partly bracketed initializers.

From-SVN: r1875
1992-08-17 18:31:29 +00:00
Richard Stallman 1b971d4306 (build_component_ref): Don't warn for compound and conditional expressions when pedantic.
(build_component_ref): Don't warn for compound and
conditional expressions when pedantic.  These are valid in ANSI C.

From-SVN: r1819
1992-08-13 23:25:49 +00:00
Richard Stallman 001af58715 (parser_build_binary_op): Warn about expressions like `1<=i<=N'.
From-SVN: r1794
1992-08-11 09:21:37 +00:00
Richard Stallman e83d45c45e (default_conversion): Fix bug that
promotes short to unsigned if sizeof(short) == sizeof(int).

From-SVN: r1784
1992-08-07 07:21:41 +00:00
Richard Stallman 1dfdf85d60 (build_conditional_expr): Merged const and volatile flags of incoming types.
From-SVN: r1767
1992-08-04 19:36:44 +00:00
Richard Stallman 1ad409d2e1 (build_conditional_expr): Compare using TYPE_MAIN_VARIANT.
From-SVN: r1695
1992-07-28 02:15:51 +00:00
Richard Stallman d627ed1b71 (default_conversion): Use C_PROMOTING_INTEGER_TYPE_P to decide whether a type should promote.
(default_conversion): Use C_PROMOTING_INTEGER_TYPE_P
to decide whether a type should promote.
(self_promoting_args_p, self_promoting_type_p): Likewise.

From-SVN: r1665
1992-07-23 06:05:23 +00:00
Richard Stallman 6c9e1cb251 (build_binary_op): Don't set shorten for signed division.
From-SVN: r1623
1992-07-19 01:09:39 +00:00
Richard Stallman 075fc63200 Fix harmless unterminated comment.
From-SVN: r1618
1992-07-18 03:46:48 +00:00
Richard Stallman ce889f00cd (build_binary_op): Improve shift warning messages.
From-SVN: r1595
1992-07-16 19:26:42 +00:00
Richard Stallman 6cb72a7d5c (self_promoting_args_p, self_promoting_type_p):
(signed_type, unsigned_type, default_conversion, check_format):
(build_binary_op, c_expand_start_case):
Use TYPE_MAIN_VARIANT when comparing against specific non-void types.

From-SVN: r1591
1992-07-15 18:35:30 +00:00
Richard Stallman 1394aabdaa Renamed TREE_INLINE...
Renamed TREE_INLINE, TREE_NONLOCAL, TREE_REGDECL, TREE_EXTERNAL
to DECL_INLINE, DECL_NONLOCAL, DECL_REGISTER, DECL_EXTERNAL.

From-SVN: r1569
1992-07-12 02:56:45 +00:00
Richard Stallman a7d53fcee1 (default_conversion): Use STRIP_TYPE_NOPS.
(build_binary_op, build_function_call): Likewise.

From-SVN: r1548
1992-07-10 01:49:46 +00:00
Richard Stallman fc76e42593 (default_conversion, build_binary_op, build_function_call): Use STRIP_NOPS.
From-SVN: r1534
1992-07-08 23:30:46 +00:00
Richard Kenner 8d9bfdc59d Changes to support execution on 64-bit machines.
From-SVN: r1484
1992-07-06 18:35:53 -04:00
Richard Stallman 800cd3b932 (convert_arguments): No -Wconversion warning
if the function wants an enumeral type.

From-SVN: r1456
1992-07-06 00:37:19 +00:00
Richard Stallman 0597a77799 (check_format): Comment changes.
From-SVN: r1381
1992-07-01 23:07:27 +00:00
Mike Stump 3845b5420e Always use index and rindex and never strchr or strrchr.
From-SVN: r1343
1992-06-29 19:38:45 +00:00
Richard Stallman 805f961c68 (self_promoting_args_p): No longer static.
(initializer_constant_valid_p): Allow CONVERT_EXPR if its operand is ok.
(build_c_cast): For cast to union, make a CONSTRUCTOR.

From-SVN: r1334
1992-06-29 04:56:04 +00:00
Richard Stallman 5a7ec9d91a (process_init_constructor): Strip NON_LVALUE_EXPR
from specified array index.

From-SVN: r1300
1992-06-26 12:54:41 +00:00
Richard Stallman 7b6327ae85 fix typos in comments.
From-SVN: r1264
1992-06-24 04:04:50 +00:00
Richard Stallman e7951b3f26 entered into RCS
From-SVN: r1110
1992-05-28 05:20:58 +00:00
Richard Stallman 754a4d82e3 *** empty log message ***
From-SVN: r1027
1992-05-20 04:04:55 +00:00
Richard Stallman 26b3c423d5 *** empty log message ***
From-SVN: r1005
1992-05-17 22:13:51 +00:00
Richard Stallman 4bb6d2f819 *** empty log message ***
From-SVN: r966
1992-05-13 03:23:52 +00:00
Richard Stallman 6dc42e49d3 *** empty log message ***
From-SVN: r930
1992-05-07 06:41:23 +00:00
Richard Stallman fdeefd4955 *** empty log message ***
From-SVN: r902
1992-05-05 16:04:53 +00:00
Richard Stallman 0e51ef9b6a *** empty log message ***
From-SVN: r879
1992-05-04 03:04:19 +00:00
Richard Stallman 7fc89bbe4e *** empty log message ***
From-SVN: r762
1992-04-17 14:12:11 +00:00
Tom Wood cdc54cc9f9 *** empty log message ***
From-SVN: r729
1992-04-12 14:34:57 +00:00
Richard Stallman 047de90b9e *** empty log message ***
From-SVN: r682
1992-04-04 19:11:28 +00:00
Richard Stallman 2918ed3c3e *** empty log message ***
From-SVN: r568
1992-03-22 20:04:27 +00:00
Richard Stallman d45cf215ee *** empty log message ***
From-SVN: r472
1992-03-14 05:07:15 +00:00
Jim Wilson 400fbf9fdb Initial revision
From-SVN: r364
1992-02-28 10:53:39 -08:00