Path: csiph.com!eternal-september.org!feeder.eternal-september.org!reader01.eternal-september.org!.POSTED!not-for-mail From: Keith Thompson Newsgroups: comp.lang.c Subject: Re: Compiler tests Date: Tue, 22 Jan 2019 18:53:06 -0800 Organization: None to speak of Lines: 35 Message-ID: References: <%UO0E.109606$Ur2.51894@fx14.am4> <2rI1E.118890$dp2.55232@fx18.am4> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Injection-Info: reader02.eternal-september.org; posting-host="935868d9f5f97383d1e7215588419295"; logging-data="21368"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+6EyjftwGbw02OwlMC3R4U" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1 (gnu/linux) Cancel-Lock: sha1:ZaEQHzz+xDekFA1rPuqvkBJ/vYo= sha1:nsGcd5FvyuGHcnvdqJ2aPl+VQ74= Xref: csiph.com comp.lang.c:140105 Bart writes: > On 22/01/2019 23:45, Keith Thompson wrote: >> Bart writes: >>> On 22/01/2019 22:02, David Brown wrote: >> [... >>>> What gcc version?  I had no hints of memory issues with my testing with >>>> gcc 7 and gcc 8.  It just took time. >>> >>> It's 5.1.0. It must have switched from 8.1 at some point (I don't like >>> the way the latter messes with my console colours). >> >> You must be aware that gcc has nothing to do with your console >> colors. You probably installed some IDE that includes gcc as a >> component, and the IDE did something to your console colors (and >> would probably allow you to customize them in any way you like). > > It's the only program that does this. It uses coloured text highlighting > for warnings and errors. It also sets the background colour. > > When it's finished, it doesn't restore the original colours. > > (Some of my own console apps do the same, but they're the colours I > want. Also they are proper interactive colour console applications not > just scrolling teletype programs like a compiler.) Yes, that's something gcc does. Sorry about the confusion. As I said elsewhere in this thread, there is a workaround. (clang doesn't pay attention to the GCC_COLORS environment variable, but it does recognize the -fno-color-diagnostics option.) -- Keith Thompson (The_Other_Keith) kst-u@mib.org Will write code for food. void Void(void) { Void(); } /* The recursive call of the void */