1. 19 Jun, 2006 10 commits
    • re PR java/1305 ([JSR133] GCJ ignores volatile modifier) · fe4e7c65
      2006-06-19  Andrew Haley  <aph@redhat.com>
      
              PR java/1305
              PR java/27908
              * expr.c (java_modify_addr_for_volatile): New function.
              (expand_java_field_op): Handle volatile fields.
              * java-gimplify.c (java_gimplify_component_ref): Call
              java_modify_addr_for_volatile to give the field_ref the correct
              volatile type.
              (java_gimplify_modify_expr): Likewise.
              * java-tree.h (java_modify_addr_for_volatile): New decl.
      
      From-SVN: r114778
      Andrew Haley committed
    • random (xor_combine<>::operator<<): Fix typo. · 3c618f87
      2006-06-19  Paolo Carlini  <pcarlini@suse.de>
      
      	* include/tr1/random (xor_combine<>::operator<<): Fix typo.
      	
      	* include/tr1/random (bernoulli_distribution::min(),
      	bernoulli_distribution::max(), geometric_distribution<>::min(),
      	geometric_distribution<>::max()): Remove.
      
      	* include/tr1/random (geometric_distribution<>::operator()):
      	Simplify formula.
      
      	* include/tr1/random: Minor cosmetic changes.
      
      	* testsuite/tr1/5_numerical_facilities/random/discard_block/
      	operators/equal.cc: New.
      	* testsuite/tr1/5_numerical_facilities/random/discard_block/
      	operators/not_equal.cc: Likewise.
      	* testsuite/tr1/5_numerical_facilities/random/discard_block/
      	operators/serialize.cc: Likewise.
      	* testsuite/tr1/5_numerical_facilities/random/xor_combine/
      	operators/equal.cc: Likewise.
      	* testsuite/tr1/5_numerical_facilities/random/xor_combine/
      	operators/not_equal.cc: Likewise.
      	* testsuite/tr1/5_numerical_facilities/random/xor_combine/
      	operators/serialize.cc: Likewise.
      
      From-SVN: r114777
      Paolo Carlini committed
    • libgcc.S: Correct my wrong previous commit. · 7ed9c001
      	* config/avr/libgcc.S : Correct my wrong previous commit.
      
      From-SVN: r114774
      Denis Chertykov committed
    • re PR target/27861 (ICE in expand_expr_real_1, at expr.c:6916) · fa00f91b
      
      	PR target/27861
      	* expmed.c (expand_shift): On SHIFT_COUNT_TRUNCATED targets, we may
      	have stripped a SUBREG from the shift count, so we may need to
      	convert_to_mode back to the type's mode before calling make_tree.
      	Use new_amount instead of amount to avoid expanding a tree twice.
      
      	* gcc.dg/pr27861-1.c: New test case.
      
      From-SVN: r114773
      Roger Sayle committed
    • re PR middle-end/28045 (Bitfield, &&, and optimization => bad code generation) · 096dce1b
      2006-06-19  Richard Guenther  <rguenther@suse.de>
      
      	PR middle-end/28045
      	* fold-const.c (operand_equal_p): Check if the argument types
      	have the same precision before stripping NOPs.
      
      	* gcc.dg/torture/pr28045.c: New testcase.
      
      From-SVN: r114772
      Richard Guenther committed
    • re PR tree-optimization/27341 (ICE in in add_virtual_operand with complex types) · 46b86adc
      2006-06-19  Daniel Berlin  <dberlin@dberlin.org>
      
      	Fix PR tree-optimization/27341
      	* tree-cfg.c (gimplify_val): Call mark_new_vars_to_rename on the
      	statement we get.
      	* tree-complex.c (pass_lower_complex): Update SMT usage.
      
      From-SVN: r114771
      Daniel Berlin committed
    • posix-threads.h (_Jv_ThreadDebugSuspend): Declare. · 4307d0db
              * include/posix-threads.h (_Jv_ThreadDebugSuspend): Declare.
              (_Jv_ThreadDebugResume): Declare.
              (_Jv_ThreadDebugSuspendCount): Declare.
              * posix-threads.cc (_Jv_ThreadDebugSuspend): New function.
              (_Jv_ThreadDebugSuspendCount): New function.
              (_Jv_ThreadDebugResume): New function.
      
              * include/win32-threads.h (_Jv_ThreadDebugSuspend): Declare.
              (_Jv_ThreadDebugResume): Declare.
              (_Jv_ThreadDebugSuspendCount): Declare.
              * win32-threads.cc (_Jv_ThreadDebugSuspend): New function.
              (_Jv_ThreadDebugSuspendCount): New function.
              (_Jv_ThreadDebugResume): New function.
      
      From-SVN: r114769
      Keith Seitz committed
    • s390.md ("doloop_si64", [...]): Add a new alternative to the constraint strings. · 7e665d18
      2006-06-19  Andreas Krebbel  <krebbel1@de.ibm.com>
      
      	* config/s390/s390.md ("doloop_si64", "doloop_si31", "doloop_di"): 
      	Add a new alternative to the constraint strings. Add move of
      	operand 1 to 3 to the splitter definition.
      	("doloop_si_long"): Second contraint alternative removed.
      
      From-SVN: r114767
      Andreas Krebbel committed
    • re PR libgomp/27254 (FAIL: libgomp.fortran/reduction6.f90) · 9b7e4f4f
      	PR libgomp/27254
      	* io/unit.c (get_internal_unit): Initialize and lock thread mutex
      	for internal units.
      
      From-SVN: r114765
      John David Anglin committed
    • Daily bump. · 75354be7
      From-SVN: r114763
      GCC Administrator committed
  2. 18 Jun, 2006 8 commits
    • avr.h (avr_have_movw_lpmx_p): Declare. · 4301ec4f
      	* config/avr/avr.h (avr_have_movw_lpmx_p): Declare.
      	(TARGET_CPU_CPP_BUILTINS): Add __AVR_HAVE_MOVW__ and 
      	__AVR_HAVE_LPMX__.
      	(AVR_HAVE_MOVW) Define.
      	(ASSEMBLER_DIALECT): Use AVR_HAVE_MOVW.
      	(ASM_SPEC): Add avr25.
      	(LINK_SPEC): Add avr25.
      	* config/avr/avr.c (avr_have_movw_lpmx_p): Add.
      	(base_arch_s): Add new member 'have_movw_lpmx'.
      	(avr_arch_types): Init 'have_movw_lpmx'.
      	(avr_mcu_types): Add 'avr25'. Move attiny13, attiny2313, attiny24,
      	attiny44, attiny84, attiny25, attiny45, attiny85, attiny261,
      	attiny461, attiny861 and at86rf401 in 'avr25' arhitecture.
      	(avr_override_options): Init 'avr_have_movw_lpmx_p'.
      	(output_movhi, output_movsisf, ashlsi3_out, avr_rtx_costs): Use 
      	AVR_HAVE_MOVW.
      	(avr_file_start): Do not output '.arh' derective.
      	* config/avr/libgcc.S (mov_l): Use __AVR_HAVE_MOVW__.
      	(__do_copy_data): Use __AVR_HAVE_LPMX__.
      	* config/avr/avr.md (mcu_enhanced): Delete.
      	(mcu_have_movw): Define.
      	(negsi2, extendhisi2, zero_extendhisi2): Use 'mcu_have_movw'.
      	(call_insn, call_value_insn): Use 'call_insn' and __AVR_HAVE_MOVW__.
      	* config/avr/t-avr(MULTILIB_OPTIONS, MULTILIB_DIRNAMES): Add avr25.
      	(MULTILIB_MATCHES): Add attiny13, attiny2313, attiny24, attiny44,
      	attiny84, attiny25, attiny45, attiny85, attiny261, attiny461, 
      	attiny861 and at86rf401 devices.
      
      From-SVN: r114758
      Anatoly Sokolov committed
    • re PR fortran/26801 (-fbounds-check generates segfault) · 98efaf34
      	PR fortran/26801
      
      	* trans-intrinsic.c (gfc_conv_associated): Use pre and post blocks
      	of the scalarization expression.
      
      	* gfortran.dg/associated_4.f90: New test.
      
      From-SVN: r114757
      Francois-Xavier Coudert committed
    • bfin.h (REG_CLASS_FROM_LETTER): Rename constraint 'B' to 'v', 'l' to 'u'. · a9c46998
      	* config/bfin/bfin.h (REG_CLASS_FROM_LETTER): Rename constraint 'B'
      	to 'v', 'l' to 'u'.
      	* config/bfin/bfin.md: Change comment accordingly.
      	(define_insn loop_end): Replace 'h' with 'v'.
      	(lsetup_with_autoinit): Replace 'l' with 'u'. 
      	(lsetup_without_autoinit): Ditto.
      	* md.texi: Record this change.
      
      From-SVN: r114756
      Jie Zhang committed
    • bfin.c (MAX_LOOP_LENGTH): Define to be 2042 instead of 4096. · 40327e03
      	* config/bfin/bfin.c (MAX_LOOP_LENGTH): Define to be 2042 instead
      	of 4096.
      
      From-SVN: r114755
      Jie Zhang committed
    • Add PR reference to last ChangeLog entry. · d5b7950a
      From-SVN: r114754
      Jerry DeLisle committed
    • re PR fortran/19310 ([4.1 Only] unnecessary error for overflowing results) · 604f802b
      2006-06-18  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
      
      	PR fortran/19310
      	PR fortran/19904
      	* gfortran.dg/real_const_3.f90: New test.
      
      From-SVN: r114753
      Jerry DeLisle committed
    • re PR fortran/19310 ([4.1 Only] unnecessary error for overflowing results) · 54554825
      2006-06-18  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
      
      	PR fortran/19310
      	* arith.c (gfc_range_check): Return ARITH_OK if -fno-range-check. Add
      	return of ARITH_NAN, ARITH_UNDERFLOW, and ARITH_OVERFLOW.
      	(gfc_arith_divide): If -fno-range-check allow mpfr to divide by zero.
      	* gfortran.h (gfc_option_t): Add new flag.
      	* invoke.texi: Document new flag.
      	* lang.opt: Add option -frange-check.
      	* options.c (gfc_init_options): Initialize new flag.
      	(gfc_handle_options): Set flag if invoked.
      	* simplify.c (range_check): Add error messages for
      	overflow, underflow, and other errors.
      	* trans-const.c (gfc_conv_mpfr_to_tree): Build NaN and Inf from mpfr
      	result.
      
      From-SVN: r114752
      Jerry DeLisle committed
    • Daily bump. · 37b4da10
      From-SVN: r114750
      GCC Administrator committed
  3. 17 Jun, 2006 9 commits
  4. 16 Jun, 2006 13 commits
    • re PR c++/27979 (conversion check confused by enum bitfields) · 80eb9ddd
      	PR c++/27979
      	* call.c (standard_conversion): Strip cv-qualifiers from bitfield
      	types.
      	PR c++/27979
      	* g++.dg/expr/bitfield2.C: New test.
      
      From-SVN: r114733
      Mark Mitchell committed
    • hash_data_map_rand.cc: Revert accidental commit. · 43765c8a
      2006-06-16  Paolo Carlini  <pcarlini@suse.de>
      
      	* testsuite/ext/pb_ds/regression/hash_data_map_rand.cc: Revert
      	accidental commit.
      	* testsuite/ext/pb_ds/regression/hash_no_data_map_rand.cc: Same.
      	* testsuite/ext/pb_ds/regression/list_update_data_map_rand.cc: Same.
      	* testsuite/ext/pb_ds/regression/list_update_no_data_map_rand.cc: Same.
      	* testsuite/ext/pb_ds/regression/priority_queue_rand.cc: Same.
      	* testsuite/ext/pb_ds/regression/tree_data_map_rand.cc: Same.
      	* testsuite/ext/pb_ds/regression/tree_no_data_map_rand.cc: Same.
      	* testsuite/ext/pb_ds/regression/trie_data_map_rand.cc: Same.
      	* testsuite/ext/pb_ds/regression/trie_no_data_map_rand.cc: Same.
      
      From-SVN: r114732
      Paolo Carlini committed
    • random (uniform_real<>::uniform_real(_RealType, _RealType)): Implement. · 0934c5ef
      2006-06-16  Paolo Carlini  <pcarlini@suse.de>
      
      	* include/tr1/random (uniform_real<>::uniform_real(_RealType,
      	_RealType)): Implement.
      	(uniform_real<>::min()): Likewise.
      	(uniform_real<>::max()): Likewise.
      	(uniform_real<>::reset()): Likewise.
      
      	* include/tr1/random (class uniform_real<>): Minor cosmetic tweaks.
      
      From-SVN: r114730
      Paolo Carlini committed
    • 2006-06-16 Paolo Carlini <pcarlini@suse.de> · e4d154a1
      	* Fix ChangeLog typo.
      
      From-SVN: r114729
      Paolo Carlini committed
    • locale_facets.tcc (time_get<>::_M_extract_via_format): Ignore the value of the __err argument. · e11b210a
      2006-06-17  Paolo Carlini  <pcarlini@suse.de>
      
      	* include/bits/locale_facets.tcc (time_get<>::_M_extract_via_format):
      	Ignore the value of the __err argument.
      	(time_get<>::do_get_weekday): Likewise.
      	(time_get<>::do_get_monthname): Likewise.
      	* testsuite/22_locale/time_get/get_year/wchar_t/5.cc: New.
      	* testsuite/22_locale/time_get/get_year/char/5.cc: Likewise.
      	* testsuite/22_locale/time_get/get_monthname/wchar_t/5.cc: Likewise.
      	* testsuite/22_locale/time_get/get_monthname/char/5.cc: Likewise.
      	* testsuite/22_locale/time_get/get_weekday/wchar_t/5.cc: Likewise.
      	* testsuite/22_locale/time_get/get_weekday/char/5.cc: Likewise.
      	* testsuite/22_locale/time_get/get_date/wchar_t/5.cc: Likewise.
      	* testsuite/22_locale/time_get/get_date/char/5.cc: Likewise.
      	* testsuite/22_locale/time_get/get_time/wchar_t/5.cc: Likewise.
      	* testsuite/22_locale/time_get/get_time/char/5.cc: Likewise.
      
      From-SVN: r114728
      Paolo Carlini committed
    • re PR c++/27884 (bogus error: invalid use of 'register' in linkage specification) · 75a82978
      	PR c++/27884
      	* decl.c (have_extern_spec): Remove.
      	(start_decl): Do not check have_extern_spec.
      	(start_function): Likewise.
      	* cp-tree.h (have_extern_spec): Remove.
      	* parser.c (cp_parser_linkage_specification): Don't set
      	have_extern_spec.
      	(cp_parser_init_declarator): Likewise.
      	(cp_parser_parameter_declaration): Do not treat parameters as
      	within the scope of an unbraced linkage specification.
      	PR c++/27884
      	* g++.dg/parse/linkage2.C: New test
      
      From-SVN: r114727
      Mark Mitchell committed
    • re PR target/27540 (libgomp fails to configure on IRIX 5.3) · 04879af3
      	PR target/27540
      	* configure.in: Only enable libgomp on IRIX 6.
      	* configure: Regenerate.
      
      From-SVN: r114726
      Rainer Orth committed
    • re PR fortran/27965 (invalid "Array bound mismatch" runtime error) · ef31fe62
      	PR fortran/27965
      	* trans-array.c (gfc_conv_ss_startstride): Correct the runtime
      	conditions for bounds-checking. Check for nonzero stride.
      	Don't check the last dimension of assumed-size arrays. Fix the
      	dimension displayed in the error message.
      
      From-SVN: r114724
      Francois-Xavier Coudert committed
    • re PR middle-end/27116 (Incorrect integer division (wrong sign).) · 1af8dcbf
      2006-06-16  Richard Guenther  <rguenther@suse.de>
      
      	PR middle-end/27116
      	* fold-const.c (negate_expr_p): Do not introduce undefined
      	overflow in negating INTEGER_CSTs.
      	(fold_negate_expr): Rename from negate_expr.  Revert last
      	change for folding BIT_NOT_EXPR.  Change semantics to
      	return NULL_TREE for non-simplified negations.  Do not
      	strip type conversions and unify type handling.
      	(negate_expr): New function, wrap around fold_negate_expr
      	but ensure building a tree always.  Strip type conversions
      	here, fold to result type.
      	(fold_unary): Use fold_negate_expr for folding NEGATE_EXPR.
      
      	* gcc.dg/pr15785-1.c: Revert last change.
      	* gcc.dg/torture/pr27116-2.c: New testcase.
      
      From-SVN: r114723
      Richard Guenther committed
    • re PR middle-end/27802 (ICE with longjmp) · 2d0df1f9
      
      	PR middle-end/27802
      	* reg-stack.c (subst_stack_regs): Handle noreturn function calls
      	that (would) return their results in stack registers.
      
      	* gcc.dg/pr27802-1.c: New test case.
      
      From-SVN: r114721
      Roger Sayle committed
    • class.c (make_class_data): When using flag_indirect_classes, don't initialize… · e046c56e
      class.c (make_class_data): When using flag_indirect_classes, don't initialize the vtable of Class instances.
      
      2006-06-16  Andrew Haley  <aph@redhat.com>
      
              * class.c (make_class_data): When using flag_indirect_classes,
              don't initialize the vtable of Class instances.
      
      2006-06-16  Andrew Haley  <aph@redhat.com>
      
              * java/lang/natClassLoader.cc (_Jv_NewClassFromInitializer): Don't
              copy the whole Class instance from the initializer: instead, copy
              everything but the first word (the vtable pointer).
              Change prototype to (const char* class_initializer).
              (_Jv_RegisterNewClasses): Change prototype to (const char**).
              * java/lang/Class.h (_Jv_RegisterNewClasses): Change prototype to
              (const char**).
      
      From-SVN: r114714
      Andrew Haley committed
    • fold-const.c (fold_truthop): Only return new tree node if we canonicalized something. · 47392a21
      2006-06-16  Michael Matz  <matz@suse.de>
      	Richard Guenther  <rguenther@suse.de>
      
      	* fold-const.c (fold_truthop): Only return new tree node if
      	we canonicalized something.
      
      Co-Authored-By: Richard Guenther <rguenther@suse.de>
      
      From-SVN: r114713
      Michael Matz committed
    • function.h (enum function_frequency): Move declaration out of struct function. · 55dea919
      2006-06-16  Richard Guenther  <rguenther@suse.de>
      
      	* function.h (enum function_frequency): Move declaration
      	out of struct function.
      	(struct function): Move bool fields and the enum to the bitfield
      	section.  Reorder elements to avoid padding.  Remove unused
      	fields left over from the RTL inliner removal.
      	* function.c (free_after_compilation): Do not zero removed fields.
      	* Makefile.in (ipa-reference.o): Add $(FUNCTION_H) dependency.
      	(ipa-type-escape.o): Likewise.
      
      From-SVN: r114712
      Richard Guenther committed