C++

C++ Hawaii Meeting Report
Article

Report from February 2019 ISO WG21 C++ Standards Committee Meeting

Thomas Rodgers

The February 2019 ISO C++ meeting was held in Kailua-Kona, Hawaii. As usual, Red Hat sent three of us to the meeting: I attended in the SG1 (parallelism and concurrency) group, Jonathan Wakely in Library, and Jason Merrill in the Core Working Group (see Jason's report here). In this report, I'll cover a few highlights of the meeting, focusing on the papers that were discussed. The first part of the week in SG1 was spent primarily on papers related to...

C++11
Article

Understanding when not to std::move in C++

Marek Polacek

New warnings have been added to GCC 9 that can help with wrong or redundant usage of std::move in C++ code. Learn how to enable them.

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

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.