platform/upstream/gcc.git
19 years agopr19936_1.f90: New test.
Steven G. Kargl [Sat, 5 Mar 2005 23:38:20 +0000 (23:38 +0000)]
pr19936_1.f90: New test.

* gfortran.dg/pr19936_1.f90: New test.
* gfortran.dg/pr19936_2.f90: New test.
* gfortran.dg/pr19936_3.f90: New test.

From-SVN: r95952

19 years agore PR fortran/19936 (confused error message about implied do loop)
Steven G. Kargl [Sat, 5 Mar 2005 23:35:44 +0000 (23:35 +0000)]
re PR fortran/19936 (confused error message about implied do loop)

 PR 19936
* primary.c (match_complex_constant): Mangled complex constant may
be an implied do-loop.  Give implied do-loop matcher a chance.

From-SVN: r95951

19 years agoPR19754_1.f90: New test.
Steven G. Kargl [Sat, 5 Mar 2005 22:16:41 +0000 (22:16 +0000)]
PR19754_1.f90: New test.

* PR19754_1.f90: New test.
* PR19754_2.f90: ditto.

Co-Authored-By: Paul Thomas <prthomas@drfccad.cea.fr>
From-SVN: r95946

19 years agore PR fortran/19754 (Shape conformance not checked)
Steven G. Kargl [Sat, 5 Mar 2005 22:13:21 +0000 (22:13 +0000)]
re PR fortran/19754 (Shape conformance not checked)

PR fortran/19754
* resolve.c (compare_shapes):  New function.
(resolve_operator): Use it.

From-SVN: r95945

19 years ago* ChangeLog: Fix gtk_jawt.c entry.
Thomas Fitzsimmons [Sat, 5 Mar 2005 21:53:29 +0000 (21:53 +0000)]
* ChangeLog: Fix gtk_jawt.c entry.

From-SVN: r95944

19 years agogtk_jawt.c (classpath_jawt_get_drawable, [...]): New functions.
Anthony Green [Sat, 5 Mar 2005 21:47:10 +0000 (21:47 +0000)]
gtk_jawt.c (classpath_jawt_get_drawable, [...]): New functions.

2005-02-15  Anthony Green  <green@redhat.com>

* jni/gtk-peer/gtk_jawt.c (classpath_jawt_get_drawable,
classpath_jawt_lock, classpath_jawt_unlock): New functions.
* jawt.c (_Jv_JAWT_Lock, _Jv_JAWT_Unlock): New functions.
(_Jv_GetDrawingSurface): Set visualID.
(_Jv_FreeDrawingSurfaceInfo): Clear visualID.
(JAWT_GetAWT): Set Lock and Unlock.
* include/jawt_md.h (struct _JAWT_X11DrawingSurfaceInfo): Add visualID.
* include/jawt.h (JAWT_VERSION_1_4, JAWT_LOCK_ERROR,
JAWT_LOCK_CLIP_CHANGED, JAWT_LOCK_BOUNDS_CHANGED,
JAWT_LOCK_SURFACE_CHANGED): New macros.
(struct _JAWT): Add Lock and Unlock.

From-SVN: r95943

19 years agoc-semantics.c (build_stmt): Use TYPE_P instead of IS_NON_TYPE_CODE_CLASS.
Kazu Hirata [Sat, 5 Mar 2005 20:21:31 +0000 (20:21 +0000)]
c-semantics.c (build_stmt): Use TYPE_P instead of IS_NON_TYPE_CODE_CLASS.

gcc/
* c-semantics.c (build_stmt): Use TYPE_P instead of
IS_NON_TYPE_CODE_CLASS.
* tree.h (IS_NON_TYPE_CODE_CLASS): Remove.
(NON_TYPE_CHECK): Use TYPE_P instead of
IS_NON_TYPE_CODE_CLASS.

java/
* expr.c (build_expr_wfl, expr_add_location): Use TYPE_P
instead of IS_NON_TYPE_CODE_CLASS.

From-SVN: r95942

19 years agotrans-const.c (gfc_conv_constant_to_tree): Use correct tree type for COMPLEX constants.
Tobias Schlüter [Sat, 5 Mar 2005 20:14:52 +0000 (21:14 +0100)]
trans-const.c (gfc_conv_constant_to_tree): Use correct tree type for COMPLEX constants.

* trans-const.c (gfc_conv_constant_to_tree): Use correct tree
type for COMPLEX constants.

From-SVN: r95941

19 years agoc-tree.texi: Wrap comments in @r{}.
James A. Morrison [Sat, 5 Mar 2005 19:56:31 +0000 (19:56 +0000)]
c-tree.texi: Wrap comments in @r{}.

2005-03-05  James A. Morrison  <phython@gcc.gnu.org>

        * doc/c-tree.texi: Wrap comments in @r{}.
        * doc/cpp.texi: Likewise.
        * doc/cppinternals.texi: Likewise.
        * doc/extend.texi: Likewise.
        * doc/md.texi: Likewise.
        * doc/objc.texi: Likewise.
        * doc/sourcebuild.texi: Likewise.
        * doc/tm.texi: Likewise.
        * doc/tree-ssa.texi

From-SVN: r95939

19 years agofold-const.c (fold_binary): New.
Kazu Hirata [Sat, 5 Mar 2005 18:09:17 +0000 (18:09 +0000)]
fold-const.c (fold_binary): New.

* fold-const.c (fold_binary): New.
(fold): Call fold_binary on binary expressions.

From-SVN: r95938

19 years agocombine.c (simplify_and_const_int): Use gen_int_mode instead of GEN_INT (trunc_int_fo...
Kazu Hirata [Sat, 5 Mar 2005 17:25:33 +0000 (17:25 +0000)]
combine.c (simplify_and_const_int): Use gen_int_mode instead of GEN_INT (trunc_int_for_mode (...)).

* combine.c (simplify_and_const_int): Use gen_int_mode instead
of GEN_INT (trunc_int_for_mode (...)).
* loop-iv.c (iv_number_of_iterations): Likewise.
* postreload.c (reload_cse_move2add): Likewise.
* simplify-rtx.c (simplify_const_unary_operation,
simplify_const_binary_operation): Likewise.
* stor-layout.c (get_mode_bounds): Likewise.

From-SVN: r95935

19 years agore PR bootstrap/20155 (libgcj build fails with "execvp: /bin/sh: Argument list too...
Roger Sayle [Sat, 5 Mar 2005 16:32:59 +0000 (16:32 +0000)]
re PR bootstrap/20155 (libgcj build fails with "execvp: /bin/sh: Argument list too long")

2005-03-05  Roger Sayle  <roger@eyesopen.com>
    Alexandre Oliva  <aoliva@redhat.com>
    Kelley Cook  <kcook@gcc.gnu.org>

PR libgcj/20155
* Makefile.am (libgcj0_convenience.la): New rule to create a file
of the object files to link to avoid exceeding the command line
length limits on some platforms.
(clean-local): Clean up objectlist files.
* Makefile.in: Regenerate.

Co-Authored-By: Alexandre Oliva <aoliva@redhat.com>
Co-Authored-By: Kelley Cook <kcook@gcc.gnu.org>
From-SVN: r95934

19 years agore PR c++/19311 (ICE in resolve_overloaded_unification)
Kriang Lerdsuwanakij [Sat, 5 Mar 2005 15:44:22 +0000 (15:44 +0000)]
re PR c++/19311 (ICE in resolve_overloaded_unification)

PR c++/19311
* init.c (build_offset_ref): Don't build non-dependent SCOPE_REF.
* pt.c (build_non_dependent_expr): Don't build NON_DEPENDENT_EXPR
for OFFSET_TYPE.
* typeck.c (build_x_unary_op): Don't build non-dependent SCOPE_REF.
Also set PTRMEM_OK_P for NON_DEPENDENT_EXPR.
(build_unary_op): Handle building ADDR_EXPR of OFFSET_REF inside
template.

* g++.dg/template/non-dependent11.C: New test.

From-SVN: r95933

19 years agotree-phinodes.c (remove_phi_node): Drop the last argument.
Kazu Hirata [Sat, 5 Mar 2005 15:29:25 +0000 (15:29 +0000)]
tree-phinodes.c (remove_phi_node): Drop the last argument.

* tree-phinodes.c (remove_phi_node): Drop the last argument.
* tree-flow.h: Adjust the prototype for remove_phi_node.
* lambda-code.c (perfect_nestify): Adjust a call to
remove_phi_node.
* tree-cfg.c
(remove_phi_nodes_and_edges_for_unreachable_block): Likewise.
* tree-outof-ssa.c (eliminate_virtual_phis, remove_ssa_form):
Likewise.
* tree-ssa-dce.c (remove_dead_phis): Likewise.
* tree-ssa-loop-ivopts.c (remove_statement): Likewise.
* tree-ssa-pre.c (remove_dead_inserted_code): Likewise.
* tree-ssa.c (kill_redundant_phi_nodes): Likewise.

From-SVN: r95932

19 years agogenattrtab.c, [...]: Update copyright.
Kazu Hirata [Sat, 5 Mar 2005 14:01:02 +0000 (14:01 +0000)]
genattrtab.c, [...]: Update copyright.

* genattrtab.c, genemit.c, genoutput.c, genrecog.c,
gensupport.c, jump.c, tree-phinodes.c, unwind-dw2-fde-glibc.c:
Update copyright.

From-SVN: r95931

19 years agopredict.c (apply_return_prediction): Standardize PHI chain walking.
Kazu Hirata [Sat, 5 Mar 2005 13:49:43 +0000 (13:49 +0000)]
predict.c (apply_return_prediction): Standardize PHI chain walking.

* predict.c (apply_return_prediction): Standardize PHI chain
walking.
* tree-ssa.c (ssa_redirect_edge): Likewise.

From-SVN: r95930

19 years ago* lib/target-supports.exp (check_iconv_available): Fix comment.
Uros Bizjak [Sat, 5 Mar 2005 10:08:31 +0000 (11:08 +0100)]
* lib/target-supports.exp (check_iconv_available): Fix comment.

From-SVN: r95927

19 years agoinvoke.texi: Document new MIPS -msym32 and -mno-sym32 options.
Richard Sandiford [Sat, 5 Mar 2005 09:04:33 +0000 (09:04 +0000)]
invoke.texi: Document new MIPS -msym32 and -mno-sym32 options.

* doc/invoke.texi: Document new MIPS -msym32 and -mno-sym32 options.
* config/mips/mips.h (MASK_SYM32, TARGET_SYM32): New macros.
(TARGET_SWITCHES): Add -msym32 and -mno-sym32.
(ABI_HAS_64BIT_SYMBOLS): Set to false if TARGET_SYM32.
(ASM_SPEC): Pass down -msym32 and -mno-sym32.

From-SVN: r95926

19 years agodtoa.c (_dtoa_r): Initialize variables ilim, ilim1 and spec_case.
Andreas Tobler [Sat, 5 Mar 2005 07:47:58 +0000 (08:47 +0100)]
dtoa.c (_dtoa_r): Initialize variables ilim, ilim1 and spec_case.

2005-03-05  Andreas Tobler  <a.tobler@schweiz.ch>

* java/lang/dtoa.c (_dtoa_r): Initialize variables ilim, ilim1 and
spec_case. Initialize pointer mlo.

* java/lang/strtod.c (_strtod_r): Initialize pointers bb, bd, ds and
delta.

* java/lang/e_asin.c (__ieee754_asin): Initialize variable t.

* java/lang/e_exp.c (__ieee754_exp): Initialize variables hi, lo
and k.

* java/lang/e_rem_pio2.c (__ieee754_rem_pio2): Initialize
uninitialized variable z.

* gnu/java/net/natPlainDatagramSocketImplPosix.cc (mcastGrp): Ifdef
possible unused variables.

* gnu/java/nio/natPipeImplPosix.cc (init): Remove self.

* jawt.c: Include <stdlib.h> to fix implict declaration of malloc.

From-SVN: r95925

19 years agore PR tree-optimization/18815 (Tree if-conversion screws up cfg very badly)
Devang Patel [Sat, 5 Mar 2005 02:59:25 +0000 (18:59 -0800)]
re PR tree-optimization/18815 (Tree if-conversion screws up cfg very badly)

       PR tree-optimization/18815
       * tree-if-conv.c (combine_blocks): Adjust loop header edges for
       loops with zero exit edges.

From-SVN: r95923

19 years ago* doc/invoke.texi: Remove reference to webpage that does not exist.
Devang Patel [Sat, 5 Mar 2005 02:57:01 +0000 (18:57 -0800)]
* doc/invoke.texi: Remove reference to webpage that does not exist.

From-SVN: r95922

19 years agore PR c++/19797 (g++.dg/abi/inline1.C fails on hppa*-*-hpux*)
John David Anglin [Sat, 5 Mar 2005 01:59:24 +0000 (01:59 +0000)]
re PR c++/19797 (g++.dg/abi/inline1.C fails on hppa*-*-hpux*)

PR c++/19797
* elf.h, pa64-hpux.h, som.h (ASM_OUTPUT_EXTERNAL_REAL): Define.
(ASM_OUTPUT_EXTERNAL): Call pa_hpux_asm_output_external.
* pa-protos.h (pa_hpux_asm_output_external): Add prototype.
* pa.c (get_plabel): Change argument to symbol_ref.  Call
maybe_get_identifier instead of get_identifier.
(pa_hpux_asm_output_external, pa_hpux_file_end): New functions.
(struct deferred_plabel): Replace name field with symbol field.
(TARGET_ASM_FILE_END): Define as pa_hpux_file_end if
ASM_OUTPUT_EXTERNAL_REAL is defined.
(output_global_address): Use output_addr_const for output of all
symbol_refs.
(output_deferred_plabels): Use symbol_ref instead of name for address
output.
* pa.h (SYMBOL_FLAG_REFERENCED, SYMBOL_REF_REFERENCED_P,
ASM_OUTPUT_SYMBOL_REF): New macros.
* som.h (ASM_OUTPUT_EXTERNAL_LIBCALL): Use assemble_name_raw.  Update
comment.
(ASM_WEAKEN_LABEL): Use targetm.asm_out.globalize_label to globalize
label.
* g++.dg/abi/vague1.C: Remove xfail hppa*-*-hpux*.

Co-Authored-By: Joseph Myers <joseph@codesourcery.com>
From-SVN: r95921

19 years agoconfig.gcc (hppa*64*-*-hpux11*): Use pa/pa-hpux1111.h for *-*-hpux11.[1-9]*, not...
Joseph Myers [Sat, 5 Mar 2005 01:47:27 +0000 (01:47 +0000)]
config.gcc (hppa*64*-*-hpux11*): Use pa/pa-hpux1111.h for *-*-hpux11.[1-9]*, not just for *-*-hpux11.11.

* config.gcc (hppa*64*-*-hpux11*): Use pa/pa-hpux1111.h for
*-*-hpux11.[1-9]*, not just for *-*-hpux11.11.

From-SVN: r95918

19 years ago2.cc, [...]: XFAIL on *-*-hpux11.23.
Joseph Myers [Sat, 5 Mar 2005 01:44:43 +0000 (01:44 +0000)]
2.cc, [...]: XFAIL on *-*-hpux11.23.

* testsuite/22_locale/collate/compare/wchar_t/2.cc,
testsuite/22_locale/collate/compare/wchar_t/wrapped_env.cc,
testsuite/22_locale/collate/compare/wchar_t/wrapped_locale.cc,
testsuite/22_locale/collate/hash/wchar_t/2.cc,
testsuite/22_locale/collate/hash/wchar_t/wrapped_env.cc,
testsuite/22_locale/collate/hash/wchar_t/wrapped_locale.cc,
testsuite/22_locale/collate/transform/wchar_t/2.cc,
testsuite/22_locale/collate/transform/wchar_t/wrapped_env.cc,
testsuite/22_locale/collate/transform/wchar_t/wrapped_locale.cc:
XFAIL on *-*-hpux11.23.

From-SVN: r95917

19 years agogcc.exp (gcc_target_compile): Put braces around additional_flags=$TOOL_OPTIONS...
Matthew Sachs [Sat, 5 Mar 2005 00:27:04 +0000 (00:27 +0000)]
gcc.exp (gcc_target_compile): Put braces around additional_flags=$TOOL_OPTIONS...

* gcc.exp (gcc_target_compile): Put braces around
additional_flags=$TOOL_OPTIONS; allows for whitespace in $TOOL_OPTIONS.
* objc.exp (objc_target_compile): Likewise.
* treelang.exp (treelang_target_compile): Likewise.

From-SVN: r95912

19 years agotype_traits: Add is_base_of.
Paolo Carlini [Sat, 5 Mar 2005 00:22:48 +0000 (00:22 +0000)]
type_traits: Add is_base_of.

2005-03-04  Paolo Carlini  <pcarlini@suse.de>

* include/tr1/type_traits: Add is_base_of.
* testsuite/tr1/4_metaprogramming/relationships_between_types/
is_base_of/is_base_of.cc: New.
* testsuite/tr1/4_metaprogramming/relationships_between_types/
is_base_of/typedefs.cc: Likewise.

From-SVN: r95911

19 years agoDaily bump.
GCC Administrator [Sat, 5 Mar 2005 00:16:40 +0000 (00:16 +0000)]
Daily bump.

From-SVN: r95909

19 years agobasic-block.h (rediscover_loops_after_threading): Declare.
Jeff Law [Fri, 4 Mar 2005 21:35:49 +0000 (14:35 -0700)]
basic-block.h (rediscover_loops_after_threading): Declare.

   * basic-block.h (rediscover_loops_after_threading): Declare.
        * tree-ssa-dom.c: Include cfgloop.h.
        (tree_ssa_dominator_optimize): Discover loops and some basic
        properties.  Remove forwarder blocks recreated by loop header
        canonicalization.  Also mark backedges in the CFG.
        * tree-ssa-threadupdate.c: Include cfgloop.h
        (rediscover_loops_after_threading): Define.
        (struct local_info): New field, JUMP_THREADED.
        (prune_undesirable_thread_requests): New function.
        (redirect_edges): Clear EDGE_ABNORMAL.  If edges were threaded
        then record that fact for the callers of redirct_edges.
        (thread_block): If BB has incoming backedges, then call
        prune_undesirable_thraed_requests.    Note when we are
        going to have to rediscover loop information.  Return a
        boolean indicating if any jumps were threaded.
        (thread_through_all_blocks): Bubble up boolean indicating
        if any jumps were threaded.
        * Makefile.in (tree-ssa-dom.o): Depend on cfgloop.h
        (tree-ssa-threadupdate.o): Similarly.

From-SVN: r95903

19 years agore PR fortran/19673 (pointer function with RESULT specified returns pointer to "ptr...
Tobias Schlüter [Fri, 4 Mar 2005 21:03:46 +0000 (22:03 +0100)]
re PR fortran/19673 (pointer function with RESULT specified returns pointer to "ptr" rather than "*ptr")

fortran/
PR fortran/19673
* trans-expr.c (gfc_conv_function_call): Correctly dereference
argument from a pointer function also if it has a result clause.

testsuite/
PR fortran/19673
* gfortran.dg/func_result_1.f90: New test.

From-SVN: r95901

19 years agotr.po: Update.
Joseph Myers [Fri, 4 Mar 2005 20:29:03 +0000 (20:29 +0000)]
tr.po: Update.

* tr.po: Update.
* vi.po: New file.

From-SVN: r95898

19 years agofold-const.c (fold_ternary): Unroll the "for" loop to extract operands.
Kazu Hirata [Fri, 4 Mar 2005 19:59:45 +0000 (19:59 +0000)]
fold-const.c (fold_ternary): Unroll the "for" loop to extract operands.

* fold-const.c (fold_ternary): Unroll the "for" loop to
extract operands.

From-SVN: r95895

19 years agounwind-dw2-fde-glibc.c (struct unw_eh_callback_data.check_cache): New field.
Andrew Haley [Fri, 4 Mar 2005 19:54:16 +0000 (19:54 +0000)]
unwind-dw2-fde-glibc.c (struct unw_eh_callback_data.check_cache): New field.

2005-03-04  Andrew Haley  <aph@redhat.com>

        * unwind-dw2-fde-glibc.c (struct
        unw_eh_callback_data.check_cache): New field.
        (frame_hdr_cache): New.
        (_Unwind_IteratePhdrCallback): Add ext_dl_phdr_info.
        Cache frame header info.

From-SVN: r95894

19 years ago* expr.c (gfc_copy_shape_excluding): Change && to ||.
Steven G. Kargl [Fri, 4 Mar 2005 17:09:18 +0000 (17:09 +0000)]
* expr.c (gfc_copy_shape_excluding): Change && to ||.

From-SVN: r95891

19 years agore PR java/18362 (internal compiler error: in size_binop, at fold-const.c:1598)
Andrew Haley [Fri, 4 Mar 2005 15:38:13 +0000 (15:38 +0000)]
re PR java/18362 (internal compiler error: in size_binop, at fold-const.c:1598)

2005-03-04  Andrew Haley  <aph@redhat.com>

        PR java/18362
        * class.c (set_method_index): Don't set method_index if it is
        NULL_TREE.
        (layout_class_method): Don't complain about "non-static method foo
        overrides static method" in the case of indirect dispatch.

From-SVN: r95888

19 years agore PR preprocessor/20282 (gcc4 can not bootstrap itself anymore)
Jakub Jelinek [Fri, 4 Mar 2005 15:33:23 +0000 (16:33 +0100)]
re PR preprocessor/20282 (gcc4 can not bootstrap itself anymore)

PR bootstrap/20282
PR bootstrap/20305
* macro.c (replace_args, cpp_get_token): Copy whole
cpp_token_u instead of just cpp_string field from it.

From-SVN: r95887

19 years ago* rtl.h (copy_rtx_ptr_loc, print_rtx_ptr_loc, join_c_conditions)
Richard Sandiford [Fri, 4 Mar 2005 11:10:35 +0000 (11:10 +0000)]
* rtl.h (copy_rtx_ptr_loc, print_rtx_ptr_loc, join_c_conditions)
(print_c_condition): Declare.
* read-rtl.c (ptr_loc): New structure.
(ptr_locs, ptr_loc_obstack, joined_conditions)
(joined_conditions_obstack): New variables.
(leading_ptr_hash, leading_ptr_eq_p, set_rtx_ptr_loc)
(get_rtx_ptr_loc, copy_rtx_ptr_loc, print_rtx_ptr_loc)
(join_c_conditions, print_c_condition): New functions.
(apply_macro_to_string): Associate the new string with the same
source location as the old one.
(add_condition_to_string): Use join_c_conditions.
(read_string): Use set_rtx_ptr_loc to record a filename and line
number for the string.
(read_rtx): Initialize the new variables above.
* genattrtab.c (write_test_expr, write_attr_value): Use
print_c_condition.
* genconditions.c (write_header): Don't define MAYBE_EVAL.  Move its
comment above the GCC_VERSION check.
(write_one_condition): Use print_rtx_ptr_loc and print_c_condition.
Inline the definition of MAYBE_EVAL.
* genemit.c (gen_expand, gen_split): Use print_rtx_ptr_loc.
* genoutput.c (process_template): Likewise.
* genpreds.c (write_predicate_subfunction): Likewise.
(write_predicate_expr): Use print_c_condition.
* genrecog.c (write_cond): Likewise.
* gensupport.c (process_rtx): Use join_c_conditions to join the
conditions of a define_insn_and_split.  Record a source location
for the string after the "&&".
(alter_test_for_insn): Use join_c_conditions.

From-SVN: r95883

19 years agorevert: re PR tree-optimization/15784 (fold misses binary optimization)
Andrew Pinski [Fri, 4 Mar 2005 06:24:09 +0000 (06:24 +0000)]
revert: re PR tree-optimization/15784 (fold misses binary optimization)

2005-03-04  Andrew Pinski  <pinskia@physics.uc.edu>

        Revert for now:
        2005-03-03  James A. Morrison  <phython@gcc.gnu.org>
        PR tree-optimization/15784
        * fold-const.c (fold): Fold ~A + 1 to -1.  Fold -A - 1
        and -1 - A to ~A.

From-SVN: r95880

19 years ago* gcc.misc-tests/options.exp: New test.
Ben Elliston [Fri, 4 Mar 2005 05:15:52 +0000 (05:15 +0000)]
* gcc.misc-tests/options.exp: New test.

From-SVN: r95879

19 years agogcc.c (option_map): Add --coverage.
Ben Elliston [Fri, 4 Mar 2005 04:43:03 +0000 (04:43 +0000)]
gcc.c (option_map): Add --coverage.

* gcc.c (option_map): Add --coverage.
(LINK_COMMAND_SPEC): Pass -lgcov for `coverage'.
(cc1_options): Pass -fprofile-arcs -ftest-coverage for `coverage'.
* config/darwin.h: Pass -lgcov for `coverage'.
* doc/invoke.texi (Debugging Options): Document --coverage.

From-SVN: r95878

19 years ago* gcse.c (bypass_block): Use find_edge wherever possible.
Kazu Hirata [Fri, 4 Mar 2005 03:14:42 +0000 (03:14 +0000)]
* gcse.c (bypass_block): Use find_edge wherever possible.

From-SVN: r95873

19 years agore PR debug/20253 (Macro debug info broken due to lexer change)
Daniel Berlin [Fri, 4 Mar 2005 03:08:10 +0000 (03:08 +0000)]
re PR debug/20253 (Macro debug info broken due to lexer change)

2005-03-03  Daniel Berlin <dberlin@dbrelin.org>

Fix PR debug/20253

* c-opts.c (c_common_parse_file): Call start_source_file
and end_source_file at the approriate times.

* dwarf2out.c (dwarf2out_finish): Don't auto-end
the main file, it will be done for us now.

From-SVN: r95872

19 years agofold-const.c (fold_ternary): New.
Kazu Hirata [Fri, 4 Mar 2005 02:50:36 +0000 (02:50 +0000)]
fold-const.c (fold_ternary): New.

* fold-const.c (fold_ternary): New.
(fold): Call fold_ternary on ternary expressions.  Remove
handling of ternary expressions.

From-SVN: r95871

19 years agore PR tree-optimization/15784 (fold misses binary optimization)
James A. Morrison [Fri, 4 Mar 2005 02:48:30 +0000 (02:48 +0000)]
re PR tree-optimization/15784 (fold misses binary optimization)

2005-03-03  James A. Morrison  <phython@gcc.gnu.org>

        PR tree-optimization/15784
        * fold-const.c (fold): Fold ~A + 1 to -1.  Fold -A - 1
        and -1 - A to ~A.

From-SVN: r95870

19 years agopr17133.c: New.
Geoffrey Keating [Fri, 4 Mar 2005 01:38:56 +0000 (01:38 +0000)]
pr17133.c: New.

* gcc.c-torture/execute/pr17133.c: New.
* gcc.c-torture/compile/20050303-1.c: New.

From-SVN: r95865

19 years agopredicates.md (branch_comparison_operator): Convert from C block to conditional format.
David Edelsohn [Fri, 4 Mar 2005 01:33:45 +0000 (01:33 +0000)]
predicates.md (branch_comparison_operator): Convert from C block to conditional format.

        * config/rs6000/predicates.md (branch_comparison_operator):
        Convert from C block to conditional format.

From-SVN: r95864

19 years agobe.po, [...]: Update.
Joseph Myers [Fri, 4 Mar 2005 00:24:40 +0000 (00:24 +0000)]
be.po, [...]: Update.

* be.po, ca.po, da.po, de.po, el.po, es.po, fr.po, ja.po, nl.po,
sv.po, tr.po: Update.

[[Split portion of a mixed commit.]]

From-SVN: r95861.2

19 years agobe.po, [...]: Update.
Joseph Myers [Fri, 4 Mar 2005 00:18:16 +0000 (00:18 +0000)]
be.po, [...]: Update.

* be.po, ca.po, da.po, de.po, el.po, es.po, fr.po, ja.po, nl.po,
sv.po, tr.po: Update.

From-SVN: r95860

19 years agoDaily bump.
GCC Administrator [Fri, 4 Mar 2005 00:16:26 +0000 (00:16 +0000)]
Daily bump.

From-SVN: r95858

19 years agotrans-intrinsic.c (gfc_get_symbol_for_expr): Fix comment typo, clarify comment.
Tobias Schlüter [Fri, 4 Mar 2005 00:02:22 +0000 (01:02 +0100)]
trans-intrinsic.c (gfc_get_symbol_for_expr): Fix comment typo, clarify comment.

* trans-intrinsic.c (gfc_get_symbol_for_expr): Fix comment typo,
clarify comment.

From-SVN: r95852

19 years agoassert4.c: Fix for cygwin
David Billinghurst [Thu, 3 Mar 2005 23:46:43 +0000 (23:46 +0000)]
assert4.c: Fix for cygwin

2005-03-04  David Billinghurst  <David.Billinghurst@riotinto.com>

* gcc.dg/cpp/assert4.c:  Fix for cygwin

From-SVN: r95849

19 years agore PR libgcj/20292 (new test case PR16923 fails)
Thomas Fitzsimmons [Thu, 3 Mar 2005 22:17:26 +0000 (22:17 +0000)]
re PR libgcj/20292 (new test case PR16923 fails)

2005-03-03  Thomas Fitzsimmons  <fitzsim@redhat.com>

PR libgcj/20292
* testsuite/libjava.jni/jni.exp
(gcj_jni_invocation_compile_c_to_binary): Add -I. -I.. to compile
flags.
(gcj_jni_invocation_test_one): Add -L../.libs to cxx flags.

From-SVN: r95848

19 years agotree-dfa.c (add_referenced_var): Don't walk initializer of external and non-constant...
Jan Hubicka [Thu, 3 Mar 2005 19:53:47 +0000 (20:53 +0100)]
tree-dfa.c (add_referenced_var): Don't walk initializer of external and non-constant public variables.

* tree-dfa.c (add_referenced_var): Don't walk initializer of external
and non-constant public variables.

From-SVN: r95844

19 years agohash.h (OBJC_IGNORE_DEPRECATED_API): Update deprecated version reference.
David Ayers [Thu, 3 Mar 2005 18:25:04 +0000 (19:25 +0100)]
hash.h (OBJC_IGNORE_DEPRECATED_API): Update deprecated version reference.

2005-03-03  David Ayers  <d.ayers@inode.at>

* objc/hash.h (OBJC_IGNORE_DEPRECATED_API): Update deprecated
version reference.  Correct typo.

From-SVN: r95840

19 years agofunctional: Convert relative path.
Benjamin Kosnik [Thu, 3 Mar 2005 17:45:44 +0000 (17:45 +0000)]
functional: Convert relative path.

2005-03-03  Benjamin Kosnik  <bkoz@redhat.com>

* include/tr1/functional: Convert relative path.

* docs/doxygen/user.cfg.in: Add tr1 includes.

From-SVN: r95838

19 years agofold-const.c (fold_unary): Avoid directly using the original expression t as much...
Kazu Hirata [Thu, 3 Mar 2005 17:30:12 +0000 (17:30 +0000)]
fold-const.c (fold_unary): Avoid directly using the original expression t as much as possible.

* fold-const.c (fold_unary): Avoid directly using the original
expression t as much as possible.

From-SVN: r95837

19 years ago* fold-const.c (fold): Remove handling of unary expressions.
Kazu Hirata [Thu, 3 Mar 2005 17:27:54 +0000 (17:27 +0000)]
* fold-const.c (fold): Remove handling of unary expressions.

From-SVN: r95836

19 years agotree-phinodes.c (remove_phi_node): Clean up by factoring out calls to release_ssa_nam...
Kazu Hirata [Thu, 3 Mar 2005 17:15:36 +0000 (17:15 +0000)]
tree-phinodes.c (remove_phi_node): Clean up by factoring out calls to release_ssa_name and release_phi_node.

* tree-phinodes.c (remove_phi_node): Clean up by factoring out
calls to release_ssa_name and release_phi_node.

From-SVN: r95835

19 years agocfgexpand.c (construct_exit_block): Use EDGE_PRED instead of EDGE_I.
Kazu Hirata [Thu, 3 Mar 2005 16:22:38 +0000 (16:22 +0000)]
cfgexpand.c (construct_exit_block): Use EDGE_PRED instead of EDGE_I.

* cfgexpand.c (construct_exit_block): Use EDGE_PRED instead of
EDGE_I.

From-SVN: r95834

19 years agoMAINTAINERS (Write After Approval): Add myself.
David Ayers [Thu, 3 Mar 2005 14:46:49 +0000 (15:46 +0100)]
MAINTAINERS (Write After Approval): Add myself.

2005-03-03  David Ayers  <d.ayers@inode.at>

* MAINTAINERS (Write After Approval): Add myself.

From-SVN: r95832

19 years agotree-cfg.c (stmt_starts_bb_p): Clean up by replacing code with LABEL_EXPR.
Kazu Hirata [Thu, 3 Mar 2005 14:29:00 +0000 (14:29 +0000)]
tree-cfg.c (stmt_starts_bb_p): Clean up by replacing code with LABEL_EXPR.

* tree-cfg.c (stmt_starts_bb_p): Clean up by replacing code
with LABEL_EXPR.

From-SVN: r95831

19 years agojump.c (redirect_exp_1): If nlabel is a NULL pointer create a RETURN rtx...
Roger Sayle [Thu, 3 Mar 2005 14:16:05 +0000 (14:16 +0000)]
jump.c (redirect_exp_1): If nlabel is a NULL pointer create a RETURN rtx...

* jump.c (redirect_exp_1): If nlabel is a NULL pointer create a
RETURN rtx, and not a LABEL_REF containing a NULL pointer.

Co-Authored-By: Andrew Pinski <pinskia@physics.uc.edu>
From-SVN: r95830

19 years agotype_traits: Implemenet is_polymorphic.
Paolo Carlini [Thu, 3 Mar 2005 13:52:20 +0000 (13:52 +0000)]
type_traits: Implemenet is_polymorphic.

2005-03-03  Paolo Carlini  <pcarlini@suse.de>

* include/tr1/type_traits: Implemenet is_polymorphic.
(is_empty): Minor tweaks.
* testsuite/testsuite_tr1.h: Add test types.
* testsuite/tr1/4_metaprogramming/type_properties/
is_polymorphic/is_polymorphic.cc: New.
* testsuite/tr1/4_metaprogramming/type_properties/
is_polymorphic/typedefs.cc: Likewise.
* testsuite/tr1/4_metaprogramming/composite_type_traits/
is_union_or_class/is_union_or_class.cc: Add tests.

From-SVN: r95829

19 years agoFix my last entry
Hans-Peter Nilsson [Thu, 3 Mar 2005 04:41:55 +0000 (04:41 +0000)]
Fix my last entry

From-SVN: r95825

19 years agoDescribe special registers SRP and MOF as allocatable registers.
Hans-Peter Nilsson [Thu, 3 Mar 2005 03:53:29 +0000 (03:53 +0000)]
Describe special registers SRP and MOF as allocatable registers.

* config/cris/cris.c (cris_md_asm_clobbers): New function.
(TARGET_MD_ASM_CLOBBERS): Define to cris_md_asm_clobbers.
(cris_conditional_register_usage): Enable CRIS_MOF_REGNUM if
TARGET_HAS_MUL_INSNS.
(cris_print_operand) <case 'd'>: New case.
<case REG>: Allow CRIS_MOF_REGNUM and CRIS_SRP_REGNUM.
* config/cris/cris.h (CRIS_PC_REGNUM, CRIS_SRP_REGNUM): Don't
define.
(FIRST_PSEUDO_REGISTER, FIXED_REGISTERS, CALL_USED_REGISTERS)
(REG_ALLOC_ORDER): Update for MOF.
(enum reg_class): New members MOF_REGS, GENERAL_REGS and
SPECIAL_REGS.
(GENERAL_REGS): No longer a define of ALL_REGS.
(REGNO_REG_CLASS, REG_CLASS_CONTENTS, REG_CLASS_NAMES)
(PREFERRED_RELOAD_CLASS, REGISTER_NAMES, DBX_REGISTER_NUMBER):
Adjust accordingly.
(CRIS_SPECIAL_REGS_CONTENTS): New macro.
(REG_CLASS_FROM_LETTER): Allocate 'h' and 'x'.
(SECONDARY_RELOAD_CLASS): Define.
(STACK_POINTER_REGNUM): Define as CRIS_SP_REGNUM.
(FRAME_POINTER_REGNUM): Define as CRIS_FP_REGNUM.
(ARG_POINTER_REGNUM): Define as CRIS_AP_REGNUM.
(STATIC_CHAIN_REGNUM): Define as CRIS_STATIC_CHAIN_REGNUM.
(REGISTER_MOVE_COST): Define.
(PIC_OFFSET_TABLE_REGNUM): Define in terms of CRIS_GOT_REGNUM.
* config/cris/cris.md (CRIS_GOT_REGNUM, CRIS_STATIC_CHAIN_REGNUM)
(CRIS_FP_REGNUM, CRIS_SP_REGNUM, CRIS_SRP_REGNUM, CRIS_AP_REGNUM)
(CRIS_MOF_REGNUM): New define_constants.
("*movsi_internal", "movhi", "movqi", "movsf"): Add alternatives for
special registers.
("reload_inhi", "reload_outhi", "reload_inqi",
("umulhisi3", "umulqihi3", "mulsi3", "mulqihi3", "mulhisi3")
("mulsidi3", "umulsidi3", "smulsi3_highpart", "umulsi3_highpart"):
Adjust for MOF being properly described as a register.
(indir_to_reg_split): Name this split.  Conditionalize on the
destination register being a general register.
(movei): Conditionalize on on operands 0 and 1 having the same
register class.

From-SVN: r95823

19 years agore PR target/20277 (-mcpu=power4 vs. -maltivec)
Alan Modra [Thu, 3 Mar 2005 01:03:28 +0000 (01:03 +0000)]
re PR target/20277 (-mcpu=power4 vs. -maltivec)

PR target/20277
* config/rs6000/rs6000.c (rs6000_override_options): Don't allow
-mcpu to override any other explicitly given flags.

From-SVN: r95820

19 years agojcf-io.c (caching_stat): Use __extension__ to avoid pedantic warning.
Kaveh R. Ghazi [Thu, 3 Mar 2005 00:27:03 +0000 (00:27 +0000)]
jcf-io.c (caching_stat): Use __extension__ to avoid pedantic warning.

* jcf-io.c (caching_stat): Use __extension__ to avoid pedantic
warning.
* Make-lang.in: Don't elide warnings in jcf-io.c.

From-SVN: r95819

19 years agoDaily bump.
GCC Administrator [Thu, 3 Mar 2005 00:17:15 +0000 (00:17 +0000)]
Daily bump.

From-SVN: r95817

19 years agorecog.c (verify_changes, [...]): New functions, broken out of apply_change_group.
J"orn Rennecke [Wed, 2 Mar 2005 22:02:32 +0000 (22:02 +0000)]
recog.c (verify_changes, [...]): New functions, broken out of apply_change_group.

* recog.c (verify_changes, confirm_change_group): New functions,
broken out of apply_change_group.
(apply_change_group): Use them.
* recog.h (verify_change, confirm_change_group): Declare.
* rtl.h (redirect_jump_2): Declare.
* jump.c (redirect_exp, invert_exp): Delete.
(invert_exp_1): Take second parameter.  Return value.  Changed caller.
(redirect_jump_2): New function, broken out of redirect_jump.
(redirect_jump): Use redirect_jump_1 and redirect_jump_2.
(invert_jump): Use invert_jump_1 and redirect_jump_2.
* ifcvt.c (dead_or_predicable): Use redirect_jump_2.

From-SVN: r95813

19 years agovarasm.c (named_section): Use xstrdup rather than doing it by hand.
Geoffrey Keating [Wed, 2 Mar 2005 21:33:44 +0000 (21:33 +0000)]
varasm.c (named_section): Use xstrdup rather than doing it by hand.

* varasm.c (named_section): Use xstrdup rather than doing it by
hand.

From-SVN: r95812

19 years ago* config/darwin8.h (LIB_SPEC): Switch -lmx and -lSystem.
Geoffrey Keating [Wed, 2 Mar 2005 20:33:45 +0000 (20:33 +0000)]
* config/darwin8.h (LIB_SPEC): Switch -lmx and -lSystem.

From-SVN: r95805

19 years agoUndo PR tree-optimization/18815 fix.
Devang Patel [Wed, 2 Mar 2005 20:07:45 +0000 (12:07 -0800)]
Undo PR tree-optimization/18815 fix.

From-SVN: r95803

19 years agoname-lookup.c (push_overloaded_decl): Don't error if the new decl matches the old...
Alexandre Oliva [Wed, 2 Mar 2005 19:55:52 +0000 (19:55 +0000)]
name-lookup.c (push_overloaded_decl): Don't error if the new decl matches the old one.

gcc/cp/ChangeLog:
* name-lookup.c (push_overloaded_decl): Don't error if the new
decl matches the old one.
* decl.c (redeclaration_error_message): Likewise.
gcc/testsuite/ChangeLog:
* g++.dg/overload/using2.C: New.

From-SVN: r95798

19 years agore PR tree-optimization/18815 (Tree if-conversion screws up cfg very badly)
Devang Patel [Wed, 2 Mar 2005 19:45:25 +0000 (11:45 -0800)]
re PR tree-optimization/18815 (Tree if-conversion screws up cfg very badly)

       PR tree-optimization/18815
       * tree-if-conv.c (combine_blocks): Adjust loop header edges for
       loops with zero exit edges.

From-SVN: r95796

19 years agore PR libobjc/19024 (name collisions libobjc/libmysqlclient)
David Ayers [Wed, 2 Mar 2005 19:37:03 +0000 (20:37 +0100)]
re PR libobjc/19024 (name collisions libobjc/libmysqlclient)

2005-03-02  David Ayers  <d.ayers@inode.at>

        PR libobjc/19024
        * Makefile.in (OBJS): Add hash_compat.lo.
        (OBJS_GC): Add hash_compat_gc.lo.
        (hash_compat_gc.lo): New target and rule.
        * objc/hash.h (hash_new, hash_delete, hash_add, hash_remove)
        (hash_next, hash_value_for_key, hash_is_key_in_hash)
        (hash_ptr, hash_string, compare_ptrs, compare_strings): Prefix
        with objc_.  Add deprecated non prefixed inlined versions.
        (OBJC_IGNORE_DEPRECATED_API): New macro to hide deprecated
        declarations.
        * hash.c (hash_new, hash_delete, hash_add, hash_remove, hash_next)
        (hash_value_for_key, hash_is_key_in_hash): Prefix with objc_ and
        update callers.
        * hash_compat.c: New file.
        * archive.c: Update callers.
        * init.c: Likewise.
        * selector.c: Likewise.
        * libobjc.def: Add objc_ versions of hash functions.

From-SVN: r95793

19 years agotree-ssa-dom.c (tree_ssa_dominator_optimize): Call free_dominance_info only when...
Kazu Hirata [Wed, 2 Mar 2005 19:12:55 +0000 (19:12 +0000)]
tree-ssa-dom.c (tree_ssa_dominator_optimize): Call free_dominance_info only when needed.

* tree-ssa-dom.c (tree_ssa_dominator_optimize): Call
free_dominance_info only when needed.

From-SVN: r95791

19 years agocfg.c (connect_src, [...]): New.
Kazu Hirata [Wed, 2 Mar 2005 19:09:03 +0000 (19:09 +0000)]
cfg.c (connect_src, [...]): New.

* cfg.c (connect_src, connect_dest, disconnect_src,
disconnct_dest): New.
(unchecked_make_edge, remove_edge, redirect_edge_succ,
redirect_edge_pred): Use the new functions.

From-SVN: r95790

19 years agore PR target/20276 (64bit PPC target uses __adddi3)
David Edelsohn [Wed, 2 Mar 2005 18:57:30 +0000 (18:57 +0000)]
re PR target/20276 (64bit PPC target uses __adddi3)

PR target/20276
* config/rs6000/predicates.md (reg_or_cint64_operand): Fix typo.
(reg_or_sub_cint64_operand): Same.

From-SVN: r95789

19 years agotree-ssa-dom.c (tree_ssa_dominator_optimize): Fix setting of CFG_ALTERED in the main...
Jeff Law [Wed, 2 Mar 2005 18:54:34 +0000 (11:54 -0700)]
tree-ssa-dom.c (tree_ssa_dominator_optimize): Fix setting of CFG_ALTERED in the main DOM iteration loop.

        * tree-ssa-dom.c (tree_ssa_dominator_optimize): Fix setting of
        CFG_ALTERED in the main DOM iteration loop.

From-SVN: r95788

19 years agore PR c++/19916 (Segmentation fault in __static_initialization_and_destruction_0)
Mark Mitchell [Wed, 2 Mar 2005 17:13:09 +0000 (17:13 +0000)]
re PR c++/19916 (Segmentation fault in __static_initialization_and_destruction_0)

PR c++/19916
* varasm.c (initializer_constant_valid_p): Allow conversions
between OFFSET_TYPEs.  Tidy.

PR c++/19916
* g++.dg/init/ptrmem2.C: New test.

From-SVN: r95787

19 years agocris.md ("return"): Remove epilogue delay list sanity check.
Hans-Peter Nilsson [Wed, 2 Mar 2005 16:48:29 +0000 (16:48 +0000)]
cris.md ("return"): Remove epilogue delay list sanity check.

* config/cris/cris.md ("return"): Remove epilogue delay list
sanity check.

From-SVN: r95786

19 years agolinux-elf.h (ARM_FUNCTION_PROFILER): Do not use (PLT) for Thumb.
Daniel Jacobowitz [Wed, 2 Mar 2005 16:27:42 +0000 (16:27 +0000)]
linux-elf.h (ARM_FUNCTION_PROFILER): Do not use (PLT) for Thumb.

* config/arm/linux-elf.h (ARM_FUNCTION_PROFILER): Do not use (PLT)
for Thumb.
* config/arm/netbsd-elf.h (ARM_FUNCTION_PROFILER): Likewise.

From-SVN: r95785

19 years agofold-const.c (fold_unary): New.
Kazu Hirata [Wed, 2 Mar 2005 16:07:47 +0000 (16:07 +0000)]
fold-const.c (fold_unary): New.

* fold-const.c (fold_unary): New.
(fold): Call fold_unary on unary expressions.

From-SVN: r95783

19 years agoPR middle-end/18029 and PR middle-end/18030
Kazu Hirata [Wed, 2 Mar 2005 16:04:50 +0000 (16:04 +0000)]
PR middle-end/18029 and PR middle-end/18030

PR middle-end/18029 and PR middle-end/18030
* expr.c (optimize_bitfield_assignment_op): Add a special case
to handle BIT_IOR_EXPR and BIT_XOR_EXPR.

From-SVN: r95782

19 years agocfgloop.h, [...]: Update copyright.
Kazu Hirata [Wed, 2 Mar 2005 14:03:44 +0000 (14:03 +0000)]
cfgloop.h, [...]: Update copyright.

* cfgloop.h, cfgloopanal.c, cfgloopmanip.c, conflict.c,
loop-init.c, loop-unroll.c, print-tree.c, reg-notes.def,
config/m68k/m68k.c, config/mips/mips.h,
config/rs6000/rs6000-protos.h, doc/contrib.texi,
doc/include/gcc-common.texi: Update copyright.

From-SVN: r95781

19 years agofunctional (_Has_result_type): Cleanup.
Douglas Gregor [Wed, 2 Mar 2005 12:56:28 +0000 (12:56 +0000)]
functional (_Has_result_type): Cleanup.

2005-03-02  Douglas Gregor  <doug.gregor@gmail.com>

        * include/tr1/functional (_Has_result_type): Cleanup.
        (_Result_of_impl): Handle member data pointers correctly.
        (reference_wrapper): Support invocation.
        Move repetition code into new file include/tr1/repeat.h.
        * include/tr1/functional_iterate.h (reference_wrapper): Support
        invocation.  Cleanup long lines.
        * include/tr1/ref_wrap_iterate.h (reference_wrapper): Declare
        invocation operators.
        * include/tr1/repeat.h: Code repetition header.
        * include/Makefile.am: Add ref_wrap_iterate.h, repeat.h
        * include/Makefile.in: Add ref_wrap_iterate.h, repeat.h
        * testsuite/tr1/3_function_objects/reference_wrapper/invoke.cc:
        New test of reference_wrapper invocation.
        * testsuite/tr1/3_function_objects/reference_wrapper/typedefs.cc:
        New test of reference_wrapper typedefs and base classes.
        * testsuite/tr1/3_function_objects/result_of.cc: Trivial cleanup
        (e-mail address).

2005-03-02  Douglas Gregor  <doug.gregor@gmail.com>

        * include/tr1/function (result_of): New class template.
        * include/tr1/functional/iterator.h: Implementation of TR1
        result_of.
        * testsuite/tr1/3_function_objects/result_of.cc: New test

From-SVN: r95778

19 years agocgraph.h (struct cgraph_edge): Add prev_caller and prev_callee fields.
Richard Guenther [Wed, 2 Mar 2005 11:09:48 +0000 (11:09 +0000)]
cgraph.h (struct cgraph_edge): Add prev_caller and prev_callee fields.

2005-03-02  Richard Guenther  <rguenth@gcc.gnu.org>

* cgraph.h (struct cgraph_edge): Add prev_caller and
prev_callee fields.
(cgraph_node_remove_callees): Export.
* cgraph.c (cgraph_create_edge): Initialize prev_caller
and prev_callee.
(cgraph_edge_remove_callee): New function.
(cgraph_edge_remove_caller): Likewise.
(cgraph_remove_edge): Use.
(cgraph_redirect_edge_callee): Likewise.
(cgraph_node_remove_callees): New function.
(cgraph_node_remove_callers): Likewise.
(cgraph_remove_node): Use.
* tree-optimize.c (tree_rest_of_compilation): Use
cgraph_node_remove_callees instead of manual loop.
* cgraphunit.c (cgraph_finalize_function): Likewise.
(cgraph_expand_function): Likewise.
(cgraph_remove_unreachable_nodes): Likewise.

From-SVN: r95777

19 years ago* testsuite/26_numerics/cmath/c99_classification_macros_c.cc: Tweak.
Vladimir Merzliakov [Wed, 2 Mar 2005 03:02:45 +0000 (03:02 +0000)]
* testsuite/26_numerics/cmath/c99_classification_macros_c.cc: Tweak.

From-SVN: r95774

19 years agore PR c/8927 (Gcc give error for wrong line of C code.)
Joseph Myers [Wed, 2 Mar 2005 02:50:25 +0000 (02:50 +0000)]
re PR c/8927 (Gcc give error for wrong line of C code.)

PR c/8927
* c-tree.h (undeclared_variable, build_external_ref): Add extra
argument.
* c-decl.c (undeclared_variable): Take location as argument.
* c-typeck.c (build_external_ref): Likewise.
* c-parser.c (c_parser_postfix_expression): Pass location of
identifier to build_external_ref.

testsuite:
* gcc.dg/pr8927-1.c: New test.

From-SVN: r95773

19 years agodecl.c (finish_function): Use SET_EXPR_LOCATION instead of unavailable annotate_with_...
Per Bothner [Wed, 2 Mar 2005 00:23:47 +0000 (16:23 -0800)]
decl.c (finish_function): Use SET_EXPR_LOCATION instead of unavailable annotate_with_file_line...

* decl.c (finish_function): Use SET_EXPR_LOCATION instead of
unavailable annotate_with_file_line, if USE_MAPPED_LOCATION.

From-SVN: r95772

19 years agoDaily bump.
GCC Administrator [Wed, 2 Mar 2005 00:17:35 +0000 (00:17 +0000)]
Daily bump.

From-SVN: r95770

19 years agoMakefile.in, [...]: Regenerate.
Kelley Cook [Tue, 1 Mar 2005 23:25:50 +0000 (23:25 +0000)]
Makefile.in, [...]: Regenerate.

2005-03-01  Kelley Cook  <kcook@gcc.gnu.org>

* Makefile.in, include/Makefile.in: Regenerate.

From-SVN: r95762

19 years agore PR libgcj/20160 (link errors building libgcj tests)
Alexandre Oliva [Tue, 1 Mar 2005 22:27:43 +0000 (22:27 +0000)]
re PR libgcj/20160 (link errors building libgcj tests)

PR libgcj/20160
* ltmain.sh: Avoid creating archives with components that have
duplicate basenames.

From-SVN: r95756

19 years agors6000.md (cceq splitter): Use operand mode, not CCEQ mode for branch_positive_compar...
David Edelsohn [Tue, 1 Mar 2005 22:23:28 +0000 (22:23 +0000)]
rs6000.md (cceq splitter): Use operand mode, not CCEQ mode for branch_positive_comparison_operator test.

* config/rs6000/rs6000.md (cceq splitter): Use operand mode, not
CCEQ mode for branch_positive_comparison_operator test.
* config/rs6000/predicates (branch_comparison_operator): Revert to
define_predicate.
(scc_comparison_operator): Same.
(branch_positive_comparison_operator): Same.

From-SVN: r95755

19 years ago* config/cris/cris.c (cris_eligible_for_epilogue_delay)
Hans-Peter Nilsson [Tue, 1 Mar 2005 20:37:30 +0000 (20:37 +0000)]
* config/cris/cris.c (cris_eligible_for_epilogue_delay)
(cris_delay_slots_for_epilogue): Remove.
(save_last): Move into cris_target_asm_function_epilogue.
(cris_target_asm_function_epilogue): Remove tests for file being
NULL.
* config/cris/cris-protos.h (cris_eligible_for_epilogue_delay)
(cris_delay_slots_for_epilogue): Remove prototypes.
* config/cris/cris.h (DELAY_SLOTS_FOR_EPILOGUE)
(ELIGIBLE_FOR_EPILOGUE_DELAY): Do not define.

From-SVN: r95754

19 years agopredicates.md (branch_comparison_operator): Change to define_special_predicate.
David Edelsohn [Tue, 1 Mar 2005 18:22:07 +0000 (18:22 +0000)]
predicates.md (branch_comparison_operator): Change to define_special_predicate.

* config/rs6000/predicates.md (branch_comparison_operator): Change
to define_special_predicate.
(scc_comparison_operator): Same.
(branch_positive_comparison_operator): Same.

From-SVN: r95752

19 years agoGrrr, stupid patch program
Daniel Berlin [Tue, 1 Mar 2005 18:12:39 +0000 (18:12 +0000)]
Grrr, stupid patch program

From-SVN: r95751

19 years agoMakefile.in (tree-ssa-sink.o): New.
Daniel Berlin [Tue, 1 Mar 2005 17:59:06 +0000 (17:59 +0000)]
Makefile.in (tree-ssa-sink.o): New.

2005-03-01  Daniel Berlin <dberlin@dberlin.org>

* Makefile.in (tree-ssa-sink.o): New.
(OBJS-common): Add tree-ssa-sink.o.
* common.opt: Add -ftree-sink
* opts.c (decode_options): flag_tree_sink is set at O1 or higher.
* timevar.def (TV_TREE_SINK): new timevar.
* tree-flow.h (is_hidden_global_store): Prototype.
* tree-optimize.c (init_tree_optimization_passes): Add
pass_sink_code.
* tree-pass.h (pass_sink_code): New.
* tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Move checking
for non-obvious global store store to is_hidden_global_store, and
call that new function.
* tree-ssa-sink.c: New file.
* doc/invoke.texi: Document -fdump-tree-sink and -ftree-sink.
* doc/passes.texi: Document forward store motion.
* testsuite/gcc.dg/tree-ssa/ssa-sink-1.c: New test
* testsuite/gcc.dg/tree-ssa/ssa-sink-2.c: New test
* testsuite/gcc.dg/tree-ssa/ssa-sink-3.c: New test
* testsuite/gcc.dg/tree-ssa/ssa-sink-4.c: New test

From-SVN: r95750

19 years agore PR java/8608 (segmentation fault on compiling bad program)
Per Bothner [Tue, 1 Mar 2005 17:24:52 +0000 (09:24 -0800)]
re PR java/8608 (segmentation fault on compiling bad program)

PR java/8608
* check-init.c (wfl): Remove static.
(final_assign_error, check_init): Replace calls to parse_error_context
by plain error.
(check_init): Save, set, and restore input_location for each exp.

From-SVN: r95749

19 years agojcf-reader.c (get_attribute): Handle SourceDebugExtension (JSR 45) if HANDLE_SOURCEDE...
Per Bothner [Tue, 1 Mar 2005 17:03:45 +0000 (09:03 -0800)]
jcf-reader.c (get_attribute): Handle SourceDebugExtension (JSR 45) if HANDLE_SOURCEDEBUGEXTENSION_ATTRIBUTE...

* jcf-reader.c (get_attribute): Handle SourceDebugExtension (JSR 45)
if HANDLE_SOURCEDEBUGEXTENSION_ATTRIBUTE is defined.

From-SVN: r95748

19 years agojava-tree.h (IDENTIFIER_HANDLECLASS_VALUE): Remove ancient macro.
Per Bothner [Tue, 1 Mar 2005 16:45:19 +0000 (08:45 -0800)]
java-tree.h (IDENTIFIER_HANDLECLASS_VALUE): Remove ancient macro.

* java-tree.h (IDENTIFIER_HANDLECLASS_VALUE): Remove ancient macro.
Also improve commenst for IDENTIFIER_CLASS_VALUE.

From-SVN: r95747