Commit afbadaa7 by Mark Mitchell Committed by Mark Mitchell

* c-typeck.c (qualify_type): Merge qualifiers from both types.

From-SVN: r29451
parent 24f30ed4
Wed Sep 15 21:20:38 1999 Mark Mitchell <mark@codesourcery.com>
* c-typeck.c (qualify_type): Merge qualifiers from both types.
1999-09-15 Brad Lucier <lucier@math.purdue.edu> 1999-09-15 Brad Lucier <lucier@math.purdue.edu>
* toplev.c: Allow -f[no-]math-errno to set (clear) flag_errno_math * toplev.c: Allow -f[no-]math-errno to set (clear) flag_errno_math
......
...@@ -167,7 +167,8 @@ static tree ...@@ -167,7 +167,8 @@ static tree
qualify_type (type, like) qualify_type (type, like)
tree type, like; tree type, like;
{ {
return c_build_qualified_type (type, TYPE_QUALS (like)); return c_build_qualified_type (type,
TYPE_QUALS (type) | TYPE_QUALS (like));
} }
/* Return the common type of two types. /* Return the common type of two types.
......
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