This is the mail archive of the gcc@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: Is test case with 700k lines of code a valid test case?


> On 14 Mar 2016, at 16:39, C BergstrÃm <cbergstrom@pathscale.com> wrote:
> 
> On Mon, Mar 14, 2016 at 11:31 PM, Andrey Tarasevich
> <tarasevich@cs.uni-saarland.de> 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 much for a C compiler and it should crash? It crashes on Ubuntu 14.04 64bit with 16GB of RAM.
> 
> Sorry I can't help, but troll reply..
> ------------
> If you're intentionally combining everything into a single source for
> optimization reasons - you can expect it to really stress and hit many
> problems in the compiler.
> 
> If your code is just extremely poorly written or not organized well -
> I'd encourage you to both file bug reports (of a more reduced nature
> than 700ksloc) and refactor things so that it's better designed.

Not that I intentionally written such code, but it was automatically generated by test tool.

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