Commit Graph

67859 Commits

Author SHA1 Message Date
Michael Koch
4b30c6bda0 Runtime.java, [...]: Replaced java.lang.Runtime.securityManager by java.lang.SecurityManager.current...
2005-04-25  Michael Koch  <konqueror@gmx.de>

	* java/lang/Runtime.java,
	java/lang/SecurityManager.java,
	java/lang/System.java,
	java/lang/ThreadGroup.java:
	Replaced java.lang.Runtime.securityManager by
	java.lang.SecurityManager.current (as used in GNU classpath).

From-SVN: r98738
2005-04-25 20:35:17 +00:00
Devang Patel
1f4ea3f2fa dbxout.c (dbxout_type): Emit attribute vector.
* dbxout.c (dbxout_type): Emit attribute vector.
        * gcc.dg/stabs-attrib-vect-darwin.c: New test.

From-SVN: r98737
2005-04-25 13:26:00 -07:00
David Gilbert
23a58ffe2b 2005-04-25 David Gilbert <david.gilbert@object-refinery.com>
* java/awt/Transparency.java
	(getTransparency): fixed API docs.

From-SVN: r98735
2005-04-25 19:51:00 +00:00
Michael Koch
ee141b8822 [multiple changes]
2005-04-25  Archie Cobbs  <archie@dellroad.org>

	* java/lang/Throwable.java: simplify initializing cause in constructor

2005-04-25  Michael Koch  <konqueror@gmx.de>

	* gnu/classpath/SystemProperties.java: New file.
	* gnu/classpath/natSystemProperties.cc: New file.
	* java/lang/Runtime.java
	(defaultProperties): Removed.
	(static): Likewise.
	(): Made thrown exceptions more verbose.
	(insertSystemProperties): Removed.
	* java/lang/System.java
	(static): Likewise.
	(properties): Likewise.
	(setSecurityManager): Reordered modifiers.
	(getenv): Improved javadoc.
	(): Likewise.
	(isWordsBigEndian): Removed.
	* java/lang/natRuntime.cc
	(_Jv_SetDLLSearchPath): Likewise.
	(file_encoding): Likewise.
	(default_file_encoding): Likewise.
	(getpwuid_adaptor): Likewise.
	(insertSystemProperties): Likewise.
	* java/lang/natSystem.cc
	(isWordsBigEndian): Likewise.
	* Makefile.am
	(ordinary_java_source_files):
	Added gnu/classpath/SystemProperties.java.
	(nat_source_files): Added gnu/classpath/natSystemProperties.cc.
	* Makefile.in: Regenerated.

From-SVN: r98734
2005-04-25 19:48:35 +00:00
Roman Kennke
8efae6bbfa 2005-04-25 Roman Kennke <roman@kennke.org>
* javax/swing/plaf/basic/BasicScrollBarUI.java
	(initDefaults): Initialize thumb*Color fields correctly.

2005-04-25  Roman Kennke  <roman@kennke.org>

	* javax/swing/text/GapContent.java:
	Added API comments.

2005-04-25  Roman Kennke  <roman@kennke.org>

	* javax/swing/plaf/metal/MetalBorders.java:
	Added inner class ScrollPaneBorder.
	* javax/swing/plaf/metal/MetalLookAndFeel.java
	(initComponentDefaults): Added default for "ScrollPane.border"
	to use the new ScrollPaneBorder.

2005-04-25  Roman Kennke  <roman@kennke.org>

	* javax/swing/text/AbstractDocument.java:
	Added FIXME comments. This class still has to be
	implemented thread-safe.

2005-04-25  Roman Kennke  <roman@kennke.org>

	* javax/swing/tree/DefaultTreeSelectionModel.java
	(DefaultTreeSelectionModel): Initialize listenerList here.

2005-04-25  Roman Kennke  <roman@kennke.org>

	* javax/swing/plaf/metal/MetalTextFieldUI.java
	(createUI): Return one instance per Component instead of a
	shared instance.

2005-04-25  Roman Kennke  <roman@kennke.org>

	* javax/swing/text/Document.java:
	Added API documentation comments.

2005-04-25  Roman Kennke  <roman@kennke.org>

	* javax/swing/text/AbstractDocument.java
	(getDocumentProperties): Implemented.
	(setDocumentProperties): Implemented.
	(getProperty): Implemented.
	(putProperty): Implemented.

2005-04-25  Roman Kennke  <roman@kennke.org>

	* javax/swing/BoxLayout
	(preferredLayoutSize): Fixed computation so that it correctly
	adds the top and bottom insets of the container.

2005-04-25  Roman Kennke  <roman@kennke.org>

	* javax/swing/plaf/basic/BasicMenuItemUI.java
	(paintText): Make use of the 'selectionForeground' UI default
	for text painting.

2005-04-25  Roman Kennke  <roman@kennke.org>

	* javax/swing/plaf/basic/BasicLookAndFeel.java
	(initSystemColorDefaults): Modified colors to match the
	BasicLookAndFeel in the reference implementation.
	(initComponentDefaults): Likewise.

From-SVN: r98733
2005-04-25 19:36:43 +00:00
Paul Brook
9f62c3e3ed target-def.h (TARGET_CXX_USE_AEABI_ATEXIT): Define.
* target-def.h (TARGET_CXX_USE_AEABI_ATEXIT): Define.
	* target.h (struct gcc_target): Add cxx.use_aeabi_atexit.
	* config/arm/arm.c (arm_cxx_atexit_name): New function.
	(TARGET_CXX_USE_AEABI_ATEXIT): New macro.
	* cp/decl.c (get_atexit_node): Reorder arguments for __aeabi_atexit.
	(register_dtor_fn): Likewise.
	* doc/tm.texi: Document TARGET_CXX_USE_AEABI_ATEXIT.

From-SVN: r98732
2005-04-25 19:35:18 +00:00
Ian Lance Taylor
934790cc67 c-common.def (EXPR_STMT): Remove, moved to C++ frontend.
./	* c-common.def (EXPR_STMT): Remove, moved to C++ frontend.
	* c-common.h (EXPR_STMT_EXPR): Don't define.
	(c_common_stmt_codes): Don't define.
	* c-dump.c (c_dump_tree): Remove EXPR_STMT case.
	* c-gimplify.c (gimplify_expr_stmt): Remove.
	(c_gimplify_expr): Remove EXPR_STMT case.
	* c-objc-common.c (c_objc_common_init): Remove stmt_codes and call
	to INIT_STATEMENT_CODES.
	* c-pretty-print.c (pp_c_statement): Just call dump_generic_node.
cp/
	* cp-tree.def: Add EXPR_STMT.
	* cp-tree.h (cp_stmt_codes): Add EXPR_STMT.
	(EXPR_STMT_EXPR): Define.
	* cp-gimplify.c: Include "flags.h".
	(gimplify_expr_stmt): New static function.
	(cp_gimplify_expr): Handle EXPR_STMT.
	* cxx-pretty-print.c (pp_cxx_statement): Use pp_cxx_expression
	rather than pp_expression.
	(pp_cxx_statement): Handle EXPR_STMT.
	* dump.c (cp_dump_tree): Handle EXPR_STMT.
	* lex.c (cxx_init): Don't use c_common_stmt_codes in stmt_codes
	initializer.

From-SVN: r98731
2005-04-25 19:03:41 +00:00
Tom Tromey
eca5a6a939 jni.h (_Jv_va_list): Removed.
* include/jni.h (_Jv_va_list): Removed.
	Moved configuration code...
	* include/jni_md.h: ... here.  New file.
	* include/Makefile.in: Rebuilt.
	* include/Makefile.am (tool_include__HEADERS): Added jni_md.h.

From-SVN: r98730
2005-04-25 18:44:10 +00:00
Andrew Pinski
3321369fce re PR testsuite/21062 (Incorrect declaration of printf() in alias2.C)
2005-04-25  Andrew Pinski  <pinskia@physics.uc.edu>

        PR testsuite/21062
        * g++.dg/opt/alias2.C (printf): Correct the prototype.

From-SVN: r98728
2005-04-25 11:28:55 -07:00
Andrew Pinski
0453e74da8 re PR c++/21188 (CbcModel.cpp:3571: internal compiler error: in compare_values, at tree-vrp.c:292)
2005-04-25  Andrew Pinski  <pinskia@physics.uc.edu>

        PR C++/21188
        * g++.dg/opt/rtti2.C: New test.
2005-04-25  Andrew Pinski  <pinskia@physics.uc.edu>

        PR C++/21188
        * rtti.c (ifnonnull): Cast the zero comparison operand
        to the correct type.

From-SVN: r98726
2005-04-25 11:08:35 -07:00
Jan Hubicka
cc7220fd0e tree-cfg.c (tree_duplicate_bb): Duplicate EH region too.
* tree-cfg.c (tree_duplicate_bb): Duplicate EH region too.

	* except.c: Include diagnostic.h
	(dump_eh_tree, verify_eh_tree): New functions.
	* except.h (verify_eh_tree, dump_eh_tree, verify_eh_edges): Declare.
	* tree-cfg.c (tree_verify_flow_info): verify eh edges.
	(dump_function_to_file): dump eh tree.
	* tree-eh.c (mark_eh_edge): New function.
	(mark_eh_edge_found_error): New static variable.
	(verify_eh_edges): New function.

From-SVN: r98724
2005-04-25 17:24:28 +00:00
Nathan Sidwell
2845f02a6f tree-ssa-alias.c (fieldoff_t): Remove.
* tree-ssa-alias.c (fieldoff_t): Remove.
	(fieldoff_s): typedef the structure itself.  Create a vector of
	objects.
	(push_fields_onto_fieldstack): Return count of fields pushed.
	Remove peeling of first field.  Adjust.
	(fieldoff_compare): Adjust.
	(create_overlap_variables_for): Adjust.

From-SVN: r98723
2005-04-25 17:12:49 +00:00
Joseph Myers
9821b2576f * doc/invoke.texi (Blackfin Options): Avoid empty @opindex line.
From-SVN: r98717
2005-04-25 15:42:29 +01:00
Joseph Myers
8f47c0847d re PR bootstrap/21215 (gcc build fails on Solaris 10, opteron)
PR bootstrap/21215
	* doc/install.texi: Document correct assembler and linker to use
	on i?86-*-solaris2.10.

From-SVN: r98715
2005-04-25 15:30:21 +01:00
Daniel Berlin
1d6a90c16a Testcase for pr 21173
From-SVN: r98714
2005-04-25 14:18:30 +00:00
Steven Bosscher
81c4f554f3 re PR tree-optimization/21173 (miscompiled pointer subtraction broke Linux kernel)
2005-04-25  Steven Bosscher  <stevenb@suse.de>

	Fix PR tree-optimization/21173

	* tree-ssa-pre.c (create_expression_by_pieces): Simplify code.
	Unshare expression we pass to force_gimple_operand.

From-SVN: r98712
2005-04-25 13:59:36 +00:00
J"orn Rennecke
4c33cb26d4 re PR rtl-optimization/20413 (VOIDmode LABEL_REFs are generated)
2005-04-25  J"orn Rennecke <joern.rennecke@st.com>
	    Stephen Clarke <stevec@superh.com>
	    Roger Sayle <roger@eyesopen.com>

	PR rtl-optimization/20413
	* cfgrtl.c (redirect_edge_and_branch): Use Pmode instead of
	VOIDmode for LABEL_REF.
	* final.c (shorten_branches): Likewise.
	* jump.c (mark_all_labels, redirect_exp_1): Likewise.
	* loop.c (reg_dead_after_loop): Likewise.
	* varasm.c (decode_addr_const): Likewise.
	* doc/rtl.texi: Document mode requirement for LABEL_REF.

Co-Authored-By: Roger Sayle <roger@eyesopen.com>
Co-Authored-By: Stephen Clarke <stevec@superh.com>

From-SVN: r98711
2005-04-25 13:46:12 +01:00
Paolo Carlini
a26b6b94b9 re PR libstdc++/21035 (Documentation for std::basic_string::compare() incorrect)
2005-04-25  Paolo Carlini  <pcarlini@suse.de>

	PR libstdc++/21035
	* include/bits/basic_string.h (compare): Adjust the documentation
	to match the implementation and the standard.

From-SVN: r98708
2005-04-25 10:59:21 +00:00
Ralf Corsepius
9469878ca1 config.gcc (avr-*-*): Remove redundant "case".
2005-04-25  Ralf Corsepius  <ralf.corsepius@rtems.org>

	* config.gcc (avr-*-*): Remove redundant "case".

From-SVN: r98699
2005-04-25 06:40:02 +02:00
Kazu Hirata
51d008916a tree-vect-analyze.c (vect_mark_relevant): Take VEC(tree,heap) instead of varray_type as an argument.
* tree-vect-analyze.c (vect_mark_relevant): Take
	VEC(tree,heap) instead of varray_type as an argument.
	(vect_mark_stmts_to_be_vectorized): Change the type of
	worklist to VEC(tree,heap).  Adjust uses of worklist.

From-SVN: r98695
2005-04-25 02:33:12 +00:00
Devang Patel
eb1093d372 * config/rs6000/darwin.h (ASM_OUTPUT_MAX_SKIP_ALIGN): New.
From-SVN: r98694
2005-04-24 19:10:41 -07:00
Ian Lance Taylor
bbcfd969e6 c-semantics.c (build_stmt): Remove test of specific tree codes for TREE_SIDE_EFFECTS handling.
* c-semantics.c (build_stmt): Remove test of specific tree codes
	for TREE_SIDE_EFFECTS handling.

From-SVN: r98693
2005-04-25 01:18:23 +00:00
GCC Administrator
9545759748 Daily bump.
[[Split portion of a mixed commit.]]

From-SVN: r98691.2
2005-04-25 00:16:36 +00:00
Paul Brook
860c8f3ba9 re PR fortran/20879 (argument to ICHAR must have length one)
2005-04-25  Paul Brook  <paul@codesourcery.com>
	Steven G. Kargl  <kargls@comcast.net>

	PR fortran/20879
	* check.c (gfc_check_ichar_iachar): New function.
	* instinsic.h (gfc_check_ichar_iachar): Add prototype.
	* intrinsic.c (add_functions): Use it.
	* primary.c (match_varspec, gfc_match_rvalue): Clear incorrect
	character expression lengths.

testsuite/
	* gfortran.dg/ichar_1.f90: New file.

Co-Authored-By: Steven G. Kargl <kargls@comcast.net>

From-SVN: r98686
2005-04-25 00:09:11 +00:00
Per Bothner
1fb2fbeb21 c-opts.c (finish_options): Make the line-number of the <built-in> location 0...
* c-opts.c (finish_options):  Make the line-number of the <built-in>
	location 0, as assumed elsewhere, rather than 1.

From-SVN: r98685
2005-04-24 16:27:37 -07:00
Kazu Hirata
9c789af264 tree-ssa-uncprop.c (equiv_stack): Change the type o VEC(tree,heap).
* tree-ssa-uncprop.c (equiv_stack): Change the type o
	VEC(tree,heap).
	(tree_ssa_uncprop, uncprop_finalize_block,
	uncprop_initialize_block): Update uses of equiv_stack.

From-SVN: r98684
2005-04-24 23:23:33 +00:00
Paolo Carlini
e180079e84 lwg-active.html, [...]: Import Revision 35.
2005-04-24  Paolo Carlini  <pcarlini@suse.de>

	* docs/html/ext/lwg-active.html, lwg-defects.html: Import Revision 35.

From-SVN: r98681
2005-04-24 22:37:07 +00:00
Jakub Jelinek
58a690ae24 Make-lang.in (java/decl.o, [...]): Depend on $(EXPR_H) instead of just expr.h.
* Make-lang.in (java/decl.o, java/resource.o): Depend on $(EXPR_H)
	instead of just expr.h.

From-SVN: r98679
2005-04-25 00:16:49 +02:00
Richard Henderson
3f2960d5a5 re PR rtl-optimization/21163 (internal compiler error: in output_constant_pool_2, at varasm.c:3135)
PR rtl-opt/21163
        * simplify-rtx.c (simplify_binary_operation) <IOR>: Check
        for SCALAR_INT_MODE_P instead of not MODE_CC before returning
        constm1_rtx.
        <AND, LSHIFTRT, UMIN>: Use CONST0_RTX.
        <UDIV, UMOD>: Use CONST0_RTX and CONST1_RTX.
        <DIV, MOD>: Likewise.

From-SVN: r98678
2005-04-24 15:16:48 -07:00
Kaveh R. Ghazi
98a3dad411 collect2.c (main): Unlock the stdio streams.
* collect2.c (main): Unlock the stdio streams.
	* gcc.c (main): Likewise.
	* gcov-dump.c (main): Likewise.
	* gcov.c (main): Likewise.
	* gen-protos.c (main): Likewise.
	* gensupport.c (init_md_reader_args_cb): Likewise.
	* protoize.c (main): Likewise.
	* toplev.c (general_init): Likewise.

java:
	* gjavah.c (main): Unlock the stdio streams.
	* jcf-dump.c (main): Likewise.
	* jv-scan.c (main): Likewise.
	* jvgenmain.c (main): Likewise.

From-SVN: r98676
2005-04-24 22:11:55 +00:00
Jakub Jelinek
8634c649cb re PR middle-end/20991 (ICE in cgraph_mark_reachable_node)
PR middle-end/20991
	* cgraph.h (cgraph_local_info): Add vtable_method field.
	* varasm.c (mark_decl_referenced): If cgraph_global_info_ready
	and node is vtable_method, finalized and not reachable, don't do
	anything.

	* class.c: Include cgraph.h.
	(cp_fold_obj_type_ref): Set node->local.vtable_method.
	* Make-lang.in (cgraph.o): Depend on $(CGRAPH_H).

	* g++.dg/opt/pr20991.C: New test.

From-SVN: r98674
2005-04-25 00:06:37 +02:00
Jakub Jelinek
49fc196e8e struct-layout-1_generate.c: In arrays avoid types where sizeof (type) < __alignof__ (type).
* gcc.dg/compat/struct-layout-1_generate.c: In arrays avoid types
	where sizeof (type) < __alignof__ (type).
	* gcc.dg/compat/struct-layout-1.h: Likewise.

From-SVN: r98673
2005-04-25 00:01:53 +02:00
Per Bothner
5919150114 re PR preprocessor/20907 (long comments throw off line numbers)
PR preprocessor/20907
	* gcc.dg/cpp/very-long-comment.c: New test.

Co-Authored-By: Devang Patel <dpatel@apple.com>

From-SVN: r98669
2005-04-24 13:05:25 -07:00
Kazu Hirata
09a3016e27 tree-ssa-live.c (build_tree_conflict_graph): Change the type of tpa_to_clear to VEC(int,heap).
* tree-ssa-live.c (build_tree_conflict_graph): Change the type
	of tpa_to_clear to VEC(int,heap).  Update uses of
	tpa_to_clear.  Free tpa_to_clear at the end.

From-SVN: r98668
2005-04-24 19:51:35 +00:00
Markus F.X.J. Oberhumer
4484e9b6a8 mangle.c (write_builtin_type): Handle integer types which are not one of the shared integer type nodes and...
* mangle.c (write_builtin_type): Handle integer types which are
	not one of the shared integer type nodes and emit a "vendor
	extended builtin type" with an encoding in the form of "u5int96".

From-SVN: r98665
2005-04-24 17:35:34 +00:00
Kazu Hirata
7da4bf7dd7 tree-ssa-copy.c (copy_prop_visit_cond_stmt): Use COMPARISON_CLASS_P.
* tree-ssa-copy.c (copy_prop_visit_cond_stmt): Use
	COMPARISON_CLASS_P.
	* tree-ssa-pre.c (create_value_expr_from): Use
	CONSTANT_CLASS_P and REFERENCE_CLASS_P.
	* tree-ssa-propagate.c (stmt_makes_single_load,
	stmt_makes_single_store): Use REFERENCE_CLASS_P.
	* tree-vect-transform.c (vect_is_simple_cond): Use
	COMPARISON_CLASS_P.
	* tree-vrp.c (extract_range_from_assert,
	build_assert_expr_for, fp_predicate, has_assert_expr): Use
	COMPARISON_CLASS_P.

From-SVN: r98664
2005-04-24 14:15:13 +00:00
Andrew Pinski
d29f81b69c tree.h (TREE_THIS_VOLATILE): Document the effect on a function decl.
2005-04-24  Andrew Pinski  <pinskia@physics.uc.edu>

        * tree.h (TREE_THIS_VOLATILE): Document the effect on a
        function decl.

From-SVN: r98663
2005-04-24 07:05:06 -07:00
Tobias Schlüter
eb83e81102 re PR fortran/20059 (internal compiler error: Segmentation Fault - For common blocks)
fortran/
	PR fortran/20059
	* trans-common.c (translate_common): Cast offset and
	common_segment->offset to type int for warning message.
testsuite/
	PR fortran/20059
	* gfortran.dg/common_5.f: New test.

From-SVN: r98660
2005-04-24 15:51:39 +02:00
Ian Lance Taylor
93cfbc5c7c cp-tree.def (USING_STMT): Change class to tcc_statement.
* cp-tree.def (USING_STMT): Change class to tcc_statement.
	(TRY_BLOCK, EH_SPEC_BLOCK, HANDLER, CLEANUP_STMT): Likewise.
	(IF_STMT, FOR_STMT, WHILE_STMT, DO_STMT): Likewise.
	(BREAK_STMT, CONTINUE_STMT, SWITCH_STMT): Likewise.

From-SVN: r98659
2005-04-24 13:38:19 +00:00
Nathan Sidwell
374097963c rs6000.c (rs6000_override_options): Use gcc_assert and gcc_unreachable as appropriate.
* config/rs6000/rs6000.c (rs6000_override_options): Use gcc_assert
	and gcc_unreachable as appropriate.
	(num_insns_constant, output_vec_const_move,
	build_mask64_2_operands, rs6000_output_dwarf_dtprel,
	rs6000_emit_set_const, rs6000_emit_move,
	spe_build_register_parallel, function_arg,
	rs6000_move_block_from_reg, altivec_expand_predicate_builtin,
	spe_expand_predicate_builtin, spe_expand_evsel_builtin,
	rs6000_expand_builtin, spe_init_builtins, altivec_init_builtins,
	rs6000_common_init_builtins, expand_block_clear,
	expand_block_move, validate_condition_mode, ccr_bit, extract_MB,
	extract_ME, rs6000_get_some_local_dynamic_name,
	rs6000_output_function_entry, print_operand,
	print_operand_address, rs6000_generate_compare, rs6000_emit_sCOND,
	output_cbranch, output_e500_flip_gt_bit,
	rs6000_emit_vector_compare, rs6000_emit_vector_compare,
	rs6000_emit_cmove, rs6000_emit_minmax, rs6000_split_multireg_move,
	compute_save_world_info, rs6000_stack_info,
	rs6000_emit_load_toc_table, rs6000_frame_related,
	spe_synthesize_frame_save, rs6000_emit_epilogue,
	rs6000_output_function_epilogue, rs6000_hash_constant, output_toc,
	output_function_profiler, rs6000_trampoline_size,
	rs6000_initialize_trampoline, find_addr_reg,
	rs6000_machopic_legitimize_pic_address,
	rs6000_initial_elimination_offset,
	rs6000_dbx_register_number): Likewise.
	* config/rs6000/rs6000.md (*fix_truncdfsi2_internal,
	*movdf_hardfloat32, *movdf_softfloat32, *fix_trunctfsi2_internal,
	*movti_power, *movti_string, call, call_value, sibcall,
	sibcall_value): Likewise.
	* config/rs6000/spe.md (*movdf_e500_double,
	*movv2si_internal): Likewise.
	* config/rs6000/rs6000.h (PREFERRED_RELOAD_CLASS): Remove 'abort'
	from comment.

From-SVN: r98658
2005-04-24 12:53:36 +00:00
Joseph Myers
ea8261fbb1 * de.po: Update.
From-SVN: r98654
2005-04-24 11:35:30 +01:00
Richard Henderson
1272914c20 re PR target/21101 (ICE: could not find a spill register on MMX intrinsics)
PR target/21101
        * config/i386/i386.h (CANNOT_CHANGE_MODE_CLASS): Move guts to ...
        * config/i386/i386.c (ix86_cannot_change_mode_class): ... here.
        Deny modes smaller than 4 bytes.
        * config/i386/i386-protos.h: Update.

From-SVN: r98650
2005-04-24 00:59:22 -07:00
Ralf Corsepius
d076e5d27d Fix typo in previous changelog entry.
From-SVN: r98649
2005-04-24 09:39:32 +02:00
Ralf Corsepius
4c5bf19821 config.gcc (h8300-*-rtems*): Add h8300-rtemscoff.
2005-04-24  Ralf Corsepius  <ralf.corsepius@rtems.org>

	* config.gcc (h8300-*-rtems*): Add h8300-rtemscoff.
	Switch h8300-*-rtems* to ELF.

From-SVN: r98644
2005-04-24 08:41:51 +02:00
Kazu Hirata
809c1bd7fa * vec.h (VEC_safe_grow): Replace grow with safe_grow.
From-SVN: r98643
2005-04-24 01:40:53 +00:00
GCC Administrator
7d217b237f Daily bump.
[[Split portion of a mixed commit.]]

From-SVN: r98640.2
2005-04-24 00:16:23 +00:00
Kazu Hirata
a80769d7ef * ipa-inline.c, tree-ssa-operands.h: Fix comment typos.
From-SVN: r98637
2005-04-23 23:01:11 +00:00
Richard Guenther
75cf42ccff re PR middle-end/21082 (&a[b] - &a[c] is not folded to b - c)
2005-04-23  Richard Guenther  <rguenth@gcc.gnu.org>

	PR middle-end/21082
	* fold-const.c: Fold &a[i]-&a[j] to i-j.

	* g++.dg/tree-ssa/pr21082.C: New testcase.

From-SVN: r98636
2005-04-23 21:34:40 +00:00
Zdenek Dvorak
be1b5cba35 tree-ssa-loop-niter.c (tree_simplify_using_condition): Expand simple definitions of ssa names in condition.
* tree-ssa-loop-niter.c (tree_simplify_using_condition): Expand simple
	definitions of ssa names in condition.  Split recusive part to ...
	(tree_simplify_using_condition_1): New function.
	(expand_simple_operations): New function.

	* gcc.dg/vect/vect-99.c: New test.

From-SVN: r98635
2005-04-23 21:33:15 +00:00
Zdenek Dvorak
f5f129618b tree-ssa-loop-ivopts.c (struct cost_pair): Add value field.
* tree-ssa-loop-ivopts.c (struct cost_pair): Add value field.
	(find_interesting_uses_cond): Do not use integer_zerop and
	integer_nonzerop to check for integer constants.
	(set_use_iv_cost): Record the value field.
	(determine_use_iv_cost_generic, determine_use_iv_cost_address,
	determine_use_iv_cost_outer): Set the value field of the cost pair.
	(may_eliminate_iv): Do not return the comparison code.
	(iv_elimination_compare): New function.
	(determine_use_iv_cost_condition): Set the value field.  Record
	noneliminable invariants correctly.
	(rewrite_use_compare, rewrite_use_outer): Use the value field.

From-SVN: r98634
2005-04-23 21:31:16 +00:00