- 22 Dec, 2005 18 commits
-
-
PR c++/25364 * typeck.c (build_unary_op): Pass DECLs not names to build_offset_refs. * init.c (build_offset_ref): Do not do name lookup. Do not call mark_used. * call.c (build_call): Simplify and tidy. * semantics.c (finish_qualified_id_expr): Call mark_used. PR c++/25364 * g++.dg/template/call4.C: New test. From-SVN: r108973
Mark Mitchell committed -
2005-12-22 Richard Guenther <rguenther@suse.de> * tree.c (tree_fold_gcd): Use build_int_cst where appropriate. * tree-ssa-loop-ivcanon.c (create_canonical_iv): Likewise. * varasm.c (array_size_for_constructor): Likewise. * fold-const.c (size_diffop, invert_truthvalue, optimize_bit_field_compare, make_range, build_range_check, fold_cond_expr_with_comparison, fold_truthop, fold_single_bit_test_into_sign_test, fold_binary): Likewise. From-SVN: r108970
Richard Guenther committed -
2005-12-22 Dale Johannesen <dalej@apple.com> * config/i386/sse.md (sse_movhlps): Reverse operands for 2nd and 3rd alternatives. 2005-12-22 Dale Johannesen <dalej@apple.com> * gcc.target/i386/sse-17.c: New. From-SVN: r108966
Dale Johannesen committed -
2005-12-22 Paul Brook <paul@codesourcery.com> * gcc.dg/tree-ssa/loop-1.c: Look for jump/branch on m68k. From-SVN: r108963
Paul Brook committed -
2005-12-22 Andrew Haley <aph@redhat.com> PR java/25535 * testsuite/libjava.lang/PR25535.java: New test. From-SVN: r108961
Andrew Haley committed -
2005-12-22 Andrew Pinski <pinskia@physics.uc.edu> PR tree-opt/25513 * gcc.c-torture/compile/pr25513.c: New test. 2005-12-22 Andrew Pinski <pinskia@physics.uc.edu> PR tree-opt/25513 * tree-dfa.c (make_rename_temp): Set DECL_COMPLEX_GIMPLE_REG_P complex variables. From-SVN: r108958
Andrew Pinski committed -
* java/lang/natClassLoader.cc (_Jv_NewArrayClass): Don't reference NUM_OBJECT_METHODS. * include/jvm.h (NUM_OBJECT_METHODS): Removed. From-SVN: r108956
Tom Tromey committed -
2005-12-22 Daniel Berlin <dberlin@dberlin.org> * ipa-reference.c (get_reference_vars_info_from_cgraph): Use function_ann. (get_local_reference_vars_info): Ditto. (get_global_reference_vars_info): Ditto. (analyze_function): Ditto. (clean_function): Ditto. * tree-dfa.c (create_function_ann): New function. * tree-flow-inline.h (var_ann): FUNCTION_DECL's don't have var_ann. (function_ann): New. (get_function_ann): Ditto. * tree-flow.h (tree_ann_type): Add FUNCTION_ANN. (struct var_ann_d): Move reference_vars_info to function annotation. (struct function_ann_d): New. (union tree_ann_d): Add function_ann. From-SVN: r108950
Daniel Berlin committed -
* df.c (df_bitmaps_free): Only work for bbs for that structures are allocated. (df_bb_modify): Realloc tables to the new index. (df_find_use): New function. (df_find_def, df_reg_used): Handle subregs. * df.h (df_find_use): Declare. * loop-invariant.c: Include hashtab.h. (struct invariant): Remove processed field, add eqto and reg fields. (struct invariant_expr_entry): New. (invariant_for_use, hash_invariant_expr_1, invariant_expr_equal_p, hash_invariant_expr, eq_invariant_expr, find_or_insert_inv, find_identical_invariants, merge_identical_invariants): New functions. (create_new_invariant): Return the new invariant. Initialize new fields. (find_invariants): Call merge_identical_invariants. (get_inv_cost, best_gain_for_invariant, set_move_mark, move_invariant_reg): Handle equivalent invariants. * Makefile.in (loop-invariant.o): Add HASHTAB_H dependency. Co-Authored-By: Steven Bosscher <stevenb@suse.de> From-SVN: r108949
Zdenek Dvorak committed -
2005-12-22 Volker Reichelt <reichelt@igpm.rwth-aachen.de> PR c++/23333 * include/cpplib.h: Add PURE_ZERO to flags for the cpp_token structure. * c-lex.c (c_lex_with_flags): Add PURE_ZERO to cpp_flags if number is a single digit '0'. * parser.c (cp_parser_pure_specifier): Check for PURE_ZERO to identify a single '0'. * g++.dg/parse/error25.C: Add more tests. From-SVN: r108947
Volker Reichelt committed -
fortran/ PR fortran/18990 * gfortran.h (gfc_charlen): Add resolved field. * expr.c (gfc_specification_expr): Accept NULL argument. * resolve.c (gfc_resolve_charlen, gfc_resolve_derived): New. (gfc_resolve_symbol): Resolve derived type definitions. Use resolve_charlen to resolve character lengths. testsuite/ PR fortran/18990 * gfortran.dg/der_charlen_1.f90: New. From-SVN: r108946
Tobias Schlüter committed -
2005-12-22 Paul Thomas <pault@gcc.gnu.org> PR fortran/20889 *resolve.c(resolve_structure_cons): Do not attempt to convert the type of mismatched pointer type components, except when the constructor component is BT_UNKNOWN; emit error instead. PR fortran/25029 PR fortran/21256 *resolve.c(check_assumed_size_reference): New function to check for upper bound in assumed size array references. (resolve_assumed_size_actual): New function to do a very restricted scan of actual argument expressions of those procedures for which incomplete assumed size array references are not allowed. (resolve_function, resolve_call): Switch off assumed size checking of actual arguments, except for elemental procedures and array valued intrinsics; excepting LBOUND. (resolve_variable): Call check_assumed_size_reference. PR fortran/19362 PR fortran/20244 PR fortran/20864 PR fortran/25391 *interface.c(gfc_compare_types): Broken into two. (gfc_compare_derived_types): Second half of gfc_compare_types with corrections for a missing check that module name is non-NULL and a check for private components. *symbol.c(gfc_free_dt_list): New function. (gfc_free_namespace): Call gfc_free_dt_list. *resolve.c(resolve_symbol): Build the list of derived types in the symbols namespace. *gfortran.h: Define the structure type gfc_dt_list. Add a new field, derived_types to gfc_namespace. Provide a prototye for the new function gfc_compare_derived_types. *trans_types.c(gfc_get_derived_type): Test for the derived type being available in the host namespace. In this case, the host backend declaration is used for the structure and its components. If an unbuilt, equal structure that is not use associated is found in the host namespace, build it there and then. On exit,traverse the namespace of the derived type to see if there are equal but unbuilt. If so, copy the structure and its component declarations. (copy_dt_decls_ifequal): New functions to copy declarations to other equal structure types. PR fortran/20862 * io.c (gfc_match_format): Make the appearance of a format statement in a module specification block an error. PR fortran/23152 * match.c (gfc_match_namelist): Set assumed shape arrays in namelists as std=GFC_STD_GNU and assumed size arrays as an unconditional error. PR fortran/25069 * match.c (gfc_match_namelist): Set the respecification of a USE associated namelist group as std=GFC_STD_GNU. Permit the concatenation on no error. PR fortran/25053 PR fortran/25063 PR fortran/25064 PR fortran/25066 PR fortran/25067 PR fortran/25068 PR fortran/25307 * io.c (resolve_tag): Change std on IOSTAT != default integer to GFC_STD_GNU and change message accordingly. Add same error for SIZE. (match_dt_element, gfortran.h): Add field err_where to gfc_dt and set it when tags are being matched. (gfc_resolve_dt): Remove tests that can be done before resolution and add some of the new ones here. (check_io_constraints): New function that checks for most of the data transfer constraints. Some of these were previously done in match_io, from where this function is called, and some were done in gfc_resolve_dt. (match_io): Remove most of the tests of constraints and add the call to check_io_constraints. 2005-12-22 Paul Thomas <pault@gcc.gnu.org> PR fortran/20889 *gfortran.dg/pointer_component_type_1.f90: New test. PR fortran/25029 PR fortran/21256 *gfortran.dg/assumed_size_refs.f90: New test for the conditions that should give an error with assumed size array refernces and checks those that should not. *gfortran.dg/gfortran.dg/pr15140.f90: Give the assumed size array reference an upper bound so that it does not generate an error. PR fortran/19362 PR fortran/20244 PR fortran/20864 PR fortran/25391 *gfortran.dg/used_dummy_types_1.f90: New test. *gfortran.dg/used_dummy_types_2.f90: New test. *gfortran.dg/used_dummy_types_3.f90: New test. *gfortran.dg/used_dummy_types_4.f90: New test. *gfortran.dg/used_dummy_types_5.f90: New test. PR fortran/23152 *gfortran.dg/namelist_use.f90: Add trap for warning on NAMELIST group already being USE associated. *gfortran.dg/assumed_shape_nml.f90: New test. *gfortran.dg/assumed_size_nml.f90: New test. PR fortran/20862 PR fortran/25053 PR fortran/25063 PR fortran/25064 PR fortran/25066 PR fortran/25067 PR fortran/25068 PR fortran/25307 * gfortran.dg/io_constraints_1.f90: New test. * gfortran.dg/io_constraints_1.f90: New test. * gfortran.dg/iostat_3.f90: Change wording of warning. * gfortran.dg/g77/19981216-0.f: the same. From-SVN: r108943
Paul Thomas committed -
gcc/ PR tree-optimization/23518 * fold-const.c (make_range): Don't move a constant to the other side of the comparison if the type is signed and -fwrapv is given. gcc/testsuite/ PR tree-optimization/23518 * testsuite/gcc.dg/pr23518.c: New. From-SVN: r108940
Kazu Hirata committed -
2005-12-21 Jerry DeLisle <jvdelisle@gcc.gnu.org> PR libgfortran/25307 * io/list_read.c (next_char): Handle end-of-file conditions for internal units and add support for internal character array units. From-SVN: r108938
Jerry DeLisle committed -
* tree-vrp.c (extract_range_from_binary_expr): Clean up uses of vr0.type. From-SVN: r108935
Kazu Hirata committed -
From-SVN: r108934
Mike Stump committed -
From-SVN: r108933
Mike Stump committed -
From-SVN: r108930
GCC Administrator committed
-
- 21 Dec, 2005 10 commits
-
-
PR middle-end/24998 * config/arm/t-arm-elf (LIB1ASMFUNCS): Add _floatundidf and _floatundisf. From-SVN: r108918
Joseph Myers committed -
2005-12-21 Paul Brook <paul@codesourcery.com> * gcc.dg/pr19340.c: Skip on m68k targets. From-SVN: r108916
Paul Brook committed -
2005-12-21 Andrew Haley <aph@redhat.com> PR middle-end/25121 * recog.c (peephole2_optimize): Don't peephole any RTX_FRAME_RELATED_P insns. From-SVN: r108914
Andrew Haley committed -
* tree-data-ref.c (estimate_niter_from_size_of_data): Replace fold_build2 with fold_binary. * tree-ssa-ccp.c (visit_assignment, maybe_fold_stmt_addition): Replace fold_build1 with fold_unary. * tree-ssa-reassoc.c (optimize_ops_list): Replace fold_build2 with fold_binary. From-SVN: r108913
Kazu Hirata committed -
From-SVN: r108909
Steven Bosscher committed -
gcc/ * postreload-gcse.c (record_last_set_info): Notice stack pointer changes in push insns without REG_INC notes. testsuite/ * gcc.dg/pr25130.c: New test. From-SVN: r108906
Steven Bosscher committed -
fortran/ 2005-12-21 Erik Edelmann <eedelman@gcc.gnu.org> PR fortran/25423 * parse.c (parse_where_block): break instead of "fall through" after parsing nested WHERE construct. testsuite/ 2005-12-21 Erik Edelmann <eedelman@gcc.gnu.org> PR fortran/25423 gfortran.dg/where_nested_1.f90: New. From-SVN: r108902
Erik Edelmann committed -
re PR tree-optimization/25382 (VRP does not get a range from BIT_AND_EXPR if the second operand is constant) gcc/ PR tree-optimization/25382. * tree-vrp.c (extract_range_from_binary_expr): Extract a range from BIT_AND_EXPR. gcc/testsuite/ PR tree-optimization/25382. * gcc.dg/tree-ssa/pr25382.c: New. From-SVN: r108898
Kazu Hirata committed -
* configure.ac: Enable C extension for decimal float if invoked with --enable-decimal-float. * doc/install.texi (Configuration): Document it. * configure, config.in: Regenerate. From-SVN: r108887
Ben Elliston committed -
From-SVN: r108884
GCC Administrator committed
-
- 20 Dec, 2005 12 commits
-
-
darwin.h (TARGET_OPTION_TRANSLATE_TABLE): Handle the ambiguity between -seg_addr_table and -seg_addr_table_filename. * config/darwin.h (TARGET_OPTION_TRANSLATE_TABLE): Handle the ambiguity between -seg_addr_table and -seg_addr_table_filename. (WORD_SWITCH_TAKES_ARG): Likewise. (LINK_SPEC): Likewise. Radar 3941990 From-SVN: r108876
Mike Stump committed -
cfganal.c (flow_reverse_top_sort_order_compute): Renamed to post_order_compute and additional parameter added which allows the... 2005-12-20 Kenneth Zadeck <zadeck@naturalbridge.com> * cfganal.c (flow_reverse_top_sort_order_compute): Renamed to post_order_compute and additional parameter added which allows the inclusion of entry and exit blocks into list. (mark_dfs_back_edges): Fixed comment. (flow_depth_first_order_compute): Renamed to pre_and_rev_post_order_compute additional parameter added which allows the inclusion of entry and exit blocks into list. * global.c (set_up_bb_rts_numbers): Call to flow_reverse_top_sort_order_compute renamed to post_order_compute. * var-tracking.c (vt_stack_adjustments): Fixed comment. (vt_find_locations): Call to flow_depth_first_order_compute renamed to pre_and_rev_post_order_compute. * cfgloop.c (flow_find_loops): Ditto. * tree-ssa-reassoc.c (init_reassoc): Ditto. * df.c (df_analyze_1, df_analyze_subcfg): Calls to flow_reverse_top_sort_order_compute renamed to post_order_compute and calls to flow_reverse_top_sort_order_compute renamed to post_order_compute. * basic_block.h: Ditto. From-SVN: r108874
Kenneth Zadeck committed -
From-SVN: r108866
Geoffrey Keating committed -
decNumber.c (decStrEq): Cast string contents to unsigned char instead of int before calling tolower. * decNumber.c (decStrEq): Cast string contents to unsigned char instead of int before calling tolower. From-SVN: r108862
Roger Sayle committed -
decNumber.c (decStrEq): Cast operands to int before calling tolower to avoid compilation warnings on Tru64. * decNumber.c (decStrEq): Cast operands to int before calling tolower to avoid compilation warnings on Tru64. From-SVN: r108858
Roger Sayle committed -
2005-12-20 Paolo Bonzini <bonzini@gnu.org> Revert Ada-related part of the previous change. * Makefile.def (ADAFLAGS, BOOT_ADAFLAGS, ADAFLAGS_FOR_TARGET): Do not pass. * Makefile.tpl (BOOT_ADAFLAGS): Do not define. * Makefile.in: Regenerate. * configure.in: Do not include mt-ppc-aix target fragment. * configure: Regenerate. config: 2005-12-20 Paolo Bonzini <bonzini@gnu.org> Revert Ada-related part of the previous change. * mt-ppc-aix: Delete. From-SVN: r108856
Paolo Bonzini committed -
2005-12-20 Roger Sayle <roger@eyesopen.com> Paolo Bonzini <bonzini@gnu.org> PR rtl-optimization/25115 * gcse.c (pre_insert_copy_insn): Fall back to the sole SET in the insn if there is no SET for an expression that is equivalent to EXPR. Co-Authored-By: Paolo Bonzini <bonzini@gnu.org> From-SVN: r108855
Roger Sayle committed -
re PR middle-end/24306 (va_arg gets confused when skipping over certain zero-sized types with -msse) 2005-12-20 Richard Guenther <rguenther@suse.de> PR middle-end/24306 * builtins.c (std_gimplify_va_arg_expr): Do not align va frame for zero sized types. * config/i386/i386.c (ix86_gimplify_va_arg): Likewise. * gcc.target/i386/pr24306.c: New testcase. From-SVN: r108854
Richard Guenther committed -
gcc/ PR tree-optimization/25501 * tree-cfgcleanup.c (merge_phi_nodes): Check that RESULT is used in the PHI argument corresponding to the edge from BB to DEST. gcc/testsuite/ PR tree-optimization/25501 * testsuite/gcc.dg/tree-ssa/pr25501.c: New. From-SVN: r108853
Kazu Hirata committed -
2005-12-20 Richard Guenther <rguenther@suse.de> Revert 2005-12-02 Richard Guenther <rguenther@suse.de> * tree-cfg.c (mark_used_vars): New function. (dump_function_to_file): Dump only used VAR_DECLs. * gcc.dg/tree-ssa/20031106-6.c: Remove XFAIL. From-SVN: r108852
Richard Guenther committed -
PR c++/21228 * decl.c (use_eh_spec_block): New function. (store_parm_decls): Use it. (finish_function): Likewise. PR c++/21228 * g++.dg/warn/Wunreachable-code-2.C: New test. From-SVN: r108851
Mark Mitchell committed -
PR c++/24278 * init.c (expand_member_init): Print messages about baseclasses using %T rather than %D. PR c++/24278 * g++.dg/template/ctor5.C: New test. From-SVN: r108840
Mark Mitchell committed
-