]> gcc.gnu.org Git - gcc.git/commit
c-common.h (struct c_common_identifier): Remove rid_code field.
authorZack Weinberg <zack@gcc.gnu.org>
Wed, 24 Oct 2001 20:10:53 +0000 (20:10 +0000)
committerZack Weinberg <zack@gcc.gnu.org>
Wed, 24 Oct 2001 20:10:53 +0000 (20:10 +0000)
commitb621a4ddc72206d4cef5f2957237d1f488e4660e
treec0538b67d74f1cd1505eb648f2f17be9f0ccc09c
parent724035826b67d8c72b865893451555100f3d4af4
c-common.h (struct c_common_identifier): Remove rid_code field.

* c-common.h (struct c_common_identifier): Remove rid_code field.
(C_RID_CODE): Use ->node.rid_code instead of ->rid_code.

* c-typeck.c (constructor_designated): New local flag.
(struct constructor_stack): Add "designated" field to match.
(start_init): Clear it.
(really_start_incremental_init, push_init_level): Push and
clear it.
(pop_init_level): Pop it.
(set_designator): Set it.

(pop_init_level): Suppress "missing initializer" warnings if
constructor_designated is true.
(process_init_element): Suppress warning about union
initialization under traditional C, if constructor_designated
is true.

* intl/loadmsgcat.c (INTTYPE_SIGNED, INTTYPE_MINIMUM,
INTTYPE_MAXIMUM): Clone from system.h.
(_nl_load_domain): Use them when testing for overflow of size_t.
Cast result of sizeof to off_t to compare to st_size value.
Move side effects out of conditional for comprehensibility.

* testsuite/gcc.dg/20011021-1.c: New test.

From-SVN: r46472
gcc/ChangeLog
gcc/c-common.h
gcc/c-typeck.c
gcc/intl/ChangeLog
gcc/intl/loadmsgcat.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/20011021-1.c [new file with mode: 0644]
This page took 0.06432 seconds and 5 git commands to generate.