summaryrefslogtreecommitdiff
path: root/gcc/fixinc/inclhack.def
diff options
context:
space:
mode:
authorBruce Korb <bkorb@gnu.org>2000-07-20 13:29:29 +0000
committerBruce Korb <korbb@gcc.gnu.org>2000-07-20 13:29:29 +0000
commita83b3e4f5de7fc6fce1bdd98fd38c0cd461598fb (patch)
tree985d3661fffda384d0c795f2e94d26bcc1bc9413 /gcc/fixinc/inclhack.def
parent038cc6b42081d9b6135e5975faf9ee6c01f03546 (diff)
downloadgcc-a83b3e4f5de7fc6fce1bdd98fd38c0cd461598fb.tar.gz
use platform specific types in gnu_type_fix
From-SVN: r35143
Diffstat (limited to 'gcc/fixinc/inclhack.def')
-rw-r--r--gcc/fixinc/inclhack.def26
1 files changed, 10 insertions, 16 deletions
diff --git a/gcc/fixinc/inclhack.def b/gcc/fixinc/inclhack.def
index 0dd80f5b3d6..5364bd42b01 100644
--- a/gcc/fixinc/inclhack.def
+++ b/gcc/fixinc/inclhack.def
@@ -2520,7 +2520,13 @@ fix = {
/*
* Fix these files to use the same types that we think they should.
* Each type must be present in two places: the select clause
- * and a "type_map" entry below.
+ * and a "type_map" entry below. The types mapped to are found from
+ * the "tm.h" header, which is a generated file that refers to
+ * a header in the gcc/config/ tree. Keep these in sync!!
+ *
+ * Also, "wchar" is first and known to need guarding against __cplusplus.
+ * Keep *that* in mind, too, when hacking the gnu_type_fix routine
+ * in fixfixes.c.
*/
fix = {
hackname = gnu_types;
@@ -2539,21 +2545,9 @@ fix = {
"typedef ushort_t wchar_t; /* ushort_t */";
};
-type_map = {
- type_name = ptrdiff;
- gnu_type = "long int";
-};
-
-type_map = {
- type_name = size;
- gnu_type = "long unsigned int";
-};
-
-type_map = {
- type_name = wchar;
- gnu_type = int;
- cxx_type;
-};
+type_map = wchar;
+type_map = ptrdiff;
+type_map = size;
/*