66130 Commits

Author SHA1 Message Date
Vladimir Merzliakov
ceccf46b10 * testsuite/26_numerics/cmath/c99_classification_macros_c.cc: Tweak.
From-SVN: r95774
2005-03-02 03:02:45 +00:00
Joseph Myers
766beb4020 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
2005-03-02 02:50:25 +00:00
Per Bothner
176a0aad11 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
2005-03-01 16:23:47 -08:00
GCC Administrator
58a30fef7b Daily bump.
From-SVN: r95770
2005-03-02 00:17:35 +00:00
Kelley Cook
e5aa6a0ae6 Makefile.in, [...]: Regenerate.
2005-03-01  Kelley Cook  <kcook@gcc.gnu.org>

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

From-SVN: r95762
2005-03-01 23:25:50 +00:00
Alexandre Oliva
e73ed25c41 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
2005-03-01 22:27:43 +00:00
David Edelsohn
364849ee36 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
2005-03-01 17:23:28 -05:00
Hans-Peter Nilsson
b6c8b41297 * 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
2005-03-01 20:37:30 +00:00
David Edelsohn
4a80dc8213 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
2005-03-01 13:22:07 -05:00
Daniel Berlin
ec1e9f7c14 Grrr, stupid patch program
From-SVN: r95751
2005-03-01 18:12:39 +00:00
Daniel Berlin
fa55525216 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
2005-03-01 17:59:06 +00:00
Per Bothner
7cea62b4f5 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
2005-03-01 09:24:52 -08:00
Per Bothner
837491bcc8 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
2005-03-01 09:03:45 -08:00
Per Bothner
027b7c36fb 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
2005-03-01 08:45:19 -08:00
Per Bothner
255508ddad 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
2005-03-01 08:37:45 -08:00
Hans-Peter Nilsson
17c1e03735 Correct cmphi comment in PR target/19065 change
From-SVN: r95742
2005-03-01 15:13:22 +00:00
Zdenek Dvorak
70388d9433 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
2005-03-01 13:44:46 +00:00
Nick Clifton
b279b20ab3 (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
2005-03-01 10:22:53 +00:00
Nathan Sidwell
742f25b311 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
2005-03-01 09:57:45 +00:00
Jan Beulich
c363985db8 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
2005-03-01 09:23:26 +00:00
John David Anglin
d7459fa85f 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
2005-03-01 04:34:00 +00:00
Benjamin Kosnik
44dd2da22c 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
2005-03-01 03:52:37 +00:00
Kaz Kojima
65f527e0a5 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
2005-03-01 03:39:03 +00:00
Dale Johannesen
0b5383eba0 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
2005-03-01 02:56:35 +00:00
Roger Sayle
1a9dddada3 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
2005-03-01 02:43:49 +00:00
Ben Elliston
6a88516c9d 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
2005-03-01 12:03:02 +11:00
James E Wilson
f50c57bad1 Don't emit the unused counter word and label when profiling.
* config/mips/mips.h (NO_PROFILE_COUNTERS): Define.

From-SVN: r95716
2005-02-28 16:55:14 -08:00
Tobias Schlüter
2a4a783030 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
2005-03-01 01:41:41 +01:00
GCC Administrator
ba751280b2 Daily bump.
From-SVN: r95710
2005-03-01 00:21:08 +00:00
Janis Johnson
3f8b16e74e 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
2005-02-28 23:43:05 +00:00
Jonathan Wakely
52e806b77c 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
2005-02-28 21:43:51 +00:00
Jonathan Wakely
c9aa2a6885 * include/tr1/memory: Add missing "inline" to __throw_bad_weak_ptr.
From-SVN: r95698
2005-02-28 21:34:34 +00:00
Andrew Pinski
6886e18e75 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
2005-02-28 12:04:41 -08:00
Steven G. Kargl
d436d3dea2 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
2005-02-28 19:59:05 +00:00
Joseph Myers
4e3d914635 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
2005-02-28 19:22:41 +00:00
David Edelsohn
48d723357c 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
2005-02-28 14:07:36 -05:00
Devang Patel
2203a88104 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
2005-02-28 11:04:19 -08:00
Kazu Hirata
321cf1f25e 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
2005-02-28 18:18:26 +00:00
David Daney
ac5205bd7d 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
2005-02-28 17:22:30 +00:00
Roger Sayle
4f380bf815 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
2005-02-28 17:21:20 +00:00
Geert Bosch
dd1f53fbd7 re PR ada/15977 (Ada contributors should be documented)
PR ada/15977
	* doc/contrib.texi: List contributors for Ada front end

From-SVN: r95687
2005-02-28 17:30:16 +01:00
Paolo Bonzini
0a67e02c3a 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
2005-02-28 15:29:43 +00:00
Andrew Pinski
ace9ac7b51 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
2005-02-28 07:09:55 -08:00
Julian Brown
920b9c8d70 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
2005-02-28 14:14:47 +00:00
Paolo Bonzini
c9db9354fa * Makefile.in: Regenerate to fix conflict between the previous two patches.
From-SVN: r95683
2005-02-28 14:05:30 +00:00
Tobias Schlüter
9c6a7ecc6c 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
2005-02-28 14:52:48 +01:00
Paolo Bonzini
215c351a82 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
2005-02-28 13:26:36 +00:00
Zack Weinberg
f51d6cb4ab * 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
2005-02-28 06:51:44 +00:00
Ben Elliston
e02e150400 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
2005-02-28 16:28:47 +11:00
Hans-Peter Nilsson
b98c9bf289 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
2005-02-28 02:33:39 +00:00