aboutsummaryrefslogtreecommitdiff
path: root/gcc
AgeCommit message (Collapse)AuthorFilesLines
2002-10-15init.c (build_delete): Do not apply save_expr for arrays.Nathan Sidwell4-6/+71
cp: * init.c (build_delete): Do not apply save_expr for arrays. (build_vec_delete): Likewise. testsuite: * g++.dg/init/ctor1.C: New test. From-SVN: r58166
2002-10-15* sh.md (movv8qi_i+2): Don't split if source is -1.J"orn Rennecke2-1/+7
From-SVN: r58165
2002-10-15install.texi: Formatting changes for conformance to HTML 4.01.Janis Johnson2-158/+86
2002-10-15 Janis Johnson <janis187@us.ibm.com> * doc/install.texi: Formatting changes for conformance to HTML 4.01. From-SVN: r58164
2002-10-15java-tree.h (java_inlining_merge_static_initializers): Declare.Andrew Haley2-0/+7
2002-10-15 Andrew Haley <aph@redhat.com> * java-tree.h (java_inlining_merge_static_initializers): Declare. (java_inlining_map_static_initializers): Declare. From-SVN: r58163
2002-10-15* gcc.c-torture/execute/20021015-1.c: New test.Ulrich Weigand2-0/+34
From-SVN: r58159
2002-10-15re PR rtl-optimization/7409 (loop optimization)Ulrich Weigand2-0/+25
PR opt/7409 * loop.c (loop_regs_scan): Mark registers used for function argument passing as MAY_NOT_OPTIMIZE. From-SVN: r58158
2002-10-15* gcc.dg/weak/typeof-2.c: For SH targets, return before baz3 test.J"orn Rennecke2-0/+9
From-SVN: r58157
2002-10-15re PR c/7344 (performance regression on huge case statements)Jan Hubicka12-249/+475
* i386.md (movv2di_internal): New pattern. (movv2df_internal, movv8hi_internal, movv16qi_internal): Fix predicate. (movv2di): New expander. * i386.c (ix86_preferred_reload_class): Return NO_REGS for vector operands. * i386.c (ix86_expand_timode_binop_builtin): Delete. (builtin_description): Add SSE1 logicals; rename SSE2 logicals. (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_andnti4_df_1, sse_andti3_df_2, sse_andti3_sf_1, sse_andti3_sf_2, sse_andnti3, sse_orti4_df_1, sse_orti3_df_2, sse_orti3_sf_1, sse_orti3_sf_2, sse_orti3, sse_xorti4_df_1, sse_xorti3_df_2, sse_xorti3_sf_1, sse_xorti3_sf_2, 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, *sse_andnv2df3, *sse_orv2df3, *sse_xorv2df3): New patterns. (*sse_andsf3, *sse_andndf3, *sse_ordf3, *sse_xordf3, *sse_anddf3, *sse_andndf3, *sse_orv2df3, *sse_xorv2df3): New patterns. * xmmintrin.h (__m128i): Define as __v2di. PR c/7344 * predict.c (can_predict_insn_p): New function. (estimate_probability): Avoid unnecesary work. (process_note_prediction): Likewise. * toplev.c (rest_of_compilation): Account early branch prediction pass as TV_BRANCH_PROB. PR c++/6419 (expand_expr): Use DECL_RTL_SET_P. From-SVN: r58156
2002-10-15Daily bump.GCC Administrator1-1/+1
From-SVN: r58155
2002-10-15decl.c (layout_var_decl): Call layout_decl even for variables whose type is ↵Mark Mitchell2-1/+8
an array with unspecified bounds. * decl.c (layout_var_decl): Call layout_decl even for variables whose type is an array with unspecified bounds. From-SVN: r58149
2002-10-15* combine.c (simplify_set): Treat MODE_CC registers like cc0.Roger Sayle2-5/+7
From-SVN: r58148
2002-10-14* gcc.dg/20020219-1.c: Disable for 16-bit targets.Richard Henderson2-0/+13
From-SVN: r58141
2002-10-14i386.c (k6_cost): Correct typo.Roger Sayle2-2/+7
* config/i386/i386.c (k6_cost): Correct typo. Co-Authored-By: Zack Weinberg <zack@codesourcery.com> From-SVN: r58139
2002-10-14re PR rtl-optimization/6631 (Miscompiled structure access)Mark Mitchell5-4/+57
PR optimization/6631 * Makefile.in (function.o): Depend on langhooks.h. * alias.c (objects_must_conflict_p): Check honor_readonly when examining TYPE_READONLY. * function.c (assign_stack_temp_for_type): Likewise. PR optimization/6631 * g++.dg/opt/const2.C: New test. From-SVN: r58136
2002-10-14re PR c++/7176 (g++ confused by friend and static member with same name)Mark Mitchell6-4/+26
PR c++/7176 * g++.dg/parse/friend1.C: New test. * g++.old-deja/g++.pt/memtemp64.C: Adjust. PR c++/7176 * lex.c (do_identifier): Add another option for the parsing parameter. * parse.y (do_id): Use it. From-SVN: r58135
2002-10-14re PR target/7211 (Alpha prefetch hints interpreted wrong)Falk Hueffner2-7/+17
* config/alpha/alpha.md (extendsidi2_nofix, extendsidi2_fix): Swap zero extension arguments. (umaxhi3): Fix instruction class. PR target/7211 (prefetch): Fix prefetch instructions. PR target/7238 (pkwb): Fix output constraint. From-SVN: r58133
2002-10-14mips.c (print_operand): Increase buffer size for real numbers.Alexandre Oliva2-1/+6
* config/mips/mips.c (print_operand): Increase buffer size for real numbers. From-SVN: r58132
2002-10-14re PR rtl-optimization/8165 (builtin string functions SEGV on ↵Richard Henderson3-12/+25
alpha-pc-linux-gnu at -O2) PR opt/8165 * gcse.c (adjust_libcall_notes): Revert last change. * simplify-rtx.c (simplify_replace_rtx): Handle LO_SUM. From-SVN: r58130
2002-10-14tree-inline.c (remap_block): All local class initialization flags go in the ↵Andrew Haley4-10/+175
outermost scope. 2002-10-14 Andrew Haley <aph@redhat.com> * tree-inline.c (remap_block): All local class initialization flags go in the outermost scope. (expand_call_inline): Call java_inlining_map_static_initializers. (expand_call_inline): Call java_inlining_merge_static_initializers. * java/lang.c (merge_init_test_initialization): New. (java_inlining_merge_static_initializers): New. (inline_init_test_initialization): New. (java_inlining_map_static_initializers): New. * tree-inline.c (expand_call_inline): Convert retvar to expected type. From-SVN: r58129
2002-10-14* stmt.c (decl_conflicts_with_clobbers_p): Add REG_P check.Graham Stott2-1/+6
From-SVN: r58128
2002-10-14* stmt.c: Fix typo in comment.Aldy Hernandez2-1/+5
From-SVN: r58124
2002-10-14c-common.c (c_common_type_for_mode): Add V2HImode case.J"orn Rennecke4-0/+17
* c-common.c (c_common_type_for_mode): Add V2HImode case. * tree.c (build_common_tree_nodes_2): Initialize unsigned_V2HI_type_node and V2HI_type_node. * tree.h (enum tree_index): Add TI_UV2HI_TYPE and TI_V2HI_TYPE. (unsigned_V2HI_type_node, V2HI_type_node): Define. From-SVN: r58123
2002-10-14i386.h (ASM_OUTPUT_REG_PUSH, [...]): Handle TARGET_64BIT.Jakub Jelinek4-2/+44
* config/i386/i386.h (ASM_OUTPUT_REG_PUSH, ASM_OUTPUT_REG_POP): Handle TARGET_64BIT. * gcc.dg/20021014-1.c: New test. From-SVN: r58120
2002-10-14vr.h (DRIVER_SELF_SPECS): Define.Richard Sandiford3-32/+18
* config/mips/vr.h (DRIVER_SELF_SPECS): Define. * config/mips/t-vr (MULTILIB_OPTIONS): Remove mlong32. (MULTILIB_DIRNAMES): Remove long32. (MULTILIB_EXCEPTIONS): Don't build -mabi=32 -mgp32 multilibs. (MULTILIB_REDUNDANT_DIRS): Remove. From-SVN: r58116
2002-10-14Daily bump.GCC Administrator1-1/+1
From-SVN: r58115
2002-10-14tm.texi (DRIVER_SELF_SPECS): Document.Richard Sandiford3-0/+76
* doc/tm.texi (DRIVER_SELF_SPECS): Document. * gcc.c (driver_self_specs): New variable. (do_self_spec): New function. (main): Use it to process driver_self_specs. From-SVN: r58109
2002-10-13* rtl.c (shallow_copy_rtx): Use memcpy for the entire node.Richard Henderson2-11/+8
From-SVN: r58102
2002-10-13Daily bump.GCC Administrator1-1/+1
From-SVN: r58098
2002-10-12re PR preprocessor/7862 (Interrupting gcc -MD removes .d file but not .o)Neil Booth2-3/+13
PR preprocessor/7862 PR preprocessor/8190 * gcc.c (cpp_unique_options): Don't delete .d files. Remove stray whitespace. From-SVN: r58088
2002-10-12pdp11.h (ASM_OUTPUT_SKIP): Add preceding 0 for octal constant.Naohiko Shimizu4-15/+25
* pdp11.h (ASM_OUTPUT_SKIP): Add preceding 0 for octal constant. (ASM_OUTPUT_COMMON, ASM_OUTPUT_LOCAL): Likewise. * pdp11.c (pdp11_output_function_prologue): 0%o -> %#o. (pdp11_output_function_epilogue, output_ascii): Likewise. (output_addr_const_pdp11): Likewise. * pdp11.md (movdi): Use offsetable memory for floating store. (lshrsi3, negsi2): Delete irrelevant comment. From-SVN: r58087
2002-10-12Daily bump.GCC Administrator1-1/+1
From-SVN: r58086
2002-10-12cse.c (mention_regs): Set SUBREG_TICKED to the register number, not the ↵Geoffrey Keating2-3/+9
address of the REG. * cse.c (mention_regs): Set SUBREG_TICKED to the register number, not the address of the REG. (struct cse_reg_info): Make subreg_ticked unsigned. From-SVN: r58075
2002-10-11compat.texi: Add info about C++ libraries.Janis Johnson2-0/+45
2002-10-11 Janis Johnson <janis187@us.ibm.com> * doc/compat.texi: Add info about C++ libraries. From-SVN: r58074
2002-10-11re PR rtl-optimization/8165 (builtin string functions SEGV on ↵Richard Henderson3-6/+44
alpha-pc-linux-gnu at -O2) PR opt/8165 * gcse.c (adjust_libcall_notes): Also adjust notes for INSN. * gcc.c-torture/execute/20021011-1.c: New. From-SVN: r58071
2002-10-11* gcj.texi (Compatibility): Add Limitations and Extensions section.Mark Wielaard2-4/+40
From-SVN: r58067
2002-10-11cfganal.c (dfs_enumerate_from): Use PARAMS.John David Anglin5-6/+16
* cfganal.c (dfs_enumerate_from): Use PARAMS. * genautomata.c (output_insn_code_cases): Likewise. * real.c (real_format): Likewise. * tree.c (tree_size): Revise expressions using TREE_CODE_LENGTH to ensure value is promoted before doing subtraction. From-SVN: r58064
2002-10-11re PR c/7344 (performance regression on huge case statements)Jan Hubicka6-5/+24
* calls.c (expand_call): Simplify noreturn call. PR c/7344 * cfgbuild.c (make_edges): Create edge cache when we do have large jumptable. (do_tablejump): Note size of maximal jumptable. * function.c (prepare_function_start): Zero out size. * function.h (function): Add max_jumptable_ents. * cfgcleanup.c (insn_match_p): Verify sibcall flag for calls to. From-SVN: r58063
2002-10-11re PR c++/5661 (Gcc 3.0.3 Seg faults compiling bad code)Mark Mitchell8-13/+123
PR c++/5661 * cp-tree.h (variably_modified_type_p): New function. (grokdeclarator) Tighten check for variably modified types as fields. * pt.c (convert_template_argument): Do not allow variably modified types as template arguments. * tree.c (variably_modified_type_p): New function. PR c++/5661 * g++.dg/ext/vlm1.C: New test. * g++.dg/ext/vlm2.C: Likewise. From-SVN: r58060
2002-10-11Move ChangeLog entry where it belongsGabriel Dos Reis3-9/+13
From-SVN: r58059
2002-10-11PRs C++/6803, C++/7721 and C++/7803Gabriel Dos Reis3-0/+31
PRs C++/6803, C++/7721 and C++/7803 * decl.c (grokdeclarator): Gracefully handle template-name as decl-specifier. From-SVN: r58058
2002-10-11init.c (build_field_list): Provide uses_unions_p with a default value.Jason Molenda2-1/+8
2002-10-11 Jason Molenda <jmolenda@apple.com> * init.c (build_field_list): Provide uses_unions_p with a default value. From-SVN: r58056
2002-10-11NEWS: Document removal of "new X = ..." extension.Mark Mitchell17-194/+441
* NEWS: Document removal of "new X = ..." extension. * class.c (initialize_array): Set TREE_HAS_CONSTRUCTOR on brace-enclosed initializers. * cp-tree.h (CP_AGGREGATE_TYPE_P): New macro. (initialize_local_var): Remove declaration. (expand_static_init): Likewise. * decl.c (next_initializable_field): New function. (reshape_init): Likewise. (check_initializer): Use them. Build dynamic initializer for aggregates here too. (initialize_local_var): Simplify, and incorporate cleanup insertion code as well. (destroy_local_var): Remove. (cp_finish_decl): Tidy. (expand_static_init): Fold checks for whether or not a variable needs initialization into this function. Simplify. * decl2.c (do_static_initialization): Simplify. * init.c (build_init): Do not set TREE_SIDE_EFFECTS when it will be done for us automatically. (expand_default_init): Handle brace-enclosed initializers correctly. (expand_aggr_init_1): Remove RTL-generation code. (build_vec_init): Remove "new X = ..." support. * parse.y (new_initializer): Likewise. * rtti.c (get_pseudo_ti_init): Set TREE_HAS_CONSTRUCTOR on brace-enclosed initializer. (create_pseudo_type_info): Likewise. * typeck2.c (store_init_value): Don't try to handle digest_init being called more than once. (digest_init): Tidy handling of brace-enclosed initializers. * g++.dg/init/array1.C: Remove invalid braces. * g++.dg/init/brace1.C: New test. * g++.dg/init/copy2.C: Likewise. * g++.dg/init/copy3.C: Likewise. * g++.old-deja/g++.ext/arrnew.C: Change WARNING to ERROR. * g++.old-deja/g++.mike/p9129.C: Add ERROR on invalid use of braces. From-SVN: r58053
2002-10-11* gcc.dg/cpp/assembler.S: Don't use -ansi.Neil Booth2-0/+5
From-SVN: r58052
2002-10-11sh.md (movv8qi_i+2): For V8QI destinations, generate V4HI register for ↵J"orn Rennecke2-1/+10
mperm_w operation. * sh.md (movv8qi_i+2): For V8QI destinations, generate V4HI register for mperm_w operation. From-SVN: r58051
2002-10-11*** empty log message ***Joern Rennecke4-0/+25
From-SVN: r58050
2002-10-11Daily bump.GCC Administrator1-1/+1
From-SVN: r58048
2002-10-11extend.texi (Vector Extensions): Remove comment about single element vectors.Aldy Hernandez2-3/+5
* extend.texi (Vector Extensions): Remove comment about single element vectors. From-SVN: r58041
2002-10-11decl.c (typename_hash): Use htab_hash_pointer.Kaveh R. Ghazi8-6/+20
cp: * decl.c (typename_hash): Use htab_hash_pointer. gcc: * fold-const.c (size_htab_hash): Use htab_hash_pointer. * function.c (insns_for_mem_hash): Likewise. * varasm.c (STRHASH): Likewise. java: * class.c (JAVA_TREEHASHHASH_H): Use htab_hash_pointer. From-SVN: r58036
2002-10-10cse.c (struct cse_reg_info): Add subreg_ticked.Stuart Hastings3-7/+77
2002-10-10 Stuart Hastings <stuart@apple.com> * cse.c (struct cse_reg_info): Add subreg_ticked. (SUBREG_TICKED): New. (get_cse_reg_info): Initialize SUBREG_TICKED. (mention_regs): Use it. (invalidate): Set SUBREG_TICKED. (invalidate_for_call): Likewise. (addr_affects_sp_p): Likewise. From-SVN: r58035
2002-10-10Fix C++ FE attribute alias failure.Jim Wilson2-1/+4
* decl.c (duplicate_decls): Don't call decl_attributes. From-SVN: r58034