gcc.git
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

19 years agodiagnostic.c (diagnostic_build_prefix): If USE_MAPPED_LOCATION and we have a non...
Per Bothner [Tue, 1 Mar 2005 16:37:45 +0000 (08:37 -0800)]
diagnostic.c (diagnostic_build_prefix): If USE_MAPPED_LOCATION and we have a non-zero column-number, add it to the message.

* diagnostic.c (diagnostic_build_prefix): If USE_MAPPED_LOCATION
and we have a non-zero column-number, add it to the message.
Also factor out the diagnostic_kind_text.

From-SVN: r95746

19 years agoCorrect cmphi comment in PR target/19065 change
Hans-Peter Nilsson [Tue, 1 Mar 2005 15:13:22 +0000 (15:13 +0000)]
Correct cmphi comment in PR target/19065 change

From-SVN: r95742

19 years agocfgloop.c (flow_loop_entry_edges_find, [...]): Removed.
Zdenek Dvorak [Tue, 1 Mar 2005 13:44:46 +0000 (14:44 +0100)]
cfgloop.c (flow_loop_entry_edges_find, [...]): Removed.

* cfgloop.c (flow_loop_entry_edges_find, flow_loop_exit_edges_find,
flow_loop_pre_header_scan, flow_loop_pre_header_find,
flow_loop_scan): Removed.
(flow_loop_dump): Do not dump removed fields.
(flow_loop_free): Do not free removed fields.
(flow_loops_find): Flags argument removed.  Do not call flow_loop_scan.
(loop_exit_edge_p): New function.
* cfgloop.h (struct loop): Removed fields pre_header, pre_header_edges,
num_pre_header_edges, entry_edges, num_entries, exit_edges,
num_exits, exits_doms.
(LOOP_TREE, LOOP_PRE_HEADER, LOOP_ENTRY_EDGES, LOOP_EXIT_EDGES,
LOOP_EDGES, LOOP_ALL): Removed.
(flow_loop_scan): Declaration removed.
(loop_exit_edge_p, mark_loop_exit_edges): Declare.
* cfgloopmanip.c (create_loop_notes): Do not pass flags to
flow_loops_find.
* ifcvt.c (mark_loop_exit_edges): Moved to cfgloopanal.c.
(if_convert): Call flow_loops_find and flow_loops_free
when calling mark_loop_exit_edges.
* cfgloopanal.c (mark_loop_exit_edges): Moved from
ifcvt.c.  Removed the flow_loops_find, flow_loops_free and
free_dominance_info calls.
* loop-init.c (flow_loops_find): Ditto.
* passes.c (rest_of_handle_branch_prob): Ditto.
* lambda-code.c (perfect_nestify): Do not call flow_loops_find.
* loop-unroll.c (analyze_insns_in_loop): Do not use
EDGE_LOOP_EXIT.
* predict.c (predict_loops): Do not call flow_loop_scan.
Use get_loop_exit_edges.
(tree_estimate_probability): Do not pass flags to flow_loops_find.
* tree-if-conv.c (bb_with_exit_edge_p): Take loop as argument.
Do not use EDGE_LOOP_EXIT.
(tree_if_convert_cond_expr, if_convertible_modify_expr_p): Pass loop
to bb_with_exit_edge_p.
(if_convertible_loop_p): Do not call flow_loop_scan.  Use
loop->single_exit.  Do not use EDGE_LOOP_EXIT.  Pass loop
to bb_with_exit_edge_p.
(combine_blocks): Pass loop to bb_with_exit_edge_p.  Do not use
EDGE_LOOP_EXIT.
* tree-loop-linear.c (linear_transform_loops): Do not call
flow_loop_scan.  Use loop->single_exit.
* tree-vect-analyze.c (vect_analyze_operations): Use loop->single_exit.
(vect_analyze_loop_form): Do not call flow_loop_scan.
* tree-vect-transform.c (vect_update_ivs_after_vectorizer): Use
loop->single_exit.
(vect_do_peeling_for_loop_bound): Use loop_preheader_edge and
loop->single_exit.
* tree-vectorizer.c (slpeel_update_phis_for_duplicate_loop,
slpeel_make_loop_iterate_ntimes, slpeel_can_duplicate_loop_p,
slpeel_tree_duplicate_loop_to_edge_cfg,
slpeel_verify_cfg_after_peeling, slpeel_tree_peel_loop_to_edge):
Use loop_preheader_edge and loop->single_exit.  Do not call
flow_loop_scan.

From-SVN: r95738

19 years ago(thumb_find_work_register): Check all of the argument registers to see if they are...
Nick Clifton [Tue, 1 Mar 2005 10:22:53 +0000 (10:22 +0000)]
(thumb_find_work_register): Check all of the argument registers to see if they are free...

(thumb_find_work_register): Check all of the argument registers to see if they
are free, and a couple of special cases where the last argument register but
can be proved to be available during the function's prologue.
(print_multi_reg, arm_compute_save_reg0_reg12_mask, output_return_instruction,
emit_multi_reg_push, thumb_pushpop, thumb_unexpanded_epilogue): Use unsigned
long as the type for the register bit-mask.
(thumb_compute_save_reg_mask): Likewise.  Also use thumb_find_work_register()
to ensure that there is agreement about which work register is going to be
used in the prologue.
(thumb_output_function_prologue): Use unsigned long as the type for the
register bit-mask.  Also delay pushing the link register if other high
registers are going to be pushed.
(thumb_compute_save_reg_mask, emit_multi_reg_push, print_multi-reg,
number_of_first_bit_set, thumb_pushpop): Remove redundant prototypes.

From-SVN: r95736

19 years agore PR c++/20232 (ICE with covariancy)
Nathan Sidwell [Tue, 1 Mar 2005 09:57:45 +0000 (09:57 +0000)]
re PR c++/20232 (ICE with covariancy)

cp:
PR c++/20232
* class.c (update_vtable_entry_for_fn): Don't crash on invalid
covariancy.

* cp-tree.g (THUNK_TARGET): Expand comment.
* method.c (use_thunk): Make sure we also use the target, if that
is a thunk.
testsuite:
PR c++/20232
* g++.dg/inherit/covariant12.C: New.

From-SVN: r95733

19 years agolibiberty.h: Declare unlink_if_ordinary.
Jan Beulich [Tue, 1 Mar 2005 09:23:26 +0000 (09:23 +0000)]
libiberty.h: Declare unlink_if_ordinary.

include/
2005-03-01  Jan Beulich  <jbeulich@novell.com>

* libiberty.h: Declare unlink_if_ordinary.

libiberty/
2005-03-01  Jan Beulich  <jbeulich@novell.com>

* Makefile.in (CFILES): Add unlink-if-ordinary.c
(REQUIRED_OFILES): Add unlink-if-ordinary.o.
Add dependencies and rule for unlink-if-ordinary.o.
* unlink-if-ordinary.c: New.

From-SVN: r95732

19 years agore PR target/19819 (ICE when compiling aegis 4.20)
John David Anglin [Tue, 1 Mar 2005 04:34:00 +0000 (04:34 +0000)]
re PR target/19819 (ICE when compiling aegis 4.20)

PR target/19819
* pa.h (GO_IF_LEGITIMATE_ADDRESS): Allow allow hard registers during
and after reload in REG+REG indexed addresses without REG_POINTER
set in the base and not set in the index.

From-SVN: r95729

19 years agocons/auto_ptr_neg.cc: Correct line numbers.
Benjamin Kosnik [Tue, 1 Mar 2005 03:52:37 +0000 (03:52 +0000)]
cons/auto_ptr_neg.cc: Correct line numbers.

2005-02-28  Benjamin Kosnik  <bkoz@redhat.com>

* testsuite/tr1/2_general_utilities/memory/shared_ptr/
cons/auto_ptr_neg.cc: Correct line numbers.

* testsuite/testsuite_abi.cc: Add CXXABI_1.3.1.

From-SVN: r95727

19 years agolinux.h (MD_EXEC_PREFIX, [...]): Don't undefine here.
Kaz Kojima [Tue, 1 Mar 2005 03:39:03 +0000 (03:39 +0000)]
linux.h (MD_EXEC_PREFIX, [...]): Don't undefine here.

* config/sh/linux.h (MD_EXEC_PREFIX, MD_STARTFILE_PREFIX):
Don't undefine here.
(HANDLE_PRAGMA_PACK_PUSH_POP): Delete.
(NO_IMPLICIT_EXTERN_C, CPLUSPLUS_CPP_SPEC): Likewise.
(TARGET_OS_CPP_BUILTINS): Use LINUX_TARGET_OS_CPP_BUILTINS.
(LIB_SPEC, LINK_EH_SPEC, STARTFILE_SPEC, ENDFILE_SPEC,
LINK_GCC_C_SEQUENCE_SPEC, USE_LD_AS_NEEDED, TARGET_C99_FUNCTIONS):
Delete.
* config.gcc (sh*-*-linux*): Use config/linux.h.

From-SVN: r95726

19 years agoRewrite of 64-bit Darwin structure-by-value pass/return.
Dale Johannesen [Tue, 1 Mar 2005 02:56:35 +0000 (02:56 +0000)]
Rewrite of 64-bit Darwin structure-by-value pass/return.

2005-02-28  Dale Johannesen  <dalej@apple.com>
            Stan Shebs  <shebs@apple.com>

        Rewrite of 64-bit Darwin structure-by-value pass/return.
        * config/rs6000/rs6000.h (CUMULATIVE_ARGS): New fields
        intoffset, use_stack, named.
        * config/rs6000/rs6000.c (rs6000_darwin64_function_arg):  Remove.
        (rs6000_darwin64_record_arg_advance_flush):  New.
        (rs6000_darwin64_record_arg_advance_recurse): New.
        (rs6000_darwin64_record_arg_flush):  New.
        (rs6000_darwin64_record_arg_recurse):  New.
        (rs6000_darwin64_record_arg):  New.
        (rs6000_return_in_memory):  Remove AGGREGATE_TYPE_P check.
        (function_arg_boundary):  Handle 128-bit aligned structs.
        (function_arg_advance):  Rewrite darwin64 struct handling.
        (function_arg):  Call rs6000_darwin64_record_arg.
        (function_arg_partial_nregs):  Handle darwin64 structs.
        (rs6000_darwin64_function_value):  Remove.
        (rs6000_function_value):  Call rs6000_darwin64_record_arg.

Co-Authored-By: Stan Shebs <shebs@apple.com>
From-SVN: r95723

19 years agore PR tree-optimization/20216 (Simple loop runs out of stack at -O1)
Roger Sayle [Tue, 1 Mar 2005 02:43:49 +0000 (02:43 +0000)]
re PR tree-optimization/20216 (Simple loop runs out of stack at -O1)

PR tree-optimization/20216
* tree-chrec.c (tree_fold_factorial): Delete.
(tree_fold_binomial): Change argument list to take a return type
and change the type of K to unsigned int.  Rewrite to avoid explicit
evaluation of factorials, and (recursively) calling fold to perform
compile-time arithmetic.  Return NULL on (internal) overflow.
(chrec_evaluate): Change type of K to an unsigned int.  Avoid
calling tree_fold_binomial unnecessarily.  Return chrec_dont_know
if any intermediate calculation overflows.
(chrec_apply): Update call to chrec_evaluate.

From-SVN: r95722

19 years agohashtab.c (htab_find_slot_with_hash): Make function documentation clearer.
Ben Elliston [Tue, 1 Mar 2005 01:03:02 +0000 (01:03 +0000)]
hashtab.c (htab_find_slot_with_hash): Make function documentation clearer.

* hashtab.c (htab_find_slot_with_hash): Make function
documentation clearer.

From-SVN: r95717

19 years agoDon't emit the unused counter word and label when profiling.
James E Wilson [Tue, 1 Mar 2005 00:55:14 +0000 (00:55 +0000)]
Don't emit the unused counter word and label when profiling.

* config/mips/mips.h (NO_PROFILE_COUNTERS): Define.

From-SVN: r95716

19 years agore PR fortran/19479 (UBOUND causes ICE)
Tobias Schlüter [Tue, 1 Mar 2005 00:41:41 +0000 (01:41 +0100)]
re PR fortran/19479 (UBOUND causes ICE)

fortran/
PR fortran/19479
* simplify.c (gfc_simplify_bound): Rename to ...
(simplify_bound): ... this and overhaul.

testsuite/
PR fortran/19479
* gfortran.dg/bound_1.f90: New test.

From-SVN: r95713

19 years agoDaily bump.
GCC Administrator [Tue, 1 Mar 2005 00:21:08 +0000 (00:21 +0000)]
Daily bump.

From-SVN: r95710

19 years agodg-error-exp-P.c: Update message for new C parser.
Janis Johnson [Mon, 28 Feb 2005 23:43:05 +0000 (23:43 +0000)]
dg-error-exp-P.c: Update message for new C parser.

* gcc.test-framework/dg-error-exp-P.c: Update message for new C parser.
* gcc.test-framework/dg-error-exp-XP.c: Ditto.

From-SVN: r95706

19 years agomemory: Replace checked_deleter with (unchecked) _Sp_deleter as GCC warns about delete...
Jonathan Wakely [Mon, 28 Feb 2005 21:43:51 +0000 (21:43 +0000)]
memory: Replace checked_deleter with (unchecked) _Sp_deleter as GCC warns about delete...

* include/tr1/memory: Replace checked_deleter with (unchecked)
_Sp_deleter as GCC warns about delete on incomplete types anyway.

From-SVN: r95699

19 years ago* include/tr1/memory: Add missing "inline" to __throw_bad_weak_ptr.
Jonathan Wakely [Mon, 28 Feb 2005 21:34:34 +0000 (21:34 +0000)]
* include/tr1/memory: Add missing "inline" to __throw_bad_weak_ptr.

From-SVN: r95698

19 years agore PR libobjc/20252 (Libobjc build broken)
Andrew Pinski [Mon, 28 Feb 2005 20:04:41 +0000 (20:04 +0000)]
re PR libobjc/20252 (Libobjc build broken)

2005-02-28  Andrew Pinski <pinskia@physics.uc.edu>

        PR libobjc/20252
        * Makefile.in (GTHREAD_FLAGS): Remove.
        (ALL_CFLAGS): Remove usage of GTHREAD_FLAGS.
        * thr-objc.c: Include config.h.
        * configure.ac: Instead of looking at GCC's makefile, figure out if
        GTHREAD_FLAGS should be defined by looking at the `thread model'
        of the current gcc.
        * configure: Regenerate.
        * config.h.in: Regenerate.

From-SVN: r95696

19 years agotrans-intrinsic.c (gfc_conv_intrinsic_iargc): remove boolean argument.
Steven G. Kargl [Mon, 28 Feb 2005 19:59:05 +0000 (19:59 +0000)]
trans-intrinsic.c (gfc_conv_intrinsic_iargc): remove boolean argument.

* trans-intrinsic.c (gfc_conv_intrinsic_iargc): remove boolean argument.
  (gfc_conv_intrinsic_function): update function calls

From-SVN: r95695

19 years agore PR c/20245 (ICE on invalid function declaration)
Joseph Myers [Mon, 28 Feb 2005 19:22:41 +0000 (19:22 +0000)]
re PR c/20245 (ICE on invalid function declaration)

PR c/20245
* c-parser.c (c_parser_compound_statement): Return error_mark_node
instead of NULL_TREE on error.

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

From-SVN: r95693

19 years agors6000.c (EASY_VECTOR_15): Remove.
David Edelsohn [Mon, 28 Feb 2005 19:07:36 +0000 (19:07 +0000)]
rs6000.c (EASY_VECTOR_15): Remove.

        * config/rs6000/rs6000.c (EASY_VECTOR_15): Remove.
        (EASY_VECTOR_15_ADD_SELF): Remove.
        (num_insns_constant_wide): Not static.
        (validate_condition_mode): Not static.
        (toc_relative_expr_p): Not static.
        (legitimate_indirect_address_p): Not static.
        (macho_lo_sum_memory_operand): Not static.
        (invalid_e500_subreg): Not static.
        (easy_vector_same): Not static.
        (easy_vector_splat_const): Not static.
        (RS6000_SYMBOL_REF_TLS_P): Remove.
        (any_operand): Delete.
        (any_parallel_operand): Delete.
        (count_register_operand): Delete.
        (altivec_register_operand): Delete.
        (xer_operand): Delete.
        (s8bit_cint_operand): Delete.
        (short_cint_operand): Delete.
        (u_short_cint_operand): Delete.
        (non_short_cint_operand): Delete.
        (exact_log2_cint_operand): Delete.
        (gpc_reg_operand): Delete.
        (cc_reg_operand): Delete.
        (cc_reg_not_cr0_operand): Delete.
        (reg_or_short_operand): Delete.
        (reg_or_neg_short_operand): Delete.
        (reg_or_aligned_short_operand): Delete.
        (reg_or_u_short_operand): Delete.
        (reg_or_cint_operand): Delete.
        (reg_or_arith_cint_operand): Delete.
        (reg_or_add_cint64_operand): Delete.
        (reg_or_sub_cint64_operand): Delete.
        (reg_or_logical_cint_operand): Delete.
        (got_operand): Delete.
        (got_no_const_operand): Delete.
        (easy_fp_constant): Delete.
        (easy_vector_constant): Delete.
        (easy_vector_constant_add_self): Delete.
        (zero_constant): Delete.
        (zero_fp_constant): Delete.
        (volatile_mem_operand): Delete.
        (offsettable_mem_operand): Delete.
        (mem_or_easy_const_operand): Delete.
        (add_operand): Delete.
        (non_add_cint_operand): Delete.
        (logical_operand): Delete.
        (non_logical_cint_operand): Delete.
        (mask_operand): Delete.
        (mask_operand_wrap): Delete.
        (mask64_operand): Delete.
        (mask64_2_operand): Delete.
        (and64_operand): Delete.
        (and64_2_operand): Delete.
        (and_operand): Delete.
        (reg_or_mem_operand): Delete.
        (lwa_operand): Delete.
        (symbol_ref_operand): Delete.
        (call_operand): Delete.
        (current_file_function_operand): Delete.
        (input_operand): Delete.
        (rs6000_nonimmediate_operand): Delete.
        (rs6000_tls_symbol_ref): Delete.
        (save_world_operation): Delete.
        (restore_world_operation): Delete.
        (load_multiple_operation): Delete.
        (store_multiple_operation): Delete.
        (vrsave_operation): Delete.
        (mfcr_operation): Delete.
        (mtcrf_operation): Delete.
        (lmw_operation): Delete.
        (stmw_operation): Delete.
        (branch_comparison_operator): Delete.
        (branch_positive_comparison_operator): Delete.
        (scc_comparison_operator): Delete.
        (trap_comparison_operator): Delete.
        (boolean_operator): Delete.
        (boolean_or_operator): Delete.
        (min_max_operator): Delete.
        * config/rs6000/rs6000.h (RS6000_SYMBOL_REF_TLS_P): Move to here.
        (EASY_VECTOR_15): Moved to here.
        (EASY_VECTOR_15_ADD_SELF): Move to here.
        (PREDICATE_CODES): Delete.
        * config/rs6000/rs6000-protos.h: Delete predicate functions.
        Declare functions no longer static.
        * config/rs6000/predicates.md: New.
        * config/rs6000/rs6000.md: Include predicates.md

From-SVN: r95692

19 years agodirectives.c (do_line): Save sysp early before line table is realloc'ed.
Devang Patel [Mon, 28 Feb 2005 19:04:19 +0000 (11:04 -0800)]
directives.c (do_line): Save sysp early before line table is realloc'ed.

       * directives.c (do_line): Save sysp early before line table is
       realloc'ed.

From-SVN: r95691

19 years agocalls.c (emit_call_1): Don't use REG_ALWAYS_RETURN.
Kazu Hirata [Mon, 28 Feb 2005 18:18:26 +0000 (18:18 +0000)]
calls.c (emit_call_1): Don't use REG_ALWAYS_RETURN.

* calls.c (emit_call_1): Don't use  REG_ALWAYS_RETURN.
(emit_library_call_value_1): Don't use LCT_ALWAYS_RETURN and
REG_ALWAYS_RETURN.
* cfgrtl.c (need_fake_edge_p): Likewise.
* combine.c (distribute_notes): Likewise.
* emit-rtl.c (try_split): Likewise.
* recog.c (peephole2_opimize): Likewise.
* reg-notes.def (ALWAYS_RETURN): Remove.
* rtl.h (LCT_ALWAYS_RETURN): Remove.
* tree-cfg.c (need_fake_edge_p): Don't use ECF_ALWAYS_RETURN.
* tree.h (ECF_ALWAYS_RETURN): Remove.

From-SVN: r95690

19 years agoconfigure.host: Don't use -mxgot for MIPS builds.
David Daney [Mon, 28 Feb 2005 17:22:30 +0000 (17:22 +0000)]
configure.host: Don't use -mxgot for MIPS builds.

2005-02-23  David Daney  <ddaney@avtrex.com>

* configure.host: Don't use -mxgot for MIPS builds.

From-SVN: r95689

19 years agore PR middle-end/19874 (ICE in emit_move_insn with __attribute__((mode (QI))) enum)
Roger Sayle [Mon, 28 Feb 2005 17:21:20 +0000 (17:21 +0000)]
re PR middle-end/19874 (ICE in emit_move_insn with __attribute__((mode (QI))) enum)

PR middle-end/19874
* tree-ssa.c (tree_ssa_useless_type_conversion_1): A conversion
between different machine modes is never a "useless" conversion.

* gcc.c-torture/execute/20050119-2.c: New test case.

From-SVN: r95688

19 years agore PR ada/15977 (Ada contributors should be documented)
Geert Bosch [Mon, 28 Feb 2005 16:30:16 +0000 (17:30 +0100)]
re PR ada/15977 (Ada contributors should be documented)

PR ada/15977
* doc/contrib.texi: List contributors for Ada front end

From-SVN: r95687

19 years agosimplify-rtx.c (simplify_unary_operation_1, [...]): New, extracted from...
Paolo Bonzini [Mon, 28 Feb 2005 15:29:43 +0000 (15:29 +0000)]
simplify-rtx.c (simplify_unary_operation_1, [...]): New, extracted from...

2005-02-28 Paolo Bonzini <bonzini@gnu.org>

* simplify-rtx.c (simplify_unary_operation_1,
simplify_const_unary_operation): New, extracted from...
(simplify_unary_operation): ... this one.
(simplify_binary_operation_1,
simplify_const_binary_operation): New, extracted from...
(simplify_binary_operation): ... this one.
* rtl.h (simplify_const_unary_operation,
simplify_const_binary_operation): Add prototypes.

From-SVN: r95686

19 years agore PR bootstrap/20250 (fixincludes is no longer installs but does make check instead)
Andrew Pinski [Mon, 28 Feb 2005 15:09:55 +0000 (15:09 +0000)]
re PR bootstrap/20250 (fixincludes is no longer installs but does make check instead)

2005-02-28  Andrew Pinski  <pinskia@physics.uc.edu>

        PR bootstrap/20250
        * Makefile.tpl (HOST target installs): Fix copy and pasto, use install
        instead of check.
        * Makefile.in: Regenerate.

From-SVN: r95685

19 years agore PR target/20228 ([4.1 Regressions] Cannot link two valid C++ TU together)
Julian Brown [Mon, 28 Feb 2005 14:14:47 +0000 (14:14 +0000)]
re PR target/20228 ([4.1 Regressions] Cannot link two valid C++ TU together)

* config/elfos.h: Revert my patch from 2005-02-25 since it broke
building libjava and caused PR regression/20228.

From-SVN: r95684

19 years ago* Makefile.in: Regenerate to fix conflict between the previous two patches.
Paolo Bonzini [Mon, 28 Feb 2005 14:05:30 +0000 (14:05 +0000)]
* Makefile.in: Regenerate to fix conflict between the previous two patches.

From-SVN: r95683

19 years agoFix missing ChangeLog entry:
Tobias Schlüter [Mon, 28 Feb 2005 13:52:48 +0000 (14:52 +0100)]
Fix missing ChangeLog entry:

2005-02-24  Tobias Schlueter  <tobias.schlueter@physik.uni-meunchen.de>

Unrevert previously reverted patch.  Adding this fix:
* module.c (find_true_name): Deal with NULL module.

From-SVN: r95681

19 years agore PR bootstrap/17383 (Building in src dir fails)
Paolo Bonzini [Mon, 28 Feb 2005 13:26:36 +0000 (13:26 +0000)]
re PR bootstrap/17383 (Building in src dir fails)

2005-05-25  Paolo Bonzini  <bonzini@gnu.org>

PR bootstrap/17383
* Makefile.def (target_modules): Remove "stage", now unnecessary.
* Makefile.tpl (HOST_SUBDIR): New substitution.
(STAGE_HOST_EXPORTS, EXPECT, HOST_LIB_PATH, USUAL_AR_FOR_TARGET,
USUAL_AS_FOR_TARGET, USUAL_DLLTOOL_FOR_TARGET, USUAL_GCC_FOR_TARGET,
USUAL_LD_FOR_TARGET, USUAL_NM_FOR_TARGET, USUAL_OBJDUMP_FOR_TARGET,
USUAL_RANLIB_FOR_TARGET, USUAL_WINDRES_FOR_TARGET): Use it.
(Host modules, Bootstrapped modules): Use it.
(Build modules, Target modules): Do not create symlink trees,
always configure out-of-srcdir.
(distclean): Try removing $(host_subdir) with rm before using rm -rf.
* configure.in (FLAGS_FOR_TARGET, CC_FOR_TARGET, GCJ_FOR_TARGET,
GFORTRAN_FOR_TARGET, CXX_FOR_TARGET, RAW_CXX_FOR_TARGET): Use
$(HOST_SUBDIR).  Create a symlink for host_subdir.

* Makefile.in: Regenerate.
* configure: Regenerate.

config:
2005-05-25  Paolo Bonzini  <bonzini@gnu.org>

PR bootstrap/17383
* config/acx.m4 (GCC_TOPLEV_SUBDIRS): Set HOST_SUBDIR if an in-src
gcc build is going.

gcc:
2005-05-25  Paolo Bonzini  <bonzini@gnu.org>

PR bootstrap/17383
* gcc/Makefile.in (host_subdir): New.
(build_objdir): New.  Replace ../$(build_subdir) with it throughout.
* gcc/configure: Regenerate.

libada:
2005-05-25  Paolo Bonzini  <bonzini@gnu.org>

PR bootstrap/17383
* Makefile.in (GCC_DIR): Add $(HOST_SUBDIR) to the definition.

libjava:
2005-05-25  Paolo Bonzini  <bonzini@gnu.org>

PR bootstrap/17383
* configure.ac: Call GCC_TOPLEV_SUBDIRS.
(COMPPATH): Removed.
(ZIP, GCJH): Replace it with ../$(host_subdir).
(built_gcc_dir): Add $(host_subdir).
* configure: Regenerate.
* Makefile.in, include/Makefile.in, testsuite/Makefile.in,
gcj/Makefile.in, external/Makefile.in, external/sax/Makefile.in,
external/w3c_dom/Makefile.in: Regenerate.

libobjc:
2005-05-25  Paolo Bonzini  <bonzini@gnu.org>

PR bootstrap/17383
* configure.ac: Call GCC_TOPLEV_SUBDIRS.
(Determine CFLAGS for gthread): Use $host_subdir.
* configure: Regenerate.
* Makefile.in (host_subdir): New.
(INCLUDES): Use it.

From-SVN: r95680

19 years ago* config/alpha/t-osf4, config/arm/t-netbsd, config/ia64/t-hpux
Zack Weinberg [Mon, 28 Feb 2005 06:51:44 +0000 (06:51 +0000)]
* config/alpha/t-osf4, config/arm/t-netbsd, config/ia64/t-hpux
* config/pa/t-hpux-shlib (SHLIB_INSTALL): Create the
installation directory first.

From-SVN: r95656

19 years agoREADME: Update the DejaGnu bug reporting address.
Ben Elliston [Mon, 28 Feb 2005 05:28:47 +0000 (16:28 +1100)]
README: Update the DejaGnu bug reporting address.

* README: Update the DejaGnu bug reporting address.
* lib/c-torture.exp: Remove the DejaGnu bug reporting address.
* lib/objc-torture.exp: Likewise.

From-SVN: r95651

19 years agore PR target/19065 (Make CRIS libstdc++ asms autoincrement-safe)
Hans-Peter Nilsson [Mon, 28 Feb 2005 02:33:39 +0000 (02:33 +0000)]
re PR target/19065 (Make CRIS libstdc++ asms autoincrement-safe)

PR target/19065
* config/cpu/cris/atomicity.h (__exchange_and_add): In asm, use
'Q' constraint, not 'm'.

From-SVN: r95648

19 years agore PR target/19065 (Make CRIS libstdc++ asms autoincrement-safe)
Hans-Peter Nilsson [Mon, 28 Feb 2005 02:21:40 +0000 (02:21 +0000)]
re PR target/19065 (Make CRIS libstdc++ asms autoincrement-safe)

PR target/19065.
* config/cris/cris.h (EXTRA_CONSTRAINT_Q): Accept only (mem (reg)),
not including (reg). Do not check for reg being CRIS_PC_REGNUM.
(EXTRA_MEMORY_CONSTRAINT): Define as 'Q'.
* config/cris/cris.md: Tweak comments referring to Q.
  ("cmpsi", "cmphi", "cmpqi", "*movsi_internal", "movhi")
("movstricthi", "movqi", "movstrictqi", "movsf", "addsi3")
("addhi3", "addqi3", "subsi3", "subhi3", "subqi3")
("*expanded_andsi", "*expanded_andhi", "*andhi_lowpart", "andqi3")
("*andqi_lowpart", "iorsi3", "iorhi3", "iorqi3", "uminsi3"):
Insert spaces in constraints to align alternatives vertically for
readability.
("cmphi"): Ditto.  Add separate alternative for operand 0 "Q>",
operand 1: "M".

From-SVN: r95647

19 years agoboz_1.f90: New test.
Steven G. Kargl [Mon, 28 Feb 2005 01:28:09 +0000 (01:28 +0000)]
boz_1.f90: New test.

* gfortran.dg/boz_1.f90: New test.
* gfortran.dg/boz_3.f90: New test.
* gfortran.dg/boz_4.f90: New test.

From-SVN: r95646

19 years agoishft.f90: Remove kind suffix from BOZ constant
Steven G. Kargl [Mon, 28 Feb 2005 00:40:03 +0000 (00:40 +0000)]
ishft.f90: Remove kind suffix from BOZ constant

* gfortran.dg/ishft.f90:  Remove kind suffix from BOZ constant
* gfortran.fortran-torture/execute/intrinsic_mvbits.f90: ditto

From-SVN: r95644

19 years agore PR fortran/20058 (Error on kind 16 hex data statement)
Steven G. Kargl [Mon, 28 Feb 2005 00:38:12 +0000 (00:38 +0000)]
re PR fortran/20058 (Error on kind 16 hex data statement)

PR fortran/20058
* trans-types.c (gfc_max_integer_kind): Declare
  (gfc_init_kinds): Initialize it.
* gfortran.h (gfc_max_integer_kind): extern it.
* primary.c (match_boz_constant): Use it; remove gfortran extension
  of kind suffixes on BOZ literal constants

From-SVN: r95643

19 years agoDaily bump.
GCC Administrator [Mon, 28 Feb 2005 00:16:23 +0000 (00:16 +0000)]
Daily bump.

From-SVN: r95639

19 years agoChangeLog: Fix typo in Peter O'Gorman's name.
Toon Moene [Sun, 27 Feb 2005 20:59:02 +0000 (20:59 +0000)]
ChangeLog: Fix typo in Peter O'Gorman's name.

2005-02-27  Toon Moene  <toon@moene.indiv.nluug.nl>

* ChangeLog: Fix typo in Peter O'Gorman's name.
* runtime/environ.c: Update copyright years.

From-SVN: r95635

19 years ago* io/write.c: Update copyright years.
Tobias Schlüter [Sun, 27 Feb 2005 20:11:01 +0000 (21:11 +0100)]
* io/write.c: Update copyright years.

From-SVN: r95630

19 years agore PR libfortran/20101 (zero prints incorrectly with 1pe12.4)
Francois-Xavier Coudert [Sun, 27 Feb 2005 19:47:12 +0000 (20:47 +0100)]
re PR libfortran/20101 (zero prints incorrectly with 1pe12.4)

libgfortran/
2005-02-27  Fran��ois-Xavier Coudert  <coudert@clipper.ens.fr>

 PR libfortran/20101
* write.c (output_float): Adding special check for value 0.0 in
PE format.

gcc/testsuite/
2005-02-27  Fran��ois-Xavier Coudert  <coudert@clipper.ens.fr>

PR libfortran/20101
* gfortran.dg/write_0_pe_format.f90: New test.

From-SVN: r95628

19 years agoChanged my own email address
Svein Seldal [Sun, 27 Feb 2005 18:50:47 +0000 (18:50 +0000)]
Changed my own email address

From-SVN: r95627

19 years agoarith.c (gfc_check_real_range): Remove multiple returns
Steven G. Kargl [Sun, 27 Feb 2005 17:32:26 +0000 (17:32 +0000)]
arith.c (gfc_check_real_range): Remove multiple returns

* arith.c (gfc_check_real_range):  Remove multiple returns
  (check_result): New function.
  (gfc_arith_uminus,gfc_arith_plus,gfc_arith_times,
  gfc_arith_divide,gfc_arith_power,gfc_arith_minus): Use it.

From-SVN: r95624

19 years agore PR c++/20206 (COMDAT broken for C++ thunks)
Jakub Jelinek [Sun, 27 Feb 2005 17:13:28 +0000 (18:13 +0100)]
re PR c++/20206 (COMDAT broken for C++ thunks)

PR c++/20206
* decl.c (cxx_comdat_group): Put thunks for
TARGET_USE_LOCAL_THUNK_ALIAS_P (function) functions into the same
comdat group as the thunk target.

* g++.dg/opt/thunk2.C: New test.
* g++.dg/opt/covariant1.C: New test.

From-SVN: r95619

19 years agore PR rtl-optimization/17728 (ICE in extract_insn, at recog.c:2083, unrecognizable...
John David Anglin [Sun, 27 Feb 2005 16:32:12 +0000 (16:32 +0000)]
re PR rtl-optimization/17728 (ICE in extract_insn, at recog.c:2083, unrecognizable insn)

PR rtl-optimization/17728
* pa.md (mulsi3, divsi3, udivsi3, modsi3): Change predicate for
operand 0 from general_operand to move_dest_operand.

From-SVN: r95616

19 years agowrite.c (output_float): Fix typo in condition.
Tobias Schlüter [Sun, 27 Feb 2005 16:17:56 +0000 (17:17 +0100)]
write.c (output_float): Fix typo in condition.

libgfortran/
* io/write.c (output_float): Fix typo in condition.

gcc/testsuite/
* gfortran.dg/e_d_fmt.f90: New test.

From-SVN: r95615

19 years ago* treelang.texi: Fix a typo.
Kazu Hirata [Sun, 27 Feb 2005 13:55:32 +0000 (13:55 +0000)]
* treelang.texi: Fix a typo.

From-SVN: r95611

19 years ago* gcc.dg/asm-b.c: Fix comment typos.
Kazu Hirata [Sun, 27 Feb 2005 13:49:37 +0000 (13:49 +0000)]
* gcc.dg/asm-b.c: Fix comment typos.

From-SVN: r95609

19 years agoinline_asm-2.c: link_error produces a V_MAY_DEF also.
Andrew Pinski [Sun, 27 Feb 2005 04:37:23 +0000 (04:37 +0000)]
inline_asm-2.c: link_error produces a V_MAY_DEF also.

2005-02-26  Andrew Pinski  <pinskia@physics.uc.edu>

        * gcc.dg/tree-ssa/inline_asm-2.c: link_error produces
        a V_MAY_DEF also.

From-SVN: r95606

19 years agoelf.h, som.h (ASM_OUTPUT_EXTERNAL): Use assemble_name_raw instead of trying to save...
John David Anglin [Sun, 27 Feb 2005 04:22:06 +0000 (04:22 +0000)]
elf.h, som.h (ASM_OUTPUT_EXTERNAL): Use assemble_name_raw instead of trying to save and restore TREE_SYMBOL_REFERENCED.

* pa/elf.h, pa/som.h (ASM_OUTPUT_EXTERNAL): Use assemble_name_raw
instead of trying to save and restore TREE_SYMBOL_REFERENCED.
* pa/pa64-hpux.h (ASM_OUTPUT_TYPE_DIRECTIVE): Define.
(ASM_OUTPUT_EXTERNAL): Don't save and restore TREE_SYMBOL_REFERENCED.

From-SVN: r95605

19 years agoseh_init.c (__gnat_SEH_error_handler): Mark third and fourth parameters as unused.
Danny Smith [Sun, 27 Feb 2005 01:12:13 +0000 (01:12 +0000)]
seh_init.c (__gnat_SEH_error_handler): Mark third and fourth parameters as unused.

* seh_init.c (__gnat_SEH_error_handler): Mark third and fourth
parameters as unused.

From-SVN: r95604

19 years agoDaily bump.
GCC Administrator [Sun, 27 Feb 2005 00:16:40 +0000 (00:16 +0000)]
Daily bump.

From-SVN: r95601

19 years agostl_tree.h (_Rb_tree<>::_M_insert): Don't leak memory if _M_key_compare throws.
Earl Chew [Sat, 26 Feb 2005 23:34:36 +0000 (23:34 +0000)]
stl_tree.h (_Rb_tree<>::_M_insert): Don't leak memory if _M_key_compare throws.

2005-02-26  Earl Chew  <earl_chew@agilent.com>
    Christopher Jefferson  <chris@bubblescope.net>

* include/bits/stl_tree.h (_Rb_tree<>::_M_insert): Don't leak
memory if _M_key_compare throws.

Co-Authored-By: Chris Jefferson <chris@bubblescope.net>
From-SVN: r95597

19 years ago(top level)
Nathanael Nerode [Sat, 26 Feb 2005 21:43:33 +0000 (21:43 +0000)]
(top level)
Merged from libada-gnattools-branch:
2004-11-28  Nathanael Nerode  <neroden@gcc.gnu.org>

* gnattools: New directory.
* Makefile.def: Add gnattools as a module, depending on target-libada.
* Makefile.in: Regenerate.
* configure.in: Include gnattools in host_tools; disable it if ada
is disabled.
* configure: Regenerate.

(gcc)
* configure.ac: Rename cc_for_cross_gnattools to host_cc_for_libada.
* configure: Regenerate.
        * libada-mk.in: Remove CC; rename
cc_for_cross_gnattools / cc_set_by_configure to host_cc_for_libada.

(gcc/ada)
Partial merge from libada-gnattools-branch:

2004-12-02  Nathanael Nerode  <neroden@gcc.gnu.org>
        * Makefile.in: Move gnattools{1,1re,2,3,4} and corresponding flags
        into code in gnattools/Makefile.in.  Remove direct dependencies on
        stamp-tools by tools clauses.
2004-12-02  Nathanael Nerode  <neroden@gcc.gnu.org>
        * config-lang.in: Add gnattools to $lang_dirs.

(libada)
2004-12-03  Nathanael Nerode  <neroden@gcc.gnu.org>

* Makefile.in: Add stamp file for building libada, to avoid
duplicate builds every time all-gnattools is called.

2004-12-02  Nathanael Nerode  <neroden@gcc.gnu.org>

* Makefile.in: Build gcc/ada/Makefile (by running gcc/ada/configure)
here.

2004-08-16  Nathanael Nerode  <neroden@gcc.gnu.org>

* configure.ac: Replace AC_CANONICAL_SYSTEM with _BUILD, _HOST,
_TARGET.
* configure: Regenerate.

2004-07-18  Nathanael Nerode  <neroden@gcc.gnu.org>

* configure.ac, Makefile.in: Remove gnattools-specific code
(see gnattools directory).
* Makefile.in: Remove dead rts-* targets.
* configure: Regenerate.

(gnattools)
2005-02-02  Nathanael Nerode  <neroden@gcc.gnu.org>

        * Makefile.in: Remove use of cc_set_by_configure; just use
        plain old CC from the top level in this case.

2005-01-30  Nathanael Nerode  <neroden@gcc.gnu.org>
Merge from mainline at tag libada-gnattools-merge-20050129:
* configure.ac: Changes propagated from gcc/ada/Makefile.in.
* Makefile.in: Changes relocated from gcc/ada/Makefile.in.

2004-12-13  Nathanael Nerode  <neroden@gcc.gnu.org>

        * Makefile.in: Reinstate stamp-gnatlib check.

2004-12-02  Nathanael Nerode  <neroden@gcc.gnu.org>

* Makefile.in: Inline gnattools{1,1-re,2,3,4} targets from
gcc/ada/configure.ac into gnattools-native and gnattools-cross
targets, collecting flags as appropriate from here,
gcc/ada/Makefile.in, gcc/ada/configure.ac, etc.  Attempt to retain
identical behavior.
* configure.ac: Add necessary configure bits from
gcc/ada/configure.ac.
* configure: Regenerate.

2004-08-16  Nathanael Nerode  <neroden@gcc.gnu.org>

* configure.ac: Replace AC_CANONICAL_SYSTEM with _BUILD, _HOST,
_TARGET.  Replace _GCC_TOPLEV_NONCANONICAL_TARGET with
ACX_NONCANONICAL_TARGET, and replace now-redundant AC_SUBST.
* configure: Regenerate.

2004-07-18  Nathanael Nerode  <neroden@gcc.gnu.org>

* Makefile.in, configure.ac: Remove libada-specific targets and
variables.
* configure: Regenerate.
* New directory, cloned from libada.

From-SVN: r95594