Commit Graph

90484 Commits

Author SHA1 Message Date
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
Michael Meissner 35351a413b Fix PR 38025
From-SVN: r141628
2008-11-05 23:45:36 +00:00
Ben Elliston 25696a756e * config/rs6000/rs6000.c (rs6000_override_options): Comment fix.
From-SVN: r141626
2008-11-06 10:34:11 +11:00
Ben Elliston 13233302f5 rs6000.opt (mwarn-cell-microcode): Improve option description.
* config/rs6000/rs6000.opt (mwarn-cell-microcode): Improve option
	description.

From-SVN: r141625
2008-11-06 10:23:25 +11:00
Joseph Myers 55e9d9b53f * id.po: Update.
From-SVN: r141623
2008-11-05 21:40:02 +00:00
Diego Novillo caf6defec8 MAINTAINERS (Global Reviewers): Add myself.
* MAINTAINERS (Global Reviewers): Add myself.
	(Non-Algorithmic Maintainers): Remove myself.

From-SVN: r141622
2008-11-05 16:06:25 -05:00
Hans-Peter Nilsson 576b6537c8 re PR target/38016 (-fno-ivopts exposes CRIS port bug, more with -fno-gcse)
PR target/38016
	* gcc.c-torture/execute/ieee/pr38016.c,
	gcc.c-torture/execute/ieee/pr38016.c: New test.

From-SVN: r141615
2008-11-05 18:06:45 +00:00
Hans-Peter Nilsson 5e41dd6f29 re PR target/38016 (-fno-ivopts exposes CRIS port bug, more with -fno-gcse)
PR target/38016
	* config/cris/cris.c (cris_order_for_addsi3): Test for !REG_P, not
	just MEM_P.

From-SVN: r141614
2008-11-05 18:04:36 +00:00
Martin Jambor 5e9abf2ce4 re PR middle-end/37861 (Bogus array bounds warning)
2008-11-05  Martin Jambor  <mjambor@suse.cz>

	PR middle-end/37861
	* tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Don't turn
	pointer arithmetics into array_ref if the array is accessed
	through an indirect_ref.
	* testsuite/gcc.dg/Warray-bounds-5.c: New file.
	* testsuite/gcc.dg/Warray-bounds-6.c: New file.

From-SVN: r141613
2008-11-05 17:06:38 +01:00
Fabien Chêne 8df7b2b60e re PR c++/32519 (g++ allows access to protected template member functions of base class)
PR c++/35219
        * cp-tree.h: Fix DECL_NONSTATIC_MEMBER_P to handle member template
        functions.

From-SVN: r141612
2008-11-05 10:48:01 -05:00
Paolo Carlini f0bf39b4d0 2008-11-05 Paolo Carlini <paolo.carlini@oracle.com>
* Complete last commit.

From-SVN: r141611
2008-11-05 15:36:06 +00:00
Andrew Haley 57d891b40a FreetypeGlyphVector.java (getKerning): Return result in a float[], not a Point2D.
2008-11-05  Andrew Haley  <aph@redhat.com>

        * gnu/java/awt/peer/gtk/FreetypeGlyphVector.java (getKerning):
        Return result in a float[], not a Point2D.
        (performDefaultLayout): Call getKerning with a float[].
        * native/jni/gtk-peer/gnu_java_awt_peer_gtk_FreetypeGlyphVector.c
        (getKerning): Return result in a float[], not a Point2D.

From-SVN: r141610
2008-11-05 14:19:06 +00:00
Andrew Haley f158188388 Makefile.am (UPDATE_TOOLS_ZIP, [...]): Exclude .svn directories.
2008-11-05  Andrew Haley  <aph@redhat.com>

	* tools/Makefile.am (UPDATE_TOOLS_ZIP, CREATE_TOOLS_ZIP): Exclude
	.svn directories.

From-SVN: r141609
2008-11-05 13:59:46 +00:00
Andrew Haley 904498a495 Makefile.am (install-data-local): Correct symlink paths for SDK-style installed JARs.
2008-10-31  Andrew Haley  <aph@redhat.com>

        * Makefile.am (install-data-local): Correct symlink paths for
        SDK-style installed JARs.  
        Correct symlinks for headers when DESTDIR is set.

From-SVN: r141608
2008-11-05 13:57:25 +00:00
Paolo Carlini de83a7a859 2008-11-05 Paolo Carlini <paolo.carlini@oracle.com>
* Complete last commit.

From-SVN: r141607
2008-11-05 13:20:29 +00:00
Richard Guenther f7c0ffb441 re PR middle-end/37742 (ICE in vectorizer with restrict pointer)
2008-11-05  Richard Guenther  <rguenther@suse.de>

	PR middle-end/37742
	* tree-ssa.c (useless_type_conversion_p_1): Check different restrict
	qualified pointer conversion before stripping qualifiers.
	* gimplify.c (create_tmp_from_val): Use correctly qualified type.
	* tree-flow.h (may_propagate_address_into_dereference): Declare.
	* tree-ssa-ccp.c (may_propagate_address_into_dereference): New function.
	(ccp_fold): Use it.
	* tree-ssa-forwprop.c (rhs_to_tree): Remove useless conversions,
	properly canonicalize binary ops.
	(forward_propagate_addr_expr_1): Use
	may_propagate_address_into_dereference.

	cp/
	* decl.c (start_preparsed_function): Use the correct type for
	building the RESULT_DECL.

	* gcc.c-torture/compile/pr37742.c: New testcase.
	* g++.dg/pr37742.C: Likewise.
	* gcc.dg/tree-ssa/forwprop-7.c: Check for two volatile loads.

From-SVN: r141606
2008-11-05 12:17:10 +00:00
Andrew Haley 08906bf8a2 re PR java/37068 (libgcj linkage failure: Incorrect library ABI version detected)
2008-11-04  Andrew Haley  <aph@redhat.com>

        PR java/37068
        * jcf-parse.c (java_emit_static_constructor): Don't call
        cgraph_build_static_cdtor.  Rewrite.

From-SVN: r141604
2008-11-05 10:05:03 +00:00
Uros Bizjak 34e4536eaf re PR middle-end/37286 (gfortran, trunk: ICE subst_stack_regs_pat, at reg-stack.c:1537)
PR middle-end/37286
	* reg-stack.c (subst_stack_regs_pat) [MINUS, DIV, MULT, PLUS]:
	Initialize uninitialized input registers with a NaN.

testsuite/ChangeLog:

	PR middle-end/37286
	* gfortran.dg/pr37286.f90: New test.

From-SVN: r141603
2008-11-05 10:57:49 +01:00
Jonathan Wakely 8e66def0a1 re PR libstdc++/38017 (30_threads/thread/cons/X.cc)
PR libstdc++/38017
	Revert:
	* include/tr1_impl/functional (result_of,reference_wrapper): Update
	to use C++0x features.
	* testsuite/20_util/function_objects/return_types/result_of.cc: New.
	* testsuite/20_util/function_objects/return_types/result_of_neg.cc:
	New.
	* testsuite/20_util/function_objects/return_types/result_of_ref.cc:
	New.
	* testsuite/20_util/reference_wrapper/24803.cc: Uncomment FIXMEs.

From-SVN: r141602
2008-11-05 09:36:35 +00:00
Tobias Grosser b738068cc3 re PR middle-end/37883 ([graphite] ICE : in scan_tree_for_params, at graphite.c:2274)
2008-11-05  Tobias Grosser  <grosser@fim.uni-passau.de>

	PR middle-end/37883

	* graphite.c (scan_tree_for_params): Add POINTER_PLUS_EXPR.

From-SVN: r141599
2008-11-05 05:04:29 +00:00
Tobias Grosser 58af97fcf8 re PR middle-end/37943 ([graphite] ICE : in build_graphite_scops, at graphite.c:1823)
2008-11-05  Tobias Grosser  <grosser@fim.uni-passau.de>

	PR middle-end/37943

	* graphite.c (scopdet_basic_block_info): Fix loops with multiple
	exits and conditions.
	* testsuite/gcc.dg/graphite/pr37943.c: New.

From-SVN: r141598
2008-11-05 04:45:49 +00:00
Jonathan Wakely a28a65ec25 re PR libstdc++/24803 ([c++0x] reference_wrapper and pointers to member functions)
PR libstdc++/24803
	PR libstdc++/37351
	* include/tr1_impl/functional (result_of,reference_wrapper): Update
	to use C++0x features.
	* testsuite/20_util/function_objects/return_types/result_of.cc: New.
	* testsuite/20_util/function_objects/return_types/result_of_neg.cc:
	New.
	* testsuite/20_util/function_objects/return_types/result_of_ref.cc:
	New.
	* testsuite/20_util/reference_wrapper/24803.cc: Uncomment FIXMEs.

From-SVN: r141596
2008-11-05 02:05:59 +00:00
GCC Administrator efca48a3ea Daily bump.
From-SVN: r141594
2008-11-05 00:16:37 +00:00
Thomas Schwinge 3e9899ac86 MAINTAINERS (Write after approval): Add myself.
2008-11-04  Thomas Schwinge  <tschwinge@gnu.org>

	* MAINTAINERS (Write after approval): Add myself.

From-SVN: r141591
2008-11-05 00:32:39 +01:00
Paul Thomas 50d6ceda91 re PR fortran/37597 (internal procedure fails to access host-associated module procedure)
2008-11-04  Paul Thomas  <pault@gcc.gnu.org>

        PR fortran/37597
        * parse.c (gfc_fixup_sibling_symbols ): Fixup contained, even
	when symbol not found.

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

        PR fortran/37597
        * gfortran.dg/host_assoc_call_5.f90: New test.

From-SVN: r141588
2008-11-04 21:17:53 +00:00
Jakub Jelinek ead51d3654 re PR c/35430 (ICE with complex arithmetic)
PR c/35430
	* c-common.c (warn_for_sign_compare): For complex result_type
	use component's type.

	* gcc.dg/pr35430.c: New test.
	* g++.dg/warn/Wsign-compare-2.C: New test.

Co-Authored-By: Andrew Pinski <andrew_pinski@playstation.sony.com>

From-SVN: r141587
2008-11-04 21:51:38 +01:00
Jakub Jelinek d2bd00524d * print-tree.c (print_node): Use code instead of TREE_CODE (node).
From-SVN: r141586
2008-11-04 21:08:26 +01:00
Jakub Jelinek 83371ec7b1 print-tree.c (print_node): Don't print DECL_INITIAL for PARM_DECL.
* print-tree.c (print_node): Don't print DECL_INITIAL
	for PARM_DECL.

From-SVN: r141585
2008-11-04 21:07:26 +01:00
Jakub Jelinek cbc19f3932 re PR c/37106 (ICE with -fpic or -fPIC: in mems_in_disjoint_alias_sets_p, at alias.c:278)
PR c/37106
	* c-common.c (parse_optimize_options): Save and restore
	flag_strict_aliasing around decode_options call.

	* gcc.dg/pr37106-1.c: New test.
	* gcc.dg/pr37106-2.c: New test.

From-SVN: r141584
2008-11-04 21:06:33 +01:00
Tobias Burnus 5c6ed53afc re PR libgomp/37935 (omp_set_schedule not documented in libgomp.texi)
2008-11-04  Tobias Burnus  <burnus@net-b.de>

        PR libgomp/37935
        * libgomp.texi (Runtime library routines, environment
        * variables):
        Update for OpenMP version 3.0.

From-SVN: r141583
2008-11-04 19:16:17 +01:00
David Edelsohn d793c2a594 configure.ac: Fix typo.
* configure.ac: Fix typo.
        * configure: Rebuild.

From-SVN: r141580
2008-11-04 11:56:30 -05:00
Uros Bizjak 4d9478234b driver-i386.c (enum vendor_signatures): New enum.
* config/i386/driver-i386.c (enum vendor_signatures): New enum.
	(host_detect_local_cpu): Use it instead of casted strings to
	compare vendor signatures.

From-SVN: r141579
2008-11-04 14:29:43 +01:00
Mikael Pettersson 20358adc34 re PR target/37989 (PR37528 fix broke --disable-shared on mingw32)
2008-11-03  Mikael Pettersson  <mikpe@it.uu.se>

        PR target/37989
	* config/i386/mingw32.h (REAL_LIBGCC_SPEC): Only add libgcc_s.a
	or libgcc_eh.a to spec if ENABLE_SHARED_LIBGCC.

From-SVN: r141575
2008-11-04 02:16:07 +00:00
GCC Administrator 47b7079004 Daily bump.
From-SVN: r141572
2008-11-04 00:16:49 +00:00
Chao-ying Fu a72bd667e0 * gcc.target/mips/dsp-ctrl.c: New test.
From-SVN: r141569
2008-11-03 18:58:10 -05:00
Catherine Moore 1e27273ff0 mips.c (mips_conditional_register_usage): Handle the DSP control register.
* config/mips.c (mips_conditional_register_usage):  Handle the
        DSP control register.
        * doc/extend.texi: Document the DSP control register.

From-SVN: r141568
2008-11-03 18:55:25 -05:00
Steve Ellcey f61d4b67ff re PR libfortran/37839 (st_parameter_dt has unwanted padding, is out of sync with compiler)
* gfortran.dg/f2003_io_1.f03: XFAIL until PR37839 is fixed.
	* gfortran.dg/f2003_io_4.f03: Ditto.
	* gfortran.dg/f2003_io_5.f03: Ditto.
	* gfortran.dg/f2003_io_6.f03: Ditto.
	* gfortran.dg/f2003_io_7.f03: Ditto.

From-SVN: r141566
2008-11-03 23:08:28 +00:00
Jakub Jelinek 38db79a685 re PR testsuite/37241 (FAIL: g++.dg/abi/key2.C)
PR testsuite/37241
	* g++.dg/abi/key2.C: Adjust regexps to allow __ZTV1f and __ZTI1f
	sharing one .section directive.

From-SVN: r141565
2008-11-03 23:05:57 +01:00
Jakub Jelinek f7790b41c6 re PR target/37812 (Invalid mnemonic 'lvlx')
PR target/37812
	* gcc.target/powerpc/altivec_check.h (altivec_cell_check): Abort
	if __PPU__ isn't defined.
	* lib/target-supports.exp (check_effective_target_powerpc_ppu_ok):
	New.
	* gcc.target/powerpc/altivec-cell-8.c: Use powerpc_ppu_ok.

From-SVN: r141564
2008-11-03 22:59:36 +01:00
Steve Ellcey c6ff44935c omp-low.c (expand_omp_for_generic): If iter_type has different precision than type and type is a pointer type...
* omp-low.c (expand_omp_for_generic): If iter_type has different
	precision than type and type is a pointer type, cast n1 and n2
	first to an integer type with the same precision as pointers
	and only afterwards to iter_type.

Co-Authored-By: Jakub Jelinek <jakub@redhat.com>

From-SVN: r141563
2008-11-03 22:47:44 +01:00