Hacker GitHub

← All repos

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

Mentions per year 122 mentions · busiest year 2014 (14)
20082026
  1. …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]…
  2. …"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
  3. …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
  4. 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…
  5. …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...
  6. …?? 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…
  7. Neoverse-N2 will have SVE2 (source https://github.com/gcc-mirror/gcc/blob/master/gcc/config/aar... )
  8. …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…
  9. …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…
  10. …[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
  11. 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)
  12. 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
  13. GNU still ships it. https://github.com/gcc-mirror/gcc/blob/master/libstdc%2B%2B-...
  14. …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
  15. …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
  16. …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...
  17. ▲ 6
    GCC Moves from C++98 to C++11
    story by signa11 · 2020-05-20 · 1 comment
  18. 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…
  19. 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)
  20. …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
  21. …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
  22. For reference: https://github.com/gcc-mirror/gcc/graphs/code-frequency
    comment by sdegutis · 2019-11-14 · in GCC 7.5
  23. …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
  24. ▲ 4
    GCC adds Wenum-conversion flag
    story by Procedural · 2019-09-11 · 0 comments
  25. …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…
  26. …- 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
  27. …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...
  28. …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
  29. 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
  30. …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.
  31. …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
  32. …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
  33. GNU libiberty includes a Rust symbol demangler that you can link: https://github.com/gcc-mirror/gcc/blob/master/libiberty/rust...
  34. …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…
  35. …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...…
  36. ▲ 1
    GCC now supports filesystem
    story by entelechy · 2018-01-06 · 0 comments
  37. …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
  38. https://github.com/gcc-mirror/gcc/blob/4bec7283cda24b180ea7a...
  39. …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
  40. …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
  41. …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
  42. …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
  43. 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
  44. …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
  45. …[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
  46. 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)
  47. …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
  48. Seems like it is still there? https://github.com/gcc-mirror/gcc/blob/master/libstdc++-v3/i...
  49. 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
  50. …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...