This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH] Add sseregparm function attribute for x86


DJ Delorie wrote:
>>+       warning (OPT_Wattributes, "%qs attribute only applies to functions",
>>+ 	       IDENTIFIER_POINTER (name));
>>+       *no_add_attrs = true;
>>+     }
>>+ 
>>+   if (!TARGET_SSE)
>>+     warning (0, "%qs attribute without SSE enabled changes the ABI",
>>+ 	     IDENTIFIER_POINTER (name));
> 
> 
> 
> This should be OPT_Wattributes, not 0.  Or some sse-specific warning
> that matches the below:
> 
> 
>>! 	warning (0, "Calling %qD without SSE enabled", fndecl);
> 
> 
> Not sure what this should be, but please try to find an OPT_* to use
> instead of 0.

I thought of -Wabi?  But I wanted it to show up by default, so that
was ruled out.  Do we have sort of -Wdefault?

Richard.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]