219 points · by edelsohn · 7y ago · 44 comments
I find this to be the easiest way to try out new GCC versions and I actually use it exclusively for building testing my GCC 9 projects. With just a small wrapper Dockerfile, you can easy accommodate CMake or any other build dependencies.
For example, I have one I use for building CMake projects[2] (see README of same project for example of how to use said docker image).
GCC 9 is great, by the way. One of the best improvements, IMO is that gcov can now print coverage reports to stdout in JSON format which means you can take advantage of parallel computing to generate coverage reports fast. The Dockerfile I linked to in [2] above is a part of a utility I made as a drop-in replacement for lcov and can generate lcov reports at times up to 100x faster thanks to GCC 9 improvements.
[1] https://github.com/zbeekman/nightly-gcc-trunk-docker-image
[2] https://github.com/RPGillespie6/fastcov/blob/master/Dockerfi...
Awesome stuff, happy to see healthy competition between GCC and Clang these days
> The alignof operator has been changed to return the minimum alignment required by the target ABI, instead of the preferred alignment (consistent with _Alignof in C)
> Code which uses alignof to obtain the preferred alignment can use __alignof__ instead
So, there's an alignof and an __alignof__ function, which do similar but subtly different things? That sounds like a recipe for disaster.
After all, what does __ signal if not "suble difference"?
Even alignof has __alignof and __alignof__ as two spellings of the GNU variant. But unlike with typeof, for whatever reason, plain "alignof" was never supported in C as a GNU extension; it only ever worked in C++ mode, as a standard feature from C++11. That makes it slightly less weird to create a difference. But only slightly; I'm more familiar with GCC esoterica than most people and I had no idea "alignof" was C++-exclusive until I looked it up.
Well done Iain Buclaw (and co.)
The competition between the compilers has been great for compiler users.
> Emacs spent a few decades to get from
> 19 to 21, and now all of a sudden we're
> at 26.
It's just the span between 21 and 22 that took unusually long[1].The first Emacs 19.* came out in 1993, last 21.* in 2001. So 3 major releases in 8 years, roughly one every 2.5 years.
The first Emacs 22.* came out in 2007, and 26.* in 2018, so 5 major releases in 11 years, roughly one every 2.2 years.
Whereas 21.* to 22.* took from 2001 to 2007, or around 6 years. Here's an LWN article from 2007 covering why it took so long: https://lwn.net/Articles/234593/
Not everything gets worse as you get older, except perhaps confirmation bias :)
I have to zoom and scroll back and forth to read them..
Any other approach but this would have worked fine.
Even in landscape?
Do you have a problem with text in landscape for this particular URL, or you find that you frequently do? Are you on an iPhone? If no, yes, and yes, this may shed some light: https://stackoverflow.com/questions/2710764/preserve-html-fo...
It's community maintained.