gcc-mirror/gcc
View on GitHub ↗ ★ 11,335 C++
122 mentions on Hacker News by 108 people: 7 stories, 115 comments · first 2011-12-14 · latest 2026-09-27
20082026
-
…to the runtime exception. [1] https://ubuntu.com/blog/quetzal-is-taking-flight-update-on-u... [2] https://github.com/gcc-mirror/gcc/blob/6599da043e22e96ac830f... [3] https://www.fsf.org/news/2009-01-gcc-exception [4]…
comment by comex · 2021-07-24 · in “Tivoization” and Your Right to Install Under Copyleft -
…"shrink wrapping". MSVC may do it more aggressively when profile information is available. See https://github.com/gcc-mirror/gcc/blob/master/gcc/shrink-wra... or https://llvm.org/doxygen/ShrinkWrap_8cpp_source.html .
comment by neerajsi · 2021-07-12 · in It’s Not Always iCache -
…less heavy at 512 bytes per node[1]. But the MSVC part — that caught me completely off guard. https://github.com/gcc-mirror/gcc/blob/47749c43acb460ac8f410...
comment by owl57 · 2021-06-23 · in My favourite C++ footgun -
Take as an example the gnat.sockets package from upstream gcc: https://github.com/gcc-mirror/gcc/blob/master/gcc/ada/libgna... Compare with the same file from the GNAT 2021 CE install: GNAT/2021/lib/gcc/x86_64-pc-linux-gnu/10.3.1/rts-native…
comment by tobiasu · 2021-05-28 · in Gnat 2021 GPL Community Edition Ada 202x compiler released -
…with their maintainers having non-ASCII names. Have you talked to a human being regarding this? https://github.com/gcc-mirror/gcc/blob/master/MAINTAINERS#L4...
comment by the-smug-one · 2021-05-24 · in This FSF form assumes everyone's full legal name can be written in ASCII (2011) -
…?? In my experience, allowing both tabs and spaces just leads to that kind of mess, consistently: https://github.com/gcc-mirror/gcc/blob/master/libstdc%2B%2B-... and for zero good reason as alignment is a semantic thing, and tools cannot…
comment by jcelerier · 2021-05-17 · in Developers Who Use Spaces Make More Money Than Those Who Use Tabs (2017) -
Neoverse-N2 will have SVE2 (source https://github.com/gcc-mirror/gcc/blob/master/gcc/config/aar... )
comment by Teongot · 2021-04-12 · in Nvidia Unveils Grace: A High-Performance Arm CPU for Use in Big AI Systems -
…find myself often looking over MSVC's implementation straight in VS and comparing it to libstdc++: https://github.com/gcc-mirror/gcc/tree/master/libstdc%2B%2B-... One recent thing I caught from going over the implementation was how MSVC's…
comment by Kranar · 2021-04-07 · in All C++20 core language features with examples -
…the missing type as a runtime. See for example this, a software float for crappy ARM processors. https://github.com/gcc-mirror/gcc/blob/16e2427f50c208dfe07d0... I was more so wondering, if a COBOL compiler (given how low level the language…
comment by sonthonax · 2021-04-07 · in An Apology to COBOL: Maybe Old Technology Isn’t the Real Problem -
…[1]: https://sourceware.org/binutils/docs/as/CFI-directives.html [2]: https://github.com/gcc-mirror/gcc/blob/master/libgcc/unwind-... [3]: https://github.com/llvm/llvm-project/blob/main/libunwind/src...
comment by loeg · 2021-02-11 · in Pattern matching accepted for Python -
What, since when is GCC implemented in C++? I don't see any of that: https://github.com/gcc-mirror/gcc Maybe in libstdc++, but what else would you use there. I wanted to know what register allocation algorithms GCC implements, but I can't…
comment by cptwunderlich · 2021-01-13 · in Why Apple Chose Clang (2008) -
World is not perfect. In case of gcc, it is only a mirror on github [ https://github.com/gcc-mirror/gcc ], so we dont get all the metrics, we do plan to improve this part [but this will be slow to clone repo, know their custom issue…
comment by abharya · 2020-12-11 · in Finding Critical Open Source Projects -
GNU still ships it. https://github.com/gcc-mirror/gcc/blob/master/libstdc%2B%2B-...
comment by jeffbee · 2020-11-01 · in Ropes, an Alternative to Strings [pdf] (1995) -
…is an aggregate type, there isn't even a user-defined move constructor (or copy constructor)! https://github.com/gcc-mirror/gcc/blob/master/libstdc%2B%2B-...
comment by tylerhou · 2020-08-21 · in But I was helping the compiler -
…RH employee. The linux kernel is mostly comprised of people paid to develop by their employers. [0] https://github.com/gcc-mirror/gcc/blob/master/MAINTAINERS
comment by maccard · 2020-08-13 · in "Much" of the Rust/Wasmtime team hit by layoffs at Mozilla -
…one is most interesting because there's a link to the actual code and comments by the developer. https://github.com/gcc-mirror/gcc/blob/master/gcc/config/ia6...
comment by chubot · 2020-07-15 · in Data structures and algorithms I actually used while working at tech companies -
▲ 6
GCC Moves from C++98 to C++11story by signa11 · 2020-05-20 · 1 comment
-
I was curious why that'd be the case. I checked GCC's implementation. It seems to be here: https://github.com/gcc-mirror/gcc/blob/master/libstdc%2B%2B-... Looks like they had to make this very generic, generic enough to account for random…
comment by gnulinux · 2020-05-19 · in Generating random numbers using C++ standard library: the problems -
GCC treats the two identically. See https://github.com/gcc-mirror/gcc/blob/229c0ef777161ec5adfb7...
comment by scatters · 2020-04-27 · in The Lost Art of Structure Packing (2018) -
…it but my folks here and the llvm engineers seem to be pretty certain that's the problem (this: https://github.com/gcc-mirror/gcc/blob/master/libgcc/unwind-... ). Right now we are rearranging our compiler so we throw fewer exceptions…
comment by drmeister · 2020-03-01 · in Cost of a thread in C++ under Linux -
…lot of such tricks. Check out the GCC sources, for example tree-ssa-phiopt.c[1] and ifcvt.c[2] [1] https://github.com/gcc-mirror/gcc/blob/master/gcc/tree-ssa-p... [2] https://github.com/gcc-mirror/gcc/blob/master/gcc/ifcvt.c
comment by bonzini · 2020-01-02 · in RISC-V Stumbling Blocks -
…out. Compare: #define ALLOC_MEMORY(ptr, numElems) _alloc_memory((ptr), (numElems), sizeof **(ptr)) https://github.com/gcc-mirror/gcc/blob/master/libstdc%2B%2B-v3/include/bits/stl_vector.h (Not a fair comparison, but I think it makes a very…
comment by jstimpfle · 2019-10-26 · in Beating C with Futhark Running on GPU -
▲ 4
GCC adds Wenum-conversion flagstory by Procedural · 2019-09-11 · 0 comments
-
…in the GCC source code and see what their enormous tables have to say. For Zen since 2017 (znver1): https://github.com/gcc-mirror/gcc/blob/44e419819c4076843d0c92dc6913821a016a8519/gcc/common/config/i386/i386-common.c#L1673-L1681 For…
comment by arthur2e5 · 2019-09-08 · in Glibc sysdeps: dl_platform detection effectively performs “cripple AMD” -
…- if you assume it will take just as long to understand as the entirety of the GCC compiler: https://github.com/gcc-mirror/gcc
comment by ColanR · 2019-03-26 · in Arthur Whitney's 'B' Language -
…from the 70's, you will find it's very direct about it. For this specific optimization, you want https://github.com/gcc-mirror/gcc/blob/master/gcc/tree-ssa-c...
comment by DannyBee · 2019-03-06 · in GCC proves an uninitialized variable must be 0 and doesn't warn about it -
…In C++, this warning is also enabled by -Wall. In C, it is also enabled by -Wextra. Since 1996. https://github.com/gcc-mirror/gcc/commit/de9554eb8ae74764555... (And prior to that explicit option, it was just enabled as part of -Wextra/-W,…
comment by loeg · 2018-11-30 · in Google C++ Style Guide Is No Good -
No, GCC is still written mostly in C. Try: git clone --depth=1 https://github.com/gcc-mirror/gcc.git cloc gcc/gcc
comment by x0re4x · 2018-10-03 · in C is the desert island language -
…lot of e.g. the optimization passes in GCC a lot easier to read. It's probably above par, but e.g. https://github.com/gcc-mirror/gcc/blob/master/gcc/gimple-ssa... is really well explained imo.
comment by anarazel · 2018-09-21 · in Ask HN: What open source project, in your opinion, has the highest code quality? -
…Compare this to std::string. Different compilers implement it differently, but let's look at gcc: https://github.com/gcc-mirror/gcc/blob/master/libstdc%2B%2B-... https://github.com/gcc-mirror/gcc/blob/master/libstdc%2B%2B-... You've got a…
comment by steveklabnik · 2018-09-12 · in Why Rust closures are somewhat hard -
…things Here’s a link to the GCC header from 2002 that includes that _mm_cvtpd_ps intrinsic: https://github.com/gcc-mirror/gcc/commit/d3ceaee1b851570b269... If you think something that hasn’t changed in 16 years is unstable, I’d like to…
comment by Const-me · 2018-05-16 · in Rust programs versus Go -
GNU libiberty includes a Rust symbol demangler that you can link: https://github.com/gcc-mirror/gcc/blob/master/libiberty/rust...
comment by mnemonik · 2018-04-02 · in Building Tiny Rust Binaries for Embedded Linux -
…the case may be) uses an open source floating point implementation (and not virial like the GPL): https://github.com/gcc-mirror/gcc/tree/master/libgcc/soft-fp With enough finageling you could utilize the libgcc floating point…
comment by Sir_Cmpwn · 2018-02-15 · in Lessons learned while developing Age of Empires 1 Definitive Edition -
…way becomes much simpler than what’s possible with C. Compare with “old school” way of doing it: https://github.com/gcc-mirror/gcc/blob/master/gcc/opts.c https://github.com/gcc-mirror/gcc/blob/master/gcc/opts-globa...…
comment by Const-me · 2018-01-28 · in How Old School C Programmers Process Arguments -
▲ 1
GCC now supports filesystemstory by entelechy · 2018-01-06 · 0 comments
-
…descent parser (even for C++ which is reputed to be "impossible" to parse). Here's the C parser: https://github.com/gcc-mirror/gcc/blob/master/gcc/c/c-parser... and the C++ parser: https://raw.githubusercontent.com/gcc-mirror/gcc/master/gcc…
comment by rwmj · 2017-10-17 · in Ohm: Parsing Made Easy -
https://github.com/gcc-mirror/gcc/blob/4bec7283cda24b180ea7a...
comment by clarry · 2017-09-10 · in Main is usually a function, so when is it not? (2015) -
…so the compiler didn't inline it. In essence, you do a virtual call which I think winds you up in https://github.com/gcc-mirror/gcc/blob/1cb6c2eb3b8361d850be8... which itself redirects to a whole bunch of stuff. The virtual call alone is a…
comment by Veedrac · 2017-06-11 · in Translating a C++ parser to Haskell -
…that aren’t OOP. Even most compilers are OOP, take a look: https://github.com/llvm-mirror/llvm https://github.com/gcc-mirror/gcc/tree/master/gcc https://github.com/dotnet/roslyn > An object can contain references to any other object held…
comment by Const-me · 2017-05-12 · in Don't overuse interfaces -
…and we have to switch to a complete different implementation, and/or re-write it from scratch. [1] https://github.com/gcc-mirror/gcc/search?p=1&q=GLIBCXX_FORCE... [2] https://github.com/gcc-mirror/gcc/blob/master/libstdc%2B%2B-...
comment by yokaze · 2017-05-06 · in The Horror in the Standard Library -
…EDIT2: I filed a bug report for gcc, https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80187 [1] https://github.com/gcc-mirror/gcc/blob/master/libstdc%2B%2B-...
comment by ambrop7 · 2017-03-25 · in C++ 17 is Done -
The author seems to ignore that GCC's implementation of std::hash is the identity on integral types: https://github.com/gcc-mirror/gcc/blob/cf8c140a8b8131b3ab4f5... This is an incredibly poor design choice (at Facebook we'd say…
comment by ot · 2017-02-27 · in I Wrote My Fastest Hashtable -
…example, here's part of the test case for the -Wmisleading-indentation warning I added in gcc 6: https://github.com/gcc-mirror/gcc/blob/master/gcc/testsuite/... i.e. that's one 700 line test source file, expressing most of the test…
comment by dmalcolm · 2017-02-14 · in Testing GCC -
…[1] https://launchpadlibrarian.net/17472542/gcc-4.2_4.2.3-2ubunt... [2] https://github.com/gcc-mirror/gcc/compare/gcc-4_2_3-release.... [3] https://github.com/gcc-mirror/gcc/commit/80cacf54c3d410d5552... [4] https://gcc.gnu.org/bu
comment by reubenmorais · 2016-07-07 · in Announcing Rust 1.10 -
For specific test cases, you could use gcc's test cases: https://github.com/gcc-mirror/gcc/tree/master/gcc/testsuite Not sure about the latter, but you could probably accomplish something similar without too much work using a fuzzer.
comment by robertelder · 2016-06-14 · in Show HN: My own C compiler (just for fun) -
…on gccgo so I think most of his contributions [0] are for the Go compiler. [0] Example commit: https://github.com/gcc-mirror/gcc/commit/b0c0971248103432dd6...
comment by misframer · 2016-04-27 · in GCC 6.1 Released -
Seems like it is still there? https://github.com/gcc-mirror/gcc/blob/master/libstdc++-v3/i...
comment by iso-8859-1 · 2016-04-27 · in Xi editor: A modern editor with a backend written in Rust -
Funny. https://github.com/gcc-mirror/gcc/blob/bd3f0a53c07086e978ea4... I'm not sure of the behaviour but there is still a loop...
comment by vmorgulis · 2016-03-25 · in Why Concepts didn’t make C++17 -
…lock pool, so it should be fine for the copy! If you want to take a look at gcc's implementation: https://github.com/gcc-mirror/gcc/blob/bd3f0a53c07086e978ea4... https://github.com/gcc-mirror/gcc/blob/bd3f0a53c07086e978ea4...
comment by jguegant · 2016-02-05 · in An introduction to C++'s variadic templates: a thread-safe multi-type map