c-typeck.c (enum impl_conv): Remove ic_argpass_nonproto.
* c-typeck.c (enum impl_conv): Remove ic_argpass_nonproto. (convert_for_assignment): Remove ic_argpass_nonproto cases. From-SVN: r141347
This commit is contained in:
parent
1a00e5f7fb
commit
6b4ef5c1fc
@ -1,3 +1,8 @@
|
|||||||
|
2008-10-24 Joseph Myers <joseph@codesourcery.com>
|
||||||
|
|
||||||
|
* c-typeck.c (enum impl_conv): Remove ic_argpass_nonproto.
|
||||||
|
(convert_for_assignment): Remove ic_argpass_nonproto cases.
|
||||||
|
|
||||||
2008-10-24 Jakub Jelinek <jakub@redhat.com>
|
2008-10-24 Jakub Jelinek <jakub@redhat.com>
|
||||||
|
|
||||||
PR tree-optimization/36038
|
PR tree-optimization/36038
|
||||||
|
@ -49,7 +49,6 @@ along with GCC; see the file COPYING3. If not see
|
|||||||
diagnostic messages in convert_for_assignment. */
|
diagnostic messages in convert_for_assignment. */
|
||||||
enum impl_conv {
|
enum impl_conv {
|
||||||
ic_argpass,
|
ic_argpass,
|
||||||
ic_argpass_nonproto,
|
|
||||||
ic_assign,
|
ic_assign,
|
||||||
ic_init,
|
ic_init,
|
||||||
ic_return
|
ic_return
|
||||||
@ -3984,7 +3983,7 @@ convert_for_assignment (tree type, tree rhs, enum impl_conv errtype,
|
|||||||
tree rname = NULL_TREE;
|
tree rname = NULL_TREE;
|
||||||
bool objc_ok = false;
|
bool objc_ok = false;
|
||||||
|
|
||||||
if (errtype == ic_argpass || errtype == ic_argpass_nonproto)
|
if (errtype == ic_argpass)
|
||||||
{
|
{
|
||||||
tree selector;
|
tree selector;
|
||||||
/* Change pointer to function to the function itself for
|
/* Change pointer to function to the function itself for
|
||||||
@ -4017,9 +4016,6 @@ convert_for_assignment (tree type, tree rhs, enum impl_conv errtype,
|
|||||||
"expected %qT but argument is of type %qT", \
|
"expected %qT but argument is of type %qT", \
|
||||||
type, rhstype); \
|
type, rhstype); \
|
||||||
break; \
|
break; \
|
||||||
case ic_argpass_nonproto: \
|
|
||||||
warning (OPT, AR, parmnum, rname); \
|
|
||||||
break; \
|
|
||||||
case ic_assign: \
|
case ic_assign: \
|
||||||
pedwarn (LOCATION, OPT, AS); \
|
pedwarn (LOCATION, OPT, AS); \
|
||||||
break; \
|
break; \
|
||||||
@ -4138,7 +4134,7 @@ convert_for_assignment (tree type, tree rhs, enum impl_conv errtype,
|
|||||||
/* Conversion to a transparent union from its member types.
|
/* Conversion to a transparent union from its member types.
|
||||||
This applies only to function arguments. */
|
This applies only to function arguments. */
|
||||||
if (codel == UNION_TYPE && TYPE_TRANSPARENT_UNION (type)
|
if (codel == UNION_TYPE && TYPE_TRANSPARENT_UNION (type)
|
||||||
&& (errtype == ic_argpass || errtype == ic_argpass_nonproto))
|
&& errtype == ic_argpass)
|
||||||
{
|
{
|
||||||
tree memb, marginal_memb = NULL_TREE;
|
tree memb, marginal_memb = NULL_TREE;
|
||||||
|
|
||||||
@ -4282,7 +4278,6 @@ convert_for_assignment (tree type, tree rhs, enum impl_conv errtype,
|
|||||||
switch (errtype)
|
switch (errtype)
|
||||||
{
|
{
|
||||||
case ic_argpass:
|
case ic_argpass:
|
||||||
case ic_argpass_nonproto:
|
|
||||||
warning (OPT_Wmissing_format_attribute,
|
warning (OPT_Wmissing_format_attribute,
|
||||||
"argument %d of %qE might be "
|
"argument %d of %qE might be "
|
||||||
"a candidate for a format attribute",
|
"a candidate for a format attribute",
|
||||||
@ -4448,9 +4443,6 @@ convert_for_assignment (tree type, tree rhs, enum impl_conv errtype,
|
|||||||
switch (errtype)
|
switch (errtype)
|
||||||
{
|
{
|
||||||
case ic_argpass:
|
case ic_argpass:
|
||||||
case ic_argpass_nonproto:
|
|
||||||
/* ??? This should not be an error when inlining calls to
|
|
||||||
unprototyped functions. */
|
|
||||||
error ("incompatible type for argument %d of %qE", parmnum, rname);
|
error ("incompatible type for argument %d of %qE", parmnum, rname);
|
||||||
inform ((fundecl && !DECL_IS_BUILTIN (fundecl))
|
inform ((fundecl && !DECL_IS_BUILTIN (fundecl))
|
||||||
? DECL_SOURCE_LOCATION (fundecl) : input_location,
|
? DECL_SOURCE_LOCATION (fundecl) : input_location,
|
||||||
|
Loading…
Reference in New Issue
Block a user