[DynInst_API:] [dyninst/dyninst] c8abfc: fix gcc 6's broken __has_x_attribute


Date: Mon, 09 Oct 2023 12:06:08 -0700
From: kupsch <noreply@xxxxxxxxxx>
Subject: [DynInst_API:] [dyninst/dyninst] c8abfc: fix gcc 6's broken __has_x_attribute
  Branch: refs/heads/kupsch/fix_broken_has_x_attribute
  Home:   https://github.com/dyninst/dyninst
  Commit: c8abfcc1db0024dae850e5f1c6e8660c0cf9d3f3
      https://github.com/dyninst/dyninst/commit/c8abfcc1db0024dae850e5f1c6e8660c0cf9d3f3
  Author: James A. Kupsch <kupsch@xxxxxxxxxxx>
  Date:   2023-10-09 (Mon, 09 Oct 2023)

  Changed paths:
    M common/h/compiler_annotations.h

  Log Message:
  -----------
  fix gcc 6's broken __has_x_attribute

- gcc 6's __has_c_attribute and __has_cpp_attribute return true if
  an attribute is supported as a non-standard extension, but if used
  produces a warning if the language standard is earlier than the
  attribute's standardization; treat gcc 6 like clang and only allow
  if the language standard is after the introduction.

- refactor the preprocessor tests into common macros


[← Prev in Thread] Current Thread [Next in Thread→]
  • [DynInst_API:] [dyninst/dyninst] c8abfc: fix gcc 6's broken __has_x_attribute, kupsch <=