mirror of
git://gcc.gnu.org/git/gcc.git
synced 2025-02-03 13:10:20 +08:00
c-decl.c (build_enumerator): Don't modify the value's type, convert it.
* c-decl.c (build_enumerator): Don't modify the value's type, convert it. From-SVN: r34131
This commit is contained in:
parent
800839de56
commit
0543d026a2
@ -1,3 +1,8 @@
|
||||
2000-05-24 Alexandre Oliva <aoliva@cygnus.com>
|
||||
|
||||
* c-decl.c (build_enumerator): Don't modify the value's type,
|
||||
convert it.
|
||||
|
||||
2000-05-24 Andreas Jaeger <aj@suse.de>
|
||||
|
||||
* mips.h (LINKER_ENDIAN_SPEC): Pass -EL to linker by default.
|
||||
|
@ -5666,8 +5666,7 @@ build_enumerator (name, value)
|
||||
&& TREE_UNSIGNED (type)));
|
||||
|
||||
decl = build_decl (CONST_DECL, name, type);
|
||||
DECL_INITIAL (decl) = value;
|
||||
TREE_TYPE (value) = type;
|
||||
DECL_INITIAL (decl) = convert (type, value);
|
||||
pushdecl (decl);
|
||||
|
||||
return tree_cons (decl, value, NULL_TREE);
|
||||
|
Loading…
Reference in New Issue
Block a user