1. 02 May, 2005 2 commits
    • re PR c++/19542 (attribute(sentinel) has problems with C++ __null) · b2f97e4a
              PR c++/19542
              * c-common.c (c_common_nodes_and_builtins): Create global null_node.
              (warn_strict_null_sentinel): Define.
              (check_function_sentinel): Check for null_node as valid sentinel too.
              * c-common.h (c_tree_index): Added CTI_NULL.
              (null_node) Define global_tree[CTI_NULL].
              (warn_strict_null_sentinel): Declare.
              * c-opts.c: (c_common_handle_option): Handle -Wstrict-null-sentinel.
              * c.opt: (Wstrict-null-sentinel): New C++ option.
              * doc/invoke.texi (C++ Options): Document -Wstrict-null-sentinel.
      
              * cp-tree.h (cp_tree_index): Remove CPTI_NULL, to be defined in C
              common frontend.
              (null_node): Remove.
              * lex.c (cxx_init): Move null_node initialisation to C common frontend.
      
              * g++.dg/warn/sentinel.C: New testcase for __null sentinels added.
      
      From-SVN: r99091
      Michael Matz committed
    • Daily bump. · f8f9fb45
      [[Split portion of a mixed commit.]]
      
      From-SVN: r99089.2
      GCC Administrator committed
  2. 01 May, 2005 14 commits
    • dwarf2out.c (decl_scope_table, [...]): Use VEC instead of VARRAY. · 0fdc587b
      	* dwarf2out.c (decl_scope_table, push_decl_scope,
      	pop_decl_scope, scope_die_for, dwarf2out_init): Use VEC
      	instead of VARRAY.
      
      From-SVN: r99086
      Kazu Hirata committed
    • * global.c (calculate_reg_pav): Use VEC instead of VARRAY. · 26caf960
      From-SVN: r99085
      Kazu Hirata committed
    • gimplify.c (gimplify_compound_lval): Use VEC instead of VARRAY. · ec234842
      	* gimplify.c (gimplify_compound_lval): Use VEC instead of
      	VARRAY.
      
      From-SVN: r99083
      Kazu Hirata committed
    • re PR c++/14391 (-fno-weak vs. __GXX_WEAK__) · 05d475bf
      2005-05-01  Mark Mitchell  <mark@codesourcery.com>
      
              PR C++/14391
              * c-cppbuiltin.c (c_cpp_builtins): Do not define __GXX_WEAK__ to 1
              if !flag_weak.
              * doc/cpp.texi (__DEPRECATED): Document.
              (__EXCEPTIONS): Likewise.
              (__GXX_WEAK__): Likewise.
      
      From-SVN: r99082
      Andrew Pinski committed
    • c-cppbuiltin.c (c_cpp_builtins): Do not define __GXX_WEAK__ to 1 if !flag_weak. · aee7846e
      	* c-cppbuiltin.c (c_cpp_builtins): Do not define __GXX_WEAK__ to 1
      	if !flag_weak.
      	* doc/cpp.texi (__DEPRECATED): Document.
      	(__EXCEPTIONS): Likewise.
      	(__GXX_WEAK__): Likewise.
      
      	* g++.dg/cpp/weak.C: New test.
      
      From-SVN: r99080
      Mark Mitchell committed
    • function.c (INVOKE__main): Do not define. · 3a57c6cb
      	* function.c (INVOKE__main): Do not define.
      	(expand_main_function): Check HAS_INIT_SECTION when determining
      	whether or not to call __main.
      
      From-SVN: r99076
      Mark Mitchell committed
    • os_defines.h: Remove obsolete __off_t, __off64_t, __ssize_t defines. · df1de1a3
      2005-05-01  Paolo Carlini  <pcarlini@suse.de>
      
      	* config/os/aix/os_defines.h: Remove obsolete __off_t,
      	__off64_t, __ssize_t defines.
      	* config/os/djgpp/os_defines.h: Likewise.
      	* config/os/hpux/os_defines.h: Likewise.
      	* config/os/irix/irix5.2/os_defines.h: Likewise.
      	* config/os/irix/irix6.5/os_defines.h: Likewise.
      	* config/os/solaris/solaris2.5/os_defines.h: Likewise.
      	* config/os/solaris/solaris2.6/os_defines.h: Likewise.
      	* config/os/solaris/solaris2.7/os_defines.h: Likewise.
      	* docs/html/17_intro/porting.html: Don't discuss the defines.
      	* docs/html/17_intro/porting.texi: Likewise.
      
      From-SVN: r99072
      Paolo Carlini committed
    • * tree-ssa-loop-ivopts.c: Fix a comment typo. · 1e1def1c
      From-SVN: r99071
      Kazu Hirata committed
    • arm.h (ARM_EMIT_TRAMPOLINE_CACHE_CLEAR): Define. · 2a86f515
      2005-01-05  Paul Brook  <paul@codesourcery.com>
      
      	* config/arm/arm.h (ARM_EMIT_TRAMPOLINE_CACHE_CLEAR): Define.
      	(INITIALIZE_TRAMPOLINE): Use it.
      	* config/arm/linux-gas.h (INITIALIZE_TRAMPOLINE): Remove.
      	* config/arm/netbsd.h (INITIALIZE_TRAMPOLINE): Remove.
      	* config/arm/netbsd-elf.h (INITIALIZE_TRAMPOLINE): Remove.
      
      From-SVN: r99068
      Paul Brook committed
    • install.texi (Specific): Omit dots in the @anchors names for i?86-*-sco3.2v5*... · d8fcd085
      	* doc/install.texi (Specific): Omit dots in the @anchors names
      	for i?86-*-sco3.2v5*, i?86-*-solaris2.10, and sparc-sun-solaris2.7.
      	Omit underscores for x86_64-*-* and the "all ELF targets" entry.
      
      From-SVN: r99067
      Gerald Pfeifer committed
    • * zh_CN.po: New file. · a192121a
      From-SVN: r99064
      Joseph Myers committed
    • re PR tree-optimization/18316 (Missed IV optimization) · 9be872b7
      	PR tree-optimization/18316
      	PR tree-optimization/19126
      	* tree.c (build_int_cst_type): Avoid shift by size of type.
      	* tree-scalar-evolution.c (simple_iv): Add allow_nonconstant_step
      	argument.
      	* tree-scalar-evolution.h (simple_iv): Declaration changed.
      	* tree-ssa-loop-ivopts.c (struct iv_cand): Add depends_on
      	field.
      	(dump_cand): Dump depends_on information.
      	(determine_biv_step): Add argument to simple_iv call.
      	(contains_abnormal_ssa_name_p): Handle case expr == NULL.
      	(find_bivs, find_givs_in_stmt_scev): Do not require step to be a
      	constant.
      	(add_candidate_1): Record depends_on for candidates.
      	(tree_int_cst_sign_bit, constant_multiple_of): New functions.
      	(get_computation_at, get_computation_cost_at, may_eliminate_iv):
      	Handle ivs with nonconstant step.
      	(iv_ca_set_remove_invariants, iv_ca_set_add_invariants): New functions.
      	(iv_ca_set_no_cp, iv_ca_set_cp): Handle cand->depends_on.
      	(create_new_iv): Unshare the step before passing it to create_iv.
      	(free_loop_data): Free cand->depends_on.
      	(build_addr_strip_iref): New function.
      	(find_interesting_uses_address): Use build_addr_strip_iref.
      	(strip_offset_1): Split the recursive part from strip_offset.
      	Strip constant offset component_refs and array_refs.
      	(strip_offset): Split the recursive part to strip_offset_1.
      	(add_address_candidates): Removed.
      	(add_derived_ivs_candidates): Do not use add_address_candidates.
      	(add_iv_value_candidates): Add candidates with stripped constant
      	offset.  Consider all candidates with initial value 0 important.
      	(struct affine_tree_combination): New.
      	(aff_combination_const, aff_combination_elt, aff_combination_scale,
      	aff_combination_add_elt, aff_combination_add,
      	tree_to_aff_combination, add_elt_to_tree, aff_combination_to_tree,
      	fold_affine_sum): New functions.
      	(get_computation_at): Use fold_affine_sum.
      	* tree-ssa-loop-manip.c (create_iv): Handle ivs with nonconstant step.
      	* tree-ssa-loop-niter.c (number_of_iterations_exit): Add argument
      	to simple_iv call.
      
      	* gcc.dg/tree-ssa/loop-8.c: New test.
      
      From-SVN: r99059
      Zdenek Dvorak committed
    • i386.md (movmemsi): Also active when TARGET_INLINE_ALL_STRINGOPS. · 600f3598
              * config/i386/i386.md (movmemsi): Also active when
              TARGET_INLINE_ALL_STRINGOPS.
              * gcc.dg/inline-mcpy.c: New test.
      
      From-SVN: r99054
      Michael Matz committed
    • Daily bump. · af650ada
      [[Split portion of a mixed commit.]]
      
      From-SVN: r99052.2
      GCC Administrator committed
  3. 30 Apr, 2005 10 commits
  4. 29 Apr, 2005 14 commits
    • 2005-04-29 Michael Koch <konqueror@gmx.de> · bf5d810f
      	* java/net/NetworkInterface.java
      	(static): Removed.
      	(NetworkInterface(String,InetAddress)): Made package-private.
      	(NetworkInterface(String,InetAddress[])): New constructor.
      	(getRealNetworkInterfaces): Removed.
      	(getByName): Use VMNetworkInterface.getInterfaces().
      	(getByInetAddress): Likewise.
      	(getNetworkInterfaces): Likewise.
      	* java/net/VMNetworkInterface.java,
      	java/net/natVMNetworkInterfaceNoNet.cc,
      	java/net/natVMNetworkInterfacePosix.c,c
      	java/net/natVMNetworkInterfaceWin32.cc: New files.
      	* java/net/natNetworkInterfaceNoNet.cc,
      	java/net/natNetworkInterfacePosix.cc,
      	 java/net/natNetworkInterfaceWin32.cc: Removed.
      	* configure.ac
      	* Makefile.am
      	* configure, Makefile.in: Regenerated.
      
      From-SVN: r99021
      Michael Koch committed
    • gengtype.c (write_func_for_structure): Split out ... · 2d82317d
              * gengtype.c (write_func_for_structure): Split out ...
              (output_type_enum): ... new function.  Fix thinko accessing
              TYPE_PARAM_STRUCT data.
      
      Co-Authored-By: Daniel Jacobowitz <dan@codesourcery.com>
      
      From-SVN: r99020
      Richard Henderson committed
    • tree.c (build_block): Removed unused 'tags' argument. · 22e8617b
      gcc:
      	* tree.c (build_block): Removed unused 'tags' argument.
      	* tree.h (build_block): Removed argument.
      gcc/java:
      	* expr.c (build_jni_stub): Updated for change to build_block.
      gcc/treelang:
      	* treetree.c (poplevel): Updated for change to build_block.
      gcc/fortran:
      	* f95-lang.c (poplevel): Updated for change to build_block.
      
      From-SVN: r99019
      Tom Tromey committed
    • expr.c (force_evaluation_order): Declare 'saved' earlier. · 5e4b794a
      2005-04-29  Andrew Pinski  <pinskia@gcc.gnu.org>
      
      	* expr.c (force_evaluation_order): Declare 'saved' earlier.
      
      From-SVN: r99018
      Andrew Pinski committed
    • Class.h (_Jv_ResolvePoolEntry): Declare as friend. · cfbb2638
      2005-04-29  Andrew Haley  <aph@redhat.com>
      
      	* java/lang/Class.h (_Jv_ResolvePoolEntry): Declare as friend.
      
      From-SVN: r99016
      Andrew Haley committed
    • re PR tree-optimization/21272 (SSA_NAME def follows use with -ftree-vectorize) · 13ea650c
      2005-04-29  Devang Patel  <dpatel@apple.com>
      
              PR tree-optimization/21272
              PR tree-optimization/21266
              * tree-if-conv.c (find_phi_replacement_condition): Fix think-o.
      
      From-SVN: r99013
      Andrew Pinski committed
    • re PR libstdc++/21238 (conflicting "typedef __numpunct_cache<_CharT> … · a70c902e
      re PR libstdc++/21238 (conflicting "typedef __numpunct_cache<_CharT>    __cache_type;" in std::numpunct<CharT> makes specialization impossible)
      
      2005-04-29  Paolo Carlini  <pcarlini@suse.de>
      
      	PR libstdc++/21238
      	* include/bits/locale_facets.tcc (num_get::_M_extract_float,
      	num_get::_M_extract_int, num_get::do_get(bool&),
      	num_put::_M_insert_int, num_put::_M_insert_float,
      	num_put::do_put(bool), money_get::_M_extract,
      	money_put::_M_insert): Adjust the __cache_type typedef not to
      	forward to a numpunct/moneypunct typedef.
      	* testsuite/testsuite_character.h: Add pod_uint and its numpunct
      	and moneypunct specializations.
      	* testsuite/testsuite_character.cc: Add numpunct<pod_uint>::id
      	and moneypunct<pod_uint>::id.
      	* testsuite/22_locale/num_get/3.cc: New.
      	* testsuite/22_locale/num_put/3.cc: Likewise.
      	* testsuite/22_locale/money_get/3.cc: Likewise.
      	* testsuite/22_locale/money_put/3.cc: Likewise.
      
      	* include/bits/locale_facets.tcc (money_put::_M_insert,
      	time_get::_M_extract_name): Prefer operator== to operator!=
      	on char_types.
      
      From-SVN: r99012
      Paolo Carlini committed
    • 2005-04-29 Dalibor Topic <robilad@kaffe.org> · b61ae8b2
      	* java/nio/channels/FileChannelImpl.java
      	(FileChannelImpl(String, int)): Removed.
      	(FileChannelImpl(File, int)): Added. Check if opened file is a
      	directory.
      	* java/io/FileInputStream.java(FileInputStream): Fixed javadocs.
      	Call FileChannelImpl(File, int).
      	* java/io/FileOutputStream.java (FileInputStream): Call
      	FileChannelImpl(File, int).
      	* java/io/RandomAccessFile.java (RandomAccessFile):
      	Call FileChannelImpl(File, int). Switched constructors around.
      
      From-SVN: r99011
      Dalibor Topic committed
    • re PR java/19285 (Interfaces not initialized by static field access) · 2c80f015
      2005-04-28  Andrew Haley  <aph@redhat.com>
      
              PR java/19285
              * java-tree.h (soft_resolvepoolentry_node): New.
              (alloc_constant_fieldref): Declare.
              * expr.c (expand_java_field_op): Don't call class_init for
              accesses to static fields with indirect dispatch.
              * builtins.c (initialize_builtins): Add "__builtin_expect".
              * decl.c (soft_resolvepoolentry_node): New variable.
              (java_init_decl_processing): Create a decl for
              "_Jv_ResolvePoolEntry".
              * class.c (build_fieldref_cache_entry): New function.
              (build_static_field_ref): Rewrite for indirect dispatch.
              * constants.c (find_name_and_type_constant_tree): New function.
              (alloc_constant_fieldref): Likewise.
              (build_constants_constructor): Handle CONSTANT_Fieldref and
              CONSTANT_NameAndType.
      
              PR java/21115
              * expr.c (force_evaluation_order): Convert outgoing args smaller
              than integer.
      
      From-SVN: r99010
      Andrew Haley committed
    • re PR rtl-optimization/21144 (Apparent infinite loop in reload) · a68b179c
              PR rtl-optimization/21144
              * postreload.c (reload_cse_move2add): Check for VOIDmode.
      
      From-SVN: r99008
      Michael Matz committed
    • re PR java/19285 (Interfaces not initialized by static field access) · f3dc41fe
      2005-04-27  Andrew Haley  <aph@redhat.com>
      
              PR java/19285
              * prims.cc (_Jv_ResolvePoolEntry): New function.
              * include/jvm.h (_Jv_Linker::find_field): New arg: found_class.
              * link.cc (_Jv_Linker::find_field): New arg: found_class.
              (resolve_pool_entry): Initialize the class in which a field is
              found.
              (link_symbol_table): Pass new arg to found_class.
      
      From-SVN: r99006
      Andrew Haley committed
    • xtensa.h (OPTIMIZATION_OPTIONS): Define to disable flag_reorder_blocks. · 528a7d22
      	* config/xtensa/xtensa.h (OPTIMIZATION_OPTIONS): Define to disable
      	flag_reorder_blocks.
      
      From-SVN: r99000
      Bob Wilson committed
    • re PR tree-optimization/21030 (ICE in set_value_range building 176.gcc with -O2) · d5448566
      gcc/
      	PR tree-optimization/21030
      	* tree-vrp.c (adjust_range_with_scev): Do not create invalid
      	ranges where VR->MAX is smaller than VR->MIN.
      
      testsuite/
      	PR tree-optimization/21030
      	* gcc.dg/tree-ssa/pr21030.c: New.
      
      From-SVN: r98999
      Kazu Hirata committed
    • re PR tree-optimization/21272 (SSA_NAME def follows use with -ftree-vectorize) · 7dcc58cd
              PR tree-optimization/21272
              * tree-if-conv.c (find_phi_replacement_condition): Fix think-o.
      
              * gcc.dg/vect/vect-ifcvt-10.c: New.
      
      From-SVN: r98998
      Devang Patel committed