diff options
author | Zack Weinberg <zack@gcc.gnu.org> | 2002-10-19 03:14:11 +0000 |
---|---|---|
committer | Zack Weinberg <zack@gcc.gnu.org> | 2002-10-19 03:14:11 +0000 |
commit | 4a7510cb22da4809d18e3bb3fc453cf671d6926a (patch) | |
tree | 4b5d06a5f39cde39d39613c6f7db9431fe6c32fd /gcc | |
parent | 643c45e7dbb3609c841d21475db688dd786d9321 (diff) | |
download | gcc-4a7510cb22da4809d18e3bb3fc453cf671d6926a.zip gcc-4a7510cb22da4809d18e3bb3fc453cf671d6926a.tar.gz gcc-4a7510cb22da4809d18e3bb3fc453cf671d6926a.tar.bz2 |
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
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/ChangeLog | 35 | ||||
-rw-r--r-- | gcc/c-decl.c | 2 | ||||
-rw-r--r-- | gcc/cp/ChangeLog | 11 | ||||
-rw-r--r-- | gcc/cp/decl.c | 2 |
4 files changed, 30 insertions, 20 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 018a404..89c32e9 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +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> * real.c (cmp_significand_0, rtd_divmod, ten_to_mptwo): New. @@ -65,11 +70,11 @@ * config/vax/vax.h (ASM_OUTPUT_MI_THUNK): Rename to ... (TARGET_ASM_OUTPUT_MI_THUNK): ... this. * doc/tm.texi: Adjust documentation. - + 2002-10-18 Jason Thorpe <thorpej@wasabisystems.com> - * config/netbsd.h (NETBSD_ENABLE_EXECUTE_STACK): Define - __enable_execute_stack function. + * config/netbsd.h (NETBSD_ENABLE_EXECUTE_STACK): Define + __enable_execute_stack function. * config/alpha/netbsd.h (TRANSFER_FROM_TRAMPOLINE): Define as NETBSD_ENABLE_EXECUTE_STACK. * 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> TEXT_SECTION_ASM_OP, DATA_SECTION_ASM_OP, BSS_SECTION_ASM_OP, GLOBAL_ASM_OP, ASM_OUTPUT_MI_THUNK): Move to s390.h. - * config/s390/s390.h (ASM_COMMENT_START, LOCAL_LABEL_PREFIX, - ASM_FORMAT_PRIVATE_NAME, ASM_OUTPUT_ALIGN, ASM_OUTPUT_SKIP, - ASM_OUTPUT_ALIGNED_BSS, TEXT_SECTION_ASM_OP, DATA_SECTION_ASM_OP, + * config/s390/s390.h (ASM_COMMENT_START, LOCAL_LABEL_PREFIX, + ASM_FORMAT_PRIVATE_NAME, ASM_OUTPUT_ALIGN, ASM_OUTPUT_SKIP, + ASM_OUTPUT_ALIGNED_BSS, TEXT_SECTION_ASM_OP, DATA_SECTION_ASM_OP, BSS_SECTION_ASM_OP): Move from linux.h. (ASM_OUTPUT_ADDR_VEC_ELT, ASM_OUTPUT_ADDR_DIFF_ELT): Likewise. 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. 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> (REAL_VALUE_TO_DECIMAL): Remove. * 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, - 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/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 use real_to_decimal directly, and with the proper arguments. * 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> (struct constant_pool): Add members pool_insn, insns, and anchor. Remove member last_insn. (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_find_pool): Use insns bitmap instead of addresses. (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> (s390_add_anchor): New function. (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_optimize_prolog): Add parameter TEMP_REGNO. Recompute register live data for special registers. @@ -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_expand_builtin): Likewise. * 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_andnti3, + sse_andnti3, 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_xorti3): Kill. + sse_xorti3): Kill. (sse_andv4sf3, sse_andnv4sf3, sse_orv2df3, sse_xorv2df3, sse_andv2df3, sse_andnv2df3, sse_orv2df3, sse_xorv2df3): New expanders. (*sse_andv4sf3, *sse_andnv2df3, *sse_orv4sf3, *sse_xorv4sf3, *sse_andv2df3, diff --git a/gcc/c-decl.c b/gcc/c-decl.c index 60fade4..e5a43fe 100644 --- a/gcc/c-decl.c +++ b/gcc/c-decl.c @@ -2821,7 +2821,7 @@ start_decl (declarator, declspecs, initialized, attributes) switch (TREE_CODE (decl)) { case TYPE_DECL: - error ("typedef `%s' is initialized", + error ("typedef `%s' is initialized (use __typeof__ instead)", IDENTIFIER_POINTER (DECL_NAME (decl))); initialized = 0; break; diff --git a/gcc/cp/ChangeLog b/gcc/cp/ChangeLog index 8da7362..8a7eec8 100644 --- a/gcc/cp/ChangeLog +++ b/gcc/cp/ChangeLog @@ -1,3 +1,8 @@ +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> * Make-lang.in (method.o): Depend on TARGET_H. @@ -107,7 +112,7 @@ 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. PR c++/7176 @@ -134,7 +139,7 @@ fields. * pt.c (convert_template_argument): Do not allow variably modified 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. * class.c (initialize_array): Set TREE_HAS_CONSTRUCTOR on @@ -517,7 +522,7 @@ 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/call.c: Change call-by-const-reference mechanism to use non_cast_lvalue_p when deciding whether the create a temporary. diff --git a/gcc/cp/decl.c b/gcc/cp/decl.c index 70d5d31..e936765 100644 --- a/gcc/cp/decl.c +++ b/gcc/cp/decl.c @@ -7292,7 +7292,7 @@ start_decl (declarator, declspecs, initialized, attributes, prefix_attributes) switch (TREE_CODE (decl)) { case TYPE_DECL: - error ("typedef `%D' is initialized", decl); + error ("typedef `%D' is initialized (use __typeof__ instead)", decl); initialized = 0; break; |