1750a.h, [...] (POINTER_SIZE): Delete.
authorKaveh R. Ghazi <ghazi@caip.rutgers.edu>
Tue, 12 Mar 2002 05:28:21 +0000 (05:28 +0000)
committerKaveh Ghazi <ghazi@gcc.gnu.org>
Tue, 12 Mar 2002 05:28:21 +0000 (05:28 +0000)
* 1750a.h, a29k.h, arc.h, arm.h, c4x.h, clipper.h, cris.h, d30v.h,
dsp16xx.h, fr30.h, h8300.h, i370.h, i386.h, i860.h, i960.h,
m32r.h, m68hc11.h, m68k.h, m88k.h, mcore.h, mmix.h, mn10300.h,
ns32k.h, pa.h, pdp11.h, pj.h, romp.h, s390.h, stormy16.h,
v850.h, vax.h, we32k.h, xtensa.h (POINTER_SIZE): Delete.
* defaults.h (POINTER_SIZE): Define.
* doc/tm.texi (POINTER_SIZE): Document default.

From-SVN: r50634

36 files changed:
gcc/ChangeLog
gcc/config/1750a/1750a.h
gcc/config/a29k/a29k.h
gcc/config/arc/arc.h
gcc/config/arm/arm.h
gcc/config/c4x/c4x.h
gcc/config/clipper/clipper.h
gcc/config/cris/cris.h
gcc/config/d30v/d30v.h
gcc/config/dsp16xx/dsp16xx.h
gcc/config/fr30/fr30.h
gcc/config/h8300/h8300.h
gcc/config/i370/i370.h
gcc/config/i386/i386.h
gcc/config/i860/i860.h
gcc/config/i960/i960.h
gcc/config/m32r/m32r.h
gcc/config/m68hc11/m68hc11.h
gcc/config/m68k/m68k.h
gcc/config/m88k/m88k.h
gcc/config/mcore/mcore.h
gcc/config/mmix/mmix.h
gcc/config/mn10300/mn10300.h
gcc/config/ns32k/ns32k.h
gcc/config/pa/pa.h
gcc/config/pdp11/pdp11.h
gcc/config/pj/pj.h
gcc/config/romp/romp.h
gcc/config/s390/s390.h
gcc/config/stormy16/stormy16.h
gcc/config/v850/v850.h
gcc/config/vax/vax.h
gcc/config/we32k/we32k.h
gcc/config/xtensa/xtensa.h
gcc/defaults.h
gcc/doc/tm.texi

index 766650e096090859f3cb0ab7fe89908ddfb19163..cb3e3ee73ec55083ad87cdf57ba63777836aba5b 100644 (file)
@@ -1,3 +1,13 @@
+2002-03-12  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
+
+       * 1750a.h, a29k.h, arc.h, arm.h, c4x.h, clipper.h, cris.h, d30v.h,
+       dsp16xx.h, fr30.h, h8300.h, i370.h, i386.h, i860.h, i960.h,
+       m32r.h, m68hc11.h, m68k.h, m88k.h, mcore.h, mmix.h, mn10300.h,
+       ns32k.h, pa.h, pdp11.h, pj.h, romp.h, s390.h, stormy16.h,
+       v850.h, vax.h, we32k.h, xtensa.h (POINTER_SIZE): Delete.
+       * defaults.h (POINTER_SIZE): Define.
+       * doc/tm.texi (POINTER_SIZE): Document default.
+
 2002-03-12  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
 
        * mn10200.h (PTRDIFF_TYPE): Change it to a signed type.
index f4f6d519ee5d6a3369c1202573400e06c44388df..ce61f65670f59f086565c2f7eb8d8f4b2ae2abaa 100644 (file)
@@ -96,10 +96,6 @@ extern const char *const sectname[4];
 /* Width of a word, in units (bytes).  */
 #define UNITS_PER_WORD       1
 
-/* Width in bits of a pointer.
-   See also the macro `Pmode' defined below.  */
-#define POINTER_SIZE         16
-
 #define PTRDIFF_TYPE        "int"
 
 /* Type to use for `size_t'. If undefined, uses `long unsigned int'.  */
index 5292d8fd10c06baf0c58a43f3ae0c53854868784..3b8712ee5be93634445088e51e6caad61fab5d5d 100644 (file)
@@ -168,10 +168,6 @@ extern int target_flags;
 /* Width of a word, in units (bytes).  */
 #define UNITS_PER_WORD 4
 
-/* Width in bits of a pointer.
-   See also the macro `Pmode' defined below.  */
-#define POINTER_SIZE 32
-
 /* Allocation boundary (in *bits*) for storing arguments in argument list.  */
 #define PARM_BOUNDARY 32
 
index f536126acb1b0024f750a1fa77fd41efd41d0279..4ba19f1eaf6644275c71c89b9c1f2ef0cb2fdb7d 100644 (file)
@@ -209,10 +209,6 @@ if (GET_MODE_CLASS (MODE) == MODE_INT              \
 /* Likewise, if the function return value is promoted.  */
 #define PROMOTE_FUNCTION_RETURN
 
-/* Width in bits of a pointer.
-   See also the macro `Pmode' defined below.  */
-#define POINTER_SIZE 32
-
 /* Allocation boundary (in *bits*) for storing arguments in argument list.  */
 #define PARM_BOUNDARY 32
 
index 9a27c533c2e287124960ec3be858898f4a34b90a..c180e267b38138401e58a84d1dfa1c4f03d71855 100644 (file)
@@ -690,8 +690,6 @@ extern int arm_is_6_or_7;
 
 #define UNITS_PER_WORD 4
 
-#define POINTER_SIZE  32
-
 #define PARM_BOUNDARY          32
 
 #define STACK_BOUNDARY  32
index 9ada032edc0b4e0c56083107cfa6bf5ea1834193..ba63e3cb9b78289aa5e67cb0fd3ab45744934f1c 100644 (file)
@@ -340,7 +340,6 @@ extern const char *c4x_rpts_cycles_string, *c4x_cpu_version_string;
 
 #define BITS_PER_UNIT          32
 #define UNITS_PER_WORD         1
-#define POINTER_SIZE           32
 #define PARM_BOUNDARY          32
 #define STACK_BOUNDARY         32
 #define FUNCTION_BOUNDARY      32
index 6ae383db3a305d1ab8c948935a21dfc5cb628e49..4f6e65731d439a5e2c6ceae9abbcfd42a35828cb 100644 (file)
@@ -72,10 +72,6 @@ extern int target_flags;
 /* Width of a word, in units (bytes).  */
 #define UNITS_PER_WORD 4
 
-/* Width in bits of a pointer.
-   See also the macro `Pmode' defined below.  */
-#define POINTER_SIZE 32
-
 /* Allocation boundary (in *bits*) for storing arguments in argument list.  */
 #define PARM_BOUNDARY 32
 
index ac3d521a2dc2154272a99eaf222f4f490eb29532..235777db85e26de3621c03128bc929a250a32634 100644 (file)
@@ -477,8 +477,6 @@ extern int target_flags;
 
 #define UNITS_PER_WORD 4
 
-#define POINTER_SIZE 32
-
 /* A combination of defining PROMOTE_MODE, PROMOTE_FUNCTION_ARGS,
    PROMOTE_FOR_CALL_ONLY and *not* defining PROMOTE_PROTOTYPES gives the
    best code size and speed for gcc, ipps and products in gcc-2.7.2.  */
index 1ef08ac2ca2ce2382192619760f8aa81ceddd526..122e8b25b10bb4cedf2208de4978ea0e185140f3 100644 (file)
@@ -163,8 +163,6 @@ extern int target_flags;
 
 #define UNITS_PER_WORD 4
 
-#define POINTER_SIZE 32
-
 #define PROMOTE_MODE(MODE,UNSIGNEDP,TYPE)                              \
 do {                                                                   \
   if (GET_MODE_CLASS (MODE) == MODE_INT                                        \
index a9812830454b66dc30a7755cb0a9800ee0bfa9eb..ec8f2b799aec4d9b10484db41c6e2225f8ec97b6 100644 (file)
@@ -317,10 +317,6 @@ extern int target_flags;
 /* Width of a word, in units (bytes).  */
 #define UNITS_PER_WORD 1
 
-/* Width in bits of a pointer.
-   See also the macro `Pmode' defined below.  */
-#define POINTER_SIZE 16
-
 /* Allocation boundary (in *bits*) for storing pointers in memory.  */
 #define POINTER_BOUNDARY 16
 
index 4d04bc678c0e15d89e0dde60e5e7b31b991fccec..cc59cd4c966ab75b5edc3786bb107152b0b3fe2f 100644 (file)
@@ -85,8 +85,6 @@ extern int target_flags;
 
 #define UNITS_PER_WORD         4
 
-#define POINTER_SIZE   32
-
 #define PROMOTE_MODE(MODE,UNSIGNEDP,TYPE)      \
   do                                           \
     {                                          \
index f5b54db6b31a0594e07f7d9f531c2384e6d1c528..79562fcd6021ecdb62d75de05ff958257f0f6d77 100644 (file)
@@ -201,10 +201,6 @@ extern int target_flags;
 #define UNITS_PER_WORD         (TARGET_H8300H || TARGET_H8300S ? 4 : 2)
 #define MIN_UNITS_PER_WORD     2
 
-/* Width in bits of a pointer.
-   See also the macro `Pmode' defined below.  */
-#define POINTER_SIZE (TARGET_H8300H || TARGET_H8300S ? 32 : 16)
-
 #define SHORT_TYPE_SIZE        16
 #define INT_TYPE_SIZE          (TARGET_INT32 ? 32 : 16)
 #define LONG_TYPE_SIZE         32
index 628a021dfd260a54e19cb3fe58bd0b2099507456..112758c7ad00a0340ae930a188d889ad03a41e0b 100644 (file)
@@ -90,10 +90,6 @@ extern int mvs_function_name_length;
 
 #define UNITS_PER_WORD 4
 
-/* Width in bits of a pointer.  See also the macro `Pmode' defined below.  */
-
-#define POINTER_SIZE 32
-
 /* Allocation boundary (in *bits*) for storing pointers in memory.  */
 
 #define POINTER_BOUNDARY 32
index 023a9dc14646b12045b116d05954fda532c30933..50e8dd5f6cf1204775b9016d0542d14d9dde098a 100644 (file)
@@ -718,10 +718,6 @@ extern int ix86_arch;
 #define UNITS_PER_WORD (TARGET_64BIT ? 8 : 4)
 #define MIN_UNITS_PER_WORD 4
 
-/* Width in bits of a pointer.
-   See also the macro `Pmode' defined below.  */
-#define POINTER_SIZE BITS_PER_WORD
-
 /* Allocation boundary (in *bits*) for storing arguments in argument list.  */
 #define PARM_BOUNDARY BITS_PER_WORD
 
index 4bba584969026d4ea90155560532e0dea492ef40..f9fd62c88d6a2205197b8b0c21221e6f4f04a762 100644 (file)
@@ -85,10 +85,6 @@ extern int target_flags;
 /* Width of a word, in units (bytes).  */
 #define UNITS_PER_WORD 4
 
-/* Width in bits of a pointer.
-   See also the macro `Pmode' defined below.  */
-#define POINTER_SIZE 32
-
 /* Allocation boundary (in *bits*) for storing arguments in argument list.  */
 #define PARM_BOUNDARY 32
 
index a9f7e256c0ac2c5d5ee9faa9839012171c5fbd80..794b3c90579ff2767c6f2ffe026c60e79b4a6687 100644 (file)
@@ -399,9 +399,6 @@ extern int target_flags;
 /* Width of a word, in units (bytes).  */
 #define UNITS_PER_WORD 4
 
-/* Width in bits of a pointer.  See also the macro `Pmode' defined below.  */
-#define POINTER_SIZE 32
-
 /* Width in bits of a long double.  Define to 96, and let
    ROUND_TYPE_ALIGN adjust the alignment for speed.  */
 #define        LONG_DOUBLE_TYPE_SIZE (TARGET_LONG_DOUBLE_64 ? 64 : 96)
index ef51ce1dc64f5ba71d2aef46c7d91a807d6e5eda..8d9aeebb7c772b8befa2df1bd6f70139a0778244 100644 (file)
@@ -462,10 +462,6 @@ extern enum m32r_sdata m32r_sdata;
    PROMOTE_MODE.  */
 /*#define PROMOTE_FUNCTION_RETURN*/
 
-/* Width in bits of a pointer.
-   See also the macro `Pmode' defined below.  */
-#define POINTER_SIZE 32
-
 /* Allocation boundary (in *bits*) for storing arguments in argument list.  */
 #define PARM_BOUNDARY 32
 
index cdb28e796c6bcbea58eb28547382bd01e3518319..b522c849814d4e18dfa4ab258fef85a7d2e2684a 100644 (file)
@@ -244,9 +244,6 @@ extern const struct processor_costs *m68hc11_cost;
 /* Width of a word, in units (bytes).  */
 #define UNITS_PER_WORD         2
 
-/* Width in bits of a pointer.  See also the macro `Pmode' defined below.  */
-#define POINTER_SIZE           16
-
 /* Definition of size_t.  This is really an unsigned short as the
    68hc11 only handles a 64K address space.  */
 #define SIZE_TYPE               "short unsigned int"
index 9d89fe74d039a570577bc7f7d3ea1e9172db514d..9a20494aa3851fd65f98d628e72bd30360a154e7 100644 (file)
@@ -318,10 +318,6 @@ extern int target_flags;
 /* Width of a word, in units (bytes).  */
 #define UNITS_PER_WORD 4
 
-/* Width in bits of a pointer.
-   See also the macro `Pmode' defined below.  */
-#define POINTER_SIZE 32
-
 /* Allocation boundary (in *bits*) for storing arguments in argument list.  */
 #define PARM_BOUNDARY (TARGET_SHORT ? 16 : 32)
 
index 8e82c5c8eaac8547ff6517b36d6895a8920eb9d7..2373b9dbbcaf13dc0a4a56a2cd87b23219f90b7b 100644 (file)
@@ -338,10 +338,6 @@ extern int flag_pic;                               /* -fpic */
 /* Width of a word, in units (bytes).  */
 #define UNITS_PER_WORD 4
 
-/* Width in bits of a pointer.
-   See also the macro `Pmode' defined below.  */
-#define POINTER_SIZE 32
-
 /* Allocation boundary (in *bits*) for storing arguments in argument list.  */
 #define PARM_BOUNDARY 32
 
index 1de6fbc8d678b13d38fa0201113a9f299bf0814e..40f0ab20598657de1aa0b94259fdd5c914ac0a68 100644 (file)
@@ -248,10 +248,6 @@ extern const char * mcore_stack_increment_string;
 /* Width of a word, in units (bytes).  */
 #define UNITS_PER_WORD 4
 
-/* Width in bits of a pointer.
-   See also the macro `Pmode' defined below.  */
-#define POINTER_SIZE  32
-
 /* A C expression for the size in bits of the type `long long' on the
    target machine.  If you don't define this, the default is two
    words.  */
index 53521e8dea2604682289dfeab94aeb91525af009..45c474a8e822ea537b6f9a854fe84b4a768dac54 100644 (file)
@@ -254,7 +254,6 @@ extern int target_flags;
 #define WORDS_BIG_ENDIAN 1
 #define FLOAT_WORDS_BIG_ENDIAN 1
 #define UNITS_PER_WORD 8
-#define POINTER_SIZE 64
 
 /* FIXME: This macro is correlated to MAX_FIXED_MODE_SIZE in that
    e.g. this macro must not be 8 (default, UNITS_PER_WORD) when
index a0fe0cd833fa525c0f1fbdd3f5ecd78e2da719b1..2c1dc7af05b79c31fe3818ea3171d57d5f8273de 100644 (file)
@@ -93,10 +93,6 @@ extern int target_flags;
 /* Width of a word, in units (bytes).  */
 #define UNITS_PER_WORD         4
 
-/* Width in bits of a pointer.
-   See also the macro `Pmode' defined below.  */
-#define POINTER_SIZE           32
-
 /* Allocation boundary (in *bits*) for storing arguments in argument list.  */
 #define PARM_BOUNDARY          32
 
index 00d3aa7b023fa18e4aa791ad58e3d1bfb9b3b52f..04bf0b2e949e083f0fc5d116b3c42a4f532fe473 100644 (file)
@@ -199,10 +199,6 @@ while (0)
 /* Width of a word, in units (bytes).  */
 #define UNITS_PER_WORD 4
 
-/* Width in bits of a pointer.
-   See also the macro `Pmode' defined below.  */
-#define POINTER_SIZE 32
-
 /* Allocation boundary (in *bits*) for storing arguments in argument list.  */
 #define PARM_BOUNDARY 32
 
index b25b33fbf301521eddb234c6c862323047c21285..5d0955f57b9f1ea3cd1a9b800f5cec8b10944109 100644 (file)
@@ -393,10 +393,6 @@ extern int target_flags;
 #define UNITS_PER_WORD (TARGET_64BIT ? 8 : 4)
 #define MIN_UNITS_PER_WORD 4
 
-/* Width in bits of a pointer.
-   See also the macro `Pmode' defined below.  */
-#define POINTER_SIZE BITS_PER_WORD
-
 /* Allocation boundary (in *bits*) for storing arguments in argument list.  */
 #define PARM_BOUNDARY BITS_PER_WORD
 
index 38ee43e61d573f0d739a6f80d413870ce5d1e7c8..53888ee03f812b87831bf9833b6033c992a9a07b 100644 (file)
@@ -173,10 +173,6 @@ extern int target_flags;
    DImode or Dfmode ...*/
 #define MAX_FIXED_MODE_SIZE 64 
 
-/* Width in bits of a pointer.
-   See also the macro `Pmode' defined below.  */
-#define POINTER_SIZE 16
-
 /* Allocation boundary (in *bits*) for storing pointers in memory.  */
 #define POINTER_BOUNDARY 16
 
index 5c0095e08df4dee642ed34e8df35ef6d2ee931f3..294f2fea98351b6cbb357923172f2ffa6cd7afa6 100644 (file)
@@ -134,10 +134,6 @@ extern int target_flags;
 /* Width of a word, in units (bytes).  */
 #define UNITS_PER_WORD  4
 
-/* Width in bits of a pointer.
-   See also the macro `Pmode' defined below.  */
-#define POINTER_SIZE  32
-
 /* Allocation boundary (in *bits*) for storing arguments in argument list.  */
 #define PARM_BOUNDARY   32
 
index 081b5181a491466ad5b847720e7272ad690ef55e..07150c0a4fb0c781412e8c50959683101e9b2903 100644 (file)
@@ -93,10 +93,6 @@ extern int target_flags;
 /* Width of a word, in units (bytes).  */
 #define UNITS_PER_WORD 4
 
-/* Width in bits of a pointer.
-   See also the macro `Pmode' defined below.  */
-#define POINTER_SIZE 32
-
 /* Allocation boundary (in *bits*) for storing arguments in argument list.  */
 #define PARM_BOUNDARY 32
 
index bdfc4557d6f71f9f9e7186c21f9b2dc15049614f..8ab287b2df7cf8547b24854e986ed28b92b91a13 100644 (file)
@@ -113,10 +113,6 @@ extern int current_function_outgoing_args_size;
 #define UNITS_PER_WORD (TARGET_64BIT ? 8 : 4)
 #define MIN_UNITS_PER_WORD 4
 
-/* Width in bits of a pointer.  See also the macro `Pmode' defined below.  */
-
-#define POINTER_SIZE (TARGET_64BIT ? 64 : 32)
-
 /* A C expression for the size in bits of the type `short' on the
    target machine.  If you don't define this, the default is half a
    word.  (If this would be less than one storage unit, it is
index 846ac246a123c828b6da91df77cb3071d920b60e..099fac0d8cba2a8a2711389a3a1e82fa97244f16 100644 (file)
@@ -91,8 +91,6 @@ extern int target_flags;
 
 #define UNITS_PER_WORD 2
 
-#define POINTER_SIZE 16
-
 #define PROMOTE_MODE(MODE,UNSIGNEDP,TYPE)                              \
 do {                                                                   \
   if (GET_MODE_CLASS (MODE) == MODE_INT                                        \
index 175fc9ffd5e68a45b9fd9ecb2282ad7af94bd66d..077572bd27aa02d76a6baf25b99981a4d278b61c 100644 (file)
@@ -231,10 +231,6 @@ extern struct small_memory_info small_memory[(int)SMALL_MEMORY_max];
 /* Width of a word, in units (bytes).  */
 #define UNITS_PER_WORD         4
 
-/* Width in bits of a pointer.
-   See also the macro `Pmode' defined below.  */
-#define POINTER_SIZE           32
-
 /* Define this macro if it is advisable to hold scalars in registers
    in a wider mode than that declared by the program.  In such cases,
    the value is constrained to be within the bounds of the declared
index 87f405c76a90c7eaa4d7921e27caa6c12766d9e6..72c7f3dfc3a783238d9bf39e5a8020b975959d75 100644 (file)
@@ -106,10 +106,6 @@ extern int target_flags;
 /* Width of a word, in units (bytes).  */
 #define UNITS_PER_WORD 4
 
-/* Width in bits of a pointer.
-   See also the macro `Pmode' defined below.  */
-#define POINTER_SIZE 32
-
 /* Allocation boundary (in *bits*) for storing arguments in argument list.  */
 #define PARM_BOUNDARY 32
 
index b3ff2062bb930dfc184e94780a5039fe2bc40217..eec05ab32116ffb4479ef57d42d3e57ea31d911d 100644 (file)
@@ -65,10 +65,6 @@ extern int target_flags;
 /* Width of a word, in units (bytes).  */
 #define UNITS_PER_WORD 4
 
-/* Width in bits of a pointer.
-   See also the macro `Pmode' defined below.  */
-#define POINTER_SIZE 32
-
 /* Allocation boundary (in *bits*) for storing arguments in argument list.  */
 #define PARM_BOUNDARY 32
 
index 1083ebc71db33addc63de9262aaaff81dc5dbd5e..7d581b3f2a81ca5ffe84575f40874e3e434e33df 100644 (file)
@@ -250,7 +250,6 @@ extern unsigned xtensa_current_frame_size;
 #define FLOAT_TYPE_SIZE 32
 #define DOUBLE_TYPE_SIZE 64
 #define LONG_DOUBLE_TYPE_SIZE 64
-#define POINTER_SIZE 32
 
 /* Tell the preprocessor the maximum size of wchar_t.  */
 #ifndef MAX_WCHAR_TYPE_SIZE
index ffec32c626665be9757e8481948dc086c82cd23d..1597d52a97cd429f76e2aa33e249d8e79781ed35 100644 (file)
@@ -329,6 +329,11 @@ do {                                                               \
 #define LONG_DOUBLE_TYPE_SIZE (BITS_PER_WORD * 2)
 #endif
 
+/* Width in bits of a pointer.  Mind the value of the macro `Pmode'.  */
+#ifndef POINTER_SIZE
+#define POINTER_SIZE BITS_PER_WORD
+#endif
+
 #ifndef BUILD_VA_LIST_TYPE
 #define BUILD_VA_LIST_TYPE(X) ((X) = ptr_type_node)
 #endif
index ad7917eca4b910da8e1a9248ab26e4c572cbb739..20d9fa125662d9866c5d89f2973bccc0ffa828aa 100644 (file)
@@ -951,7 +951,8 @@ smallest value that @code{UNITS_PER_WORD} can have at run-time.
 @item POINTER_SIZE
 Width of a pointer, in bits.  You must specify a value no wider than the
 width of @code{Pmode}.  If it is not equal to the width of @code{Pmode},
-you must define @code{POINTERS_EXTEND_UNSIGNED}.
+you must define @code{POINTERS_EXTEND_UNSIGNED}.  If you do not specify
+a value the default is @code{BITS_PER_WORD}.
 
 @findex POINTERS_EXTEND_UNSIGNED
 @item POINTERS_EXTEND_UNSIGNED