#gcc
It turns out that it's possible to have associated types and values in #c using a few extensions supported by #gcc and #clang . The basic foundation for this is zero-length arrays: you can insert a unit-alignment zero-length array field into any `struct` or `union`, and although it won't affect the layout or storage of the type, the array element type (which can be a `struct`) can be extracted with `typeof()`.
I want to create a Morse Translator(in C++ language) that can be both used in Windows and Linux(I am using Ubuntu to compile) #compiling #gcc #c++
This week's `gcc` bug is https://gcc.gnu.org/PR110067. There `gcc` miscompiled `pixman-0.42.2`. Luckily `pixman`'s testsuite caught the regression.
The culprit seems to be a recently added impressive `shift/mask` => `bswap` optimization. Normally it works, but it misfires for unusual mask ranges.
David Malcolm writes:
```For the last four releases of #GCC, I've been working on -fanalyzer, a static analysis pass that tries to identify various problems at compile-time, rather than at runtime. It performs "symbolic execution" of C source code—effectively simulating the behavior of the code along the various possible paths of execution through it (with some caveats that we'll discuss).
This article summarizes what's new with -fanalyzer in #GCC13 […]```
https://developers.redhat.com/articles/2023/05/31/improvements-static-analysis-gcc-13-compiler
Went down the #bootstrapping #ada hole again last night and today and I think I have a working gcc-2.7 compiler in #guix. As we suspected ada/ed isn't a drop-in for Ada and I couldn't figure out how to tell #gcc to use it while building gnat. So I'm still looking for an Ada 95 compiler I can build with Ada 83 or with just C.
#LLVM Clang 16 vs. #GCC 13 Compiler Performance On @AMD 4th Gen @AMDServer EPYC "Genoa"
-- Clang came out in front 57% of the time, geo mean was ~4% faster for Clang than GCC. Clang sure has advanced a lot over the years.
https://www.phoronix.com/review/amd-znver4-gcc13-clang16
Original tweet : https://twitter.com/phoronix/status/1663572038974414848

After I fixed a kernel panic I keep getting "E: Sub-process /usr/bin/dpkg returned an error code (1)" #packagemanagement #kernel #dpkg #gcc
Staršia vetva kolekcie prekladačov #GCC 11 dostala aktualizáciu s vyše 100 opravami chýb, ktoré boli prebraté z novších verzií.
https://techsvet.eu/aktuality/opravna-verzia-prekladacov-gcc-11-4/
#GCC 11.4 Released With 110+ Bugs Fixed
https://www.phoronix.com/news/GCC-11.4-Released
Original tweet : https://twitter.com/phoronix/status/1663131755451232256


Attending #ISC23, and bored on Thu morning, 09:30? I'll be presenting "Upcoming GPU C++ library support for GCC OpenACC/OpenMP offloading" at LLVM-CTH: The Fourth Workshop on LLVM Compiler and Tools for HPC. (Yes, @gnutools at the LLVM workshop--upon invitation of @llvm_dev.) 🫂
<https://app.swapcard.com/event/isc-high-performance-2023/planning/UGxhbm5pbmdfMTIyMDc2NQ==>, <https://hps.vi4io.org/events/2023/llvm>.
#GCC, #OpenACC, #OpenMP
Trouble integrating libCurl with Raspberry Pico SDK #compiling #applicationdevelopment #gcc #ubuntusdk
GCC 13 Supports New C2x Features, Including nullptr, Enhanced Enumerations, and More
https://www.infoq.com/news/2023/05/gcc13-c2x-features/?utm_medium=erik.in&utm_source=mastodon
@marcan this reminds me how #Linux also was the first #OS to run on #Itanium and how the #GCC is even the best compiler for that architecture - even better than #Intel's own!
https://www.youtube.com/watch?v=3oxrybkd7Mo
But yeah, the only thing that would make @AsahiLinux even faster on #AppleSilicon would be if compiling stuff would be done entirely in RAM wherever possible, leveraging 10x->1000x more IOPS and lower latency.
fatal error: bits/libc-header-start.h: No such file or directory when cross compiling an ARM project on 64bit under WSL #compiling #gcc #arm
cc1: error: unknown value ‘haswell’ for ‘-march’ #drivers #2004 #compiling #gcc #macbookpro
#GCC 🤝 #DaVinciResolve
Builds 100-200 Mb output by 4+ hours
#Journal, Day 1155
Thursday, 18 May 2023
(Day 17 of #WGAstrike)
#filmandtv #wgastrong
#accounting #pets
#birdsofmastodon #lovebird #gcc


New Maintainer Steps Up For @gnutools #GCC Compiler's #MIPS CPU Port
https://www.phoronix.com/news/GCC-MIPS-New-Maintainer
Original tweet : https://twitter.com/phoronix/status/1659140012133285888

20.0.4 Installing gcc / c++ no candiates #apt #2004 #compiling #gcc #c++
#LLVM #Clang 16 vs. #GCC 13 Compiler Performance On @Intel Raptor Lake
https://www.phoronix.com/review/gcc13-clang16-raptorlake
Original tweet : https://twitter.com/phoronix/status/1656649475216097280
#Journal, Day 1147
Wednesday, 10 May 2023
(Day 9 of #WGAstrike)
#santosindictment #uptheriver
#wfh #writeitdown #letitgo
#gcc #birdsofmastodon #training
#feathers



i have a number of #zines in progress about the great garbage continuum: the great cosmic flow of garbage, where things move from being "materials" to "useful" to "junk" to "gross" and then onward..
we are all in the great garbage continuum. the relationship b/w the cycle of life & the gcc is very complex.
anyway, i keep getting more zine ideas about it, like "with all projects, start them with the understanding that you'll eventually have to clean it up."

i have a number of #zines in progress about the great garbage continuum: the great cosmic flow of garbage, where things move from being "materials" to "useful" to "junk" to "gross" and then onward..
we are all in the great garbage continuum. the relationship b/w the cycle of life & the gcc is very complex.
anyway, i keep getting more zine ideas about it, like "with all projects, start them with the understanding that you'll eventually have to clean it up."
Do aktualizácie staršej vetvy kolekcie prekladačov #GCC 12.3 pribudli opravy pre viac ako 100 chýb a základná podpora AMD Zen 4.
https://techsvet.eu/aktuality/gcc-12-3-opravuje-vyse-100-chyb/
@DanielaKEngert the intent was to help you setup and run ArchLinux on your windows box.
Then setting up latest build of gcc is a breeze.
Irrespective of gcc version, the meta-bug for all module issue(s) is
The tale of -mrtd in GCC and Clang
is there another method to install gcc in a linux environment? #apt #packagemanagement #gcc #make
NEU IM BLOG: GCC – Die Helden von Atari von Paul Hartmann
Link: https://www.videospielgeschichten.de/gcc-die-helden-von-atari
"GCC (General Computer Corporation) war ein 1981 von den drei Studenten gegründetes amerikanisches Hardware- und Softwareunternehmen, welches sie neben ihrem Studium betrieben."
Welcome Google Summer of Code 2023 participants! Great C++, LTO, and Rust projects. https://gcc.gnu.org/pipermail/gcc/2023-May/241249.html #gsoc #gsoc2023 #rust #gcc
This week's `gcc` bug is https://gcc.gnu.org/PR109732 . There `gcc` mis-compiled `nlohmann/json` testsuite around iterator comparison code.
Factoids:
1. I spent 5 days reducing runtime failure with `cvise`. I failed: `cvise` kept producing code with undefined behaviour.
2. I spent 2 evenings reducing the code manually.
3. `gcc` developers spent 15 minutes to find the problem and a few more hours to come up with a patch!
4. `-fgimple` allows you to write (fragile!) code directly in gimple.
"The latest major version of the GNU Compiler Collection (#GCC), 13.1, was released in April 2023. […] This article describes new features implemented in the C front end […] GCC 13 implements many C2X proposals. These proposals align the C and C++ languages a little bit closer to each other by entwining certain features, and make programming in C easier and more secure."
https://developers.redhat.com/articles/2023/05/04/new-c-features-gcc-13 (written by @strudlzrout)
The Gulf Cooperation Council (GCC) countries are looking to launch a unified single visa for tourists » AdventureTrend.com
Adel Abdel Ghafar: “The GCC at 40:Risk & Opportunity in a Changing World” book I coedited with @TarikYousef is out. Published by @BrookingsPress #GCC @gulf
https://twitter.com/adelaghafar/status/1653680329947840512?s=12&t=z3L3aGRbD-mFEjh-tRqsFA
There is a popular post on the Internet currently about cool #GCC flags¹, which discussed the use of -Wconversion.
I tried it today and as usual straightaway found a bug making the option unusable:
#include <stdint.h>
uint8_t f(uint32_t x) { return x >> 24; }
"warning: conversion from ‘uint32_t’ {aka ‘unsigned int’} to ‘uint8_t’ {aka ‘unsigned char’} may change value [-Wconversion]"
Apparently bug's here since forever². With 6 dups. Great.
¹ https://nullprogram.com/blog/2023/04/29/
² https://gcc.gnu.org/bugzilla/show_bug.cgi?id=40752
#Journal, Day 1135
Friday, 28 April 2023
#badday #wfh #wtf
#colleaguefail #parrotsofinstagram
#birdsofinstagram #gcc
#squished
#ineedadrink


An update on the GCC front end for Rust, https://rust-gcc.github.io/2023/04/24/gccrs-and-gcc13-release.html.
The focus for the next months will be about the `core` crate, along with the borrow checker. Goal is to pass the Rust 1.49 test suite. The ultimate goal is to get it merged in GCC 14, and later, to back port it to GCC 13.2.
> This will enable users to easily start experimenting with the compiler for #![no_std] Rust programs and, hopefully, some embedded targets.
#GCC 13 will be the last release branch to support #OracleSolaris 11.3. GCC 14 and beyond will require 11.4 on Solaris. Really though, no one should need new gcc releases this far past the end of the normal support life for 11.3, which ended in 2018.
https://gcc.gnu.org/pipermail/gcc/2022-December/240322.html
(I don't know what minimum will be needed for gcc 14 on the #illumos side, especially as illumos doesn't do versions or releases, but leaves that up to the individual distros to handle.)
The @gnutools #GCC 13.1 Released With Modula-2 Language Support, More C23/C++23 Features
https://www.phoronix.com/news/GCC-13.1-Released
Original tweet : https://twitter.com/phoronix/status/1651170435927531521

The @gnutools #GCC 13.1 RC1 Released For Testing Out New CPU Targets, Modula-2, Early #Rust Code
https://www.phoronix.com/news/GCC-13.1-RC1
Original tweet : https://twitter.com/phoronix/status/1648635507260157953

Happy Fedora 38 Release Day!
Fedora 38 Released With GNOME 44 Desktop, GCC 13, Many New Features - Phoronix https://www.phoronix.com/news/Fedora-38-Released
#Fedora38 #Gnome44 #GCC #RedHat #Linux #OpenSource #OperatingSystems #TechNews
#GCC 13.1 @gnutools Compiler Likely Releasing Next Week
-- Lots of new features coming in this GCC 13 release!
https://www.phoronix.com/news/GCC-13.1-Next-Week-Plan
Original tweet : https://twitter.com/phoronix/status/1647967344172453893

It is a few years old, but sadly still accurate!
The Arab leaders, despite their effort to normalize relationship with Iran and Syria, still don't care about Palestine or Israel except their economical, political and military ties with the apartheid regime that helps them with their inferiority complex and global American push for creating an Arab NATO to stand up against Iran with the help of Pentagon and Israel.
How will that idea survive the current talks between Iran and the GCC? What will happen when Syria is once again allowed into the Arab league? What if the roumers of Egypt selling 40 000 missiles to Russia are true?
I am sure time will show us what is going one. The 3D chess game of the political clusterfuck of western Asia just got a couple of new dimensions.
#Politics #Israel #ArabLeague #GCC #Iran #Syria #AbrahamAccord #AlAqsa #PersianGulf

A leaner <iostream> in libstdc++ for GCC 13
https://developers.redhat.com/articles/2023/04/03/leaner-libstdc-gcc-13
#gcc #cpp #programming
@lispi314 sidenote: that #guile bootstrap path was developed for #guix :
GNU Mes (maxwell equations of software) provides a minimal #scheme interpreter and C #compiler with tooling to build #tinycc that can be used with the Mes C library to compile glibc-2.2.5, binutils-2.20.1, gcc-2.95.3 with which you can build the whole #GNU system.
Thanks to #GCCrs that will soon include #Rust
Thanks to #Python on Guile it includes a shortcut for compatible Python-based tooling.
#GCC
@dalias @jschauma
.@openSUSE #Tumbleweed Begins Rolling Out @gnutools #GCC 13
https://www.phoronix.com/news/openSUSE-Tumbleweed-GCC-13
Original tweet : https://twitter.com/phoronix/status/1639073663960973322
@suprjami
`make --dry-run` prints but doesn't run the commands. Bear wraps the compiler calls to intercept them, so it requires you to actually call the compiler.
The whole problem is that there's no way to get the includes and dependencies unless you do all the preprocessing, which is a portion of the way into compiling. You could add the compiler flag to only do pre-processing, but you'll only save a little time versus a full compile.
A deep dive into the #Rust frontend for #GCC
https://www.youtube.com/watch?v=XyIg6DUL5eQ
"#clang is so powerful that it can execute infinite loops in 5ms"
This is a reduced testcase from a large codebase for 32-bit ARM microcontrollers.
Yesterday I noticed that GCC 12 generates the exact same code in C++17 and C++20 mode.
This morning, a GCC developer guessed the issue and pointed me at the fix that was merged two years ago.
I can't update my toolchain right now, but knowing what triggers the bug made it easy to come up with a workaround for GCC 10.
C++ compiler puzzle: can you guess why GCC 10.3 generates slightly worse code when switching from -std=c++17 to -std=c++20?
https://godbolt.org/z/99z7jxM1c
#cpp #programming #cpp20 #assembly #gcc #compilers
GCC undefined behaviors are getting wild, http://blog.pkh.me/p/37-gcc-undefined-behaviors-are-getting-wild.html.
Interesting to see how GCC assumptions on integers behaviors can lead to UB in some cases.
Andrew MacLeod – How we added support for the C++23 assume feature in #GCC
https://developers.redhat.com/articles/2023/02/02/support-c23-assume-feature-gcc
"[…] This article discusses how Ranger supports the new assume feature of the C++23 standard, which helps programmers optimize programs. […] Although #GCC13 does not have complete support for assume, we do provide a functional implementation for early C++23 adopters. Give it a try. […]"
#C Isn't A #Programming Language Anymore
Times are changing: #LLVM has become more than a spare to GCC, such that Glibc - the last big #GCC bastion, is now working towards supporting LLVM as a first-class citizen. Here's where things stand: https://openfir.st/glibcllvm @gnutools
I've just been reading #gcc's unwinding code which seems to be a response to "hey regex's can encode a FSM VM, wouldn't it be cool if compilers could do that too"
How would I define the __builtin_blendvps256 GCC intrinsic in Ada using GNAT? https://stackoverflow.com/questions/74870129/how-would-i-define-the-builtin-blendvps256-gcc-intrinsic-in-ada-using-gnat #ada #programming #intrinsics #gnat #gcc #x86 #ada
A wild #blog post appeared!
Did you know that #GCC just added Modula-2 and #Rust frontends to mainline? Come with me as I explore how well they work on #OpenBSD. (Spoiler: excellently out-of-the-box.)
As an added bonus, there are instructions in the blog post for how you can get your own GCC with Modula-2 and Rust on your own OpenBSD machine. Just a quick pkg_add away!
https://briancallahan.net/blog/20221219.html
#compiler #compilers #opensource #freesoftware #FOSS #FLOSS #OSS #FreeBSD #NetBSD #DragonFlyBSD #BSD #Unix #Linux
#GCC #Rust "gccrs" Code Merged Into Mainline #GCC13
Following last week's approval with the GCC Rust v4 patches for them to be merged, all of the "gccrs" code was upstreamed this morning for GNU #Compiler Collection 13.
https://bit.ly/3Pmsm5Z
My first commit (written with antoyo) was merged in GCC! \o/
It allows us to continue improving the GCC backend for the Rust compiler (https://github.com/rust-lang/rustc_codegen_gcc/) without needing a custom libgccjit version. :)
https://github.com/gcc-mirror/gcc/commit/d2e782cb99c3116c389d6a9565678c4ffe267777
Wow, #gcc documentation is live with #sphinx #furo. 😍 https://gcc.gnu.org/onlinedocs/gcc/