Commit 4a7510cb by Zack Weinberg

c-decl.c, decl.c (start_decl): Point users of the old initialized- typedef extension at __typeof__.

	* c-decl.c, cp/decl.c (start_decl): Point users of the old initialized-
	typedef extension at __typeof__.

From-SVN: r58297
parent 643c45e7
2002-10-18 Zack Weinberg <zack@codesourcery.com>
* c-decl.c (start_decl): Point users of the old initialized-
typedef extension at __typeof__.
2002-10-18 Richard Henderson <rth@redhat.com> 2002-10-18 Richard Henderson <rth@redhat.com>
* real.c (cmp_significand_0, rtd_divmod, ten_to_mptwo): New. * real.c (cmp_significand_0, rtd_divmod, ten_to_mptwo): New.
...@@ -65,11 +70,11 @@ ...@@ -65,11 +70,11 @@
* config/vax/vax.h (ASM_OUTPUT_MI_THUNK): Rename to ... * config/vax/vax.h (ASM_OUTPUT_MI_THUNK): Rename to ...
(TARGET_ASM_OUTPUT_MI_THUNK): ... this. (TARGET_ASM_OUTPUT_MI_THUNK): ... this.
* doc/tm.texi: Adjust documentation. * doc/tm.texi: Adjust documentation.
2002-10-18 Jason Thorpe <thorpej@wasabisystems.com> 2002-10-18 Jason Thorpe <thorpej@wasabisystems.com>
* config/netbsd.h (NETBSD_ENABLE_EXECUTE_STACK): Define * config/netbsd.h (NETBSD_ENABLE_EXECUTE_STACK): Define
__enable_execute_stack function. __enable_execute_stack function.
* config/alpha/netbsd.h (TRANSFER_FROM_TRAMPOLINE): Define * config/alpha/netbsd.h (TRANSFER_FROM_TRAMPOLINE): Define
as NETBSD_ENABLE_EXECUTE_STACK. as NETBSD_ENABLE_EXECUTE_STACK.
* config/i386/netbsd-elf.h (TRANSFER_FROM_TRAMPOLINE): Ditto. * config/i386/netbsd-elf.h (TRANSFER_FROM_TRAMPOLINE): Ditto.
...@@ -167,14 +172,14 @@ Wed Oct 16 15:01:29 CEST 2002 Jan Hubicka <jh@suse.cz> ...@@ -167,14 +172,14 @@ Wed Oct 16 15:01:29 CEST 2002 Jan Hubicka <jh@suse.cz>
TEXT_SECTION_ASM_OP, DATA_SECTION_ASM_OP, BSS_SECTION_ASM_OP, TEXT_SECTION_ASM_OP, DATA_SECTION_ASM_OP, BSS_SECTION_ASM_OP,
GLOBAL_ASM_OP, ASM_OUTPUT_MI_THUNK): Move to s390.h. GLOBAL_ASM_OP, ASM_OUTPUT_MI_THUNK): Move to s390.h.
* config/s390/s390.h (ASM_COMMENT_START, LOCAL_LABEL_PREFIX, * config/s390/s390.h (ASM_COMMENT_START, LOCAL_LABEL_PREFIX,
ASM_FORMAT_PRIVATE_NAME, ASM_OUTPUT_ALIGN, ASM_OUTPUT_SKIP, ASM_FORMAT_PRIVATE_NAME, ASM_OUTPUT_ALIGN, ASM_OUTPUT_SKIP,
ASM_OUTPUT_ALIGNED_BSS, TEXT_SECTION_ASM_OP, DATA_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS, TEXT_SECTION_ASM_OP, DATA_SECTION_ASM_OP,
BSS_SECTION_ASM_OP): Move from linux.h. BSS_SECTION_ASM_OP): Move from linux.h.
(ASM_OUTPUT_ADDR_VEC_ELT, ASM_OUTPUT_ADDR_DIFF_ELT): Likewise. (ASM_OUTPUT_ADDR_VEC_ELT, ASM_OUTPUT_ADDR_DIFF_ELT): Likewise.
Also, use ASM_GENERATE_INTERNAL_LABEL instead of LPREFIX. Also, use ASM_GENERATE_INTERNAL_LABEL instead of LPREFIX.
* config/s390/s390.c (s390_function_profiler): Use * config/s390/s390.c (s390_function_profiler): Use
ASM_GENERATE_INTERNAL_LABEL instead of LPREFIX. ASM_GENERATE_INTERNAL_LABEL instead of LPREFIX.
2002-10-15 Richard Henderson <rth@redhat.com> 2002-10-15 Richard Henderson <rth@redhat.com>
...@@ -186,10 +191,10 @@ Wed Oct 16 15:01:29 CEST 2002 Jan Hubicka <jh@suse.cz> ...@@ -186,10 +191,10 @@ Wed Oct 16 15:01:29 CEST 2002 Jan Hubicka <jh@suse.cz>
(REAL_VALUE_TO_DECIMAL): Remove. (REAL_VALUE_TO_DECIMAL): Remove.
* c-common.c, c-pretty-print.c, print-rtl.c, print-tree.c, * c-common.c, c-pretty-print.c, print-rtl.c, print-tree.c,
sched-vis.c, config/arc/arc.c, config/c4x/c4x.c, config/fr30/fr30.c, sched-vis.c, config/arc/arc.c, config/c4x/c4x.c, config/fr30/fr30.c,
config/i370/i370.h, config/i386/i386.c, config/i960/i960.c, config/i370/i370.h, config/i386/i386.c, config/i960/i960.c,
config/ip2k/ip2k.c, config/m32r/m32r.c, config/m68hc11/m68hc11.c, config/ip2k/ip2k.c, config/m32r/m32r.c, config/m68hc11/m68hc11.c,
config/m68k/hp320.h, config/m68k/m68k.h, config/m68k/sun2o4.h, config/m68k/hp320.h, config/m68k/m68k.h, config/m68k/sun2o4.h,
config/m68k/sun3.h, config/mips/mips.c, config/ns32k/ns32k.c, config/m68k/sun3.h, config/mips/mips.c, config/ns32k/ns32k.c,
config/pdp11/pdp11.h, config/vax/vax.h: Update all callers to config/pdp11/pdp11.h, config/vax/vax.h: Update all callers to
use real_to_decimal directly, and with the proper arguments. use real_to_decimal directly, and with the proper arguments.
* doc/tm.texi (REAL_VALUE_TO_DECIMAL): Remove. * doc/tm.texi (REAL_VALUE_TO_DECIMAL): Remove.
...@@ -221,7 +226,7 @@ Tue Oct 15 22:08:35 CEST 2002 Jan Hubicka <jh@suse.cz> ...@@ -221,7 +226,7 @@ Tue Oct 15 22:08:35 CEST 2002 Jan Hubicka <jh@suse.cz>
(struct constant_pool): Add members pool_insn, insns, and anchor. (struct constant_pool): Add members pool_insn, insns, and anchor.
Remove member last_insn. Remove member last_insn.
(s390_start_pool): Initialize them. (s390_start_pool): Initialize them.
(s390_end_pool): Emit pool placeholder insn. (s390_end_pool): Emit pool placeholder insn.
(s390_add_pool_insn): New function. (s390_add_pool_insn): New function.
(s390_find_pool): Use insns bitmap instead of addresses. (s390_find_pool): Use insns bitmap instead of addresses.
(s390_dump_pool): Replace placeholder insn. Emit anchor. (s390_dump_pool): Replace placeholder insn. Emit anchor.
...@@ -233,7 +238,7 @@ Tue Oct 15 22:08:35 CEST 2002 Jan Hubicka <jh@suse.cz> ...@@ -233,7 +238,7 @@ Tue Oct 15 22:08:35 CEST 2002 Jan Hubicka <jh@suse.cz>
(s390_add_anchor): New function. (s390_add_anchor): New function.
(s390_chunkify_pool): Delete, replace by ... (s390_chunkify_pool): Delete, replace by ...
(s390_chunkify_start, s390_chunkify_finish, (s390_chunkify_start, s390_chunkify_finish,
s390_chunkify_cancel): ... these new functions. s390_chunkify_cancel): ... these new functions.
(s390_optimize_prolog): Add parameter TEMP_REGNO. (s390_optimize_prolog): Add parameter TEMP_REGNO.
Recompute register live data for special registers. Recompute register live data for special registers.
...@@ -278,13 +283,13 @@ Mon Oct 14 20:33:12 CEST 2002 Jan Hubicka <jh@suse.cz> ...@@ -278,13 +283,13 @@ Mon Oct 14 20:33:12 CEST 2002 Jan Hubicka <jh@suse.cz>
(ix86_init_mmx_sse_builtins): Kill SSE1 logicals. (ix86_init_mmx_sse_builtins): Kill SSE1 logicals.
(ix86_expand_builtin): Likewise. (ix86_expand_builtin): Likewise.
* i386.h (sse_andti4_df_1, sse_andti3_df_2, sse_andti3_sf_1, sse_andti3_sf_2, * i386.h (sse_andti4_df_1, sse_andti3_df_2, sse_andti3_sf_1, sse_andti3_sf_2,
sse_andti3, sse_andti3,
sse_andnti4_df_1, sse_andti3_df_2, sse_andti3_sf_1, sse_andti3_sf_2, sse_andnti4_df_1, sse_andti3_df_2, sse_andti3_sf_1, sse_andti3_sf_2,
sse_andnti3, sse_andnti3,
sse_orti4_df_1, sse_orti3_df_2, sse_orti3_sf_1, sse_orti3_sf_2, sse_orti4_df_1, sse_orti3_df_2, sse_orti3_sf_1, sse_orti3_sf_2,
sse_orti3, sse_orti3,
sse_xorti4_df_1, sse_xorti3_df_2, sse_xorti3_sf_1, sse_xorti3_sf_2, sse_xorti4_df_1, sse_xorti3_df_2, sse_xorti3_sf_1, sse_xorti3_sf_2,
sse_xorti3): Kill. sse_xorti3): Kill.
(sse_andv4sf3, sse_andnv4sf3, sse_orv2df3, sse_xorv2df3, sse_andv2df3, (sse_andv4sf3, sse_andnv4sf3, sse_orv2df3, sse_xorv2df3, sse_andv2df3,
sse_andnv2df3, sse_orv2df3, sse_xorv2df3): New expanders. sse_andnv2df3, sse_orv2df3, sse_xorv2df3): New expanders.
(*sse_andv4sf3, *sse_andnv2df3, *sse_orv4sf3, *sse_xorv4sf3, *sse_andv2df3, (*sse_andv4sf3, *sse_andnv2df3, *sse_orv4sf3, *sse_xorv4sf3, *sse_andv2df3,
......
...@@ -2821,7 +2821,7 @@ start_decl (declarator, declspecs, initialized, attributes) ...@@ -2821,7 +2821,7 @@ start_decl (declarator, declspecs, initialized, attributes)
switch (TREE_CODE (decl)) switch (TREE_CODE (decl))
{ {
case TYPE_DECL: case TYPE_DECL:
error ("typedef `%s' is initialized", error ("typedef `%s' is initialized (use __typeof__ instead)",
IDENTIFIER_POINTER (DECL_NAME (decl))); IDENTIFIER_POINTER (DECL_NAME (decl)));
initialized = 0; initialized = 0;
break; break;
......
2002-10-18 Zack Weinberg <zack@codesourcery.com>
* decl.c (start_decl): Point users of the old initialized-
typedef extension at __typeof__.
2002-10-18 Mark Mitchell <mark@codesourcery.com> 2002-10-18 Mark Mitchell <mark@codesourcery.com>
* Make-lang.in (method.o): Depend on TARGET_H. * Make-lang.in (method.o): Depend on TARGET_H.
...@@ -107,7 +112,7 @@ ...@@ -107,7 +112,7 @@
2002-10-14 Mark Mitchell <mark@codesourcery.com> 2002-10-14 Mark Mitchell <mark@codesourcery.com>
* decl.c (layout_var_decl): Call layout_decl even for variables * decl.c (layout_var_decl): Call layout_decl even for variables
whose type is an array with unspecified bounds. whose type is an array with unspecified bounds.
PR c++/7176 PR c++/7176
...@@ -134,7 +139,7 @@ ...@@ -134,7 +139,7 @@
fields. fields.
* pt.c (convert_template_argument): Do not allow variably modified * pt.c (convert_template_argument): Do not allow variably modified
types as template arguments. types as template arguments.
* tree.c (variably_modified_type_p): New function. * tree.c (variably_modified_type_p): New function.
* NEWS: Document removal of "new X = ..." extension. * NEWS: Document removal of "new X = ..." extension.
* class.c (initialize_array): Set TREE_HAS_CONSTRUCTOR on * class.c (initialize_array): Set TREE_HAS_CONSTRUCTOR on
...@@ -517,7 +522,7 @@ ...@@ -517,7 +522,7 @@
2002-09-13 Matt Austern <austern@apple.com> 2002-09-13 Matt Austern <austern@apple.com>
PR C++/7828 PR C++/7828
* cp/cp-tree.h, cp/tree.c: New function non_cast_lvalue_p. * cp/cp-tree.h, cp/tree.c: New function non_cast_lvalue_p.
* cp/call.c: Change call-by-const-reference mechanism to use * cp/call.c: Change call-by-const-reference mechanism to use
non_cast_lvalue_p when deciding whether the create a temporary. non_cast_lvalue_p when deciding whether the create a temporary.
......
...@@ -7292,7 +7292,7 @@ start_decl (declarator, declspecs, initialized, attributes, prefix_attributes) ...@@ -7292,7 +7292,7 @@ start_decl (declarator, declspecs, initialized, attributes, prefix_attributes)
switch (TREE_CODE (decl)) switch (TREE_CODE (decl))
{ {
case TYPE_DECL: case TYPE_DECL:
error ("typedef `%D' is initialized", decl); error ("typedef `%D' is initialized (use __typeof__ instead)", decl);
initialized = 0; initialized = 0;
break; break;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment