Skip to content

Commit 99216a3

Browse files
committed
Merge remote-tracking branch 'upstream/gcc-6-branch' into gcc-6-branch
2 parents 6951210 + 8ae4ae3 commit 99216a3

File tree

295 files changed

+12624
-7352
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

295 files changed

+12624
-7352
lines changed

fixincludes/ChangeLog

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,13 @@
1+
2016-12-01 Rainer Orth <[email protected]>
2+
3+
Backport from mainline
4+
2016-11-21 Rainer Orth <[email protected]>
5+
6+
* inclhack.def (solaris_math_12): New fix.
7+
(hpux11_fabsf): Replace bypass by *-hp-hpux11* mach selector.
8+
* fixincl.x: Regenerate.
9+
* tests/base/math.h [SOLARIS_MATH_12_CHECK]: New test.
10+
111
2016-08-22 Release Manager
212

313
* GCC 6.2.0 released.

fixincludes/fixincl.x

Lines changed: 50 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,11 @@
22
*
33
* DO NOT EDIT THIS FILE (fixincl.x)
44
*
5-
* It has been AutoGen-ed June 10, 2016 at 12:56:52 PM by AutoGen 5.18.3
5+
* It has been AutoGen-ed November 18, 2016 at 12:35:01 PM by AutoGen 5.16.2
66
* From the definitions inclhack.def
77
* and the template file fixincl
88
*/
9-
/* DO NOT SVN-MERGE THIS FILE, EITHER Fri Jun 10 12:56:52 UTC 2016
9+
/* DO NOT SVN-MERGE THIS FILE, EITHER Fri Nov 18 12:35:01 2016
1010
*
1111
* You must regenerate it. Use the ./genfixes script.
1212
*
@@ -15,7 +15,7 @@
1515
* certain ANSI-incompatible system header files which are fixed to work
1616
* correctly with ANSI C and placed in a directory that GNU C will search.
1717
*
18-
* This file contains 235 fixup descriptions.
18+
* This file contains 236 fixup descriptions.
1919
*
2020
* See README for more information.
2121
*
@@ -4300,23 +4300,18 @@ tSCC zHpux11_FabsfList[] =
43004300
/*
43014301
* Machine/OS name selection pattern
43024302
*/
4303-
#define apzHpux11_FabsfMachs (const char**)NULL
4303+
tSCC* apzHpux11_FabsfMachs[] = {
4304+
"*-hp-hpux11*",
4305+
(const char*)NULL };
43044306

43054307
/*
43064308
* content selection pattern - do fix if pattern found
43074309
*/
43084310
tSCC zHpux11_FabsfSelect0[] =
43094311
"^[ \t]*#[ \t]*define[ \t]+fabsf\\(.*";
43104312

4311-
/*
4312-
* content bypass pattern - skip fix if pattern found
4313-
*/
4314-
tSCC zHpux11_FabsfBypass0[] =
4315-
"__cplusplus";
4316-
4317-
#define HPUX11_FABSF_TEST_CT 2
4313+
#define HPUX11_FABSF_TEST_CT 1
43184314
static tTestDesc aHpux11_FabsfTests[] = {
4319-
{ TT_NEGREP, zHpux11_FabsfBypass0, (regex_t*)NULL },
43204315
{ TT_EGREP, zHpux11_FabsfSelect0, (regex_t*)NULL }, };
43214316

43224317
/*
@@ -7337,6 +7332,42 @@ static const char* apzSolaris_Math_11Patch[] = {
73377332
#endif",
73387333
(char*)NULL };
73397334

7335+
/* * * * * * * * * * * * * * * * * * * * * * * * * *
7336+
*
7337+
* Description of Solaris_Math_12 fix
7338+
*/
7339+
tSCC zSolaris_Math_12Name[] =
7340+
"solaris_math_12";
7341+
7342+
/*
7343+
* File name selection pattern
7344+
*/
7345+
tSCC zSolaris_Math_12List[] =
7346+
"math.h\0";
7347+
/*
7348+
* Machine/OS name selection pattern
7349+
*/
7350+
tSCC* apzSolaris_Math_12Machs[] = {
7351+
"*-*-solaris2*",
7352+
(const char*)NULL };
7353+
7354+
/*
7355+
* content selection pattern - do fix if pattern found
7356+
*/
7357+
tSCC zSolaris_Math_12Select0[] =
7358+
"#undef.*_GLIBCXX_USE_C99_MATH";
7359+
7360+
#define SOLARIS_MATH_12_TEST_CT 1
7361+
static tTestDesc aSolaris_Math_12Tests[] = {
7362+
{ TT_EGREP, zSolaris_Math_12Select0, (regex_t*)NULL }, };
7363+
7364+
/*
7365+
* Fix Command Arguments for Solaris_Math_12
7366+
*/
7367+
static const char* apzSolaris_Math_12Patch[] = { sed_cmd_z,
7368+
"-e", "/#undef[ \t]*_GLIBCXX_USE_C99_MATH/d",
7369+
(char*)NULL };
7370+
73407371
/* * * * * * * * * * * * * * * * * * * * * * * * * *
73417372
*
73427373
* Description of Solaris_Once_Init_1 fix
@@ -9635,7 +9666,7 @@ static const char* apzX11_SprintfPatch[] = {
96359666
*/
96369667
#define REGEX_COUNT 272
96379668
#define MACH_LIST_SIZE_LIMIT 187
9638-
#define FIX_COUNT 235
9669+
#define FIX_COUNT 236
96399670

96409671
/*
96419672
* Enumerate the fixes
@@ -9818,6 +9849,7 @@ typedef enum {
98189849
SOLARIS_MATH_8_FIXIDX,
98199850
SOLARIS_MATH_9_FIXIDX,
98209851
SOLARIS_MATH_11_FIXIDX,
9852+
SOLARIS_MATH_12_FIXIDX,
98219853
SOLARIS_ONCE_INIT_1_FIXIDX,
98229854
SOLARIS_POSIX_SPAWN_RESTRICT_FIXIDX,
98239855
SOLARIS_POW_INT_OVERLOAD_FIXIDX,
@@ -10764,6 +10796,11 @@ tFixDesc fixDescList[ FIX_COUNT ] = {
1076410796
SOLARIS_MATH_11_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
1076510797
aSolaris_Math_11Tests, apzSolaris_Math_11Patch, 0 },
1076610798

10799+
{ zSolaris_Math_12Name, zSolaris_Math_12List,
10800+
apzSolaris_Math_12Machs,
10801+
SOLARIS_MATH_12_TEST_CT, FD_MACH_ONLY,
10802+
aSolaris_Math_12Tests, apzSolaris_Math_12Patch, 0 },
10803+
1076710804
{ zSolaris_Once_Init_1Name, zSolaris_Once_Init_1List,
1076810805
apzSolaris_Once_Init_1Machs,
1076910806
SOLARIS_ONCE_INIT_1_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,

fixincludes/inclhack.def

Lines changed: 18 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2237,9 +2237,9 @@ fix = {
22372237
*/
22382238
fix = {
22392239
hackname = hpux11_fabsf;
2240+
mach = "*-hp-hpux11*";
22402241
files = math.h;
22412242
select = "^[ \t]*#[ \t]*define[ \t]+fabsf\\(.*";
2242-
bypass = "__cplusplus";
22432243

22442244
c_fix = format;
22452245
c_fix_arg = "#ifndef __cplusplus\n%0\n#endif";
@@ -3756,6 +3756,23 @@ _EOArg_;
37563756
_EOText_;
37573757
};
37583758

3759+
/*
3760+
* Some versions of Solaris 10+ <math.h> #undef libstdc++-internal macros.
3761+
*/
3762+
fix = {
3763+
hackname = solaris_math_12;
3764+
files = math.h;
3765+
mach = '*-*-solaris2*';
3766+
select = '#undef.*_GLIBCXX_USE_C99_MATH';
3767+
sed = "/#undef[ \t]*_GLIBCXX_USE_C99_MATH/d";
3768+
test_text = << _EOText_
3769+
#if __cplusplus >= 201103L
3770+
#undef _GLIBCXX_USE_C99_MATH
3771+
#undef _GLIBCXX_USE_C99_MATH_TR1
3772+
#endif
3773+
_EOText_;
3774+
};
3775+
37593776
/*
37603777
* Sun Solaris defines PTHREAD_ONCE_INIT as an array containing a
37613778
* structure. As such, it need two levels of brackets, but only

fixincludes/tests/base/math.h

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,12 @@ extern int class();
8585
#endif /* RS6000_DOUBLE_CHECK */
8686

8787

88+
#if defined( SOLARIS_MATH_12_CHECK )
89+
#if __cplusplus >= 201103L
90+
#endif
91+
#endif /* SOLARIS_MATH_12_CHECK */
92+
93+
8894
#if defined( STRICT_ANSI_NOT_CTD_CHECK )
8995
#if 1 && \
9096
&& defined(mumbling) |& ( !defined(__STRICT_ANSI__)) \

0 commit comments

Comments
 (0)