C++

GNU C Library
Article

A platform interface for the GNU C Library

Carlos O'Donell

You can't backport patches forever. At some point you have to rebase. How do you ensure applications continue compiling? Can you do both? Yes you can.

Red Hat Developer
Article

What's new in OpenMP 5.0

Jakub Jelínek

This article highlights features, changes, and “gotchas” to look for in the latest version of the OpenMP standard, OpenMP 5.0.

Red Hat Developer
Article

A gentle introduction to jump threading optimizations

Aldy Hernandez

This article describes GCC compiler optimizations for jump threading. Jump threading's major goal is to reduce the number of dynamically executed jumps on different paths through the program's control flow graph, which often results in improved performance due to the reduction of conditionals and, in turn, enables further optimizations.

Red Hat Developer
Article

Understanding GCC warnings, Part 2

Martin Sebor

This article focuses on flow-based warnings that have increasingly been implemented in what GCC calls the "middle end." Limitations of middle-end warnings are discussed, as are false positives in middle-end warnings and possible solutions.

GNU C library
Article

Understanding GCC warnings

Martin Sebor

This article sheds light on how warnings work in GCC, why some warnings are false, and when warnings might not be output. Also discussed are the trade-offs made when implementing checks in GCC.

GNU C library
Article

Usability improvements in GCC 9

David Malcolm

The upcoming GCC 9 release will have improved diagnostic messages, simpler C++ errors, more accurate error location reporting, and optional machine readable output for developer tools.

Featured image for: Report from the virtual ISO C++ meetings in 2020 (core language).
Article

November 2018 ISO C++ meeting trip report (Core Language)

Jason Merrill

At the fall 2018 ISO C++ standards committee meeting, proposals for new C++ features were discussed, though some features that had been expected to make C++20 are now in question. Read about the new C++ core language features that were accepted at this meeting.

RHEL
Article

Support Lifecycle for Clang/LLVM, Go, and Rust

Bob Davis

Red Hat has recently released Clang/LLVM, Go, and Rust as General Availability. This article covers the support lifecycle and release cadence for these compilers.

GNU C library
Article

GCC 8 and tools now in beta for Red Hat Enterprise Linux 6 and 7

Mike Guerette

We are pleased to announce the immediate availability of Red Hat Developer Toolset 8 beta for Red Hat Enterprise Linux 6 and 7. The key new components for this release are: GCC 8.2.1 GDB 8.2 Updated components such as SystemTap, Valgrind, OProfile, and many more To get started, see: How to install GCC 8 on Red Hat Enterprise Linux . For more details, see the "New Features" section below. About Red Hat Developer Toolset Twice a year, Red Hat distributes...

Red Hat Developer
Article

How to install Clang/LLVM 5 and GCC 7 on RHEL

Rob Terzi

Clang tools and newer versions of GCC can be quite helpful for better warnings and error messages during C/C++ development. This article shows how you can easily install the latest supported Clang 5 and GCC 7 compilers using yum on Red Hat Enterprise Linux. It also provides tips for working with software collections.

Featured image for: Report from the virtual ISO C++ meetings in 2020 (core language).
Article

June 2018 ISO C++ Meeting Trip Report (Core Language)

Jason Merrill

At the summer 2018 ISO C++ standards committee meeting, proposals for new features for C++2a were coming quickly from the Evolution Working Group. Red Hatters covered core, library, and parallelism/concurrency. Read about the new C++ core language features that were accepted at this meeting.

GNU C library
Article

Detecting String Truncation with GCC 8

Martin Sebor

To detect common programming errors, GCC 8 contains a number of new warnings and enhancements to existing checkers to help find non-obvious bugs in C and C++ code. This article focuses on those that deal with inadvertent string truncation and discusses some of the approaches to avoiding the underlying problems.

RHEL
Article

Announcing GA for latest Software Collections, Developer Toolset, Compilers

Mike Guerette

We are pleased to announce the general availability of: Red Hat Software Collections 3.1 (Ruby 2.5, Perl 2.26, PHP 7.0.27, PostgreSQL 10, MongoDB 3.6, Varnish 5, HAProxy 1.8, Apache 2.4 update) Red Hat Developer Toolset 7.1 (GCC 7.3) Clang/LLVM 5.0, Go 1.8.7, Rust 1.25.0

Featured image for: Report from the virtual ISO C++ meetings in 2020 (core language).
Article

March 2018 ISO C++ Meeting Trip Report (Core Language)

Jason Merrill

Following is a trip report from the March 2018 ISO C++ Meeting (Core Language) held in Jacksonville, Florida. This meeting was mostly about new features for C++20, particularly when and how to merge Technical Specifications into the draft standard. 

GNU C library
Article

GNU Toolchain Update - Spring 2018

Nick Clifton

This blog is part of a series covering the latest changes and improvements in the Spring 2018 GNU Toolchain Update and components that make up this Toolchain. Apart from the announcement of new releases, however, the features described here are at the bleeding edge of software development in the tools.

GNU C library
Article

Recommended compiler and linker flags for GCC

Florian Weimer

Get a list of recommended build flags for compiling your C or C++ programs with the GCC compiler. Do you know which build flags you need to specify in order to obtain the same level of security hardening that GNU/Linux distributions such as Fedora and Red Hat Enterprise Linux use?

GNU C library
Article

Usability improvements in GCC 8

David Malcolm

This article summarizes work that was done to make GCC 8 more usable by providing easier to understand warning and error messages. Many of these improvements will help you quickly recognize those common silly mistakes.

Featured image for: Report from the virtual ISO C++ meetings in 2020 (core language).
Article

Red Hat at the ISO C++ Standards Meeting (November 2017): Parallelism and Concurrency

Torvald Riegel

Several Red Hat engineers attended the JTC1/SC22/WG21 C++ Standards Committee meetings in November 2017. This post focuses on the sessions of SG1, the study group on parallelism and concurrency. SG1 had a full schedule as usual, with Executors, Futures, and deferred reclamation mechanisms (e.g., RCU) being major discussion topics. We also started to track the state of proposals and topics we will need to discuss in a publicly accessible bug tracker. I have argued in the past that SG1 should...

Article Thumbnail
Article

The GDB Python API

Phil Muldoon

GDB has evolved in the last several years to provide a Python API. This series of articles will look at how a user can program GDB with the API and will also take an in-depth look at several features of that API. But, before we begin, a small history lesson is needed and a look at just why an API was needed. Why an API? The humble debugger. We've all used one at some point in our careers, sometimes with...