platform/upstream/linaro-gcc.git
19 years ago * c-typeck.c (convert_for_assignment): Avoid cheking
gdr [Sat, 11 Jun 2005 19:47:01 +0000 (19:47 +0000)]
    * c-typeck.c (convert_for_assignment): Avoid cheking
        OPT_Wc___compat, as it is always true.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@100843 138bc75d-0d04-0410-961f-82ee72b054a4

19 years ago2005-06-11 Thomas Koenig <Thomas.Koenig@onlinde.de>
tkoenig [Sat, 11 Jun 2005 19:39:13 +0000 (19:39 +0000)]
2005-06-11  Thomas Koenig  <Thomas.Koenig@onlinde.de>

PR libfortran/21333
* Makefile.am: Add in_pack_c4.c, in_pack_c8.c, in_unpack_c4.c
and in_unpack_c8.c.
* Makefile.in: Regenerate.
* libgfortran.h:  Declare internal_pack_c4, internal_pack_c8,
internal_unpack_c4 and internal_unpack_c8.
* m4/in_pack.m4: Use rtype_ccode insteald of rtype_kind
in function name.
Use sizeof (rtype_name) as size for memory allocation.
* m4/in_unpack.m4: Use rtype_ccode insteald of rtype_kind
in function name.
Use sizeof (rtype_name) for calculation of sizes for memcpy.
* runtime/in_pack_generic.c:  For real, integer and logical
call internal_pack_4 if size==4 and internal_pack_8 if
size==8.
For complex, call internal_pack_c4 if size==8 and
internal_pack_c8 if size==16.
* runtime/in_unpack_generic.c: For real, integer and logical
        call internal_unpack_4 if size==4 and internal_unpack_8 if
        size==8.
        For complex, call internal_unpack_c4 if size==8 and
        internal_unpack_c8 if size==16.
* generated/in_pack_i4.c:  Regenerated.
* generated/in_pack_i8.c:  Regenerated.
* generated/in_unpack_i4.c:  Regenerated.
* generated/in_unpack_i8.c:  Regenerated.
* generated/in_pack_c4.c:  New file.
* generated/in_pack_c8.c:  New file.
* generated/in_unpack_c4.c:  New file.
* generated/in_unpack_c8.c:  New file.

2005-05-11  Thomas Koenig  <Thomas.Koenig@online.de>

* gfortran.fortran-torture/execute/in-pack.f90:  New test.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@100842 138bc75d-0d04-0410-961f-82ee72b054a4

19 years ago * config/rs6000/rs6000.md (eq<mode>_compare): Restrict to Pmode.
dje [Sat, 11 Jun 2005 19:07:05 +0000 (19:07 +0000)]
    * config/rs6000/rs6000.md (eq<mode>_compare): Restrict to Pmode.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@100841 138bc75d-0d04-0410-961f-82ee72b054a4

19 years ago2005-06-11 Daniel Berlin <dberlin@dberlin.org>
dberlin [Sat, 11 Jun 2005 15:28:35 +0000 (15:28 +0000)]
2005-06-11  Daniel Berlin  <dberlin@dberlin.org>

* lambda-code.c (replace_uses_equiv_to_x_with_y): Verify the step
is an INTEGER_CST before calling int_cst_value.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@100839 138bc75d-0d04-0410-961f-82ee72b054a4

19 years agoDaily bump.
gccadmin [Sat, 11 Jun 2005 00:16:20 +0000 (00:16 +0000)]
Daily bump.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@100836 138bc75d-0d04-0410-961f-82ee72b054a4

19 years ago PR target/21981
rth [Fri, 10 Jun 2005 21:45:12 +0000 (21:45 +0000)]
PR target/21981
* config/i386/i386.c (ix86_function_value_regno_p): Return true
for FIRST_MMX_REG if TARGET_MMX.
(ix86_return_in_memory): Return 1 for MMX/3dNow vectors. Delete
wrong comment.
(ix86_struct_value_rtx): Emit warning for MMX ABI violations.
(ix86_value_regno): Return FIRST_MMX_REG for MMX vector modes.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@100832 138bc75d-0d04-0410-961f-82ee72b054a4

19 years ago2005-06-10 Daniel Berlin <dberlin@dberlin.org>
dberlin [Fri, 10 Jun 2005 21:34:07 +0000 (21:34 +0000)]
2005-06-10  Daniel Berlin  <dberlin@dberlin.org>

* lambda-code.c (replace_uses_equiv_to_x_with_y): Check step
and access function against chrec_dont_know.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@100831 138bc75d-0d04-0410-961f-82ee72b054a4

19 years ago2005-06-10 Daniel Berlin <dberlin@dberlin.org>
dberlin [Fri, 10 Jun 2005 19:23:26 +0000 (19:23 +0000)]
2005-06-10  Daniel Berlin  <dberlin@dberlin.org>

* lambda-code.c (replace_uses_of_x_with_y): Renamed and rewritten
        slightly.
(exit_phi_for_loop_p): New function.
(can_put_in_inner_loop): Ditto.
(can_convert_to_perfect_nest): Ditto.
(perfect_nestify): Create iv with right type.
Rewrite statements in correct order.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@100827 138bc75d-0d04-0410-961f-82ee72b054a4

19 years ago2005-06-10 Keith Besaw <kbesaw@us.ibm.com>
dorit [Fri, 10 Jun 2005 17:44:22 +0000 (17:44 +0000)]
2005-06-10  Keith Besaw  <kbesaw@us.ibm.com>

        * tree-ssa-alias.c (new_type_alias): Use existing type
        tag if VAR has just one in its may_aliases list.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@100824 138bc75d-0d04-0410-961f-82ee72b054a4

19 years ago PR c++/10611
aldyh [Fri, 10 Jun 2005 17:35:37 +0000 (17:35 +0000)]
    PR c++/10611
        * cvt.c (build_expr_type_conversion): Same.
        * typeck.c (build_binary_op): Handle vectors.
        (common_type): Same.
        (type_after_usual_arithmetic_conversions): Same.
        * testsuite/g++.dg/conversion/simd2.C: New.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@100823 138bc75d-0d04-0410-961f-82ee72b054a4

19 years ago PR 17961
aldyh [Fri, 10 Jun 2005 17:04:09 +0000 (17:04 +0000)]
PR 17961
* config/rs6000/sysv4.h (ROUND_TYPE_ALIGN): Remove.
* config/rs6000/linux64.h (ROUND_TYPE_ALIGN): Remove vector check.
* testsuite/gcc.dg/simd-3.c: New.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@100820 138bc75d-0d04-0410-961f-82ee72b054a4

19 years agoUse scc_operand predicate for eq:SI in powerpc.
fjahanian [Fri, 10 Jun 2005 15:01:59 +0000 (15:01 +0000)]
Use scc_operand predicate for eq:SI in powerpc.
Oked by David Edelsohn.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@100818 138bc75d-0d04-0410-961f-82ee72b054a4

19 years ago * tree-vect-analyze.c (vect_analyze_data_ref_dependence): DRs whose
dorit [Fri, 10 Jun 2005 14:52:01 +0000 (14:52 +0000)]
    * tree-vect-analyze.c (vect_analyze_data_ref_dependence): DRs whose
        dependence-distance modulo VF is 0 are recorded in the
        SAME_ALIGN_REFs VEC in each DR.
        (vect_enhance_data_refs_alignment): Avoid 80 column overflow. The
        alignment information of DRs that are in the SAME_ALIGN_REFs VEC of the
        DR we want to peel for, is set to 0.
        * tree-vect-transform.c (vect_do_peeling_for_loop_bound): Fix printout.
        * tree-vectorizer.c (destroy_loop_vec_info): Free the SAME_ALIGN_REFs
        VEC.
        * tree-vectorizer.h (dr_p): New type. Defined to use the VEC API.
        (_stmt_vec_info): Added new field same_align_refs.
        (STMT_VINFO_SAME_ALIGN_REFS): New macro.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@100817 138bc75d-0d04-0410-961f-82ee72b054a4

19 years ago * vec.h (VEC_safe_grow): Append MEM_STAT_INFO.
nathan [Fri, 10 Jun 2005 12:02:22 +0000 (12:02 +0000)]
* vec.h (VEC_safe_grow): Append MEM_STAT_INFO.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@100816 138bc75d-0d04-0410-961f-82ee72b054a4

19 years ago * config/rs6000/linux.h (NO_PROFILE_COUNTERS): Define.
amodra [Fri, 10 Jun 2005 01:44:59 +0000 (01:44 +0000)]
* config/rs6000/linux.h (NO_PROFILE_COUNTERS): Define.
* config/rs6000/linux64.h (NO_PROFILE_COUNTERS): Define as 1.
* config/rs6000/rs6000.c (output_function_profiler): Obey
NO_PROFILE_COUNTERS.  Handle TARGET_SECURE_PLT.  Use "bcl 20,31"
for -fPIC.  Delete save_lr and substitute its value into strings.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@100814 138bc75d-0d04-0410-961f-82ee72b054a4

19 years ago2005-06-09 Dale Johannesen <dalej@apple.com>
dalej [Fri, 10 Jun 2005 01:16:52 +0000 (01:16 +0000)]
2005-06-09  Dale Johannesen  <dalej@apple.com>

        * config/i386/i386.c (optimization_options):  Make -fno-math-errno
        the default on Darwin.
        * config/rs6000/rs6000.c (optimization_options):  Ditto.
        * doc/invoke.texi (-fno-math-errno): Document.

2005-06-09  Dale Johannesen  <dalej@apple.com>

        * config/rs6000/rs6000.c (TARGET_INSN_VALID_WITHIN_DOLOOP):
        Change to TARGET_INVALID_WITHIN_DOLOOP.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@100813 138bc75d-0d04-0410-961f-82ee72b054a4

19 years ago * config/rs6000/rs6000.md (eq): Convert to define_insn_and_split.
dje [Fri, 10 Jun 2005 01:11:43 +0000 (01:11 +0000)]
    * config/rs6000/rs6000.md (eq): Convert to define_insn_and_split.
        * config/rs6000/predicates.md (scc_eq_operand): New.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@100812 138bc75d-0d04-0410-961f-82ee72b054a4

19 years agoDaily bump.
gccadmin [Fri, 10 Jun 2005 00:16:17 +0000 (00:16 +0000)]
Daily bump.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@100810 138bc75d-0d04-0410-961f-82ee72b054a4

19 years ago * config/sh/sh.md (mextr_rl): Set buffer size properly.
kkojima [Thu, 9 Jun 2005 23:42:29 +0000 (23:42 +0000)]
* config/sh/sh.md (mextr_rl): Set buffer size properly.
(*mextr_lr): Likewise.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@100808 138bc75d-0d04-0410-961f-82ee72b054a4

19 years agoFix email address
gdr [Thu, 9 Jun 2005 22:27:41 +0000 (22:27 +0000)]
Fix email address

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@100807 138bc75d-0d04-0410-961f-82ee72b054a4

19 years ago PR c/21759
gdr [Thu, 9 Jun 2005 22:21:48 +0000 (22:21 +0000)]
    PR c/21759
        * c.opt (Wc++-compat): New.
        * doc/invoke.texi (-Wc++-compat): Document.
        * c-typeck.c (convert_for_assignment): Check for implicit
        conversion void* -> T*.
testsuite/
        * gcc.dg/Wcxx-compat-1.c: New.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@100806 138bc75d-0d04-0410-961f-82ee72b054a4

19 years ago2005-06-09 Thomas Koenig <Thomas.Koenig@online.de>
tkoenig [Thu, 9 Jun 2005 19:43:27 +0000 (19:43 +0000)]
2005-06-09  Thomas Koenig  <Thomas.Koenig@online.de>

PR libfortran/21480
* m4/reshape.m4:  Use sizeof (rtype_name) for sizes to be passed
to reshape_packed.
* generated/reshape_c4.c:  Regenerated.
* generated/reshape_c8.c:  Regenerated.
* generated/reshape_i4.c:  Regenerated.
* generated/reshape_i8.c:  Regenerated.

2005-06-09  Thomas Koenig  <Thomas.Koenig@online.de>

PR libfortran/21480
* gfortran.dg/reshape-complex.f90:  Add a test for a packed
complex array.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@100805 138bc75d-0d04-0410-961f-82ee72b054a4

19 years ago * machmode.h (to_machine_mode): New.
gdr [Thu, 9 Jun 2005 17:41:37 +0000 (17:41 +0000)]
    * machmode.h (to_machine_mode): New.
        * rtl.h (to_rtx_code): Likewise.
        * read-rtl.c (apply_mode_macro): Convert mode to machine_mode.
        (print_c_condition): Convert return value of htab_find().
        (apply_code_macro): Add explicit cast when convertin to enums.
        (apply_mode_maps): Likewise.
        (check_code_macro): Likewise.
        (read_rtx_1): Likewise.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@100804 138bc75d-0d04-0410-961f-82ee72b054a4

19 years ago * config/ia64/ia64.c (update_set_flags): Just return for IF_THEN_ELSE.
rth [Thu, 9 Jun 2005 17:38:06 +0000 (17:38 +0000)]
    * config/ia64/ia64.c (update_set_flags): Just return for IF_THEN_ELSE.
        Use SCALAR_FLOAT_MODE_P.
        * config/ia64/vect.md (vcondv2sf): Remove code check on comparison.
        (fselect): Rename from fpcmp; use %F.
        (fpcmp): New.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@100803 138bc75d-0d04-0410-961f-82ee72b054a4

19 years ago * cgraphunit.c (cgraph_create_edges): Do not walk BLOCK; finalize
hubicka [Thu, 9 Jun 2005 16:21:36 +0000 (16:21 +0000)]
* cgraphunit.c (cgraph_create_edges): Do not walk BLOCK; finalize
local statics when doing unit-at-a-time.
(cgraph_varpool_assemble_pending_decls): Output debug info.
* dwarf2out.c (decls_for_scope): Skip local statics.
(dwarf2out_decl): Handle local statics.
* passes.c (rest_of_decl_compilation): Do not differentiate
local and global statics in unit-at-a-time.
* tree-inline.c (remap_decls): Put local static into
unexpanded_vars_list rather than introducing duplicated VAR_DECL
node.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@100802 138bc75d-0d04-0410-961f-82ee72b054a4

19 years ago2005-06-09 Daniel Berlin <dberlin@dberlin.org>
dberlin [Thu, 9 Jun 2005 14:23:28 +0000 (14:23 +0000)]
2005-06-09  Daniel Berlin  <dberlin@dberlin.org>

* config/rs6000/rs6000.c: (rs6000_insn_valid_within_doloop): Fix
prototype.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@100801 138bc75d-0d04-0410-961f-82ee72b054a4

19 years ago2005-06-08 Daniel Berlin <dberlin@dberlin.org>
dberlin [Thu, 9 Jun 2005 13:05:39 +0000 (13:05 +0000)]
2005-06-08  Daniel Berlin  <dberlin@dberlin.org>

* Makefile.in (OBJS-common): Add tree-ssa-structalias.o.
* tree-flow.h (find_what_p_points_to): Add prototype.
(push_fields_onto_fieldstack): Ditto.
(sort_fieldstack): Ditto.
* tree-optimize.c (init_tree_optimization_passes): Add
pass_build_pta and pass_del_pta.
* tree-pass.h (pass_build_pta): New structure.
(pass_del_pta): Ditto.
* tree-ssa-alias.c (compute_flow_sensitive_aliasing): Disambiguate
using new alias analyzer.
(push_fields_onto_fieldstack): Removed from here.
(bitpos_of_field): Ditto.
(fieldoff_compare): Ditto.
* tree-ssa-structalias.c: New file.
* tree-ssa-structalias.h: Ditto.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@100800 138bc75d-0d04-0410-961f-82ee72b054a4

19 years ago/:
nathan [Thu, 9 Jun 2005 11:36:12 +0000 (11:36 +0000)]
/:
* c-typeck.c (build_c_cast): Check type punning on COMPONENT_REF
too.
testsuite:
* gcc.dg/alias-8.c: New.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@100799 138bc75d-0d04-0410-961f-82ee72b054a4

19 years ago * config/bfin/bfin.c (enum bfin_builtins): Moved here from...
bernds [Thu, 9 Jun 2005 11:26:16 +0000 (11:26 +0000)]
* config/bfin/bfin.c (enum bfin_builtins): Moved here from...
* config/bfin/bfin.h (enum bfin_builtins): ... here.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@100798 138bc75d-0d04-0410-961f-82ee72b054a4

19 years ago2005-06-09 Adrian Straetling <straetling@de.ibm.com>
uweigand [Thu, 9 Jun 2005 11:17:23 +0000 (11:17 +0000)]
2005-06-09  Adrian Straetling  <straetling@de.ibm.com>

* target.h (insn_valid_within_doloop): Rename into
"invalid_within_doloop".  Change return type to "const char *".
Update Comment.
* targhooks.h (default_insn_valid_within_doloop): Rename into
"default_invalid_within_doloop".
* targhooks.c (default_insn_valid_within_doloop): Likewise.
Update Comment.
* target-def.h (TARGET_INSN_VALID_WITHIN_DOLOOP): Rename target hook
into "TARGET_INVALID_WITHIN_DOLOOP". Default it to
"default_invalid_within_doloop".
* hooks.c (hook_constcharptr_rtx_null): New function.
(hook_bool_rtx_true): Remove.
* hooks.h (hook_constcharptr_rtx_null): Declare.
(hook_bool_rtx_true): Remove.
* loop-doloop.c (doloop_valid_p): Temporarily store return value of
"invalid_within_doloop" and print error message if non-null.
Update Comment.
* doc/tm.texi: Update documentation.
* config/s390/s390.c: Adjust to new hook name and new default hook.
* config/rs6000/rs6000.c: (rs6000_insn_valid_within_doloop): Rename
into "rs6000_invalid_within_doloop".
(rs6000_invalid_within_doloop): Change return type to "static const
char *" and replace return values.  Update Comment.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@100797 138bc75d-0d04-0410-961f-82ee72b054a4

19 years ago * config/bfin/bfin.opt (mlong-calls): New.
bernds [Thu, 9 Jun 2005 11:12:44 +0000 (11:12 +0000)]
* config/bfin/bfin.opt (mlong-calls): New.
* config/bfin/predicates.md (call_insn_operand): Disallow SYMBOL_REF
if TARGET_LONG_CALLS.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@100796 138bc75d-0d04-0410-961f-82ee72b054a4

19 years ago * gjavah.c (error): Add ATTRIBUTE_PRINTF_1.
ghazi [Thu, 9 Jun 2005 10:55:02 +0000 (10:55 +0000)]
* gjavah.c (error): Add ATTRIBUTE_PRINTF_1.
* java-tree.h (parse_error_context): Move...
* parse.h (parse_error_context): ... here, add ATTRIBUTE_GCC_DIAG.
* parse.y (parse_warning_context): Add ATTRIBUTE_GCC_DIAG.
* verify-impl.c (debug_print): Add ATTRIBUTE_PRINTF_1.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@100795 138bc75d-0d04-0410-961f-82ee72b054a4

19 years ago PR tree-opt/20610
rth [Thu, 9 Jun 2005 07:43:40 +0000 (07:43 +0000)]
    PR tree-opt/20610
        * tree.h (DECL_COMPLEX_GIMPLE_REG_P): New.
        (struct tree_decl): Add gimple_reg_flag.
        * integrate.c (copy_decl_for_inlining): Copy it.
        * gimplify.c (internal_get_tmp_var): Set it.
        (gimplify_bind_expr): Likewise.
        (gimplify_function_tree): Likewise.
        (gimplify_modify_expr_complex_part): New.
        (gimplify_modify_expr): Use it.
        * tree-gimple.c (is_gimple_reg_type): Allow complex.
        (is_gimple_reg): Allow complex with DECL_COMPLEX_GIMPLE_REG_P set.

        * tree-complex.c (complex_lattice_t): New.
        (complex_lattice_values, complex_variable_components): New.
        (some_nonzerop, find_lattice_value, is_complex_reg,
        init_parameter_lattice_values, init_dont_simulate_again,
        complex_visit_stmt, complex_visit_phi, create_components,
        update_complex_components, update_parameter_components,
        update_phi_components, update_all_vops, expand_complex_move): New.
        (extract_component): Handle INDIRECT_REF, COMPONENT_REF, ARRAY_REF,
        SSA_NAME.
        (update_complex_assignment): Use update_complex_components;
        handle updates of return_expr properly.
        (expand_complex_addition): Use complex lattice values.
        (expand_complex_multiplication): Likewise.
        (expand_complex_division): Likewise.
        (expand_complex_libcall): Use update_complex_components.
        (expand_complex_comparison): Use update_stmt.
        (expand_complex_operations_1): Use expand_complex_move, retrieve
        lattice values.
        (tree_lower_complex): Compute lattice values.
        (tree_lower_complex_O0): Duplicate from tree_lower_complex.
        (pass_lower_complex_O0): Rename from pass_lower_complex.
        (pass_lower_complex, gate_no_optimization): New.
        * tree-optimize.c (init_tree_optimization_passes): Update for
        complex pass changes.
        * tree-pass.h (pass_lower_complex_O0): Declare.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@100793 138bc75d-0d04-0410-961f-82ee72b054a4

19 years ago2005-06-08 Dale Johannesen <dalej@apple.com>
dalej [Thu, 9 Jun 2005 03:53:24 +0000 (03:53 +0000)]
2005-06-08  Dale Johannesen  <dalej@apple.com>

        * config/darwin.c (darwin_binds_local_p):  New.
        * config/darwin-protos.h (darwin_binds_local_p):  Declare it.
        * config/i386/i386.c (TARGET_BINDS_LOCAL_P):  Use it for TARGET_MACHO.
        * config/rs6000/rs6000.c (rs6000_binds_local_p):  Remove.
        (TARGET_BINDS_LOCAL_P):  Change it to darwin_binds_local_p.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@100792 138bc75d-0d04-0410-961f-82ee72b054a4

19 years ago * typeck.c (convert): Only clear TREE_OVERFLOW on INTEGER_CST nodes.
sayle [Thu, 9 Jun 2005 03:38:09 +0000 (03:38 +0000)]
* typeck.c (convert): Only clear TREE_OVERFLOW on INTEGER_CST nodes.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@100791 138bc75d-0d04-0410-961f-82ee72b054a4

19 years agoDaily bump.
gccadmin [Thu, 9 Jun 2005 00:16:23 +0000 (00:16 +0000)]
Daily bump.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@100789 138bc75d-0d04-0410-961f-82ee72b054a4

19 years agoAdd PR number to ChangeLog entry.
bryce [Thu, 9 Jun 2005 00:15:43 +0000 (00:15 +0000)]
Add PR number to ChangeLog entry.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@100786 138bc75d-0d04-0410-961f-82ee72b054a4

19 years ago * java/rmi/server/RMIClassLoader.java (getClassLoader): Make public.
bryce [Thu, 9 Jun 2005 00:02:37 +0000 (00:02 +0000)]
* java/rmi/server/RMIClassLoader.java (getClassLoader): Make public.
From Gary Benson.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@100785 138bc75d-0d04-0410-961f-82ee72b054a4

19 years ago * config/rs6000/rs6000.h: Remove rs6000_long_double_size_string,
aldyh [Wed, 8 Jun 2005 23:45:45 +0000 (23:45 +0000)]
    * config/rs6000/rs6000.h: Remove rs6000_long_double_size_string,
        rs6000_isel, rs6000_spe, rs6000_alignment_string,
        rs6000_sched_restricted_insns_priority_str,
        rs6000_sched_restricted_insns_priority, rs6000_abi_string.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@100784 138bc75d-0d04-0410-961f-82ee72b054a4

19 years ago * tree-ssa-address.c (addr_for_mem_ref): Use LAST_VIRTUAL_REGISTER
rakdver [Wed, 8 Jun 2005 22:47:07 +0000 (22:47 +0000)]
* tree-ssa-address.c (addr_for_mem_ref): Use LAST_VIRTUAL_REGISTER
instead of FIRST_PSEUDO_REGISTER for creating pseudoregisters.
* tree-ssa-loop-ivopts.c (add_cost, multiply_by_cost,
multiplier_allowed_in_address_p, get_address_cost): Ditto.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@100783 138bc75d-0d04-0410-961f-82ee72b054a4

19 years ago * config/ia64/ia64.h (NO_PROFILE_COUNTERS): New.
rth [Wed, 8 Jun 2005 21:29:36 +0000 (21:29 +0000)]
    * config/ia64/ia64.h (NO_PROFILE_COUNTERS): New.
        * config/ia64/ia64.c (ia64_output_function_profiler): Honor it.
        Emit out3 load right after alloc.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@100781 138bc75d-0d04-0410-961f-82ee72b054a4

19 years ago * config/rs6000/linuxspe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use
aldyh [Wed, 8 Jun 2005 20:14:19 +0000 (20:14 +0000)]
* config/rs6000/linuxspe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use
rs6000_explicit_options.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@100775 138bc75d-0d04-0410-961f-82ee72b054a4

19 years ago * config/ia64/ia64.h (FUNCTION_PROFILER): Move implementation ...
rth [Wed, 8 Jun 2005 19:23:07 +0000 (19:23 +0000)]
* config/ia64/ia64.h (FUNCTION_PROFILER): Move implementation ...
        * config/ia64/ia64.c (ia64_output_function_profiler): ... here; add
        unwind markup.
        * config/ia64/ia64-protos.h (ia64_output_function_profiler): Declare.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@100774 138bc75d-0d04-0410-961f-82ee72b054a4

19 years ago2005-06-08 Benjamin Kosnik <bkoz@redhat.com>
bkoz [Wed, 8 Jun 2005 17:29:44 +0000 (17:29 +0000)]
2005-06-08  Benjamin Kosnik  <bkoz@redhat.com>

PR libstdc++/21955
* include/std/std_sstream.h (basic_stringbuf::showmanyc): Add.
Remove unnecessary this->_M_mode decoration.
* include/bits/fstream.tcc: Adjust line spacing.
* testsuite/27_io/basic_streambuf/in_avail/char/1.cc: New, test
base class behavior.
* testsuite/27_io/basic_streambuf/in_avail/wchar_t/1.cc: Same.
* testsuite/27_io/basic_stringbuf/in_avail/char/21955.cc: New.
* testsuite/27_io/basic_stringbuf/in_avail/char/1.cc: Match
filebuf behavior.
* testsuite/27_io/basic_stringbuf/in_avail/wchar_t/1.cc: Same.
* testsuite/27_io/basic_stringbuf/str/wchar_t/1.cc: Same.
* testsuite/27_io/basic_stringbuf/str/char/1.cc: Same.
* testsuite/27_io/basic_streambuf/in_avail/char/9701-3.cc: Move...
* testsuite/27_io/basic_filebuf/in_avail/char/9701-3.cc: ...here.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@100770 138bc75d-0d04-0410-961f-82ee72b054a4

19 years ago * config/sol2-c.c (cmn_err_char_table): Allow width for %b
jsm28 [Wed, 8 Jun 2005 16:28:39 +0000 (16:28 +0000)]
* config/sol2-c.c (cmn_err_char_table): Allow width for %b
formats.

testsuite:
* gcc.dg/format/cmn_err-1.c: Update.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@100763 138bc75d-0d04-0410-961f-82ee72b054a4

19 years ago2005-06-08 James A. Morrison <phython@gcc.gnu.org>
phython [Wed, 8 Jun 2005 16:03:31 +0000 (16:03 +0000)]
2005-06-08  James A. Morrison  <phython@gcc.gnu.org>

        PR target/20666
        * config/sparc/sparc.c (sparc_fold_builtin): New function
        (sparc_vis_mul8x16): New function.
        (sparc_handle_vis_mul8x16): New function.
        (TARGET_FOLD_BUILTIN): Define to sparc_fold_builtin.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@100762 138bc75d-0d04-0410-961f-82ee72b054a4

19 years ago2005-06-08 Ziga Mahkovec <ziga.mahkovec@klika.si>
ziga [Wed, 8 Jun 2005 15:46:08 +0000 (15:46 +0000)]
2005-06-08  Ziga Mahkovec  <ziga.mahkovec@klika.si>

* java/text/MessageFormat.java (parse): When parsing strings, check
for an empty pattern trailer.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@100761 138bc75d-0d04-0410-961f-82ee72b054a4

19 years ago2005-06-08 David Ayers <d.ayers@inode.at>
ayers [Wed, 8 Jun 2005 15:13:17 +0000 (15:13 +0000)]
2005-06-08  David Ayers  <d.ayers@inode.at>

* objc/NXConstStr.h, objc/Object.h, objc/Protocol.h,
objc/encoding.h, objc/hash.h, objc/objc-api.h,
objc/runtime.h, objc/sarray.h, objc/thr.h,
objc/typedstream.h: Do not include Objective-C headers as
system headers.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@100760 138bc75d-0d04-0410-961f-82ee72b054a4

19 years ago * config/rs6000/rs6000.md (call_indirect_nonlocal_aix32): Prefer
dje [Wed, 8 Jun 2005 14:46:09 +0000 (14:46 +0000)]
* config/rs6000/rs6000.md (call_indirect_nonlocal_aix32): Prefer
CTR to LR.
(call_indirect_nonlocal_aix64): Same.
(call_value_indirect_nonlocal_aix32): Same.
(call_value_indirect_nonlocal_aix64): Same.

PR target/10588
(eq): Use CLZ splitter for compare with zero.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@100759 138bc75d-0d04-0410-961f-82ee72b054a4

19 years ago PR testsuite/21702
reichelt [Wed, 8 Jun 2005 12:02:19 +0000 (12:02 +0000)]
PR testsuite/21702
* gcc.target/i386/i386.exp: Fix comment typo.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@100758 138bc75d-0d04-0410-961f-82ee72b054a4

19 years agocp:
nathan [Wed, 8 Jun 2005 11:49:23 +0000 (11:49 +0000)]
cp:
PR c++/19497
* cp-tree.def (USING_DECL): Update documentation.
* cp-tree.h (DECL_DEPENDENT_P): New.
(USING_DECL_DECLS, USING_DECL_SCOPE): New.
* class.c (handle_using_decl): Move most of the processing to ...
* name-lookup.c (do_class_using_decl): ... here.  Make stricter.
(push_using_decl): Use USING_DECL_SCOPE.
(cp_emit_debug_info_for_using): Make extern.
* cxx-pretty-print.c (pp_cxx_statement) <USING_DECL case>: Adjust.
* name-lookup.h (cp_emit_debug_info_for_using): Declare.
* pt.c (tsubst_decl) <USING_DECL case>: Use do_class_using_decl
when tsubsting.
(tsubst_expr): Use USING_DECL_SCOPE.
* search.c (lookup_field_1): Use DECL_DEPENDENT_P.
* semantics.c (finish_member_declaration): Likewise.
testsuite:
PR c++/19497
* g++.dg/inherit/using5.C: New.
* g++.dg/inherit/using6.C: New.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@100757 138bc75d-0d04-0410-961f-82ee72b054a4

19 years ago PR c++/19894
reichelt [Wed, 8 Jun 2005 11:09:13 +0000 (11:09 +0000)]
PR c++/19894
* pt.c (tsubst): Reject pointer-to-member of type void.

* g++.dg/template/ptrmem15.C: New test.

PR c++/20563
* parser.c (cp_parser_label_declaration): Deal with invalid/missing
identifiers.

* g++.dg/ext/label4.C: New test.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@100754 138bc75d-0d04-0410-961f-82ee72b054a4

19 years ago * config/bfin/bfin.h (ASM_OUTPUT_ALIGN): Gas now emulates the
bernds [Wed, 8 Jun 2005 09:40:42 +0000 (09:40 +0000)]
* config/bfin/bfin.h (ASM_OUTPUT_ALIGN): Gas now emulates the
behavior of the native assembler in VDSP. So change accordingly.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@100753 138bc75d-0d04-0410-961f-82ee72b054a4

19 years ago * config/bfin/bfin.h (enum bfin_builtins): New.
bernds [Wed, 8 Jun 2005 09:25:11 +0000 (09:25 +0000)]
* config/bfin/bfin.h (enum bfin_builtins): New.
* config/bfin/bfin.md (UNSPEC_VOLATILE_CSYNC, UNSPEC_VOLATILE_SSYNC):
New constants.
(csync, ssync): New insn patterns.
* config/bfin/bfin.c (bfin_init_builtins, bfin_expand_builtin):
New functions.
(def_builtin): New macro.
(TARGET_INIT_BUILTINS, TARGET_EXPAND_BUILTIN): Define.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@100752 138bc75d-0d04-0410-961f-82ee72b054a4

19 years ago * MAINTAINERS: Move myself from 'Write After Approval' to
schwab [Wed, 8 Jun 2005 09:15:21 +0000 (09:15 +0000)]
* MAINTAINERS: Move myself from 'Write After Approval' to
'CPU Port Maintainers' section as m68k maintainer.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@100751 138bc75d-0d04-0410-961f-82ee72b054a4

19 years ago * config/bfin/bfin.c (bfin_return_in_memory): Simplify; return
bernds [Wed, 8 Jun 2005 08:53:59 +0000 (08:53 +0000)]
* config/bfin/bfin.c (bfin_return_in_memory): Simplify; return
everything larger than 8 bytes in memory.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@100750 138bc75d-0d04-0410-961f-82ee72b054a4

19 years ago * tree-data-ref.c (compute_estimated_nb_iterations,
spop [Wed, 8 Jun 2005 08:47:05 +0000 (08:47 +0000)]
* tree-data-ref.c (compute_estimated_nb_iterations,
analyze_array_indexes, compute_overlap_steps_for_affine_1_2,
analyze_subscript_affine_affine, find_data_references_in_loop):
Fixed to use chrec_contains_undetermined to test the values of
loop->estimated_nb_iterations.
* tree-ssa-loop-niter.c (estimate_numbers_of_iterations_loop):
Compute the estimation only when loop->estimated_nb_iterations
has not yet been initialized.
(convert_step_widening, scev_probably_wraps_p): Add a call to
estimate_numbers_of_iterations_loop.
* tree-vrp.c (execute_vrp): Don't call estimate_numbers_of_iterations.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@100749 138bc75d-0d04-0410-961f-82ee72b054a4

19 years ago PR debug/21946
ebotcazou [Wed, 8 Jun 2005 07:48:16 +0000 (07:48 +0000)]
PR debug/21946
* dwarf2out.c (add_loc_descr_op_piece): Move to the
DWARF2_DEBUGGING_INFO section.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@100748 138bc75d-0d04-0410-961f-82ee72b054a4

19 years ago PR target/21721
rth [Wed, 8 Jun 2005 07:26:58 +0000 (07:26 +0000)]
    PR target/21721
        * config/ia64/ia64.c (emit_predicate_relation_info): Skip p0.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@100745 138bc75d-0d04-0410-961f-82ee72b054a4

19 years ago * gcc.dg/tls/debug-1.c: New test.
ebotcazou [Wed, 8 Jun 2005 05:07:30 +0000 (05:07 +0000)]
* gcc.dg/tls/debug-1.c: New test.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@100743 138bc75d-0d04-0410-961f-82ee72b054a4

19 years ago PR target/21889
ebotcazou [Wed, 8 Jun 2005 05:05:45 +0000 (05:05 +0000)]
PR target/21889
* target.h (gcc_target) <asm_out>: New field output_dwarf_dtprel.
* target-def.h (TARGET_ASM_OUTPUT_DWARF_DTPREL): New macro.
(TARGET_ASM_OUT): Add it.
* doc/tm.texi (Debugging Info): Document it.
* dwarf2out.c (output_loc_operands) <INTERNAL_DW_OP_tls_addr>:
Test it instead of ASM_OUTPUT_DWARF_DTPREL.
(loc_descriptor_from_tree_1) <VAR_DECL>: Likewise.
* system.h: Poison ASM_OUTPUT_DWARF_DTPREL.
* config/frv/frv-protos.h (frv_output_dwarf_dtprel): Delete.
* config/frv/frv.c (frv_output_dwarf_dtprel): Make static and unused.
(gen_inlined_tls_plt): Remove unused variable MEM.
(TARGET_ASM_OUTPUT_DWARF_DTPREL): Define to frv_output_dwarf_dtprel.
* config/frv/frv.h (ASM_OUTPUT_DWARF_DTPREL): Delete.
* config/i386/i386-protos.h (i386_output_dwarf_dtprel): Delete.
* config/i386/i386.c (i386_output_dwarf_dtprel): Make static and
unused.
(TARGET_ASM_OUTPUT_DWARF_DTPREL): Define to i386_output_dwarf_dtprel.
* config/i386/i386.h (ASM_OUTPUT_DWARF_DTPREL): Delete.
* config/ia64/ia64-protos.h (ia64_output_dwarf_dtprel): Delete.
* config/ia64/ia64.c (ia64_output_dwarf_dtprel): Make static and
unused.
(TARGET_ASM_OUTPUT_DWARF_DTPREL): Define to ia64_output_dwarf_dtprel.
* config/ia64/ia64.h (ASM_OUTPUT_DWARF_DTPREL): Delete.
* config/rs6000/rs6000-protos.h (rs6000_output_dwarf_dtprel): Delete.
* config/rs6000/rs6000.c (rs6000_output_dwarf_dtprel): Make static and
unused.
(TARGET_ASM_OUTPUT_DWARF_DTPREL): Define to rs6000_output_dwarf_dtprel
* config/rs6000/rs6000.h (ASM_OUTPUT_DWARF_DTPREL): Delete.
* config/s390/s390-protos.h (s390_output_dwarf_dtprel): Delete.
* config/s390/s390.c (s390_output_dwarf_dtprel): Make static and
unused.
(TARGET_ASM_OUTPUT_DWARF_DTPREL): Define to s390_output_dwarf_dtprel.
* config/s390/s390.h (ASM_OUTPUT_DWARF_DTPREL): Delete.
* config/sparc/sol2-gas.h (TARGET_SUN_TLS): Define to 0.
(TARGET_GNU_TLS): Define to 1.
* config/sparc/sparc-protos.h (sparc_output_dwarf_dtprel): Delete.
* config/sparc/sparc.c (sparc_output_dwarf_dtprel): Make static and
unused.
(TARGET_ASM_OUTPUT_DWARF_DTPREL): Define to sparc_output_dwarf_dtprel
if TARGET_GNU_TLS only.
* config/sparc/sparc.h (ASM_OUTPUT_DWARF_DTPREL): Delete.

* config.gcc (sparc64-*-solaris2*): Include tm-dwarf2.h last.
(sparc-*-solaris2*): Likewise on Solaris 7 and up.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@100742 138bc75d-0d04-0410-961f-82ee72b054a4

19 years ago2005-06-07 Dale Johannesen <dalej@apple.com>
dalej [Wed, 8 Jun 2005 03:24:28 +0000 (03:24 +0000)]
2005-06-07  Dale Johannesen  <dalej@apple.com>

* gcc.target/i386/movq.c:  New.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@100741 138bc75d-0d04-0410-961f-82ee72b054a4

19 years ago2005-06-07 Dale Johannesen <dalej@apple.com>
dalej [Wed, 8 Jun 2005 03:22:15 +0000 (03:22 +0000)]
2005-06-07  Dale Johannesen  <dalej@apple.com>

        * config/i386/i386.md (movqi_1):  Fix case where source
        is memory and destination EDI.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@100740 138bc75d-0d04-0410-961f-82ee72b054a4

19 years ago * config/c4x/c4x.h (PREDICATE_CODES): Remove mem_operand.
kazu [Wed, 8 Jun 2005 02:31:24 +0000 (02:31 +0000)]
* config/c4x/c4x.h (PREDICATE_CODES): Remove mem_operand.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@100738 138bc75d-0d04-0410-961f-82ee72b054a4

19 years ago2005-06-07 Eric Christopher <echristo@redhat.com>
echristo [Wed, 8 Jun 2005 00:28:41 +0000 (00:28 +0000)]
2005-06-07  Eric Christopher  <echristo@redhat.com>

* system.h: Poison EXTRA_CC_MODES.
* config/frv/frv.h (SELECT_CC_MODE): Rewrite comment.
* config/ia64/ia64.h (SELECT_CC_MODE): Ditto.
* doc/md.texi (Jump Patterns): Replace reference to
EXTRA_CC_MODES with machine-modes.def.
* doc/rtl.texi (Machine Modes): Ditto.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@100737 138bc75d-0d04-0410-961f-82ee72b054a4

19 years agoDaily bump.
gccadmin [Wed, 8 Jun 2005 00:16:24 +0000 (00:16 +0000)]
Daily bump.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@100735 138bc75d-0d04-0410-961f-82ee72b054a4

19 years ago * varasm.c (initialize_cold_section_name): Fix alloca buffer overflow.
rth [Wed, 8 Jun 2005 00:15:53 +0000 (00:15 +0000)]
    * varasm.c (initialize_cold_section_name): Fix alloca buffer overflow.
        (assemble_start_function): Fix strcmp confusion.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@100733 138bc75d-0d04-0410-961f-82ee72b054a4

19 years ago2005-06-07 Uros Bizjak <uros@kss-loka.si>
sayle [Tue, 7 Jun 2005 23:58:55 +0000 (23:58 +0000)]
2005-06-07  Uros Bizjak  <uros@kss-loka.si>

* config/i386/i386.h (enum ix86_entity): New.
(enum ix86_stack_slot): New.
(OPTIMIZE_MODE_SWITCHING): Redefine to use
ix86_optimize_mode_switching[] array.
(NUM_MODES_FOR_MODE_SWITCHING): Redefine for 4 entities.
(MODE_NEEDED): Use ix86_mode_needed() function.
(EMIT_MODE_SET): Redefine for changed emit_i387_cw_initialization ()
function.
(struct machine_function): Use optimize_mode_switching[] array.

* config/i386/i386.c (MAX_386_STACK_LOCALS): Remove.
(ix86_mode_needed): New function.
(emit_i387_cw_initialization): Cleanup. Use mode to calculate
correct stack positions for stored control words.
(assign_386_stack_local): Use enum ix86_stack_slot. Change assert.
(ix86_expand_builtin) [IX86_BUILTIN_LDMXCSR]: Change constant to
SLOT_TEMP.
[IX86_BUILTIN_STMXCSR]: Same.

* config/i386/i386-protos.h (assign_stack_local): Change prototype.
(emit_i387_cw_initialization): Change prototype.
(ix86_mode_needed): New prototype.

* config/i386/i386.md (i387_cw attribute): Change order of elements.
(truncdfsf2, truncxfsf2, truncxfdf2, fix_trunc<mode>_fisttp_i387_1)
(*fix_trunc<mode>_i387_1, lrint<mode>2, *fist<mode>2_floor_1)
(*fist<mode>2_ceil_1): Change constant in call to
assign_386_stack_local to SLOT_TEMP.
(*fix_trunc<mode>_i387_1): Change constant in call to
assign_386_stack_local to SLOT_CW_STORED and SLOT_CW_TRUNC.
Use new ix86_optimize_mode_switching[] array.
(frndintxf2_floor, *fist<mode>2_floor_1): Change constants in call to
assign_386_stack_local to SLOT_CW_STORED and SLOT_CW_FLOOR.
Use new ix86_optimize_mode_switching[] array.
(frndintxf2_ceil, *fist<mode>2_ceil_1):  Change constants in call to
assign_386_stack_local to SLOT_CW_STORED and SLOT_CW_CEIL.
Use new ix86_optimize_mode_switching[] array.
(frndintxf2_trunc): Change constants in call to
assign_386_stack_local to SLOT_CW_STORED and SLOT_CW_TRUNC.
Use new ix86_optimize_mode_switching[] array.
(frndintxf2_mask_pm): Change constants in call to
assign_386_stack_local to SLOT_CW_STORED and SLOT_CW_MASK_PM.
Use new ix86_optimize_mode_switching[] array.

(define_peephole2): Change constant from 17 to FLAGS_REG;

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@100732 138bc75d-0d04-0410-961f-82ee72b054a4

19 years ago PR rtl-opt/21528
rth [Tue, 7 Jun 2005 23:45:06 +0000 (23:45 +0000)]
    PR rtl-opt/21528
        * rtlanal.c (reg_overlap_mentioned_p) <MEM>: Handle 'E' formats.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@100730 138bc75d-0d04-0410-961f-82ee72b054a4

19 years ago2005-06-07 Dale Johannesen <dalej@apple.com>
dalej [Tue, 7 Jun 2005 23:36:52 +0000 (23:36 +0000)]
2005-06-07  Dale Johannesen  <dalej@apple.com>

        * gcc.dg/20050607-1.c:  New.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@100729 138bc75d-0d04-0410-961f-82ee72b054a4

19 years ago2005-06-07 Dale Johannesen <dalej@apple.com>
dalej [Tue, 7 Jun 2005 23:35:58 +0000 (23:35 +0000)]
2005-06-07  Dale Johannesen  <dalej@apple.com>

        * tree-nested.c (finalize_nesting_tree_1):  Disable
        warn_padded around layout_type call.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@100728 138bc75d-0d04-0410-961f-82ee72b054a4

19 years ago * tree-ssa-loop-ivopts.c (rewrite_use_outer): Unshare the expression
rakdver [Tue, 7 Jun 2005 22:44:56 +0000 (22:44 +0000)]
* tree-ssa-loop-ivopts.c (rewrite_use_outer): Unshare the expression
before emiting it.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@100727 138bc75d-0d04-0410-961f-82ee72b054a4

19 years ago2005-06-07 Eric Christopher <echristo@redhat.com>
echristo [Tue, 7 Jun 2005 22:17:31 +0000 (22:17 +0000)]
2005-06-07  Eric Christopher  <echristo@redhat.com>

        * config/mips/predicates.md: Revert previous patch.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@100726 138bc75d-0d04-0410-961f-82ee72b054a4

19 years ago PR middle-end/21850
jakub [Tue, 7 Jun 2005 21:45:07 +0000 (21:45 +0000)]
PR middle-end/21850
* tree.c (get_unwidened): Stop at NOP_EXPR/CONVERT_EXPR that convert
from vector types.

* gcc.c-torture/execute/20050607-1.c: New test.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@100725 138bc75d-0d04-0410-961f-82ee72b054a4

19 years ago * cpplib.pot: Regenerate.
jakub [Tue, 7 Jun 2005 21:34:55 +0000 (21:34 +0000)]
* cpplib.pot: Regenerate.

* gcc.pot: Regenerate.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@100724 138bc75d-0d04-0410-961f-82ee72b054a4

19 years ago2005-06-07 David Ayers <d.ayers@inode.at>
ayers [Tue, 7 Jun 2005 21:04:19 +0000 (21:04 +0000)]
2005-06-07  David Ayers  <d.ayers@inode.at>

* archive.c, init.c, selector.c: Include hash.h.
* archive.c, class.c, encoding.c, gc.c, hash.c, hash_compat.c,
init.c, misc.c, nil_method.c, objects.c, sarray.c, selector.c,
sendmsg.c, thr-dce.c, thr-decosf1.c, thr-irix.c, thr-mach.c,
thr-objc.c, thr-os2.c, thr-posix.c, thr-pthreads.c, thr-rtems.c,
thr-single.c, thr-solaris.c, thr-vxworks.c, thr-win32.c, thr.c:
Include Objective-C headers with quotes and objc/ directory
prefix.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@100723 138bc75d-0d04-0410-961f-82ee72b054a4

19 years ago * tree-ssa-threadupdate.c (struct thread_stats_d): Declare.
dnovillo [Tue, 7 Jun 2005 21:01:14 +0000 (21:01 +0000)]
* tree-ssa-threadupdate.c (struct thread_stats_d): Declare.
(thread_stats): New local variable.
(redirect_edges): Increment count of threaded edges.
(thread_through_all_blocks): Initialize thread_stats.
Display number of threaded jumps if TDF_STATS is enabled.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@100722 138bc75d-0d04-0410-961f-82ee72b054a4

19 years ago2005-06-07 Thomas Koenig <Thomas.Koenig@online.de>
tkoenig [Tue, 7 Jun 2005 20:46:17 +0000 (20:46 +0000)]
2005-06-07  Thomas Koenig  <Thomas.Koenig@online.de>

PR libfortran/21926
* m4/matmul.m4:  Correct zeroing of result for non-packed
arrays with lowest stride is one.
* generated/matmul_c4.c:  Regenerated.
* generated/matmul_c8.c:  Regenerated.
* generated/matmul_i4.c:  Regenerated.
* generated/matmul_i8.c:  Regenerated.
* generated/matmul_r4.c:  Regenerated.
* generated/matmul_r8.c:  Regenerated.

2005-06-07  Thomas Koenig  <Thomas.Koenig@online.de>

PR libfortran/21926
* gfortran.fortran-torture/execute/intrinsic_matmul.f90:
Test case where the return array has lowest stride one,
but isn't packed.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@100721 138bc75d-0d04-0410-961f-82ee72b054a4

19 years ago * sbitmap.h (sbitmap_iter_init): Consistently treat bit_num as
kazu [Tue, 7 Jun 2005 20:45:08 +0000 (20:45 +0000)]
* sbitmap.h (sbitmap_iter_init): Consistently treat bit_num as
the current bit index with no modulo.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@100720 138bc75d-0d04-0410-961f-82ee72b054a4

19 years ago * 20050423-1.c: Testcase for PR tree-optimization/20742.
spop [Tue, 7 Jun 2005 19:54:23 +0000 (19:54 +0000)]
20050423-1.c: Testcase for PR tree-optimization/20742.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@100719 138bc75d-0d04-0410-961f-82ee72b054a4

19 years ago Fixes PR 18403 and meta PR 21861.
spop [Tue, 7 Jun 2005 19:51:25 +0000 (19:51 +0000)]
Fixes PR 18403 and meta PR 21861.
* Makefile.in (tree-chrec.o): Depend on CFGLOOP_H and TREE_FLOW_H.
* tree-chrec.c: Include cfgloop.h and tree-flow.h.
(evolution_function_is_invariant_rec_p,
evolution_function_is_invariant_p): New.
(chrec_convert): Use an extra parameter AT_STMT for refining the
information that is passed down to convert_step.  Integrate the
code that was in count_ev_in_wider_type.
* tree-chrec.h (count_ev_in_wider_type): Removed.
(chrec_convert): Modify its declaration.
(evolution_function_is_invariant_p): Declared.
(evolution_function_is_affine_p): Use evolution_function_is_invariant_p.
* tree-flow.h (can_count_iv_in_wider_type): Renamed convert_step.
(scev_probably_wraps_p): Declared.
* tree-scalar-evolution.c (count_ev_in_wider_type): Removed.
(follow_ssa_edge_in_rhs, interpret_rhs_modify_expr):
Use an extra parameter AT_STMT for refining the information that is
passed down to convert_step.
(follow_ssa_edge_inner_loop_phi, follow_ssa_edge,
analyze_scalar_evolution_1): Initialize AT_STMT with the current
analyzed statement.
(instantiate_parameters_1): Don't know yet how to initialize AT_STMT.
* tree-ssa-loop-ivopts.c (idx_find_step): Update the use of
can_count_iv_in_wider_type to use convert_step.
* tree-ssa-loop-niter.c (can_count_iv_in_wider_type_bound): Move
code that is independent of the loop over the known iteration
bounds to convert_step_widening, the rest is moved to
proved_non_wrapping_p.
(scev_probably_wraps_p): New.
(can_count_iv_in_wider_type): Renamed convert_step.
* tree-vrp.c (adjust_range_with_scev): Take an extra AT_STMT parameter.
Use scev_probably_wraps_p for computing init_is_max.
(vrp_visit_assignment): Pass the current analyzed statement to
adjust_range_with_scev.
(execute_vrp): Call estimate_numbers_of_iterations for refining the
information provided by scev analyzer.

testsuite:

* testsuite/gcc.dg/vect/vect-77.c: Remove xfail from lp64.
* testsuite/gcc.dg/vect/vect-78.c: Same.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@100718 138bc75d-0d04-0410-961f-82ee72b054a4

19 years ago2005-06-07 Adrian Straetling <straetling@de.ibm.com>
uweigand [Tue, 7 Jun 2005 19:27:01 +0000 (19:27 +0000)]
2005-06-07  Adrian Straetling  <straetling@de.ibm.com>

* lib/target-supports.exp (check_effective_target_sync_int_long):
Add s390 and s390x targets.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@100717 138bc75d-0d04-0410-961f-82ee72b054a4

19 years ago2005-06-07 Eric Christopher <echristo@redhat.com>
echristo [Tue, 7 Jun 2005 19:09:34 +0000 (19:09 +0000)]
2005-06-07  Eric Christopher  <echristo@redhat.com>

* config/mips/predicates.md (sleu_operand): Use
IN_RANGE to specify range of operand.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@100716 138bc75d-0d04-0410-961f-82ee72b054a4

19 years agomissed entry
nathan [Tue, 7 Jun 2005 17:46:02 +0000 (17:46 +0000)]
missed entry
       * cp-tree.def (DEFAULT_ARG): Adjust documentation.
* cp-tree.h (DEFARG_INSTANTIATIONS): New.
(struct tree_default_arg): Add instantiations member.
* parser.c (cp_parser_late_parsing_default_args): Adjust to use a
VEC.
* pt.c (tsubst_arg_types): Likewise.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@100715 138bc75d-0d04-0410-961f-82ee72b054a4

19 years ago PR tree-optimization/21847
steven [Tue, 7 Jun 2005 16:54:16 +0000 (16:54 +0000)]
PR tree-optimization/21847
* tree-ssa-dce.c (mark_stmt_if_obviously_necessary): With
-fnon-call-exceptions, also mark statements inherently
necessary if they may throw.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@100714 138bc75d-0d04-0410-961f-82ee72b054a4

19 years ago2005-06-07 Benjamin Kosnik <bkoz@redhat.com>
bkoz [Tue, 7 Jun 2005 16:52:32 +0000 (16:52 +0000)]
2005-06-07  Benjamin Kosnik  <bkoz@redhat.com>

* acinclude.m4 (GLIBCXX_ENABLE_C99): Use C++ compiler for complex
tests.
* configure: Regenerated.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@100713 138bc75d-0d04-0410-961f-82ee72b054a4

19 years ago2005-06-07 Adrian Straetling <straetling@de.ibm.com>
uweigand [Tue, 7 Jun 2005 16:35:27 +0000 (16:35 +0000)]
2005-06-07  Adrian Straetling  <straetling@de.ibm.com>

gcc/ChangeLog:
* config/s390/s390.md: ("UNSPECV_MB", "UNSPECV_CAS"): New constants.
("type"): Add "sem" to 'type' attribute.
("memory_barrier", "*memory_barrier", "sync_compare_and_swapdi",
"sync_compare_and_swapsi", "sync_compare_and_swap_ccdi",
"sync_compare_and_swap_ccsi", "*sync_compare_and_swap_ccdi",
"*sync_compare_and_swap_ccsi"): New patterns.
* config/s390/2064.md: ("z_sem"): New insn_reservation.
* config/s390/2084.md: ("x_sem"): New insn_reservation.
* config/s390/s390.c: (s390_compare_emitted): New global variable.
(s390_emit_compare): Do not emit comparison again after cas.
* config/s390/s390.h (s390_compare_emitted): Declare.

libstdc++/ChangeLog:
* config/cpu/s390/atomicity.h: (__exchange_and_add,
__atomic_add): Use the builtins for atomic memory operations.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@100711 138bc75d-0d04-0410-961f-82ee72b054a4

19 years ago * sbitmap.h (sbitmap_iterator, sbitmap_iter_init,
kazu [Tue, 7 Jun 2005 14:30:25 +0000 (14:30 +0000)]
* sbitmap.h (sbitmap_iterator, sbitmap_iter_init,
sbitmap_iter_cond, sbitmap_iter_next): New.
* bt-load.c, cfganal.c, combine.c, ddg.c, flow.c,
modulo-sched.c, sbitmap.c, sched-rgn.c, tree-into-ssa.c,
tree-outof-ssa.c, tree-ssa-alias.c, tree-ssa-live.c: Update
uses of EXECUTE_IF_SET_IN_SBITMAP to the new style.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@100709 138bc75d-0d04-0410-961f-82ee72b054a4

19 years ago * tree-ssa-address.c: New file.
rakdver [Tue, 7 Jun 2005 12:01:47 +0000 (12:01 +0000)]
* tree-ssa-address.c: New file.
* Makefile.in (tree-ssa-address.o): Add.
* expr.c (expand_expr_real_1): Do not handle REF_ORIGINAL on
INDIRECT_REFs.  Handle TARGET_MEM_REFs.
* tree-eh.c (tree_could_trap_p): Handle TARGET_MEM_REFs.
* tree-flow.h (struct mem_address): New.
(struct affine_tree_combination): Moved from tree-ssa-loop-ivopts.c.
(create_mem_ref, addr_for_mem_ref, get_address_description,
maybe_fold_tmr, multiplier_allowed_in_address_p,
multiply_by_cost):  Declare.
* tree-mudflap.c (mf_xform_derefs_1): Handle TARGET_MEM_REFs.
* tree-pretty-print.c (dump_generic_node): Ditto.
* tree-ssa-loop-im.c (for_each_index): Ditto.
* tree-ssa-loop-ivopts.c (may_be_unaligned_p,
find_interesting_uses_address): Ditto.
(rewrite_address_base, build_addr_strip_iref): Removed.
(struct affine_tree_combination): Moved to tree-flow.h.
(get_ref_tag, copy_ref_info): New functions.
(rewrite_use_address): Produce TARGET_MEM_REFs.
(tree_ssa_iv_optimize): Do not call update_ssa
and rewrite_into_loop_closed_ssa.
(tree_to_aff_combination): Use build_fold_addr_expr instead of
build_addr_strip_iref.
(unshare_aff_combination): New function.
(fold_affine_sum): Removed.
(get_computation_at): Use get_computation_aff.  Unshare the result.
(get_computation_aff, multiplier_allowed_in_address_p): New function.
(multiply_by_cost): Exported.
(get_address_cost): Use multiplier_allowed_in_address_p.
* tree-ssa-operands.c (get_tmr_operands): New function.
(get_expr_operands): Handle TARGET_MEM_REFs.
* tree.c (copy_node_stat): Copy annotations for TARGET_MEM_REFs.
(build): Handle 7 arguments.
(build7_stat): New function.
* tree.def (TARGET_MEM_DEF): New.
* tree.h (REF_ORIGINAL): Removed.
(TMR_SYMBOL, TMR_BASE, TMR_INDEX, TMR_STEP, TMR_OFFSET, TMR_ORIGINAL,
TMR_TAG, build7): New macros.
(build7_stat, tree_mem_ref_addr, copy_mem_ref_info): Declare.
* tree-ssa-ccp.c (fold_stmt_r): Call maybe_fold_tmr.
* doc/c-tree.texi: Document TARGET_MEM_REF.
* doc/tree-ssa.texi: Add TARGET_MEM_REF to gimple grammar.

* gcc.dg/tree-ssa/loop-2.c: Update outcome.
* gcc.dg/tree-ssa/loop-3.c: Update outcome.
* gcc.dg/tree-ssa/loop-4.c: Update outcome.
* gcc.dg/tree-ssa/loop-9.c: New test.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@100708 138bc75d-0d04-0410-961f-82ee72b054a4

19 years ago * cp-tree.def (DEFAULT_ARG): Adjust documentation.
nathan [Tue, 7 Jun 2005 11:56:11 +0000 (11:56 +0000)]
* cp-tree.def (DEFAULT_ARG): Adjust documentation.
* cp-tree.h (DEFARG_INSTANTIATIONS): New.
(struct tree_default_arg): Add instantiations member.
* parser.c (cp_parser_late_parsing_default_args): Adjust to use a
VEC.
* pt.c (tsubst_arg_types): Likewise.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@100707 138bc75d-0d04-0410-961f-82ee72b054a4

19 years ago PR debug/21946
jakub [Tue, 7 Jun 2005 10:17:34 +0000 (10:17 +0000)]
PR debug/21946
* dwarf2out.c (add_loc_descr_op_piece): New function.
(multiple_reg_loc_descriptor, concat_loc_descriptor,
loc_descriptor): Use it.
* var-tracking.c: Include regs.h and expr.h.
(emit_note_insn_var_location): Skip over pieces where offset
is smaller than previous offset plus previous piece mode size.
Optimize adjacent hard registers or memory locations.
* Makefile.in (var-tracking.o): Depend on $(REGS_H) and $(EXPR_H).

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@100706 138bc75d-0d04-0410-961f-82ee72b054a4

19 years ago2005-06-07 Richard Guenther <rguenth@gcc.gnu.org>
rguenth [Tue, 7 Jun 2005 10:10:22 +0000 (10:10 +0000)]
2005-06-07  Richard Guenther  <rguenth@gcc.gnu.org>

* c-typeck.c (c_finish_if_stmt): Use void_type_node as type
for COND_EXPR.
* gimplify.c (gimplify_cond_expr): No need to fix up the
type of COND_EXPRs.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@100705 138bc75d-0d04-0410-961f-82ee72b054a4

19 years ago2005-06-07 Richard Guenther <rguenth@gcc.gnu.org>
rguenth [Tue, 7 Jun 2005 10:05:09 +0000 (10:05 +0000)]
2005-06-07  Richard Guenther  <rguenth@gcc.gnu.org>

* tree-ssa.c (tree_ssa_useless_type_conversion_1): Fix
comments.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@100704 138bc75d-0d04-0410-961f-82ee72b054a4

19 years ago * configure.in <cris-*, crisv32-*>: Enable target-libffi again for
hp [Tue, 7 Jun 2005 09:32:14 +0000 (09:32 +0000)]
* configure.in <cris-*, crisv32-*>: Enable target-libffi again for
*-*-linux* and *-*-elf.
* configure: Regenerate.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@100703 138bc75d-0d04-0410-961f-82ee72b054a4

19 years agocp:
nathan [Tue, 7 Jun 2005 08:45:32 +0000 (08:45 +0000)]
cp:
* parser.c (cp_parser_late_parsing_default_args): Fix overeager
assert in previous patch.
testsuite:
* g++.dg/parse/defarg10.C: New.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@100702 138bc75d-0d04-0410-961f-82ee72b054a4

19 years ago * config/rs6000/host-darwin.c (segv_handler): Widen the possible
geoffk [Tue, 7 Jun 2005 08:23:43 +0000 (08:23 +0000)]
* config/rs6000/host-darwin.c (segv_handler): Widen the possible
'stwux' instructions that are considered to be stack decrements.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@100701 138bc75d-0d04-0410-961f-82ee72b054a4

19 years ago * rtlanal.c (subreg_offset_representable_p): Handle objects
geoffk [Tue, 7 Jun 2005 08:18:15 +0000 (08:18 +0000)]
* rtlanal.c (subreg_offset_representable_p): Handle objects
with holes.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@100700 138bc75d-0d04-0410-961f-82ee72b054a4

19 years ago * btest-gcc.sh: Add support for option
hp [Tue, 7 Jun 2005 07:42:22 +0000 (07:42 +0000)]
* btest-gcc.sh: Add support for option
--add-passes-despite-regression.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@100699 138bc75d-0d04-0410-961f-82ee72b054a4

19 years ago2005-06-07 Jerry DeLisle <jvdelisle@verizon.net>
jvdelisle [Tue, 7 Jun 2005 07:27:20 +0000 (07:27 +0000)]
2005-06-07  Jerry DeLisle <jvdelisle@verizon.net>

* ChangeLog: Fix date on last commit.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@100698 138bc75d-0d04-0410-961f-82ee72b054a4

19 years ago2005-06-03 Jerry DeLisle <jvdelisle@verizon.net>
jvdelisle [Tue, 7 Jun 2005 06:56:58 +0000 (06:56 +0000)]
2005-06-03  Jerry DeLisle <jvdelisle@verizon.net>

* intrinsic.texi: Add documentation for dcmplx, digits,
dim, idim, ddim, dot_product, dprod, dreal, and dtime.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@100697 138bc75d-0d04-0410-961f-82ee72b054a4