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 testsuite gcc.dg]: Turn of ms-extensions for mingw target


On Fri, 28 Nov 2014, Kai Tietz wrote:

> Hi,
> 
> this patch turns off ms-extensions for mingw-targets to match
> diagnostics checked in testcases.
> 
> Ok for apply?

For the tests using -std=<some ISO standard> -pedantic (or 
-pedantic-errors), are you saying the diagnostics are *different*, or that 
some constructs (that are invalid in the relevant ISO standard) are *not 
diagnosed at all*?  If the latter, it's a bug in the MinGW port - when a 
conformance mode is selected, the constructs invalid in that mode must be 
diagnosed appropriately, independent of the target.  You could for example 
disable ms-extensions if flag_iso, although it might be better to 
distinguish explicit and implicit ms-extensions and have the (pedantic, 
only OK because of implicit ms-extensions) case give a pedwarn and then 
continue with what it would have done with the extension enabled.

-- 
Joseph S. Myers
joseph@codesourcery.com


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