summaryrefslogtreecommitdiffstats
path: root/fixincludes
diff options
context:
space:
mode:
authorIlya Leoshkevich <iii@linux.ibm.com>2020-12-11 00:54:49 +0100
committerIlya Leoshkevich <iii@linux.ibm.com>2020-12-14 21:57:32 +0100
commit057dc81f820bfa3b1f9c676c416421effa5c3661 (patch)
tree7d2b54af3693d67a7166d70d9abefada429301b4 /fixincludes
parentCorrect/improve maybe_emit_free_warning (PR middle-end/98166, PR c++/57111, P... (diff)
downloadgcc-057dc81f820bfa3b1f9c676c416421effa5c3661.tar.gz
gcc-057dc81f820bfa3b1f9c676c416421effa5c3661.tar.bz2
gcc-057dc81f820bfa3b1f9c676c416421effa5c3661.tar.xz
aix: Fixinclude updates [PR98208]
After 92648faa1cb2 ("aix: Fixinclude") make check-fixincludes began to fail (at least on gcc121 machine). Fix by updating fixincludes/tests and rerunning genfixes. Co-developed-by: Nathan Sidwell <nathan@acm.org> fixincludes/ChangeLog: 2020-12-11 Ilya Leoshkevich <iii@linux.ibm.com> * fixincl.x: Rerun genfixes. * inclhack.def(aix_physadr_t): Change test_text to something that needs to be replaced. * tests/base/sys/types.h(aix_physadr_t): Add expectation.
Diffstat (limited to 'fixincludes')
-rw-r--r--fixincludes/fixincl.x4
-rw-r--r--fixincludes/inclhack.def2
-rw-r--r--fixincludes/tests/base/sys/types.h5
3 files changed, 8 insertions, 3 deletions
diff --git a/fixincludes/fixincl.x b/fixincludes/fixincl.x
index 21439652bce..cc17edfba0b 100644
--- a/fixincludes/fixincl.x
+++ b/fixincludes/fixincl.x
@@ -2,11 +2,11 @@
2 * 2 *
3 * DO NOT EDIT THIS FILE (fixincl.x) 3 * DO NOT EDIT THIS FILE (fixincl.x)
4 * 4 *
5 * It has been AutoGen-ed October 21, 2020 at 10:43:22 AM by AutoGen 5.18.16 5 * It has been AutoGen-ed December 9, 2020 at 11:16:08 AM by AutoGen 5.18.16
6 * From the definitions inclhack.def 6 * From the definitions inclhack.def
7 * and the template file fixincl 7 * and the template file fixincl
8 */ 8 */
9/* DO NOT SVN-MERGE THIS FILE, EITHER Wed Oct 21 10:43:22 EDT 2020 9/* DO NOT SVN-MERGE THIS FILE, EITHER Wed Dec 9 11:16:08 EST 2020
10 * 10 *
11 * You must regenerate it. Use the ./genfixes script. 11 * You must regenerate it. Use the ./genfixes script.
12 * 12 *
diff --git a/fixincludes/inclhack.def b/fixincludes/inclhack.def
index 80c9adfb07c..3a4cfe06542 100644
--- a/fixincludes/inclhack.def
+++ b/fixincludes/inclhack.def
@@ -731,7 +731,7 @@ fix = {
731 select = "typedef[ \t]*struct[ \t]*([{][^}]*[}][ \t]*\\*[ \t]*physadr_t;)"; 731 select = "typedef[ \t]*struct[ \t]*([{][^}]*[}][ \t]*\\*[ \t]*physadr_t;)";
732 c_fix = format; 732 c_fix = format;
733 c_fix_arg = "typedef struct __physadr_s %1"; 733 c_fix_arg = "typedef struct __physadr_s %1";
734 test_text = "typedef struct __physadr_s {"; 734 test_text = "typedef struct { random stuff } * physadr_t;";
735}; 735};
736 736
737/* 737/*
diff --git a/fixincludes/tests/base/sys/types.h b/fixincludes/tests/base/sys/types.h
index 683b5e93ecd..7340e76b175 100644
--- a/fixincludes/tests/base/sys/types.h
+++ b/fixincludes/tests/base/sys/types.h
@@ -9,6 +9,11 @@
9 9
10 10
11 11
12#if defined( AIX_PHYSADR_T_CHECK )
13typedef struct __physadr_s { random stuff } * physadr_t;
14#endif /* AIX_PHYSADR_T_CHECK */
15
16
12#if defined( GNU_TYPES_CHECK ) 17#if defined( GNU_TYPES_CHECK )
13#if !defined(_GCC_PTRDIFF_T) 18#if !defined(_GCC_PTRDIFF_T)
14#define _GCC_PTRDIFF_T 19#define _GCC_PTRDIFF_T