1. 13 Dec, 2005 14 commits
    • re PR java/25366 (ICE in do_resolve_class) · 65260edb
      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… · 78fdb6d2
      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
    • Update. · f767c88d
      From-SVN: r108465
      Jakub Jelinek committed
    • re PR debug/25023 (ICE in def_cfa_1, at dwarf2out.c:792) · 6541fe75
      	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
    • re PR c++/24907 ("int x, ;" accepted) · 6d328225
      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
    • struct-layout-1.exp: Do not link with libiberty. · 7e825da0
      	* 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
    • re PR c++/25331 (FAIL: tmpdir-g++.dg-struct-layout-1/t028 cp_compat_[xy]_tst.o compile) · e2796397
      	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
    • Make-lang.in (fortran/trans-resolve.o): Depend on fortran/dependency.h. · 1524f80b
      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… · 264c41ed
      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
    • 980523-1.c, [...]: Don't use powerpc-*-* or powerpc64-*-* in target selection strings. · 65b1344e
      	* 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
    • bpabi.h (SUBTARGET_EXTRA_ASM_SPEC): Pass -meabi=gnu for apcs/atpcs. · dbff657a
      	* config/arm/bpabi.h (SUBTARGET_EXTRA_ASM_SPEC): Pass -meabi=gnu for
      	apcs/atpcs.
      
      From-SVN: r108450
      Paul Brook committed
    • bpabi.h (SUBTARGET_EXTRA_ASM_SPEC): Pass -meabi=gnu for apcs/atpcs. · 99700fec
      	* config/arm/bpabi.h (SUBTARGET_EXTRA_ASM_SPEC): Pass -meabi=gnu for
      	apcs/atpcs.
      
      From-SVN: r108448
      Paul Brook committed
    • MAINTAINERS (Write After Approval): Add myself. · 9174b3cf
      
      2005-12-12  Carlos O'Donell <carlos@codesourcery.com>
      
      	* MAINTAINERS (Write After Approval): Add myself.
      
      From-SVN: r108443
      Carlos O'Donell committed
    • Daily bump. · bd4c7092
      From-SVN: r108439
      GCC Administrator committed
  2. 12 Dec, 2005 25 commits
  3. 11 Dec, 2005 1 commit
    • tree-ssa-structalias.c (process_constraint): Remove code to transform addressofs into scalar. · 4ee00913
      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