Commit 0543d026 by Alexandre Oliva Committed by Alexandre Oliva

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
parent 800839de
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);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment