Commit Graph

90523 Commits

Author SHA1 Message Date
Paolo Carlini
c8a5f8f292 re PR libstdc++/38067 (monetary_members.cc: 4 * call to wrong C++ delete)
2008-11-10  Paolo Carlini  <paolo.carlini@oracle.com>

	PR libstdc++/38067
	* config/locale/gnu/monetary_members.cc (moneypunct<>::
	_M_initialize_moneypunct(__c_locale, const char*)): Use correct vector
	delete for __wcs_ps and __wcs_ns.

From-SVN: r141740
2008-11-10 13:47:12 +00:00
Jakub Jelinek
5072c6bd2e re PR c++/38021 (C++ hang for new keywords)
PR c++/38021
	* parser.c (cp_parser_enum_specifier): After parsing :,
	parse definitely.  Don't return early if type specifier
	is erroneous.

	* g++.dg/cpp0x/enum1.C: New test.

From-SVN: r141739
2008-11-10 14:41:37 +01:00
Andrew Haley
94b5f4db22 2008-11-10 Andrew Haley <aph@redhat.com>
* native/jni/gtk-peer/gnu_java_awt_peer_gtk_CairoGraphics2D.c 
        (Java_gnu_java_awt_peer_gtk_CairoGraphics2D_cairoDrawGlyphVector): 
        Remove bogus gdk_threads_leave ();

From-SVN: r141738
2008-11-10 12:33:22 +00:00
Jakub Jelinek
93542a3108 Formatting fixes.
From-SVN: r141733
2008-11-10 10:19:05 +01:00
Ralph Loader
ff596cd202 re PR middle-end/37807 (Exponential compile time with MMX builtins.)
PR middle-end/37807
	PR middle-end/37809
	* combine.c (force_to_mode): Do not process vector types.

	* rtlanal.c (nonzero_bits1): Do not process vector types.
	(num_sign_bit_copies1): Likewise.

testsuite/ChangeLog

	PR middle-end/37807
	PR middle-end/37809
	* gcc/testsuite/gcc.target/i386/mmx-8.c: New test.

From-SVN: r141732
2008-11-10 10:08:15 +01:00
GCC Administrator
75223c1753 Daily bump.
From-SVN: r141727
2008-11-10 00:16:49 +00:00
Thomas Schwinge
2a761e46e8 config.host: Also enable for GNU/kFreeBSD and GNU/kNetBSD.
2008-11-09  Thomas Schwinge  <tschwinge@gnu.org>

	* config.host <t-tls>: Also enable for GNU/kFreeBSD and GNU/kNetBSD.

From-SVN: r141722
2008-11-09 23:57:46 +01:00
Thomas Schwinge
40b2ba118f gnu.h: Add copyright and licensing header.
2008-11-09  Thomas Schwinge  <tschwinge@gnu.org>

	* config/i386/gnu.h: Add copyright and licensing header.
	* config/gnu.h: Likewise.

From-SVN: r141721
2008-11-09 23:09:02 +01:00
Paul Thomas
5a0193eeed re PR fortran/37836 (ICE in gfc_trans_auto_array_allocation)
2008-11-09  Paul Thomas  <pault@gcc.gnu.org>

        PR fortran/37836
        * intrinsic.c (add_functions): Reference gfc_simplify._minval
	and gfc_simplify_maxval.
	* intrinsic.h : Add prototypes for gfc_simplify._minval and
	gfc_simplify_maxval.
	* simplify.c (min_max_choose): New function extracted from
	simplify_min_max.
	(simplify_min_max): Call it.
	(simplify_minval_maxval, gfc_simplify_minval,
	gfc_simplify_maxval): New functions.

2008-11-09  Paul Thomas  <pault@gcc.gnu.org>

        PR fortran/37836
        * gfortran.dg/minmaxval_1.f90: New test.

From-SVN: r141717
2008-11-09 17:40:30 +00:00
Eric Botcazou
82d3b03a3b ada-tree.def (PLUS_NOMOD_EXPR): New tree code.
* gcc-interface/ada-tree.def (PLUS_NOMOD_EXPR): New tree code.
	(MINUS_NOMOD_EXPR): Likewise.
	* gcc-interface/utils2.c (build_binary_op) <PREINCREMENT_EXPR>: Make
	unreachable.
	<PLUS_NOMOD_EXPR>: New case.
	<MINUS_NOMOD_EXPR>: Likewise.
	* gcc-interface/trans.c (Loop_Statement_to_gnu): Build increment-and-
	assignment statement instead of using an increment operator.

From-SVN: r141714
2008-11-09 09:50:02 +00:00
GCC Administrator
52013b9baa Daily bump.
From-SVN: r141711
2008-11-09 00:16:56 +00:00
GCC Administrator
f444b57c96 Daily bump.
From-SVN: r141700
2008-11-08 00:16:48 +00:00
Andrew Pinski
6724bb92f2 fwprop.c (fwprop_done): Call df_remove_problem.
2008-11-07  Andrew Pinski  <andrew_pinski@playstation.sony.com>

        * fwprop.c (fwprop_done): Call df_remove_problem.

From-SVN: r141686
2008-11-07 13:16:54 -08:00
Joseph Myers
e97789eced * id.po: Update.
From-SVN: r141684
2008-11-07 20:28:57 +00:00
Sebastian Pop
0dfb0dc632 re PR middle-end/37379 ([graphite] ICE compiling aermod.f90 with -ffast-math -floop-block -O2 -fgraphite)
2008-11-07  Sebastian Pop  <sebastian.pop@amd.com>

	PR middle-end/37379
	* tree-scalar-evolution.c (instantiate_scev_1): Return
	chrec_dont_know for VL_EXP_CLASS_P.

From-SVN: r141682
2008-11-07 18:03:04 +00:00
Rainer Orth
f50264425f re PR ada/37681 (Building 64-bit libada fails on Solaris/x86: alignment error)
* system-irix-n64.ads: New file.
	* gcc-interface/Makefile.in (mips-sgi-irix6*): Support O32 and N64
	multilibs.

	PR ada/37681
	* system-solaris-x86_64.ads: New file.
	* gcc-interface/Makefile.in (*86-solaris2*): Support x86_64 multilib.

From-SVN: r141681
2008-11-07 16:25:03 +00:00
Paolo Carlini
ded0557605 2008-11-07 Paolo Carlini <paolo.carlini@oracle.com>
* Tweak ChangeLog.

From-SVN: r141678
2008-11-07 15:47:11 +00:00
Paolo Carlini
b5b3f66baa 2008-11-07 Paolo Carlini <paolo.carlini@oracle.com>
* Complete last commit.

From-SVN: r141677
2008-11-07 15:44:35 +00:00
Paolo Carlini
8d200e06a4 2008-11-07 Paolo Carlini <paolo.carlini@oracle.com>
* Complete last commit.

From-SVN: r141676
2008-11-07 15:44:20 +00:00
Paolo Carlini
9f4a439439 2008-11-07 Paolo Carlini <paolo.carlini@oracle.com>
* Complete last commit.

From-SVN: r141675
2008-11-07 15:43:57 +00:00
Bob Walters
b74318f12b pointer.h: Add experimental support for non-standard pointer types in containers via the...
2008-11-07  Bob Walters  <bob.s.walters@gmail.com>

	* include/ext/pointer.h: Add experimental support for non-standard
	pointer types in containers via the allocator::pointer typedef.
	(Currently only supported/working with std::vector)
	* include/ext/cast.h: Add overload-able pointer casting functions
	for use in containers supporting non-standard pointer types.
	* include/ext/extptr_allocator.h: Add _ExtPtr_allocator.
	* include/Makefile.am: Update.
	* include/precompiled/extc++.h: Likewise.
	* include/Makefile.in: Regenerate.
	* testsuite/ext/ext_pointer/1.cc: New.
	* testsuite/ext/ext_pointer/1_neg.cc: Likewise.	
	* testsuite/23_containers/vector/ext_pointer/citerators.cc: New.
	* testsuite/23_containers/vector/ext_pointer/data_access.cc: Likewise.
	* testsuite/23_containers/vector/ext_pointer/resize.cc: Likewise.
	* testsuite/23_containers/vector/ext_pointer/types/1.cc: Likewise.
	* testsuite/23_containers/vector/ext_pointer/modifiers/element.cc:
	Likewise.
	* testsuite/23_containers/vector/ext_pointer/modifiers/erase.cc:
	Likewise.
	* testsuite/23_containers/vector/ext_pointer/modifiers/insert.cc:
	Likewise.
	* testsuite/23_containers/vector/ext_pointer/explicit_instantiation/
	1.cc: Likewise.
	* testsuite/23_containers/vector/ext_pointer/explicit_instantiation/
	3.cc: Likewise.

From-SVN: r141674
2008-11-07 15:26:25 +00:00
Bechir Zalila
7fee6a39eb re PR ada/34289 (gnatmake -s doesn't work)
PR ada/34289
	* lib.ads: (Enable_Switch_Storing): Declare.
	* lib.adb: (Enable_Switch_Storing): New procedure.
	* switch-c.adb (Scan_Front_End_Switches): Add support for -gnatea.
	* make.adb: (Compile_Sources.Compile): Add -gnatea as first option.
	(Display): Never display -gnatea
	* gcc-interface/lang-specs.h: If -gnatea is present, pass -gnatez.

Co-Authored-By: Eric Botcazou <ebotcazou@adacore.com>

From-SVN: r141673
2008-11-07 10:46:18 +00:00
Eric Botcazou
3453cb7809 Fix typo.
From-SVN: r141671
2008-11-07 10:21:38 +00:00
Thomas Quinot
9ed0e4832c trans.c (Attribute_to_gnu, [...]): Check for empty range in original base type, not converted result type.
* gcc-interface/trans.c (Attribute_to_gnu, case Attr_Length): Check
	for empty range in original base type, not converted result type.

From-SVN: r141670
2008-11-07 10:17:40 +00:00
Eric Botcazou
f0f91b6438 Update comment.
From-SVN: r141669
2008-11-07 10:03:21 +00:00
Geert Bosch
58e9444340 trans.c (build_binary_op_trapv): Convert arguments and result for call to __gnat_mulv64.
* gcc-interface/trans.c (build_binary_op_trapv): Convert arguments
	and result for call to __gnat_mulv64.

From-SVN: r141668
2008-11-07 09:56:33 +00:00
Eric Botcazou
a7c43bbc03 * gcc-interface/trans.c: Fix formatting nits.
From-SVN: r141667
2008-11-07 09:44:12 +00:00
Geert Bosch
2575024c21 trans.c (build_binary_op_trapv): Avoid emitting overflow check for constant result.
* gcc-interface/trans.c (build_binary_op_trapv): Avoid emitting
	overflow check for constant result.

From-SVN: r141666
2008-11-07 09:39:38 +00:00
Geert Bosch
4ae393838b trans.c (build_binary_op_trapv): Use more efficient overflow check for addition/subtraction if...
* gcc-interface/trans.c (build_binary_op_trapv): Use more efficient
	overflow check for addition/subtraction if neither operand is constant.

From-SVN: r141665
2008-11-07 09:32:43 +00:00
Kaveh R. Ghazi
218da97236 iinline-1.C: Remove -c flag, add -fpie for PIC targets.
* g++.dg/ipa/iinline-1.C: Remove -c flag, add -fpie for PIC
	targets.

From-SVN: r141664
2008-11-07 09:00:14 +00:00
Kaveh R. Ghazi
3442b495bd inline-2.c (foo): Add 'inline' keyword.
* gcc.dg/tree-ssa/inline-2.c (foo): Add 'inline' keyword.

From-SVN: r141663
2008-11-07 08:58:55 +00:00
Sebastian Pop
5a237951ca pr37943.c: Fix missing end of file.
2008-11-06  Sebastian Pop  <sebastian.pop@amd.com>

	* gcc.dg/graphite/pr37943.c: Fix missing end of file.

From-SVN: r141662
2008-11-07 05:57:07 +00:00
GCC Administrator
2e6b4dbb51 Daily bump.
From-SVN: r141660
2008-11-07 00:16:52 +00:00
Joseph Myers
ad914b4ea8 utf-array-short-wchar.c, [...]: Use __CHAR16_TYPE__ and __CHAR32_TYPE__ typedefs.
* gcc.dg/utf-array-short-wchar.c, gcc.dg/utf-cvt.c,
	gcc.dg/utf-inc-init.c, gcc.dg/utf16-1.c, gcc.dg/utf16-2.c,
	gcc.dg/utf16-3.c, gcc.dg/utf16-4.c, gcc.dg/utf32-1.c,
	gcc.dg/utf32-2.c, gcc.dg/utf32-3.c, gcc.dg/utf32-4.c: Use
	__CHAR16_TYPE__ and __CHAR32_TYPE__ typedefs.

From-SVN: r141656
2008-11-06 22:16:38 +00:00
Uros Bizjak
0a83b1b01d reg-stack.c (reg_to_stack): Add missing braces in memset size calculation.
* reg-stack.c (reg_to_stack): Add missing braces in memset
	size calculation.

From-SVN: r141654
2008-11-06 19:01:18 +01:00
Jeff Law
d69fbecbc6 Add myself as middle end maintainer
From-SVN: r141652
2008-11-06 10:18:51 -07:00
Jeff Law
7fb71a9ef5 Add myself as middle-end maintainer
From-SVN: r141651
2008-11-06 10:17:47 -07:00
Andrew Stubbs
d53767cc2e bpabi.h (PROFILE_HOOK): New undef.
2008-11-06  Andrew Stubbs  <ams@codesourcery.com>

	* config/arm/bpabi.h (PROFILE_HOOK): New undef.
	(NO_PROFILE_COUNTERS): New define.

From-SVN: r141649
2008-11-06 15:56:53 +00:00
Andrew Stubbs
044fed6999 MAINTAINERS (Write after approval): Add myself.
* MAINTAINERS (Write after approval): Add myself.

From-SVN: r141648
2008-11-06 15:53:28 +00:00
David Edelsohn
ce75e1dd3c re PR target/26397 (Program crashes when rethrowing exception)
PR target/26397
        * config/rs6000/aix.h (LIBSTDCXX_STATIC): Define.

	cp/
        * g++spec.c (LIBSTDCXX_STATIC): New.
        (lang_spec_driver): Use LIBSTDCXX_STATIC when not shared_libgcc.

From-SVN: r141646
2008-11-06 10:32:40 -05:00
Kazu Hirata
66e62b4943 re PR target/35574 (unrecognizable insn generated for vector move)
PR target/35574
	* config/sparc/constraints.md (D): New.
	* config/sparc/predicates.md (const_double_or_vector_operand):
	New.
	* config/sparc/sparc.c (sparc_extra_constraint_check): Handle the
	'D' constraint.
	* config/sparc/sparc.md (*movdf_insn_sp32_v9, *movdf_insn_sp64):
	Use the 'D' constraint in addition to 'F' in some alternatives.
	(DF splitter): Generalize for V64mode.
	* doc/md.texi (SPARC): Document the 'D' constraint.

From-SVN: r141644
2008-11-06 14:59:09 +00:00
Richard Guenther
1ddb9ec910 pr37969.c: New testcase.
2008-11-06  Richard Guenther  <rguenther@suse.de>

        * gcc.dg/c-torture/pr37969.c: New testcase.

From-SVN: r141642
2008-11-06 14:20:04 +00:00
Eric Botcazou
6818f0fc84 Makefile.in (SPARC/Solaris): Use a common set of files for the target-dependent part of the runtime.
* gcc-interface/Makefile.in (SPARC/Solaris): Use a common set of
	files for the target-dependent part of the runtime.
	(SPARC/Linux): Likewise.

From-SVN: r141641
2008-11-06 12:03:39 +00:00
Uros Bizjak
11f48903b0 reg-stack.c (reg_to_stack): Generate +QNaN using real_nan.
* reg-stack.c (reg_to_stack): Generate +QNaN using real_nan.

From-SVN: r141640
2008-11-06 13:01:23 +01:00
Eric Botcazou
8d3323ded5 decl.c (gnat_to_gnu_entity): If not optimizing...
* gcc-interface/decl.c (gnat_to_gnu_entity) <E_Out_Parameter>: If not
	optimizing, create a PARM_DECL pointing to the VAR_DECL for debugging
	purposes.

From-SVN: r141639
2008-11-06 11:51:11 +00:00
Eric Botcazou
baf6e6a838 misc.c (gnat_printable_name): Always return a copy in GC memory.
* gcc-interface/misc.c (gnat_printable_name): Always return a copy
	in GC memory.

From-SVN: r141638
2008-11-06 11:42:52 +00:00
Eric Botcazou
8b659f794a re PR ada/19419 (Overlapping memcpy with array slices)
PR ada/19419
	* gcc-interface/trans.c (gnat_to_gnu) <N_Assignment_Statement>:
	Generate a call to memmove for an assignment between overlapping
	array slices.

From-SVN: r141637
2008-11-06 11:28:07 +00:00
Ben Elliston
8a554c70d5 * gcc.c: Remove ancient comment about a bug in Sun cc.
From-SVN: r141636
2008-11-06 14:07:51 +11:00
GCC Administrator
1f396061df Daily bump.
From-SVN: r141633
2008-11-06 00:16:38 +00:00
Janis Johnson
52ebab2b48 sourcebuild.texi (Torture Tests): Add ADDITIONAL_TORTURE_OPTIONS.
gcc/
	* doc/sourcebuild.texi (Torture Tests): Add ADDITIONAL_TORTURE_OPTIONS.
gcc/testsuite/
	* lib/c-torture.exp: Use ADDITIONAL_TORTURE_OPTIONS if defined.
	* lib/gcc-dg.exp: Ditto.
	* lib/fortran-torture.exp: Ditto.
	* lib/objc-torture.exp: Ditto.

From-SVN: r141630
2008-11-06 00:05:09 +00:00