1. Computers
  2. Display Drivers
  3. Graphics Cards
  4. Memory
  5. Motherboards
  6. Processors
  7. Software
  8. Storage
  9. Operating Systems


Facebook RSS Twitter Twitter Google Plus


Phoronix Test Suite

OpenBenchmarking.org

GCC 4.8 To Improve Diagnostics Abilities

Compiler

Published on 11 July 2012 09:32 AM EDT
Written by Michael Larabel in Compiler
3 Comments

In a battle against LLVM/Clang, GCC 4.8 will improve the code diagnostics support to better assist developers in debugging code errors/warnings in a user-friendly manner.

One of the long-advertised features of LLVM's Clang C/Objective-C/C++ compiler has been that it offers more user-friendly diagnostics than the GNU Compiler Collection. Historically this has been true, especially against GCC 4.2 -- the last GPLv2 compiler release. However, GCC developers have been working to improve this situation. With GCC 4.8, it looks like more of this work will come to fruition.

On the LLVM web-site there's long been the Clang Expressive Diagnostics page to show off that Clang's error reporting/diagnostics are superior to GCC. "In addition to being fast and functional, we aim to make Clang extremely user friendly. As far as a command-line compiler goes, this basically boils down to making the diagnostics (error and warning messages) generated by the compiler be as useful as possible. There are several ways that we do this. This section talks about the experience provided by the command line compiler, contrasting Clang output to GCC 4.2's output in several examples."

Now on the GCC side they have been working on a Clang Diagnostics Comparison Wiki page. This comparison page was brought up yesterday at DebConf Managua when talking about building Debian packages with LLVM/Clang, but those details will be saved for another Phoronix article.

The GCC Clang Diagnostics Comparison is now about showing off where the latest GCC code is ahead of Clang. "It is often repeated that the Clang compiler produces far superior diagnostics to GCC. For example the Expressive Diagnostics page shows examples where Clang's diagnostics were indeed superior to GCC 4.2. However, that version of GCC is a few years old, and GCC has improved considerably since then. This page revisits the examples using recent versions of GCC and add further interesting examples."

Among the advertised features is GCC 4.8 introducing support for printed column numbers, caret diagnostics instead of pretty print expressions, typedef preservation, selective unwrapping, automatic macro expansion, quality of implementation and attention to detail, recursive template instantiations, and C++ template errors. There's also a Red Hat page promoting GCC diagnostics.

While the GCC improvements are nice, it will still be a number of months before GCC 4.8 is officially released. At that point, GCC 4.8 will be competing against LLVM/Clang 3.2 with LLVM/Clang 3.3 likely being mid-way in development.

Latest Linux Hardware Reviews
  1. Mini-Box M350: A Simple, Affordable Mini-ITX Case
  2. Overclocking The AMD AM1 Athlon & Sempron APUs
  3. AMD Athlon 5350 / 5150 & Sempron 3850 / 2650
  4. Upgraded Kernel & Mesa Yield A Big Boost For Athlon R3 Graphics
Latest Linux Articles
  1. AMD OpenCL Performance With AM1 Kabini APUs
  2. A Quick Look At GCC 4.9 vs. LLVM Clang 3.5
  3. Are AMD Athlon/Sempron APUs Fast Enough For Steam On Linux?
  4. AMD Athlon's R3 Graphics: RadeonSI Gallium3D vs. Catalyst
Latest Linux News
  1. R600 Gallium3D Disables LLVM Back-End By Default
  2. Fedora 21 Gets GNOME 3.12, PHP 5.6, Mono 3.4
  3. Fedora Workstation Is Making Me Quite Excited
  4. Maynard: A Lightweight Wayland Desktop
  5. Chromium Browser Going Through Growing Pains In Ubuntu 14.04
  6. KDE 4.13 Is Being Released Today With New Features
  7. Trying Out Radeon R9 290 Graphics On Open-Source
  8. Intel Broadwell GT3 Graphics Have Dual BSD Rings
  9. Early Linux 3.15 Benchmarks Of Intel Core i7 + Radeon
  10. Red Hat Releases Its RHEL 7 Release Candidate
  11. New Features Coming To Xubuntu 14.04 LTS
  12. NVIDIA Officially Releases CUDA 6
Latest Forum Discussions
  1. Change installation destination from home directory
  2. Updated and Optimized Ubuntu Free Graphics Drivers
  3. The GNOME Foundation Is Running Short On Money
  4. Linux Kernel Developers Fed Up With Ridiculous Bugs In Systemd
  5. After Jack Keane, RuseSoft will briing Ankh 3 to Linux through Desura
  6. Bye bye BSD, Hello Linux: A Sys Admin's Story
  7. New tool for undervolt/overclock AMD K8L and K10 processors
  8. How to enable opengl 3.3 on r9 270?