brohee, to random
@brohee@pouet.chapril.org avatar

Extremely impressed by #GCC 14.1 static analysis (-fanalyzer). Not only really finding real bugs but enough information to convince oneself of the reality of the issue. A bit frightening on an old codebase.

brohee,
@brohee@pouet.chapril.org avatar

Excellent blog on the subject by one of the main contributors.

https://developers.redhat.com/articles/2024/04/03/improvements-static-analysis-gcc-14-compiler

kernellogger, (edited ) to random
@kernellogger@fosstodon.org avatar

New C++ features in #GCC 14; @strudlzrout writes:

"'C++26 features

  • Trivial infinite loops and UB
  • Static storage for braced initializers
    […]

C++23 features

  • Deducing this
  • References in constant expressions
    […]

Defect report resolutions

  • stricter constinit
  • goto and trivially-initialized objects
    […]

Additional updates

  • More checking in templates
  • In-class variable template partial specializations
    […]

New and improved warnings

  • -Wnrvo added
    […]"'

https://developers.redhat.com/articles/2024/05/15/new-c-features-gcc-14

gnutools, to linux
@gnutools@fosstodon.org avatar

Exploring extensions in the kernel and what does -std=gnu11 mean anyways!
https://maskray.me/blog/2024-05-12-exploring-gnu-extensions-in-linux-kernel

boilingsteam, to linux
@boilingsteam@mastodon.cloud avatar
smurthys, to cpp
@smurthys@hachyderm.io avatar

I spent ~hour yesterday fighting an issue with my C++ code, only to later figure out it's a possible GCC bug, because Clang accepts the same code.

The issue is that GCC does not permit a constrained type parameter in a template template parameter of an aliased template. See the simplified code with the issue.

A cursory search of GCC Bugzilla does not readily show any related bug. I'll look carefully but lemme know if this is a known bug (probably is). 🙏🏽

https://sigcpp.godbolt.org/z/bGTnM3v1q

#cpp #gcc #bug

fsf, to emacs
@fsf@hostux.social avatar

Assigning your copyright to the FSF helps defend the GPL and keep software free. Thanks to Benjamin Woodruff, Jeffrey Bencteux, John Muhl, Matheus Branco Borella, Sergey Alexandrovich Bugaev, and Wang Diancheng for assigning their copyright to the FSF! #Inetutils, #GDB, #GCC, #GNUCLib, #GNUHurd, #GNUMach, #GNUstep, #Emacs, and more: https://u.fsf.org/3ht #CopyrightAssignments

kernellogger, to random
@kernellogger@fosstodon.org avatar

"'"[…] for #GCC 14 I've implemented new warning: -Wanalyzer-infinite-loop that's able to detect some simple cases of infinite loops. […]

"[…] added the ability for the analyzer to emit text-based diagrams visualizing the spatial relationships in a predicted buffer overflow […]

[…] better tracking C string operations […]

[…] form of "taint analysis" […] I enabled this by default when -fanalyzer is selected. This also enables these 6 taint-based warnings […]"'"

https://developers.redhat.com/articles/2024/04/03/improvements-static-analysis-gcc-14-compiler#

philpem, to random
@philpem@digipres.club avatar

Learning about the gcc attribute ((ifunc ("resolve_xxx"))) construct is making me wonder what the hell the person who thought it up was drinking, smoking or eating, and the code review team too.

I'm struggling to think of a reasonable usecase for this monstrosity of a construct.

https://gcc.gnu.org/onlinedocs/gcc/Common-Function-Attributes.html#index-ifunc-function-attribute

philpem,
@philpem@digipres.club avatar

@penguin42 in that case it feels like a function pointer would be almost as efficient (preinitialise on load then have the wrapper call it), without the obfuscatory effects of the ifunc. plus it can be boundschecked if needed to see if the fptr is one of the valid functions, ie a corruption canary.

penguin42,
@penguin42@mastodon.org.uk avatar

@philpem Right, almost; I'm not sure if the semantics allow you to make publicly defined C library functions actually be pointers.

ekaitz_zarraga, to random
@ekaitz_zarraga@mastodon.social avatar

So some text about the RISC-V backport now with C++ support!

Still not a very good Guix package though! But @efraim is helping a lot and we'll soon have something working very well.

https://ekaitz.elenq.tech/bootstrapGcc10.html

hankg, to history

In the 1990s I used DJGPP to run a small C-based Unix tool I wrote on a DOS machine. Later years Cygwin was more the way I would do cross-platform GCC stuff. I now have even more appreciation for what they needed to do behind the scenes to get DJGPP working. #gcc #djgpp #history #ComputerHistory #RetroComputing
Running GNU on DOS with DJGPP

fsf, to emacs
@fsf@hostux.social avatar

Assigning your copyright to the FSF helps defend the GPL and keep software free. Thanks to Gene Goykhman, Sergey Alexandrovich Bugaev, Wang Diancheng, Warren Thomas Everett Wilkinson, and Xinyuan Zhang for assigning their copyright to the FSF! Learn more at https://u.fsf.org/3ht

withoutclass, to gentoo
@withoutclass@mastodon.sdf.org avatar

Sigh, on one of my two machines, the upgrade to profile 23 is having trouble on the install phase of .

ScottE,
@ScottE@mastodon.social avatar

@withoutclass
If you haven't updated in awhile, emerge the new glibc, reboot, then emerge GCC. I also had to explicitly set "march=raptorlake" on one of my systems vs "native". ☹️

withoutclass,
@withoutclass@mastodon.sdf.org avatar

@ScottE I did see some folks having to do that on the forums while I was poking around a bit. It must've been some error the devs found because between yesterday and today, a new emerge sync corrected the problem for me

fsf, to emacs
@fsf@hostux.social avatar

Assigning your copyright to the FSF helps defend the GPL and keep software free. Thanks to Gene Goykhman, Sergey Alexandrovich Bugaev, Wang Diancheng, Warren Thomas Everett Wilkinson, and Xinyuan Zhang for assigning their copyright to the FSF! Learn more at https://u.fsf.org/3ht

gnutools, to random
@gnutools@fosstodon.org avatar
fsf, to emacs
@fsf@hostux.social avatar

Assigning your copyright to the FSF helps defend the GPL and keep software free. Thanks to Benjamin Woodruff, Jeffrey Bencteux, John Muhl, Matheus Branco Borella, Sergey Alexandrovich Bugaev, and Wang Diancheng for assigning their copyright to the FSF! #Inetutils, #GDB, #GCC, #GNUCLib, #GNUHurd, #GNUMach, #GNUstep, #Emacs, and more: https://u.fsf.org/3ht #CopyrightAssignments

  • All
  • Subscribed
  • Moderated
  • Favorites
  • megavids
  • thenastyranch
  • rosin
  • GTA5RPClips
  • osvaldo12
  • love
  • Youngstown
  • slotface
  • khanakhh
  • everett
  • kavyap
  • mdbf
  • DreamBathrooms
  • ngwrru68w68
  • provamag3
  • magazineikmin
  • InstantRegret
  • normalnudes
  • tacticalgear
  • cubers
  • ethstaker
  • modclub
  • cisconetworking
  • Durango
  • anitta
  • Leos
  • tester
  • JUstTest
  • All magazines