OSDN Git Service

* c-typeck.c (convert_for_assignment):
authoreggert <eggert@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 16 Feb 1996 20:13:23 +0000 (20:13 +0000)
committereggert <eggert@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 16 Feb 1996 20:13:23 +0000 (20:13 +0000)
commitfdcfba98022e79b6a81032f7fbe1439711304f9c
treeb3619e35c7de9421ce6e20393e8eec04ff376451
parent9c2a35c73000919c7258b76eb92aab83e38beb5a
* c-typeck.c (convert_for_assignment):
Bring back conversion to union without a cast,
undoing the Jan 16 change, but with the following differences:

* The union must have the transparent_union attribute.
* The conversion must be for a function argument.
* Warn consistently about such conversions if pedantic.
* Do not warn about an assignment incompatibility for one union member
  if another union member is compatible with no warning.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@11290 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/c-typeck.c