Masthash

#gcc

Arav K.
5 hours ago

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()`.

Andrew Tropin
2 days ago

#gcc fun

Do you know that "-funsafe-math-optimizations" doesn't stand for "fun, safe, math optimizations"?
AskUbuntu
3 days ago

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++

https://askubuntu.com/q/1470405/612

Sergei Trofimovich
4 days ago

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.

#gcc #bug

Thorsten Leemhuis (1/4)
5 days ago

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

Genode
5 days ago

#Genode 23.05 is here: updated #GCC 12.3 ⭑ initial #Rust cargo support in #Goa tool ⭑ C++20 by default ⭑ annual documentation update of Genode Foundations and Platforms books ⭑ many more improvements of components and drivers

https://genode.org/documentation/release-notes/23.05

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.

Phoronix
5 days ago

#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

AskUbuntu
6 days ago

After I fixed a kernel panic I keep getting "E: Sub-process /usr/bin/dpkg returned an error code (1)" #packagemanagement #kernel #dpkg #gcc

https://askubuntu.com/q/1469934/612

TechSvet
1 week ago

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/

Thomas Schwinge
2 weeks ago

The #OpenMP panel at #ISC23

... including @gnutools, #GCC, #LLVM, @llvm_dev

Thomas Schwinge
2 weeks ago

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

AskUbuntu
2 weeks ago

Trouble integrating libCurl with Raspberry Pico SDK #compiling #applicationdevelopment #gcc #ubuntusdk

https://askubuntu.com/q/1468880/612

Erik C. Thauvin
2 weeks ago

GCC 13 Supports New C2x Features, Including nullptr, Enhanced Enumerations, and More

#c23 #gcc

https://www.infoq.com/news/2023/05/gcc13-c2x-features/?utm_medium=erik.in&utm_source=mastodon

AskUbuntu
2 weeks ago

Trying to compile with make but missing functions like offsetof #server #2204 #gcc #make #g++

https://askubuntu.com/q/1468634/612

@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.

AskUbuntu
2 weeks ago

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

https://askubuntu.com/q/1468608/612

AskUbuntu
2 weeks ago

cc1: error: unknown value ‘haswell’ for ‘-march’ #drivers #2004 #compiling #gcc #macbookpro

https://askubuntu.com/q/1468615/612

Maxim Lebedev
2 weeks ago

#GCC 🤝 #DaVinciResolve
Builds 100-200 Mb output by 4+ hours

Phoronix
3 weeks ago
AskUbuntu
3 weeks ago
AskUbuntu
3 weeks ago

Question about compiling Sound Driver #gcc #make

https://askubuntu.com/q/1468239/612

AskUbuntu
3 weeks ago
AskUbuntu
3 weeks ago

20.0.4 Installing gcc / c++ no candiates #apt #2004 #compiling #gcc #c++

https://askubuntu.com/q/1468082/612

AskUbuntu
3 weeks ago

Ubuntu 23.04 C Compiler cannot create executables - C compiler works no #gcc #c #2304 #compiler

https://askubuntu.com/q/1467971/612

Markus Osterhoff
3 weeks ago

ah, nach dem #gcc-#update gibt es ein paar Inkonsistenzen …

make mrproper

4 weeks ago

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."

#gcc #garbage #trash #ecology

one view of the great garbage continuum
4 weeks ago

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."

#gcc #garbage #trash #ecology

TechSvet
4 weeks ago

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/

Saifi Khan
1 month ago

@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

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103524

#gcc
#isocpp
#cplusplus

AskUbuntu
1 month ago

is there another method to install gcc in a linux environment? #apt #packagemanagement #gcc #make

https://askubuntu.com/q/1466838/612

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."

#gcc #atari

gnutools
1 month ago

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

Sergei Trofimovich
1 month ago

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.

#gcc #bug

Thorsten Leemhuis (1/4)
1 month ago

"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

#travel #visa #gulf #GCC

https://adventuretrend.com/the-gulf-cooperation-council-gcc-countries-are-looking-to-launch-a-unified-single-visa-for-tourists/

Sherifa Zuhur
1 month ago

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

bµg
1 month ago

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

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.

#RustLang #gcc #compiler #toolchain

Alan Coopersmith
1 month ago

#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.)

Phoronix
1 month ago

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

Phoronix
2 months ago

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

Marcus "MajorLinux" Summers
2 months ago

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

Phoronix
2 months ago

#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

Farhad
2 months ago

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
Sven
2 months ago

Building software packages on #VM systems with only one or 2 processors sucks.

#gcc #make

Arne Babenhauserheide
2 months ago

@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

Ron Bowes
3 months ago

#TIL you can get the return address or frame base in #gcc, which can be handy when making a CTF challenge!

https://gcc.gnu.org/onlinedocs/gcc/Return-Address.html

@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.

#cprogramming #gcc #clang #llvm #ccls

blake shaw
4 months ago

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"

https://github.com/llvm/llvm-project/issues/60622

#llvm #gcc

Code snippet
Bernie
4 months ago

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.

#programming #cpp #embedded #gcc

Bernie
4 months ago

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.

#gcc #compiler #safety

Thorsten Leemhuis (1/4)
4 months ago

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. […]"

sam
4 months ago

It's that time of year when all the distribution folks start testing with the new upcoming #gcc (GCC 13 in this case) and PRs are flying around. Lots of missing includes.

Maybe one day I'll just add IWYU to people's CI instead.

@gnutools

Collabora
5 months ago

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

GNU Tools & LLVM
Alex
5 months ago

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"

Dr. Brian Callahan
6 months ago

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

Guillaume Gomez
6 months ago

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

#rustlang #gcc

Jed Brown
7 months ago

Wow, #gcc documentation is live with #sphinx #furo. 😍 https://gcc.gnu.org/onlinedocs/gcc/