Commit Graph

75483 Commits

Author SHA1 Message Date
Paul Thomas
a4a11197f9 re PR fortran/25049 (TRANSPOSE not allowed in initialisation expression)
2006-06-20  Paul Thomas  <pault@gcc.gnu.org>

	PR fortran/25049
	PR fortran/25050
	* check.c (non_init_transformational): New function.
	(find_substring_ref): New function to signal use of disallowed
	transformational intrinsic in an initialization expression.
	(gfc_check_all_any): Call previous if initialization expr.
	(gfc_check_count): The same.
	(gfc_check_cshift): The same.
	(gfc_check_dot_product): The same.
	(gfc_check_eoshift): The same.
	(gfc_check_minloc_maxloc): The same.
	(gfc_check_minval_maxval): The same.
	(gfc_check_gfc_check_product_sum): The same.
	(gfc_check_pack): The same.
	(gfc_check_spread): The same.
	(gfc_check_transpose): The same.
	(gfc_check_unpack): The same.

	PR fortran/18769
	*intrinsic.c (add_functions): Add gfc_simplify_transfer.
	*intrinsic.h : Add prototype for gfc_simplify_transfer.
	*simplify.c (gfc_simplify_transfer) : New function to act as
	placeholder for eventual implementation.  Emit error for now.

	PR fortran/16206
	* expr.c (find_array_element): Eliminate condition on length of
	offset. Add bounds checking. Rearrange exit. Return try and
	put gfc_constructor result as an argument.
	(find_array_section): New function.
	(find_substring_ref): New function.
	(simplify_const_ref): Add calls to previous.
	(simplify_parameter_variable): Return on NULL expr.
	(gfc_simplify_expr): Only call gfc_expand_constructor for full
	arrays.

	PR fortran/20876
	* match.c (gfc_match_forall): Add missing locus to gfc_code.

2006-06-20  Paul Thomas  <pault@gcc.gnu.org>

	PR libfortran/28005
	* m4/matmul.m4: aystride = 1 does not uniquely detect the
	presence of a temporary transpose; an array element in the
	first dimension produces the same signature.  Detect this
	using the rank of a and add specific code.
	* generated/matmul_r4.c: Regenerate.
	* generated/matmul_r8.c: Regenerate.
	* generated/matmul_r10.c: Regenerate.
	* generated/matmul_r16.c: Regenerate.
	* generated/matmul_c4.c: Regenerate.
	* generated/matmul_c8.c: Regenerate.
	* generated/matmul_c10.c: Regenerate.
	* generated/matmul_c16.c: Regenerate.
	* generated/matmul_i4.c: Regenerate.
	* generated/matmul_i8.c: Regenerate.
	* generated/matmul_i16.c: Regenerate.

2006-06-20  Paul Thomas  <pault@gcc.gnu.org>

	PR fortran/16206
	* gfortran.dg/array_initializer_1.f90: New test.

	PR fortran/28005
	* gfortran.dg/matmul_3.f90: New test.

From-SVN: r114802
2006-06-20 04:30:48 +00:00
Andrew Pinski
73dab33bce re PR middle-end/28075 (inliner introduces unnecessary type conversions)
2006-06-19  Andrew Pinski  <pinskia@gmail.com>

        PR middle-end/28075
        * tree-inline.c (setup_one_parameter): Strip useless
        type conversion before adding it to the IR.
        (declare_return_variable): Likewise.


2006-06-19  Andrew Pinski  <pinskia@gmail.com>

        PR middle-end/28075
        * gcc.dg/tree-ssa/inline-1.c: New test.

From-SVN: r114801
2006-06-19 19:09:57 -07:00
Martin Michlmayr
48e2909e4a re PR c/27149 (English in warning not grammatical: "the address of x, will always evaluate")
PR c/27149
	* c-common.c (c_common_truthvalue_conversion): Fix grammar in warning.

From-SVN: r114800
2006-06-20 00:22:21 +00:00
GCC Administrator
94ae878498 Daily bump.
From-SVN: r114798
2006-06-20 00:17:09 +00:00
Anatoly Sokolov
b153b2bf30 [should have been in previous commit]
2006-06-19  Anatoly Sokolov <aesok@post.ru>

	* gcc.dg/pr18241-1.c: Use __SIZE_TYPE__ instead of unsigned long
	in malloc prototype; remove XFAIL.
	* gcc.dg/pr18241-2.c: Ditto.
	* gcc.dg/20050321-1.c: Use __SIZE_TYPE__ instead of unsigned long
	in memset prototype; remove XFAIL.
	* gcc.dg/tree-ssa/pr23382.c: Ditto.

From-SVN: r114790
2006-06-19 21:53:04 +00:00
Anatoly Sokolov
c9ea34f22e pr18241-1.c: Use __SIZE_TYPE__ instead of unsigned long in malloc prototype; remove XFAIL.
2006-06-19  Anatoly Sokolov <aesok@post.ru>

	* gcc.dg/pr18241-1.c: Use __SIZE_TYPE__ instead of unsigned long
	in malloc prototype; remove XFAIL.
	* gcc.dg/pr18241-2.c: Ditto.
	* gcc.dg/20050321-1.c: Use __SIZE_TYPE__ instead of unsigned long
	in memset prototype; remove XFAIL.
	* gcc.dg/tree-ssa/pr23382.c: Ditto.

From-SVN: r114789
2006-06-19 21:51:24 +00:00
Mark Mitchell
a1d0899101 * pt.c (instantiate_template): Fix typo in comment.
From-SVN: r114788
2006-06-19 21:40:05 +00:00
Mike Stump
ca84a9a2e3 tree.c (variably_modified_type_p): VM arguments don't make the type a VM type.
* tree.c (variably_modified_type_p): VM arguments don't make the
	type a VM type.

testsuite:
	* gcc.dg/vla-8.c: Add.

From-SVN: r114787
2006-06-19 21:13:13 +00:00
Richard Guenther
73617bce35 re PR tree-optimization/27090 (FRE does not look past previous type casts)
2006-06-19  Richard Guenther  <rguenther@suse.de>

	PR tree-optimization/27090
	* g++.dg/tree-ssa/pr27090.C: New testcase.

From-SVN: r114786
2006-06-19 20:10:02 +00:00
Richard Guenther
5ff5e6c824 parser.c (CP_LEXER_BUFFER_SIZE): Adjust to assure near power-of-two token vector size.
2006-06-19  Richard Guenther  <rguenther@suse.de>

        * parser.c (CP_LEXER_BUFFER_SIZE): Adjust to assure near
        power-of-two token vector size.

From-SVN: r114785
2006-06-19 20:08:28 +00:00
Richard Guenther
8112612670 tree-ssa-pre.c (try_combine_conversion): Strip useless type conversions after folding.
2006-06-19  Richard Guenther  <rguenther@suse.de>

	* tree-ssa-pre.c (try_combine_conversion): Strip useless
	type conversions after folding.

From-SVN: r114784
2006-06-19 19:48:04 +00:00
Richard Guenther
f5938dcd39 ggc-page.c (extra_order_size_tab): Add entries with size of struct function and basic_block.
2006-06-19  Richard Guenther  <rguenther@suse.de>

	* ggc-page.c (extra_order_size_tab): Add entries with
	size of struct function and basic_block.
	(size_lookup): Extend to cover sizes up to 511.
	(ggc_alloc_stat): Adjust user.
	(ggc_pch_count_object): Likewise.
	(ggc_pch_alloc_object): Likewise.
	(ggc_pch_write_object): Likewise.

From-SVN: r114783
2006-06-19 18:57:28 +00:00
Zdenek Dvorak
20fb52af93 tree-ssa-loop-niter.c (implies_ge_p): New function.
* tree-ssa-loop-niter.c (implies_ge_p): New function.
	(derive_constant_upper_bound): Handle OP0 - CST in unsigned types
	correctly.

From-SVN: r114782
2006-06-19 18:32:20 +00:00
Andrew Haley
dfa52cf9d1 re PR java/27908 (VMSecureRandom generateSeed infinite loop? (Regression))
2006-06-19  Andrew Haley  <aph@redhat.com>

        * testsuite/libjava.lang/PR27908.out: New.
        * testsuite/libjava.lang/PR27908.java: New.

From-SVN: r114779
2006-06-19 17:39:16 +00:00
Andrew Haley
fe4e7c6527 re PR java/1305 ([JSR133] GCJ ignores volatile modifier)
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
2006-06-19 17:38:08 +00:00
Paolo Carlini
3c618f8732 random (xor_combine<>::operator<<): Fix typo.
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
2006-06-19 16:03:07 +00:00
Denis Chertykov
7ed9c0015f libgcc.S: Correct my wrong previous commit.
* config/avr/libgcc.S : Correct my wrong previous commit.

From-SVN: r114774
2006-06-19 19:04:27 +04:00
Roger Sayle
fa00f91b0d re PR target/27861 (ICE in expand_expr_real_1, at expr.c:6916)
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
2006-06-19 14:57:17 +00:00
Richard Guenther
096dce1b1b re PR middle-end/28045 (Bitfield, &&, and optimization => bad code generation)
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
2006-06-19 14:48:47 +00:00
Daniel Berlin
46b86adcdc re PR tree-optimization/27341 (ICE in in add_virtual_operand with complex types)
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
2006-06-19 14:33:46 +00:00
Keith Seitz
4307d0dbf9 posix-threads.h (_Jv_ThreadDebugSuspend): Declare.
* 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
2006-06-19 14:10:02 +00:00
Andreas Krebbel
7e665d1808 s390.md ("doloop_si64", [...]): Add a new alternative to the constraint strings.
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
2006-06-19 08:01:56 +00:00
John David Anglin
9b7e4f4ff8 re PR libgomp/27254 (FAIL: libgomp.fortran/reduction6.f90)
PR libgomp/27254
	* io/unit.c (get_internal_unit): Initialize and lock thread mutex
	for internal units.

From-SVN: r114765
2006-06-19 03:07:54 +00:00
GCC Administrator
75354be7aa Daily bump.
From-SVN: r114763
2006-06-19 00:17:07 +00:00
Anatoly Sokolov
4301ec4f6f avr.h (avr_have_movw_lpmx_p): Declare.
* 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
2006-06-18 22:14:06 +04:00
Francois-Xavier Coudert
98efaf34b2 re PR fortran/26801 (-fbounds-check generates segfault)
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
2006-06-18 17:36:47 +00:00
Jie Zhang
a9c4699889 bfin.h (REG_CLASS_FROM_LETTER): Rename constraint 'B' to 'v', 'l' to 'u'.
* 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
2006-06-18 10:30:23 +00:00
Jie Zhang
40327e038e bfin.c (MAX_LOOP_LENGTH): Define to be 2042 instead of 4096.
* config/bfin/bfin.c (MAX_LOOP_LENGTH): Define to be 2042 instead
	of 4096.

From-SVN: r114755
2006-06-18 10:09:59 +00:00
Jerry DeLisle
d5b7950a7f Add PR reference to last ChangeLog entry.
From-SVN: r114754
2006-06-18 06:44:29 +00:00
Jerry DeLisle
604f802b44 re PR fortran/19310 ([4.1 Only] unnecessary error for overflowing results)
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
2006-06-18 06:42:26 +00:00
Jerry DeLisle
545548257d re PR fortran/19310 ([4.1 Only] unnecessary error for overflowing results)
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
2006-06-18 06:36:45 +00:00
GCC Administrator
37b4da102f Daily bump.
From-SVN: r114750
2006-06-18 00:17:21 +00:00
Karl Berry
c3cb54c634 cpp.texi, [...] (@dircategory): Use "Software development" instead of "Programming"...
* doc/cpp.texi, doc/cppinternals.texi, doc/gcc.texi,
	doc/gccint.texi, doc/install.texi (@dircategory): Use
	"Software development" instead of "Programming", following
	the Free Software Directory.

From-SVN: r114746
2006-06-17 23:25:16 +00:00
Karl Berry
7348b1fd66 gcj.texi (@dircategory): Use "Software development" instead of "Programming"...
* gcj.texi (@dircategory): Use "Software development" instead
	of "Programming", following the Free Software Directory.

From-SVN: r114745
2006-06-17 23:23:27 +00:00
Karl Berry
2cec61bdd2 gfortran.texi (@dircategory): Use "Software development" instead of "Programming"...
* gfortran.texi (@dircategory): Use "Software development"
	instead of "Programming", following the Free Software Directory.

From-SVN: r114744
2006-06-17 23:22:05 +00:00
Karl Berry
0b21df172f treelang.texi (@dircategory): Use "Software development" instead of "Programming"...
* treelang.texi (@dircategory): Use "Software development"
	instead of "Programming", following the Free Software Directory.

From-SVN: r114743
2006-06-17 23:21:37 +00:00
Karl Berry
5f516f5998 gnat-style.texi (@dircategory): Use "Software development" instead of "Programming"...
* gnat-style.texi (@dircategory): Use "Software development"
	instead of "Programming", following the Free Software Directory.

From-SVN: r114742
2006-06-17 23:20:52 +00:00
Alexandre Oliva
31ebc801bc i386.c (legitimate_tls_address): Add tp after DTPOFF.
* config/i386/i386.c (legitimate_tls_address)
<TARGET_GNU2_TLS>: Add tp after DTPOFF.
* config/i386/i386.md (*tls_dynamic_gnu2_combine_32): Adjust.
(*tls_dynamic_gnu2_combine_64): Likewise.

From-SVN: r114741
2006-06-17 17:07:42 +00:00
Ami Tavory
4dc3fbb0eb twister_rand_gen.cc: Adapt to simply use tr1::mt19937.
2006-06-17  Ami Tavory  <atavory@gmail.com>
	    Paolo Carlini  <pcarlini@suse.de>

	* testsuite/util/rng/twister_rand_gen.cc: Adapt to simply use
	tr1::mt19937.
	* testsuite/util/rng/twister_rand_gen.hpp: Likewise.

Co-Authored-By: Paolo Carlini <pcarlini@suse.de>

From-SVN: r114740
2006-06-17 10:06:41 +00:00
Mark Mitchell
da71e18cae re PR c++/28016 (emitting template constant)
PR c++/28016
	* decl.c (cp_finsh_decl): Do not emit uninstantiated static data
	members.
	PR c++/28016
	* g++.dg/template/static26.C: New test.

From-SVN: r114739
2006-06-17 01:11:34 +00:00
GCC Administrator
18defd42d7 Daily bump.
From-SVN: r114737
2006-06-17 00:17:19 +00:00
Mark Mitchell
80eb9ddd1c re PR c++/27979 (conversion check confused by enum bitfields)
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
2006-06-16 23:12:08 +00:00
Paolo Carlini
43765c8a70 hash_data_map_rand.cc: Revert accidental commit.
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
2006-06-16 23:09:38 +00:00
Paolo Carlini
0934c5effc random (uniform_real<>::uniform_real(_RealType, _RealType)): Implement.
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
2006-06-16 23:04:51 +00:00
Paolo Carlini
e4d154a179 2006-06-16 Paolo Carlini <pcarlini@suse.de>
* Fix ChangeLog typo.

From-SVN: r114729
2006-06-16 22:14:33 +00:00
Paolo Carlini
e11b210a9c locale_facets.tcc (time_get<>::_M_extract_via_format): Ignore the value of the __err argument.
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
2006-06-16 22:13:13 +00:00
Mark Mitchell
75a829785f re PR c++/27884 (bogus error: invalid use of 'register' in linkage specification)
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
2006-06-16 18:45:50 +00:00
Rainer Orth
04879af33d re PR target/27540 (libgomp fails to configure on IRIX 5.3)
PR target/27540
	* configure.in: Only enable libgomp on IRIX 6.
	* configure: Regenerate.

From-SVN: r114726
2006-06-16 17:53:03 +00:00
Francois-Xavier Coudert
ef31fe6257 re PR fortran/27965 (invalid "Array bound mismatch" runtime error)
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
2006-06-16 17:03:43 +00:00
Richard Guenther
1af8dcbf0b re PR middle-end/27116 (Incorrect integer division (wrong sign).)
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
2006-06-16 14:56:34 +00:00