Re: Is test case with 700k lines of code a valid test case?

2016-03-19 Thread Jakub Jelinek
On Fri, Mar 18, 2016 at 02:02:48PM +, Jonathan Wakely wrote: > On 18 March 2016 at 12:45, Paulo Matos wrote: > >> I have a source file with 700k lines of code 99% of which are printf() > >> statements. Compiling this test case crashes GCC 5.3.0 with segmentation > >> fault. > >> Can such

Re: Is test case with 700k lines of code a valid test case?

2016-03-19 Thread Paul_Koning
> On Mar 18, 2016, at 12:53 PM, Paulo Matos wrote: > > > > On 18/03/16 15:02, Jonathan Wakely wrote: >> >> It's probably crashing because it's too large, so if you reduce it >> then it won't crash. >> > > Would be curious to see what's the limit though, or if it depends

Re: Is test case with 700k lines of code a valid test case?

2016-03-19 Thread Jonathan Wakely
On 18 March 2016 at 12:45, Paulo Matos wrote: > > > On 14/03/16 16:31, Andrey Tarasevich wrote: >> Hi, >> >> I have a source file with 700k lines of code 99% of which are printf() >> statements. Compiling this test case crashes GCC 5.3.0 with segmentation >> fault. >> Can such test case be

Re: Is test case with 700k lines of code a valid test case?

2016-03-19 Thread Paulo Matos
On 14/03/16 16:31, Andrey Tarasevich wrote: > Hi, > > I have a source file with 700k lines of code 99% of which are printf() > statements. Compiling this test case crashes GCC 5.3.0 with segmentation > fault. > Can such test case be considered valid or source files of size 35 MB are too >

Re: Is test case with 700k lines of code a valid test case?

2016-03-19 Thread Paulo Matos
On 18/03/16 15:02, Jonathan Wakely wrote: > > It's probably crashing because it's too large, so if you reduce it > then it won't crash. > Would be curious to see what's the limit though, or if it depends on the machine he's running GCC on. -- Paulo Matos signature.asc Description:

Re: Is test case with 700k lines of code a valid test case?

2016-03-19 Thread Jakub Jelinek
On Fri, Mar 18, 2016 at 05:16:50PM +, paul_kon...@dell.com wrote: > > > On Mar 18, 2016, at 12:53 PM, Paulo Matos wrote: > > > > > > > > On 18/03/16 15:02, Jonathan Wakely wrote: > >> > >> It's probably crashing because it's too large, so if you reduce it > >> then it

Re: Is test case with 700k lines of code a valid test case?

2016-03-14 Thread Richard Biener
On March 14, 2016 4:31:57 PM GMT+01:00, Andrey Tarasevich wrote: >Hi, > >I have a source file with 700k lines of code 99% of which are printf() >statements. Compiling this test case crashes GCC 5.3.0 with >segmentation fault. >Can such test case be considered

Re: Is test case with 700k lines of code a valid test case?

2016-03-14 Thread Paul_Koning
> On Mar 14, 2016, at 12:05 PM, C Bergström wrote: > > I don't speak with any community authority - I think your test tool is > misconfigured then. I don't see any pragmatic reason to generate such > a test. It's unlikely to mirror any real world code and artificial >

Re: Is test case with 700k lines of code a valid test case?

2016-03-14 Thread David Malcolm
On Mon, 2016-03-14 at 16:31 +0100, Andrey Tarasevich wrote: > Hi, > > I have a source file with 700k lines of code 99% of which are > printf() statements. Compiling this test case crashes GCC 5.3.0 with > segmentation fault. > Can such test case be considered valid Yes. > or source files of

Re: Is test case with 700k lines of code a valid test case?

2016-03-14 Thread Andrey Tarasevich
Yeah, I guess attempt to commit a C file with 700K lines of code won’t end well for a developer. Thanks for clarifying things! > On 14 Mar 2016, at 17:05, C Bergström wrote: > > I don't speak with any community authority - I think your test tool is > misconfigured

Re: Is test case with 700k lines of code a valid test case?

2016-03-14 Thread C Bergström
I don't speak with any community authority - I think your test tool is misconfigured then. I don't see any pragmatic reason to generate such a test. It's unlikely to mirror any real world code and artificial test cases like this, at best only serve as some arbitrary data point. On Mon, Mar 14,

Re: Is test case with 700k lines of code a valid test case?

2016-03-14 Thread Ewart Timothée
99% of 700k, 693k of printf(), is it ascii art ? ++t > Le 14 Mar 2016 à 16:42, paul_kon...@dell.com a écrit : > > >> On Mar 14, 2016, at 11:31 AM, Andrey Tarasevich >> wrote: >> >> Hi, >> >> I have a source file with 700k lines of code 99% of which are

Re: Is test case with 700k lines of code a valid test case?

2016-03-14 Thread Andrey Tarasevich
> On 14 Mar 2016, at 16:39, C Bergström wrote: > > On Mon, Mar 14, 2016 at 11:31 PM, Andrey Tarasevich > wrote: >> Hi, >> >> I have a source file with 700k lines of code 99% of which are printf() >> statements. Compiling this test case

Re: Is test case with 700k lines of code a valid test case?

2016-03-14 Thread Andrey Tarasevich
I cross-checked with Clang 3.7.1. It eats up 4gb of RAM and compiles it under 40sec > On 14 Mar 2016, at 16:44, Dennis Luehring wrote: > > also cross-checked with clang 3.8? > > Am 14.03.2016 um 16:31 schrieb Andrey Tarasevich: >> Hi, >> >> I have a source file with 700k

Re: Is test case with 700k lines of code a valid test case?

2016-03-14 Thread Paul_Koning
> On Mar 14, 2016, at 11:31 AM, Andrey Tarasevich > wrote: > > Hi, > > I have a source file with 700k lines of code 99% of which are printf() > statements. Compiling this test case crashes GCC 5.3.0 with segmentation > fault. > Can such test case be

Re: Is test case with 700k lines of code a valid test case?

2016-03-14 Thread C Bergström
On Mon, Mar 14, 2016 at 11:31 PM, Andrey Tarasevich wrote: > Hi, > > I have a source file with 700k lines of code 99% of which are printf() > statements. Compiling this test case crashes GCC 5.3.0 with segmentation > fault. > Can such test case be considered valid

Is test case with 700k lines of code a valid test case?

2016-03-14 Thread Andrey Tarasevich
Hi, I have a source file with 700k lines of code 99% of which are printf() statements. Compiling this test case crashes GCC 5.3.0 with segmentation fault. Can such test case be considered valid or source files of size 35 MB are too much for a C compiler and it should crash? It crashes on