MSVC hook function prologue
Kai Tietz
ktietz70@googlemail.com
Wed Sep 2 22:27:00 GMT 2009
2009/9/3 Paolo Bonzini <bonzini@gnu.org>:
> if (TARGET_64BIT
> ? !is_attribute_p ("msvc_prologue", name))
> : is_attribute_p ("msvc_prologue", name))
> {
> warning (OPT_Wattributes, "%qE attribute not available for "
> "%d-bit", name, TARGET_64BIT ? 64 : 32);
> *no_add_attrs = true;
> return NULL_TREE;
> }
Shouldn't it be this instead?
if (is_attribute_p ("msvc_prologue", name))
{
warning (OPT_Wattributes, "%qE attribute not available for "
"%d-bit", name, TARGET_64BIT ? 64 : 32);
*no_add_attrs = true;
return NULL_TREE;
}
as otherwise for 64-bit target warning would be shown always?
Cheers,
Kai
--
| (\_/) This is Bunny. Copy and paste
| (='.'=) Bunny into your signature to help
| (")_(") him gain world domination
More information about the Gcc
mailing list