Bug 38185 - g++: пропадает макрос __linux при указании опции -std=c++11
Summary: g++: пропадает макрос __linux при указании опции -std=c++11
Status: CLOSED FIXED
Alias: None
Product: Branch p9
Classification: Distributions
Component: gcc8-c++ (show other bugs)
Version: не указана
Hardware: ppc Linux
: P5 normal
Assignee: Gleb F-Malinovskiy
QA Contact: qa-p9@altlinux.org
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-03-05 10:52 MSK by Aleksei Nikiforov
Modified: 2020-04-03 21:07 MSK (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Aleksei Nikiforov 2020-03-05 10:52:38 MSK
В p9 на архитектуре ppc64le при указании опции -std=c++11 (или опции для более нового стандарта) для g++ пропадает макрос __linux. На других архитектурах или на Sisyphus не воспроизводится.

p9:
$ g++ -dM -E -x c++ - < /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 - < /dev/null | grep -i linux
#define __linux__ 1
#define __gnu_linux__ 1
#define _CALL_LINUX 1

Sisyphus для сравнения:
$ g++ -dM -E -x c++ - < /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 - < /dev/null | grep -i linux
#define __linux 1
#define __linux__ 1
#define __gnu_linux__ 1
#define _CALL_LINUX 1
Comment 1 Repository Robot 2020-03-09 02:20:25 MSK
gcc8-8.4.1-alt1 -> sisyphus:

 Thu Mar 05 2020 Gleb F-Malinovskiy <glebfm@altlinux> 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).
Comment 2 Gleb F-Malinovskiy 2020-03-10 14:34:37 MSK
Поскольку бага была не на этот бранч, переоткрываю.
Comment 3 Gleb F-Malinovskiy 2020-03-10 17:13:39 MSK
#247559 EPERM #1 [test-only] p9 gcc.git=8.4.1-alt0.p9.1
Comment 4 Repository Robot 2020-04-03 21:07:52 MSK
gcc8-8.4.1-alt0.p9.1 -> p9:

 Tue Mar 10 2020 Gleb F-Malinovskiy <glebfm@altlinux> 8.4.1-alt0.p9.1
 - Backported to p9 branch.
 Thu Mar 05 2020 Gleb F-Malinovskiy <glebfm@altlinux> 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 <glebfm@altlinux> 8.3.1-alt7
 - Rebuilt in gcc9 compatibility mode.
 Tue Aug 13 2019 Gleb F-Malinovskiy <glebfm@altlinux> 8.3.1-alt6
 - Rebuilt in precompat mode to prepare for gcc9 build.