<?xml version="1.0" encoding="UTF-8" ?>

<bugzilla version="5.2"
          urlbase="https://bugzilla.altlinux.org/"
          
          maintainer="jenya@basealt.ru"
>

    <bug>
          <bug_id>38185</bug_id>
          
          <creation_ts>2020-03-05 10:52:38 +0300</creation_ts>
          <short_desc>g++: пропадает макрос __linux при указании опции -std=c++11</short_desc>
          <delta_ts>2020-04-03 21:07:52 +0300</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>3</classification_id>
          <classification>Distributions</classification>
          <product>Branch p9</product>
          <component>gcc8-c++</component>
          <version>не указана</version>
          <rep_platform>ppc</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>CLOSED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P5</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Aleksei Nikiforov">darktemplaralt</reporter>
          <assigned_to name="Gleb F-Malinovskiy">glebfm</assigned_to>
          <cc>glebfm</cc>
    
    <cc>ldv</cc>
          
          <qa_contact name="qa-p9@altlinux.org">qa-p9</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>188347</commentid>
    <comment_count>0</comment_count>
    <who name="Aleksei Nikiforov">darktemplaralt</who>
    <bug_when>2020-03-05 10:52:38 +0300</bug_when>
    <thetext>В p9 на архитектуре ppc64le при указании опции -std=c++11 (или опции для более нового стандарта) для g++ пропадает макрос __linux. На других архитектурах или на Sisyphus не воспроизводится.

p9:
$ g++ -dM -E -x c++ - &lt; /dev/null | grep -i linux
#define __linux 1
#define __linux__ 1
#define __gnu_linux__ 1
#define _CALL_LINUX 1
#define linux 1

$ g++ -dM -E -x c++ -std=c++11 - &lt; /dev/null | grep -i linux
#define __linux__ 1
#define __gnu_linux__ 1
#define _CALL_LINUX 1

Sisyphus для сравнения:
$ g++ -dM -E -x c++ - &lt; /dev/null | grep -i linux
#define __linux 1
#define __linux__ 1
#define __gnu_linux__ 1
#define _CALL_LINUX 1
#define linux 1

$ g++ -dM -E -x c++ -std=c++11 - &lt; /dev/null | grep -i linux
#define __linux 1
#define __linux__ 1
#define __gnu_linux__ 1
#define _CALL_LINUX 1</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>188423</commentid>
    <comment_count>1</comment_count>
    <who name="Repository Robot">repository-robot</who>
    <bug_when>2020-03-09 02:20:25 +0300</bug_when>
    <thetext>gcc8-8.4.1-alt1 -&gt; sisyphus:

 Thu Mar 05 2020 Gleb F-Malinovskiy &lt;glebfm@altlinux&gt; 8.4.1-alt1
 - Updated to git://gcc.gnu.org/git/gcc.git releases/gcc-8
   commit 7191ace5b8e96c6ed63ccdda25de978876c73ab1.
 - Rebased redhat vendor branch to releases/gcc-8 branch.
 - ppc64le: backported upstream fix for predefined macros (ALT#38185).</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>188449</commentid>
    <comment_count>2</comment_count>
    <who name="Gleb F-Malinovskiy">glebfm</who>
    <bug_when>2020-03-10 14:34:37 +0300</bug_when>
    <thetext>Поскольку бага была не на этот бранч, переоткрываю.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>188454</commentid>
    <comment_count>3</comment_count>
    <who name="Gleb F-Malinovskiy">glebfm</who>
    <bug_when>2020-03-10 17:13:39 +0300</bug_when>
    <thetext>#247559 EPERM #1 [test-only] p9 gcc.git=8.4.1-alt0.p9.1</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>189055</commentid>
    <comment_count>4</comment_count>
    <who name="Repository Robot">repository-robot</who>
    <bug_when>2020-04-03 21:07:52 +0300</bug_when>
    <thetext>gcc8-8.4.1-alt0.p9.1 -&gt; p9:

 Tue Mar 10 2020 Gleb F-Malinovskiy &lt;glebfm@altlinux&gt; 8.4.1-alt0.p9.1
 - Backported to p9 branch.
 Thu Mar 05 2020 Gleb F-Malinovskiy &lt;glebfm@altlinux&gt; 8.4.1-alt1
 - Updated to git://gcc.gnu.org/git/gcc.git releases/gcc-8
   commit 7191ace5b8e96c6ed63ccdda25de978876c73ab1.
 - Rebased redhat vendor branch to releases/gcc-8 branch.
 - ppc64le: backported upstream fix for predefined macros (ALT#38185).
 Tue Aug 13 2019 Gleb F-Malinovskiy &lt;glebfm@altlinux&gt; 8.3.1-alt7
 - Rebuilt in gcc9 compatibility mode.
 Tue Aug 13 2019 Gleb F-Malinovskiy &lt;glebfm@altlinux&gt; 8.3.1-alt6
 - Rebuilt in precompat mode to prepare for gcc9 build.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>