[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-core-devel
Subject:    Re: Why is C90 enforced in =?iso-8859-1?Q?KDE=3F?=
From:       Thomas_Lübking <thomas.luebking () gmail ! com>
Date:       2015-12-20 9:24:43
Message-ID: 39057e6b-e00e-4ab3-8a8b-38ff19759995 () gmail ! com
[Download RAW message or body]

On Sonntag, 20. Dezember 2015 04:21:29 CEST, Kevin Kofler wrote:

> The kdewin team should just point people to a flex.exe that produces \
> files  that work with the bitrotten C compiler included with Visual C++.

So we only need somebody who forks the hardly maintained flex/yacc tools \
for windows...

It should be simpler to point windows users to a recent MSVC (2015), gcc, \
clang, or icc (ie. mandate them for KF5, raising the bar from Qt5)

We could then indeed raise to -c99 and "guarantee" compilation only for \
compatible compilers (while older MSVC *may* still work)

I'd say it's up to the kdewin people to state their preferences here
- require bison and switch to c++ in the flex/yacc toolchain
- (soft)require a c99 compliant compiler (where MSVC 2013 *may* still work)

> Another, more practical, reason is that if a bug (maybe a security issue)
> affecting the generated output is fixed in Flex, the pre-generated files
> would not pick up the fix.

Actually, that rather supports shipping pre-generated code (given the \
apparent support situation of flex/yacc on windows - windows users could \
encounter flex bugs none of us ever sees and the backtraces make no \
sense...)

Cheers,
Thomas


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic