- 13 Dec, 2005 14 commits
-
-
2005-12-13 Andrew Haley <aph@redhat.com> PR java/25366 PR java/25368 * class.c (maybe_layout_super_class): Update current_class before calling do_resolve_class. From-SVN: r108474
Andrew Haley committed -
re PR libfortran/24991 (gfortran build fails with - error:gthr-default.h: No such file or directory) PR libfortran/24991 * acinclude.m4 (LIBGFOR_CHECK_PRAGMA_WEAK): Rename to... (LIBGFOR_GTHREAD_WEAK): ... this. Define SUPPORTS_WEAK rather than HAVE_PRAGMA_WEAK. Define GTHREAD_USE_WEAK to 0 on hosts that shouldn't use weak in gthr.h. * configure.ac: Use LIBGFOR_GTHREAD_WEAK instead of LIBGFOR_CHECK_PRAGMA_WEAK. * config.h.in: Regenerated. * configure: Regenerated. * io/io.h (SUPPORTS_WEAK): Don't define here. * intrinsics/ftell.c (ftell, FTELL_SUB): Add unlock_unit call. * intrinsics/fget.c (fgetc, fputs): Likewise. * intrinsics/tty.c (ttynam): Likewise. From-SVN: r108471
Jakub Jelinek committed -
From-SVN: r108465
Jakub Jelinek committed -
PR debug/25023 PR target/25293 * expr.c (emit_move_resolve_push): Handle PRE_MODIFY and POST_MODIFY with CONST_INT adjustment equal to PUSH_ROUNDING. Fix POST_INC/POST_DEC handling if PUSH_ROUNDING is not identity. * config/i386/i386.md (pushhi2, pushqi2): Use pushl instead of pushw. Set mode to SI, adjust constraints. (pushhi2_rex64, pushqi2_rex64): Set mode to DI. * config/i386/i386.h (PUSH_ROUNDING): Round up to 4 instead of 2 for 32-bit code. * gcc.target/i386/pr25293.c: New test. From-SVN: r108463
Jakub Jelinek committed -
2005-12-13 Petr Machata <machata@post.cz> PR c++/24907 * parser.c (cp_parser_simple_declaration): Require comma at the beginning of processing second and later declarators, instead of allowing the comma at the end of each iteration. * g++.dg/parse/comma2.C: New test. From-SVN: r108462
Petr Machata committed -
* g++.dg/compat/struct-layout-1.exp: Do not link with libiberty. * g++.dg/compat/struct-layout-1_generate.c (config.h): Do not include. (limits.h): Include unconditionally. (stdlib.h): Likewise. (hashtab.h): Do not include. (getopt.h): Likewise. (stddef.h): Include. (hashval_t): Define. (struct entry): Add "next" field. (HASH_SIZE): New macro. (hash_table): New variable. (switchfiles): Do not use xmalloc. (mix): New macro. (iterative_hash): New function. (hasht): Remove. (e_exists): New function. (e_insert): Likewise. (output): Use, instead of libiberty hashtable functions. (main): Do not use getopt. Do not call htab_create. Co-Authored-By: Jakub Jelinek <jakub@redhat.com> From-SVN: r108461
Mark Mitchell committed -
PR c++/25331 * gcc.dg/compat/struct-layout-1_generate.c (subfield): Don't put atal* and atpaal* attributes on array elements. (generate_fields): Revert 2005-10-07 and 2005-10-11 changes. * g++.dg/compat/struct-layout-1_generate.c (subfield): Don't put atal* and atpaal* attributes on array elements. (generate_fields): Don't prevent atal* attribute on ETYPE_ARRAY. From-SVN: r108460
Jakub Jelinek committed -
gcc/fortran/ * Make-lang.in (fortran/trans-resolve.o): Depend on fortran/dependency.h. * gfortran.h (gfc_expr): Add an "inline_noncopying_intrinsic" flag. * dependency.h (gfc_get_noncopying_intrinsic_argument): Declare. (gfc_check_fncall_dependency): Change prototype. * dependency.c (gfc_get_noncopying_intrinsic_argument): New function. (gfc_check_argument_var_dependency): New function, split from gfc_check_fncall_dependency. (gfc_check_argument_dependency): New function. (gfc_check_fncall_dependency): Replace the expression parameter with separate symbol and argument list parameters. Generalize the function to handle dependencies for any type of expression, not just variables. Accept a further argument giving the intent of the expression being tested. Ignore intent(in) arguments if that expression is also intent(in). * resolve.c: Include dependency.h. (find_noncopying_intrinsics): New function. (resolve_function, resolve_call): Call it on success. * trans-array.h (gfc_conv_array_transpose): Declare. (gfc_check_fncall_dependency): Remove prototype. * trans-array.c (gfc_conv_array_transpose): New function. * trans-intrinsic.c (gfc_conv_intrinsic_function): Don't use the libcall handling if the expression is to be evaluated inline. Add a case for handling inline transpose()s. * trans-expr.c (gfc_trans_arrayfunc_assign): Adjust for the new interface provided by gfc_check_fncall_dependency. libgfortran/ * m4/matmul.m4: Use a different order in the special case of a transposed first argument. * generated/matmul_c4.c, generated/matmul_c8.c, generated/matmul_c10.c, * generated/matmul_c16.c, generated/matmul_i4.c, generated/matmul_i8.c, * generated/matmul_i10.c, generated/matmul_r4.c, generated/matmul_r8.c * generated/matmul_r10.c, generated/matmul_r16.c: Regenerated. Co-Authored-By: Victor Leikehman <LEI@il.ibm.com> From-SVN: r108459
Richard Sandiford committed -
c-cppbuiltin.c (builtin_define_float_constants): Add fp_cast parameter, pass to builtin_define_with_hex_fp_value. 2005-12-13 Carlos O'Donell <carlos@codesourcery.com> gcc/ * c-cppbuiltin.c (builtin_define_float_constants): Add fp_cast parameter, pass to builtin_define_with_hex_fp_value. Define __FLT_HAS_DENORM__, __DBL_HAS_DENORM__, __LDBL_HAS_DENORM__. (builtin_define_with_hex_fp_value): Use fp_cast when building macro. (c_cpp_builtins): If flag_single_precision_constant then set fp_cast to "((double)%sL)" otherwise "%s". gcc/testsuite/ * gcc.dg/single-precision-constant.c: New test. libstdc++-v3/ * include/std/std_limits.h (struct numeric_limits): Use __DBL_HAS_DENORM__, __FLT_HAS_DENORM__, __LDBL_HAS_DENORM__. From-SVN: r108458
Carlos O'Donell committed -
* gcc.dg/980523-1.c, gcc.dg/980526-1.c, gcc.dg/20020103-1.c, gcc.dg/20040625-1.c, gcc.dg/asm-b.c, gcc.dg/iftrap-1.c, gcc.dg/iftrap-2.c, gcc.dg/simd-3.c, gcc.dg/switch-1.c, gcc.dg/tree-ssa/bool-1.c, gcc.dg/tree-ssa/bool-2.c, gcc.dg/tree-ssa/bool-4.c, gcc.dg/tree-ssa/bool-5.c, gcc.dg/tree-ssa/bool-6.c, gcc.dg/tree-ssa/bool-8.c, gcc.dg/tree-ssa/bool-9.c, gcc.target/powerpc/980827-1.c, gcc.target/powerpc/20040622-1.c, gcc.target/powerpc/20050603-3.c, gcc.target/powerpc/20050830-1.c, gcc.target/powerpc/altivec-6.c, gcc.target/powerpc/altivec-14.c, gcc.target/powerpc/altivec-22.c, gcc.target/powerpc/doloop-1.c, gcc.target/powerpc/ppc-and-1.c, gcc.target/powerpc/ppc-bitfield1.c, gcc.target/powerpc/ppc-compare-1.c, gcc.target/powerpc/ppc-mov-1.c, gcc.target/powerpc/ppc-sdata-1.c, gcc.target/powerpc/ppc-sdata-2.c, gcc.target/powerpc/ppc-stackalign-1.c, gcc.target/powerpc/ppc64-abi-1.c, gcc.target/powerpc/ppc64-abi-2.c, gcc.target/powerpc/ppc64-abi-3.c, gcc.target/powerpc/ppc64-toc.c, gcc.target/powerpc/pr18096-1.c, gcc.target/powerpc/rs6000-ldouble-1.c, gcc.target/powerpc/rs6000-ldouble-2.c, gcc.target/powerpc/rs6000-power2-1.c, gcc.target/powerpc/rs6000-power2-2.c: Don't use powerpc-*-* or powerpc64-*-* in target selection strings. Instead use powerpc*-*-* and ilp32 or lp64 as appropriate. Merge dg-require-effective-target option into target selector. * gcc.dg/20020919-1.c: Compile for powerpc*-*-*. Handle powerpc64. * gcc.misc-tests/linkage.exp: Set native_cflags for powerpc*-*-linux*. From-SVN: r108457
Alan Modra committed -
* config/arm/bpabi.h (SUBTARGET_EXTRA_ASM_SPEC): Pass -meabi=gnu for apcs/atpcs. From-SVN: r108450
Paul Brook committed -
* config/arm/bpabi.h (SUBTARGET_EXTRA_ASM_SPEC): Pass -meabi=gnu for apcs/atpcs. From-SVN: r108448
Paul Brook committed -
2005-12-12 Carlos O'Donell <carlos@codesourcery.com> * MAINTAINERS (Write After Approval): Add myself. From-SVN: r108443
Carlos O'Donell committed -
From-SVN: r108439
GCC Administrator committed
-
- 12 Dec, 2005 25 commits
-
-
2005-12-12 Andrew Pinski <pinskia@physics.uc.edu> PR objc/25348 * objc-act.c (encode_array): Handle arrays to zero sized types. 2005-12-12 Andrew Pinski <pinskia@physics.uc.edu> PR objc/25348 * objc.dg/encode-9.m: New test. From-SVN: r108432
Andrew Pinski committed -
2005-12-11 Rafael Ávila de Espíndola <rafael.espindola@gmail.com> * tree-flow.h: Allow compilation with a C++ compiler. (struct edge_prediction): Prefix all field names with "ep_". * predict.c (tree_predicted_by_p): Likewise for struct edge_prediction. (tree_predict_edge, combine_predictions_for_bb): Likewise. (remove_predictions_associated_with_edge): Likewise. From-SVN: r108430
Rafael Ávila de Espíndola committed -
PR testsuite/20772 * g++.old-deja/g++.eh/tmpl2.C: Remove xfail. * gcc.dg/asm-b.c: Fix typo. * gcc.dg/torture/pr20314-2.c: Test on i?86 lp64. * gcc.dg/tree-ssa/stdarg-2.c, gcc.dg/tree-ssa/stdarg-3.c, gcc.dg/tree-ssa/stdarg-4.c, gcc.dg/tree-ssa/stdarg-5.c: Test on i?86 lp64 and x86_64 ilp32. * gcc.target/i386/amd64-abi-1.c, gcc.target/i386/pr23943.c: Test on i?86 lp64. * gfortran.dg/g77/20010216-1.f: Test on x86_64 ilp32. From-SVN: r108427
Kaveh R. Ghazi committed -
PR fortran/25078 * match.c (gfc_match_equivalence): Count number of objects. gfortran.dg/equiv_5.f90: New test. From-SVN: r108426
Steven G. Kargl committed -
* tree-ssa-dom.c (simplify_rhs_and_lookup_avail_expr): Remove reassociation code. * passes.c (init_optimization_passes): Run reassociation again after loop optimizations. * tree-ssa-dom.c (thread_across_edge): Canonicalize condition if necessary. (optimize_stmt): Ditto. (canonicalize_comparison): New function. * tree-ssa-operands.c (swap_tree_operands): Make external. (get_expr_operands): Stop auto-canonicalization. * tree-ssa-reassoc.c: Rewrite. (init_optimization_passes): * tree-flow.h (swap_tree_operands): Prototype. * Makefile.in (tree-ssa-reassoc.o): Update dependencies. * gcc.dg/tree-ssa/ssa-pre-2.c: Update due to reassociation changes. * gcc.dg/tree-ssa/reassoc-1.c: Likewise. * gcc.dg/tree-ssa/reassoc-2.c: Likewise. * gcc.dg/tree-ssa/reassoc-3.c: Likewise. * gcc.dg/tree-ssa/reassoc-4.c: Likewise. * gcc.dg/tree-ssa/reassoc-5.c: New. * gcc.dg/tree-ssa/reassoc-6.c: New. * gcc.dg/tree-ssa/reassoc-7.c: New. * gcc.dg/tree-ssa/reassoc-8.c: New. * gcc.dg/tree-ssa/reassoc-9.c: New. * gcc.dg/tree-ssa/reassoc-10.c: New. * gcc.dg/tree-ssa/reassoc-11.c: New. From-SVN: r108425
Jeff Law committed -
2005-12-12 Andrew Haley <aph@redhat.com> * java/lang/VMCompiler.java: Directly generate a new instance of gnu.java.security.provider.MD5. From-SVN: r108421
Andrew Haley committed -
PR target/25258 * pa.c (pa_output_function_epilogue): Set cfun->machine->in_nsubspa to indicate function epilogue has been output. (pa_asm_output_mi_thunk): Likewise. (output_deferred_plabels): Put plabels in readonly data section when not generating PIC code. (som_output_text_section_asm_op): Use .NSUBSPA to output debug information. Add assert. (som_output_comdat_data_section_asm_op): New function. (pa_som_asm_init_sections): Use som_output_comdat_data_section_asm_op instead of output_section_asm_op for COMDAT sections. From-SVN: r108420
John David Anglin committed -
PR testsuite/25167 PR testsuite/24478 * gcc.dg/weak/weak-14.c: Add dg-require-alias. From-SVN: r108416
John David Anglin committed -
PR c++/25300 * tree.c (build_qualified_name): Return error_mark_node for erroneous input. PR c++/25300 * g++.dg/template/inherit.C: Do not use a generic error message. From-SVN: r108413
Mark Mitchell committed -
2005-12-12 H.J. Lu <hongjiu.lu@intel.com> PR java/25330 * jcf-write.c (write_classfile): Use PID in temporary class file. Save/restore errno when reporting error. From-SVN: r108411
H.J. Lu committed -
2005-12-12 J"orn Rennecke <joern.rennecke@st.com> * cfgcleanup.c (condjump_equiv_p, try_crossjump_to_edge): Fix whitespace in vincinity of to-be-installed changes. * struct-equiv.c (merge_memattrs, death_notes_match_p): Fix whitespace. (insns_match_p): Likewise. From-SVN: r108410
J"orn Rennecke committed -
From-SVN: r108409
Arnaud Charlet committed -
From-SVN: r108408
Arnaud Charlet committed -
From-SVN: r108407
Arnaud Charlet committed -
From-SVN: r108406
Arnaud Charlet committed -
From-SVN: r108405
Arnaud Charlet committed -
From-SVN: r108404
Nathan Sidwell committed -
* config.gcc (ms1): Replace with ... (mt): ... this. * config/ms1: Rename to ... * config/mt: ... here. Rename ms1 files to mt. * config/mt/mt.c: Adjust gt-mt.h #include. * config/mt/t-mt (LIB1ASMSRCS, LIB2FUNCS_EXTRA): Adjust. (crti.o, crtn.o): Adjust file names. * config.sub: Replace ms1 with mt. Allow ms1 as an alias. From-SVN: r108403
Nathan Sidwell committed -
From-SVN: r108402
Nathan Sidwell committed -
From-SVN: r108401
Nathan Sidwell committed -
* varray.h: Allow compilation with a C++ compiler. (union varray_data_tag): Prefix all field names with "vdt_". (VARRAY_CHAR, VARRAY_UCHAR, VARRAY_SHORT, VARRAY_USHORT, VARRAY_INT, VARRAY_UINT, VARRAY_LONG, VARRAY_ULONG, VARRAY_WIDE_INT, VARRAY_UWIDE_INT, VARRAY_GENERIC_PTR, VARRAY_GENERIC_PTR_NOGC, VARRAY_CHAR_PTR, VARRAY_RTX, VARRAY_RTVEC, VARRAY_TREE, VARRAY_BITMAP, VARRAY_REG, VARRAY_BB, VARRAY_ELT_LIST, VARRAY_EDGE, VARRAY_TREE_PTR): Adjust definition. (VARRAY_PUSH_CHAR, VARRAY_PUSH_UCHAR, VARRAY_PUSH_SHORT, VARRAY_PUSH_USHORT, VARRAY_PUSH_INT, VARRAY_PUSH_UINT, VARRAY_PUSH_LONG, VARRAY_PUSH_ULONG, VARRAY_PUSH_WIDE_INT, VARRAY_PUSH_UWIDE_INT, VARRAY_PUSH_GENERIC_PTR, VARRAY_PUSH_GENERIC_PTR_NOGC, VARRAY_PUSH_CHAR_PTR, VARRAY_PUSH_RTX, VARRAY_PUSH_RTVEC, VARRAY_PUSH_TREE, VARRAY_PUSH_BITMAP, VARRAY_PUSH_REG, VARRAY_PUSH_BB, VARRAY_PUSH_EDGE, VARRAY_PUSH_TREE_PTR): Likewise. (VARRAY_TOP_CHAR, VARRAY_TOP_UCHAR, VARRAY_TOP_SHORT, VARRAY_TOP_USHORT, VARRAY_TOP_INT, VARRAY_TOP_UINT, VARRAY_TOP_LONG, VARRAY_TOP_ULONG, VARRAY_TOP_WIDE_INT, VARRAY_TOP_UWIDE_INT, VARRAY_TOP_GENERIC_PTR, VARRAY_TOP_GENERIC_PTR_NOGC, VARRAY_TOP_CHAR_PTR, VARRAY_TOP_RTX, VARRAY_TOP_RTVEC, VARRAY_TOP_TREE, VARRAY_TOP_BITMAP, VARRAY_TOP_REG, VARRAY_TOP_BB, VARRAY_TOP_EDGE, VARRAY_TOP_TREE_PTR): Likewise. * varray.c (varray_grow): Likewise. (varray_clear): Likewise. From-SVN: r108399
Gabriel Dos Reis committed -
re PR libobjc/25354 (There should be an automated testsuite for objc_sizeof_type and objc_alignof_type) 2005-12-12 Andrew Pinski <pinskia@physics.uc.edu> PR libobjc/25354 * objc.dg/gnu-encoding: New directory. * objc.dg/gnu-encoding/compat-common.h: New file. * objc.dg/gnu-encoding/struct-layout-1.h: New file. * objc.dg/gnu-encoding/struct-layout-1_test.h: New file. * objc.dg/gnu-encoding/vector-defs.h: New file. * objc.dg/gnu-encoding/gnu-encoding.exp: New file. * objc.dg/gnu-encoding/generate-random.c: New file. * objc.dg/gnu-encoding/generate-random_r.c: New file. * objc.dg/gnu-encoding/struct-layout-encoding-1_generate.c: New file. * objc.dg/gnu-encoding/generate-random.h: New file. 2005-12-12 Andrew Pinski <pinskia@physics.uc.edu> * encoding.c (TYPE_FIELDS): Fix to skip over just _C_STRUCT_B and the name. (get_inner_array_type): Fix to skip over _C_ARY_B and size. (rs6000_special_round_type_align): Update for the ABI fix. (objc_layout_finish_structure): Correct the encoding which is passed to ROUND_TYPE_ALIGN. From-SVN: r108398
Andrew Pinski committed -
PR c++/25337 * pt.c (tsubst_copy_and_build): Permit dependent types for the object in a class member access expression. PR c++/25337 * g++.dg/template/defarg7.C: New test. From-SVN: r108394
Mark Mitchell committed -
PR target/25299 * config/rs6000/rs6000.c (rs6000_special_round_type_align): Increase alignment to doubleword if the first field is a double array. * config/rs6000/linux64.h (TARGET_ALIGN_NATURAL): Define. From-SVN: r108393
Alan Modra committed -
From-SVN: r108390
GCC Administrator committed
-
- 11 Dec, 2005 1 commit
-
-
2005-12-11 Daniel Berlin <dberlin@dberlin.org> * tree-ssa-structalias.c (process_constraint): Remove code to transform addressofs into scalar. (create_variable_info_for): In whole-program IPA, globals don't point to ANYTHING by default. 2005-12-11 Daniel Berlin <dberlin@dberlin.org> * timevar.def (TV_IPA_PTA): New. * tree-pass.h (pass_ipa_pta): New * tree-ssa-structalias.c: Include cgraph.h (in_ipa_mode): New. (predbitmap_obstack): New. (EXECUTE_IF_IN_NONNULL_BITMAP): New. (struct constraint_stats): Add num_edges. (new_var_info): Don't call bitmap_clear. (struct constraint_edge): Update docs. (new_constraint_edge): Remove src param. (struct constraint_graph): Add zero_weight_succs, zero_weight_preds. Update docs. (constraint_expr_equal): Reformat. (constraint_edge_equal): Update for removal of src. (constraint_edge_less): Ditto. (constraint_edge_vec_find): Ditto. (erase_graph_self_edge): Update for removal of src and and zero weight bitmap. (clear_edges_for_node): Ditto. (add_graph_edge): Ditto. (get_graph_weights): Ditto. (allocate_graph_weights): Ditto. (merge_graph_nodes): Ditto. (int_add_graph_edge): Ditto. (valid_graph_edge): Ditto. (valid_weighted_graph_edge): Ditto. (build_constraint_graph): Ditto. (scc_visit): Ditto. (collapse_nodes): Ditto. (process_unification_queue): Ditto. (topo_visit): Ditto. (solve_graph): Ditto. (do_structure_copy): Ditto. (perform_var_substitution): Ditto. Init and release obstack. (handle_ptr_arith): Try to resolve directly. (find_func_aliases): Don't call update_alias_info here Handle RETURN_EXPR, and CALL_EXPR's in IPA mode. (do_sd_constraint): Add code for propagating faster. Update. (do_ds_constraint): Ditto. (count_num_arguments): New function. (create_function_info_for): Ditto. (create_variable_info_for): Handle FUNCTION_DECL. (intra_create_variable_infos): Use make_constraint_to_anything. (init_alias_vars): Init obstacks here. (need_to_solve): Handle zero weight graph changes. (compute_points_to_sets): Call update_alias_info here. (delete_points_to_sets): Free zero weight preds/succs here. (gate_ipa_pta): New. (ipa_pta_execute): New 2005-12-11 Daniel Berlin <dberlin@dberlin.org> * tree-ssa-structalias.c (var_anyoffset): Removed. (anyoffset_tree): Ditto. (anyoffset_id): Ditto. (do_deref): Take vector of constraints, no return value. Update to work on vector. (get_constraint_for): Ditto. (get_constraint_for_component_ref): Ditto. (do_structure_copy): Ditto. (handle_ptr_arith): Ditto. (find_func_aliases): Ditto. (set_uids_in_ptset): Remove anyoffset handling. (init_base_vars): Ditto. From-SVN: r108384
Daniel Berlin committed
-