Skip to content

Commit e6cb552

Browse files
kito-chengTyler Chen
authored andcommitted
Initialize for ast-v5_3_0-v5
1 parent 2ee5e43 commit e6cb552

File tree

2,455 files changed

+272458
-6238
lines changed

Some content is hidden

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

2,455 files changed

+272458
-6238
lines changed

fixincludes/fixincl.x

Lines changed: 149 additions & 5 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 February 27, 2022 at 07:47:03 PM by AutoGen 5.18.16
5+
* It has been AutoGen-ed September 27, 2022 at 12:49:21 AM by AutoGen 5.18.16
66
* From the definitions inclhack.def
77
* and the template file fixincl
88
*/
9-
/* DO NOT SVN-MERGE THIS FILE, EITHER Sun Feb 27 19:47:03 UTC 2022
9+
/* DO NOT SVN-MERGE THIS FILE, EITHER Tue Sep 27 00:49:21 CEST 2022
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 267 fixup descriptions.
18+
* This file contains 270 fixup descriptions.
1919
*
2020
* See README for more information.
2121
*
@@ -4105,6 +4105,132 @@ static const char* apzGlibc_C99_Inline_4Patch[] = {
41054105
"%0 __attribute__ ((__gnu_inline__))",
41064106
(char*)NULL };
41074107

4108+
/* * * * * * * * * * * * * * * * * * * * * * * * * *
4109+
*
4110+
* Description of Glibc_Cxx_Floatn_1 fix
4111+
*/
4112+
tSCC zGlibc_Cxx_Floatn_1Name[] =
4113+
"glibc_cxx_floatn_1";
4114+
4115+
/*
4116+
* File name selection pattern
4117+
*/
4118+
tSCC zGlibc_Cxx_Floatn_1List[] =
4119+
"bits/floatn.h\0bits/floatn-common.h\0";
4120+
/*
4121+
* Machine/OS name selection pattern
4122+
*/
4123+
#define apzGlibc_Cxx_Floatn_1Machs (const char**)NULL
4124+
4125+
/*
4126+
* content selection pattern - do fix if pattern found
4127+
*/
4128+
tSCC zGlibc_Cxx_Floatn_1Select0[] =
4129+
"^([ \t]*#[ \t]*if !__GNUC_PREREQ \\(7, 0\\) \\|\\| )defined __cplusplus\n\
4130+
(([ \t]*/\\*[^\n\
4131+
]*\\*/\n\
4132+
)?([ \t]*#[ \t]*if[^\n\
4133+
]*\n\
4134+
)?[ \t]*#[ \t]*define __f(16|32|64|128)x?\\()";
4135+
4136+
#define GLIBC_CXX_FLOATN_1_TEST_CT 1
4137+
static tTestDesc aGlibc_Cxx_Floatn_1Tests[] = {
4138+
{ TT_EGREP, zGlibc_Cxx_Floatn_1Select0, (regex_t*)NULL }, };
4139+
4140+
/*
4141+
* Fix Command Arguments for Glibc_Cxx_Floatn_1
4142+
*/
4143+
static const char* apzGlibc_Cxx_Floatn_1Patch[] = {
4144+
"format",
4145+
"%1(defined __cplusplus && !__GNUC_PREREQ (12, 2))\n\
4146+
%2",
4147+
(char*)NULL };
4148+
4149+
/* * * * * * * * * * * * * * * * * * * * * * * * * *
4150+
*
4151+
* Description of Glibc_Cxx_Floatn_2 fix
4152+
*/
4153+
tSCC zGlibc_Cxx_Floatn_2Name[] =
4154+
"glibc_cxx_floatn_2";
4155+
4156+
/*
4157+
* File name selection pattern
4158+
*/
4159+
tSCC zGlibc_Cxx_Floatn_2List[] =
4160+
"bits/floatn.h\0bits/floatn-common.h\0";
4161+
/*
4162+
* Machine/OS name selection pattern
4163+
*/
4164+
#define apzGlibc_Cxx_Floatn_2Machs (const char**)NULL
4165+
4166+
/*
4167+
* content selection pattern - do fix if pattern found
4168+
*/
4169+
tSCC zGlibc_Cxx_Floatn_2Select0[] =
4170+
"^([ \t]*#[ \t]*if !__GNUC_PREREQ \\(7, 0\\) \\|\\| )defined __cplusplus\n\
4171+
(([ \t]*/\\*[^\n\
4172+
]*\\*/\n\
4173+
)?[ \t]*typedef[ \t]+[^\n\
4174+
]*[ \t]+_Float(16|32|64|128)x?([ \t]+__attribute__ \\(\\(__mode__ \\(__HF__\\)\\)\\))?;)";
4175+
4176+
#define GLIBC_CXX_FLOATN_2_TEST_CT 1
4177+
static tTestDesc aGlibc_Cxx_Floatn_2Tests[] = {
4178+
{ TT_EGREP, zGlibc_Cxx_Floatn_2Select0, (regex_t*)NULL }, };
4179+
4180+
/*
4181+
* Fix Command Arguments for Glibc_Cxx_Floatn_2
4182+
*/
4183+
static const char* apzGlibc_Cxx_Floatn_2Patch[] = {
4184+
"format",
4185+
"%1(defined __cplusplus && !__GNUC_PREREQ (12, 2))\n\
4186+
%2",
4187+
(char*)NULL };
4188+
4189+
/* * * * * * * * * * * * * * * * * * * * * * * * * *
4190+
*
4191+
* Description of Glibc_Cxx_Floatn_3 fix
4192+
*/
4193+
tSCC zGlibc_Cxx_Floatn_3Name[] =
4194+
"glibc_cxx_floatn_3";
4195+
4196+
/*
4197+
* File name selection pattern
4198+
*/
4199+
tSCC zGlibc_Cxx_Floatn_3List[] =
4200+
"bits/floatn.h\0bits/floatn-common.h\0";
4201+
/*
4202+
* Machine/OS name selection pattern
4203+
*/
4204+
#define apzGlibc_Cxx_Floatn_3Machs (const char**)NULL
4205+
4206+
/*
4207+
* content selection pattern - do fix if pattern found
4208+
*/
4209+
tSCC zGlibc_Cxx_Floatn_3Select0[] =
4210+
"^([ \t]*#[ \t]*if !__GNUC_PREREQ \\(7, 0\\) \\|\\| )defined __cplusplus\n\
4211+
(([ \t]*/\\*[^\n\
4212+
]*\n\
4213+
?[^\n\
4214+
]*\\*/\n\
4215+
)?([ \t]*#[ \t]*if[^\n\
4216+
]*\n\
4217+
)?([ \t]*typedef[ \t]+[^\n\
4218+
]*;\n\
4219+
)?[ \t]*#[ \t]*define __CFLOAT(16|32|64|128)X?[ \t]+)";
4220+
4221+
#define GLIBC_CXX_FLOATN_3_TEST_CT 1
4222+
static tTestDesc aGlibc_Cxx_Floatn_3Tests[] = {
4223+
{ TT_EGREP, zGlibc_Cxx_Floatn_3Select0, (regex_t*)NULL }, };
4224+
4225+
/*
4226+
* Fix Command Arguments for Glibc_Cxx_Floatn_3
4227+
*/
4228+
static const char* apzGlibc_Cxx_Floatn_3Patch[] = {
4229+
"format",
4230+
"%1(defined __cplusplus && !__GNUC_PREREQ (12, 2))\n\
4231+
%2",
4232+
(char*)NULL };
4233+
41084234
/* * * * * * * * * * * * * * * * * * * * * * * * * *
41094235
*
41104236
* Description of Glibc_Mutex_Init fix
@@ -10872,9 +10998,9 @@ static const char* apzX11_SprintfPatch[] = {
1087210998
*
1087310999
* List of all fixes
1087411000
*/
10875-
#define REGEX_COUNT 305
11001+
#define REGEX_COUNT 308
1087611002
#define MACH_LIST_SIZE_LIMIT 187
10877-
#define FIX_COUNT 267
11003+
#define FIX_COUNT 270
1087811004

1087911005
/*
1088011006
* Enumerate the fixes
@@ -10977,6 +11103,9 @@ typedef enum {
1097711103
GLIBC_C99_INLINE_2_FIXIDX,
1097811104
GLIBC_C99_INLINE_3_FIXIDX,
1097911105
GLIBC_C99_INLINE_4_FIXIDX,
11106+
GLIBC_CXX_FLOATN_1_FIXIDX,
11107+
GLIBC_CXX_FLOATN_2_FIXIDX,
11108+
GLIBC_CXX_FLOATN_3_FIXIDX,
1098011109
GLIBC_MUTEX_INIT_FIXIDX,
1098111110
GLIBC_STDINT_FIXIDX,
1098211111
GLIBC_STRNCPY_FIXIDX,
@@ -11635,6 +11764,21 @@ tFixDesc fixDescList[ FIX_COUNT ] = {
1163511764
GLIBC_C99_INLINE_4_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
1163611765
aGlibc_C99_Inline_4Tests, apzGlibc_C99_Inline_4Patch, 0 },
1163711766

11767+
{ zGlibc_Cxx_Floatn_1Name, zGlibc_Cxx_Floatn_1List,
11768+
apzGlibc_Cxx_Floatn_1Machs,
11769+
GLIBC_CXX_FLOATN_1_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
11770+
aGlibc_Cxx_Floatn_1Tests, apzGlibc_Cxx_Floatn_1Patch, 0 },
11771+
11772+
{ zGlibc_Cxx_Floatn_2Name, zGlibc_Cxx_Floatn_2List,
11773+
apzGlibc_Cxx_Floatn_2Machs,
11774+
GLIBC_CXX_FLOATN_2_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
11775+
aGlibc_Cxx_Floatn_2Tests, apzGlibc_Cxx_Floatn_2Patch, 0 },
11776+
11777+
{ zGlibc_Cxx_Floatn_3Name, zGlibc_Cxx_Floatn_3List,
11778+
apzGlibc_Cxx_Floatn_3Machs,
11779+
GLIBC_CXX_FLOATN_3_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
11780+
aGlibc_Cxx_Floatn_3Tests, apzGlibc_Cxx_Floatn_3Patch, 0 },
11781+
1163811782
{ zGlibc_Mutex_InitName, zGlibc_Mutex_InitList,
1163911783
apzGlibc_Mutex_InitMachs,
1164011784
GLIBC_MUTEX_INIT_TEST_CT, FD_MACH_ONLY,

fixincludes/inclhack.def

Lines changed: 96 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2015,6 +2015,102 @@ fix = {
20152015
EOT;
20162016
};
20172017

2018+
/* glibc-2.27 to 2.36 assume GCC 7 or later supports some or all
2019+
* of _Float{16,32,64,128} and _Float{32,64,128}x keywords for C,
2020+
* but doesn't for C++.
2021+
*/
2022+
fix = {
2023+
hackname = glibc_cxx_floatn_1;
2024+
files = bits/floatn.h, bits/floatn-common.h;
2025+
select = "^([ \t]*#[ \t]*if !__GNUC_PREREQ \\(7, 0\\) \\|\\| )defined __cplusplus\n"
2026+
"(([ \t]*/\\*[^\n]*\\*/\n)?"
2027+
"([ \t]*#[ \t]*if[^\n]*\n)?"
2028+
"[ \t]*#[ \t]*define __f(16|32|64|128)x?\\()";
2029+
c_fix = format;
2030+
c_fix_arg = "%1(defined __cplusplus && !__GNUC_PREREQ (12, 2))\n%2";
2031+
test_text = <<-EOT
2032+
# if !__GNUC_PREREQ (7, 0) || defined __cplusplus
2033+
/* The literal suffix f128 exists only since GCC 7.0. */
2034+
# define __f128(x) x##l
2035+
# else
2036+
# define __f128(x) x##f128
2037+
# endif
2038+
# if !__GNUC_PREREQ (7, 0) || defined __cplusplus
2039+
/* The literal suffix (f128) exist for powerpc only since GCC 7.0. */
2040+
# if __LDBL_MANT_DIG__ == 113
2041+
# define __f128(x) x##l
2042+
# else
2043+
# define __f128(x) x##q
2044+
# endif
2045+
# else
2046+
# define __f128(x) x##f128
2047+
# endif
2048+
# if !__GNUC_PREREQ (7, 0) || defined __cplusplus
2049+
# ifdef __NO_LONG_DOUBLE_MATH
2050+
# define __f64(x) x##l
2051+
# else
2052+
# define __f64(x) x
2053+
# endif
2054+
# else
2055+
# define __f64(x) x##f64
2056+
# endif
2057+
EOT;
2058+
};
2059+
2060+
fix = {
2061+
hackname = glibc_cxx_floatn_2;
2062+
files = bits/floatn.h, bits/floatn-common.h;
2063+
select = "^([ \t]*#[ \t]*if !__GNUC_PREREQ \\(7, 0\\) \\|\\| )defined __cplusplus\n"
2064+
"(([ \t]*/\\*[^\n]*\\*/\n)?"
2065+
"[ \t]*typedef[ \t]+[^\n]*[ \t]+_Float(16|32|64|128)x?([ \t]+__attribute__ \\(\\(__mode__ \\(__HF__\\)\\)\\))?;)";
2066+
c_fix = format;
2067+
c_fix_arg = "%1(defined __cplusplus && !__GNUC_PREREQ (12, 2))\n%2";
2068+
test_text = <<-EOT
2069+
# if !__GNUC_PREREQ (7, 0) || defined __cplusplus
2070+
typedef float _Float16 __attribute__ ((__mode__ (__HF__)));
2071+
# endif
2072+
# if !__GNUC_PREREQ (7, 0) || defined __cplusplus
2073+
typedef __float128 _Float128;
2074+
# endif
2075+
EOT;
2076+
};
2077+
2078+
fix = {
2079+
hackname = glibc_cxx_floatn_3;
2080+
files = bits/floatn.h, bits/floatn-common.h;
2081+
select = "^([ \t]*#[ \t]*if !__GNUC_PREREQ \\(7, 0\\) \\|\\| )defined __cplusplus\n"
2082+
"(([ \t]*/\\*[^\n]*\n?[^\n]*\\*/\n)?"
2083+
"([ \t]*#[ \t]*if[^\n]*\n)?"
2084+
"([ \t]*typedef[ \t]+[^\n]*;\n)?"
2085+
"[ \t]*#[ \t]*define __CFLOAT(16|32|64|128)X?[ \t]+)";
2086+
c_fix = format;
2087+
c_fix_arg = "%1(defined __cplusplus && !__GNUC_PREREQ (12, 2))\n%2";
2088+
test_text = <<-EOT
2089+
# if !__GNUC_PREREQ (7, 0) || defined __cplusplus
2090+
# define __CFLOAT128 _Complex long double
2091+
# else
2092+
# define __CFLOAT128 _Complex _Float128
2093+
# endif
2094+
# if !__GNUC_PREREQ (7, 0) || defined __cplusplus
2095+
/* Add a typedef for older GCC compilers which don't natively support
2096+
_Complex _Float128. */
2097+
typedef _Complex float __cfloat128 __attribute__ ((__mode__ (__TC__)));
2098+
# define __CFLOAT128 __cfloat128
2099+
# else
2100+
# define __CFLOAT128 _Complex _Float128
2101+
# endif
2102+
# if !__GNUC_PREREQ (7, 0) || defined __cplusplus
2103+
# ifdef __NO_LONG_DOUBLE_MATH
2104+
# define __CFLOAT64 _Complex long double
2105+
# else
2106+
# define __CFLOAT64 _Complex double
2107+
# endif
2108+
# else
2109+
# define __CFLOAT64 _Complex _Float64
2110+
# endif
2111+
EOT;
2112+
};
2113+
20182114
/* glibc-2.3.5 defines pthread mutex initializers incorrectly,
20192115
* so we replace them with versions that correspond to the
20202116
* definition.

fixincludes/tests/base/bits/floatn.h

Lines changed: 74 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,74 @@
1+
/* DO NOT EDIT THIS FILE.
2+
3+
It has been auto-edited by fixincludes from:
4+
5+
"fixinc/tests/inc/bits/floatn.h"
6+
7+
This had to be done to correct non-standard usages in the
8+
original, manufacturer supplied header file. */
9+
10+
11+
12+
#if defined( GLIBC_CXX_FLOATN_1_CHECK )
13+
# if !__GNUC_PREREQ (7, 0) || (defined __cplusplus && !__GNUC_PREREQ (12, 2))
14+
/* The literal suffix f128 exists only since GCC 7.0. */
15+
# define __f128(x) x##l
16+
# else
17+
# define __f128(x) x##f128
18+
# endif
19+
# if !__GNUC_PREREQ (7, 0) || (defined __cplusplus && !__GNUC_PREREQ (12, 2))
20+
/* The literal suffix (f128) exist for powerpc only since GCC 7.0. */
21+
# if __LDBL_MANT_DIG__ == 113
22+
# define __f128(x) x##l
23+
# else
24+
# define __f128(x) x##q
25+
# endif
26+
# else
27+
# define __f128(x) x##f128
28+
# endif
29+
# if !__GNUC_PREREQ (7, 0) || (defined __cplusplus && !__GNUC_PREREQ (12, 2))
30+
# ifdef __NO_LONG_DOUBLE_MATH
31+
# define __f64(x) x##l
32+
# else
33+
# define __f64(x) x
34+
# endif
35+
# else
36+
# define __f64(x) x##f64
37+
# endif
38+
#endif /* GLIBC_CXX_FLOATN_1_CHECK */
39+
40+
41+
#if defined( GLIBC_CXX_FLOATN_2_CHECK )
42+
# if !__GNUC_PREREQ (7, 0) || (defined __cplusplus && !__GNUC_PREREQ (12, 2))
43+
typedef float _Float16 __attribute__ ((__mode__ (__HF__)));
44+
# endif
45+
# if !__GNUC_PREREQ (7, 0) || (defined __cplusplus && !__GNUC_PREREQ (12, 2))
46+
typedef __float128 _Float128;
47+
# endif
48+
#endif /* GLIBC_CXX_FLOATN_2_CHECK */
49+
50+
51+
#if defined( GLIBC_CXX_FLOATN_3_CHECK )
52+
# if !__GNUC_PREREQ (7, 0) || (defined __cplusplus && !__GNUC_PREREQ (12, 2))
53+
# define __CFLOAT128 _Complex long double
54+
# else
55+
# define __CFLOAT128 _Complex _Float128
56+
# endif
57+
# if !__GNUC_PREREQ (7, 0) || (defined __cplusplus && !__GNUC_PREREQ (12, 2))
58+
/* Add a typedef for older GCC compilers which don't natively support
59+
_Complex _Float128. */
60+
typedef _Complex float __cfloat128 __attribute__ ((__mode__ (__TC__)));
61+
# define __CFLOAT128 __cfloat128
62+
# else
63+
# define __CFLOAT128 _Complex _Float128
64+
# endif
65+
# if !__GNUC_PREREQ (7, 0) || (defined __cplusplus && !__GNUC_PREREQ (12, 2))
66+
# ifdef __NO_LONG_DOUBLE_MATH
67+
# define __CFLOAT64 _Complex long double
68+
# else
69+
# define __CFLOAT64 _Complex double
70+
# endif
71+
# else
72+
# define __CFLOAT64 _Complex _Float64
73+
# endif
74+
#endif /* GLIBC_CXX_FLOATN_3_CHECK */

gcc/analyzer/supergraph.cc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,13 +29,13 @@ along with GCC; see the file COPYING3. If not see
2929
#include "ggc.h"
3030
#include "basic-block.h"
3131
#include "function.h"
32+
#include "gimple.h"
33+
#include "gimple-iterator.h"
3234
#include "gimple-fold.h"
3335
#include "tree-eh.h"
3436
#include "gimple-expr.h"
3537
#include "is-a.h"
3638
#include "timevar.h"
37-
#include "gimple.h"
38-
#include "gimple-iterator.h"
3939
#include "gimple-pretty-print.h"
4040
#include "tree-pretty-print.h"
4141
#include "graphviz.h"

0 commit comments

Comments
 (0)