Commit Graph

91756 Commits

Author SHA1 Message Date
Dave Korn 04f9f7b532 configure.ac (funcs, [...]): Don't munge on Cygwin, as it no longer shares libiberty object files.
* configure.ac (funcs, vars, checkfuncs):  Don't munge on Cygwin,
	as it no longer shares libiberty object files.
	* configure:  Regenerated.

From-SVN: r143487
2009-01-18 21:36:20 +00:00
H.J. Lu 6e4f11689b re PR target/38736 (-mavx can change the ABI via BIGGEST_ALIGNMENT)
gcc/

2009-01-18  H.J. Lu  <hongjiu.lu@intel.com>

	PR target/38736
	* c-common.c (handle_aligned_attribute): Use
	ATTRIBUTE_ALIGNED_VALUE instead of BIGGEST_ALIGNMENT for
	default alignment value.

	* c-cppbuiltin.c (c_cpp_builtins): Define __BIGGEST_ALIGNMENT__.

	* defaults.h (ATTRIBUTE_ALIGNED_VALUE): New.
	* config/i386/i386.h (ATTRIBUTE_ALIGNED_VALUE): Likewise.

	* doc/extend.texi: Update __attribute__ ((aligned)).  Document
	__BIGGEST_ALIGNMENT__.

	* doc/tm.texi: Document ATTRIBUTE_ALIGNED_VALUE.

gcc/testsuite/

2009-01-18  H.J. Lu  <hongjiu.lu@intel.com>

	PR target/38736
	* g++.dg/compat/abi/pr38736_main.C: New.
	* g++.dg/compat/abi/pr38736_x.C: Likewise.
	* g++.dg/compat/abi/pr38736_y.C: Likewise.
	* g++.dg/other/macro-1.C: Likewise.
	* gcc.dg/macro-1.c: Likewise.
	* gcc.dg/compat/pr38736_main.c: Likewise.
	* gcc.dg/compat/pr38736_x.c: Likewise.
	* gcc.dg/compat/pr38736_y.c: Likewise.

From-SVN: r143486
2009-01-18 08:26:26 -08:00
Richard Guenther 890065bfe4 re PR tree-optimization/38819 (trapping expression wrongly hoisted out of loop)
2009-01-18  Richard Guenther  <rguenther@suse.de>

	PR tree-optimization/38819
	* tree-flow.h (operation_could_trap_helper_p): Declare.
	* tree-eh.c (operation_could_trap_helper_p): Export.
	* tree-ssa-sccvn.h (vn_nary_may_trap): Declare.
	* tree-ssa-sccvn.c (vn_nary_may_trap): New function.
	* tree-ssa-pre.c (insert_into_preds_of_block): Check if we
	are about to insert a possibly trapping instruction and fail
	in this case.

	* gcc.c-torture/execute/pr38819.c: New testcase.

From-SVN: r143485
2009-01-18 15:51:12 +00:00
Andreas Schwab a729d731c8 doc/install.texi (Configuration): Remove obsolete paragraph
about use of --with-gnu-ld with --with-gnu-as.

From-SVN: r143484
2009-01-18 15:47:15 +00:00
Jonathan Wakely 8b6ded8d4f thread (__thread_data_base::__run): Make non-const.
* include/std/thread (__thread_data_base::__run): Make non-const.
	* testsuite/30_threads/thread/cons/5.cc: New.

From-SVN: r143483
2009-01-18 12:38:10 +00:00
Ben Elliston 9d2cc6f081 * Makefile.in (bitmap.o-warn): Remove goal.
From-SVN: r143482
2009-01-18 22:30:29 +11:00
Kazu Hirata a640c13b6b extend.texi, [...]: Fix typos.
* doc/extend.texi, doc/gimple.texi, doc/invoke.texi,
	doc/md.texi, doc/sourcebuild.texi, doc/tm.texi: Fix typos.
	Follow spelling conventions.

From-SVN: r143481
2009-01-18 09:11:10 +00:00
Ben Elliston dba2cc0ce9 bitmap.c (bitmap_obstack_alloc_stat): Adjust cast to eliminate C++ warning about implicit conversion from void * to...
* bitmap.c (bitmap_obstack_alloc_stat): Adjust cast to eliminate
	C++ warning about implicit conversion from void * to struct
	bitmap_head_def *.
	(bitmap_obstack_free): Likewise for bitmap_element *.

From-SVN: r143480
2009-01-18 19:51:56 +11:00
GCC Administrator 3ab4dfd406 Daily bump.
From-SVN: r143478
2009-01-18 00:16:46 +00:00
Ben Elliston c60535f966 * config/i386/32/tf-signs.c (__copysigntf3, __fabstf2): Prototype.
From-SVN: r143475
2009-01-18 10:41:31 +11:00
Gerald Pfeifer 19196f4457 * MAINTAINERS: Remove Robert Millan from Write After Approval.
From-SVN: r143474
2009-01-17 22:36:37 +00:00
Gerald Pfeifer ee5decb37d * MAINTAINERS: Make whitespace consistent.
From-SVN: r143473
2009-01-17 22:13:55 +00:00
Dave Korn 2207a4980f re PR bootstrap/38862 (Bootstrap failure on HEAD with static linking vs. graphite)
PR bootstrap/38862
	* Makefile.in (BACKENDLIBS):  Reorder to match dependencies.

From-SVN: r143472
2009-01-17 21:06:17 +00:00
Sebastian Pop 8137e465bf graphite.c (graphite_trans_scop_block): Do not block single nested loops.
2009-01-17  Sebastian Pop  <sebastian.pop@amd.com>
	    Tobias Grosser  <tobi.grosser@amd.com>

	* graphite.c (graphite_trans_scop_block): Do not block single
	nested loops.


Co-Authored-By: Tobias Grosser <tobi.grosser@amd.com>

From-SVN: r143468
2009-01-17 15:13:12 +00:00
Richard Guenther f791417262 gcc_release (JAVA_DIRS): Remove fastjar.
2009-01-17  Richard Guenther  <rguenther@suse.de>

	* gcc_release (JAVA_DIRS): Remove fastjar.

From-SVN: r143465
2009-01-17 14:53:57 +00:00
Paul Thomas e775e6b697 re PR fortran/38657 (PUBLIC/PRIVATE Common blocks)
2009-01-17  Paul Thomas  <pault@gcc.gnu.org>

	PR fortran/38657
	* module.c (write_common_0): Add argument 'this_module' and
	check that non-use associated common blocks are written first.
	(write_common): Call write_common_0 twice, once with true and
	then with false.

2009-01-17  Paul Thomas  <pault@gcc.gnu.org>

	PR fortran/38657
	* gfortran.dg/module_commons_3.f90: Reapply.

From-SVN: r143463
2009-01-17 11:58:48 +00:00
Paul Thomas c41fea4af4 re PR fortran/34955 (transfer_assumed_size_1.f90: Valgrind error: invalid read of size 3)
2009-01-17  Paul Thomas  <pault@gcc.gnu.org>

	PR fortran/34955
	* trans-intrinsic.c (gfc_conv_intrinsic_array_transfer): Has
	been absorbed into gfc_conv_intrinsic_transfer. All
	references to it in trans-intrinsic.c have been changed
	accordingly.  PR fixed by using a temporary for scalar
	character transfer, when the source is shorter than the
	destination.

2009-01-17  Paul Thomas  <pault@gcc.gnu.org>

	PR fortran/34955
	* gfortran.dg/transfer_intrinsic_1.f90: New test.
	* gfortran.dg/transfer_intrinsic_2.f90: New test.

From-SVN: r143462
2009-01-17 11:32:02 +00:00
Paul Thomas 6e7ff326cf re PR fortran/38657 (PUBLIC/PRIVATE Common blocks)
2009-01-17  Paul Thomas  <pault@gcc.gnu.org>

	PR fortran/38657
	* module.c (write_common_0): Revert patch of 2009-01-10.

2009-01-17  Paul Thomas  <pault@gcc.gnu.org>

	PR fortran/38657
	* gfortran.dg/module_commons_3.f90: Remove

From-SVN: r143459
2009-01-17 09:43:57 +00:00
Benjamin Kosnik 7d4260a382 Makefile.am (sources): Add math_stubs_float.cc.
2009-01-16  Benjamin Kosnik  <bkoz@redhat.com>

	* src/Makefile.am (sources): Add math_stubs_float.cc.
	* src/Makefile.in: Regenerate.
	* src/math_stubs_float.cc: New, from libmath/stubs.c.

From-SVN: r143457
2009-01-17 02:03:25 +00:00
H.J. Lu 1cc914fc95 foldaddr-1.c: Add the missing '}'.
2009-01-16  H.J. Lu  <hongjiu.lu@intel.com>

	* gcc.dg/tree-ssa/foldaddr-1.c: Add the missing '}'.

From-SVN: r143455
2009-01-16 17:31:44 -08:00
GCC Administrator 53847ea218 Daily bump.
From-SVN: r143453
2009-01-17 00:17:01 +00:00
Jason Merrill fd80343111 re PR c++/38877 (Revision 143404 caused ICE on 447.dealII in SPEC CPU 2006)
PR c++/38877
        * tree.c (lvalue_p_1): Allow non-fields in COMPONENT_REF.
        * init.c (build_new): Don't call describable_type unless we
        have an auto.

From-SVN: r143448
2009-01-16 17:40:25 -05:00
Jakub Jelinek 4dcb8fd1b1 Makefile.in: Fix multilib handling for powerpc64-linux.
* gcc-interface/Makefile.in: Fix multilib handling for
	powerpc64-linux.

From-SVN: r143447
2009-01-16 23:38:12 +01:00
Jason Merrill b7da27c2e2 re PR c++/38877 (Revision 143404 caused ICE on 447.dealII in SPEC CPU 2006)
PR c++/38877
        * tree.c (lvalue_p_1): Allow non-fields in COMPONENT_REF.
        * init.c (build_new): Don't call describable_type unless we
        have an auto.

From-SVN: r143446
2009-01-16 17:36:32 -05:00
Jason Merrill db8470f688 re PR c++/29470 (Using declaration access semantics change with templates)
PR c++/29470
        * pt.c (tsubst_decl) [USING_DECL]: Propagate access flags.

From-SVN: r143445
2009-01-16 17:36:11 -05:00
Alexandre Oliva 5be1c58c4d ebitmap.h (ebitmap_iter_init): Initialize all fields.
* ebitmap.h (ebitmap_iter_init): Initialize all fields.
* ipa-struct-reorg.c (gen_struct_type): Replace known-true
test with assertion.

From-SVN: r143443
2009-01-16 20:44:25 +00:00
Richard Guenther 786ce82d44 re PR tree-optimization/38835 (field-insensitive PTA causes libstdc++ miscompiles)
2009-01-16  Richard Guenther  <rguenther@suse.de>

	PR tree-optimization/38835
	PR middle-end/36227
	* fold-const.c (fold_binary): Remove PTR + INT -> (INT)(PTR p+ INT)
	and INT + PTR -> (INT)(PTR p+ INT) folding.
	* tree-ssa-address.c (create_mem_ref): Properly use POINTER_PLUS_EXPR.

	java/
	* builtins.c (build_addr_sum): Use POINTER_PLUS_EXPR.

	* gcc.c-torture/execute/pr36227.c: New testcase.
	* gcc.dg/tree-ssa/foldaddr-1.c: XFAIL.
	* g++.dg/init/const7.C: Likewise.

From-SVN: r143442
2009-01-16 19:18:18 +00:00
Adam Nemet c1cb09ada0 re PR target/38554 (ICE when compiling pamfunc.c in netpbm with -O1 enabled)
PR target/38554
	* expmed.c (expand_shift): With SHIFT_COUNT_TRUNCATED, don't lift
	the subreg from a lowpart subreg if it is also casting the value.

testsuite/
	PR target/38554
	* gcc.c-torture/compile/pr38554.c: New test.

From-SVN: r143440
2009-01-16 18:56:47 +00:00
Jason Merrill 1ceb2263cf re PR c++/38579 (Template: Wrong inherited copy-ctor visibility)
PR c++/38579
        * search.c (protected_accessible_p): N doesn't vary.

From-SVN: r143439
2009-01-16 13:35:28 -05:00
Sebastian Pop bcab4e19da graphite.c (compare_prefix_loops): New.
2009-01-16  Sebastian Pop  <sebastian.pop@amd.com>
	    Tobias Grosser  <tobi.grosser@amd.com>

	* graphite.c (compare_prefix_loops): New.
	(build_scop_canonical_schedules): Rewritten.
	(graphite_transform_loops): Move build_scop_canonical_schedules
	after build_scop_iteration_domain.


Co-Authored-By: Tobias Grosser <tobi.grosser@amd.com>

From-SVN: r143437
2009-01-16 15:20:16 +00:00
Sebastian Pop 0b040072d6 graphite.c (add_conditions_to_domain): Add the loops to the dimension of the iteration domain.
2009-01-16  Sebastian Pop  <sebastian.pop@amd.com>
	    Tobias Grosser  <tobi.grosser@amd.com>

	* graphite.c (add_conditions_to_domain): Add the loops to 
	the dimension of the iteration domain.  Do copy the domain
	only when it exists.
	(build_scop_conditions_1): Do not call add_conditions_to_domain.
	(add_conditions_to_constraints): New.
	(can_generate_code_stmt, can_generate_code): Removed.
	(gloog): Do not call can_generate_code.
	(graphite_transform_loops): Call add_conditions_to_constraints
	after building the iteration domain.


Co-Authored-By: Tobias Grosser <tobi.grosser@amd.com>

From-SVN: r143436
2009-01-16 15:18:28 +00:00
Jakub Jelinek 56c6a49994 re PR tree-optimization/38789 (__builtin_constant_p appears to evaluate to true for non-constant arguments.)
PR tree-optimization/38789
	* tree-ssa-threadedge.c
	(record_temporary_equivalences_from_stmts_at_dest): Ignore calls to
	__builtin_constant_p.

	* gcc.c-torture/compile/pr38789.c: New test.

From-SVN: r143435
2009-01-16 16:01:24 +01:00
Kenneth Zadeck cd3f172908 dce.c (delete_unmarked_insns): Reversed the order that insns are examined before deleting them.
2009-01-16  Kenneth Zadeck <zadeck@naturalbridge.com>

	* dce.c (delete_unmarked_insns): Reversed the order that insns are
	examined before deleting them.

From-SVN: r143433
2009-01-16 13:41:11 +00:00
Richard Earnshaw c433cb14ae function.c (aggregate_value_p): Correctly extract the function type from CALL_EXPR_FN lookup.
* function.c (aggregate_value_p): Correctly extract the function
	type from CALL_EXPR_FN lookup.

From-SVN: r143432
2009-01-16 13:20:32 +00:00
Janus Weil 6e0d2de7cb re PR fortran/38152 (procedure pointers as module variables)
2009-01-16  Janus Weil  <janus@gcc.gnu.org>

	PR fortran/38152
	* expr.c (gfc_check_pointer_assign): Allow use-associated procedure
	pointers as lvalue.
	* trans-decl.c (get_proc_pointer_decl,gfc_create_module_variable):
	Enable procedure pointers as module variables.


2009-01-16  Janus Weil  <janus@gcc.gnu.org>

	PR fortran/38152
	* gfortran.dg/proc_ptr_13.f90: New.

From-SVN: r143430
2009-01-16 13:03:51 +01:00
Hariharan Sandanagobalane 27d62fa48e picochip.c (picochip_override_options): Revert CFI asm flag disable commited previously.
* config/picochip/picochip.c (picochip_override_options): Revert
          CFI asm flag disable commited previously.

From-SVN: r143429
2009-01-16 09:56:23 +00:00
Alan Modra 36fbb0ecc5 Makefile.def (configure-opcodes): Depend on configure-libiberty.
* Makefile.def (configure-opcodes): Depend on configure-libiberty.
	(all-opcodes): Depend on all-libiberty.
	* Makefile.in: Regenerate.

From-SVN: r143426
2009-01-16 18:37:23 +10:30
Jason Merrill 16eba92873 re PR c++/38850 (Cannot find inline friend function in template class when called from within a template function)
PR c++/38850
        * pt.c (tsubst_copy_and_build): Tell finish_call_expr to
        accept hidden friends.

From-SVN: r143422
2009-01-16 00:04:26 -05:00
Ben Elliston ce16861e68 config.host (i[34567]86-*-linux*, [...]): Add t-softfp to tmake_file.
* config.host (i[34567]86-*-linux*, x86_64-*-linux*): Add t-softfp
	to tmake_file.

From-SVN: r143421
2009-01-16 15:00:48 +11:00
Benjamin Kosnik 1457ddca5a Makefile.am (sources): Add math_stubs_long_double.cc.
2009-01-15  Benjamin Kosnik  <bkoz@redhat.com>

	* src/Makefile.am (sources): Add math_stubs_long_double.cc.
	* src/Makefile.in: Regenerate.
	* src/math_stubs_long_double.cc: New, from libmath/stubs.c.

From-SVN: r143420
2009-01-16 02:55:11 +00:00
GCC Administrator 6a1c0a18ed Daily bump.
From-SVN: r143418
2009-01-16 00:17:14 +00:00
Sebastian Pop c77bb78f00 graphite.c (scan_tree_for_params): On substractions negate all the coefficients of the term.
2009-01-15  Sebastian Pop  <sebastian.pop@amd.com>
	    Tobias Grosser  <tobi.grosser@amd.com>
	    Jan Sjodin  <jan.sjodin@amd.com>

	* graphite.c (scan_tree_for_params): On substractions negate
	all the coefficients of the term.
	(clast_to_gcc_expression_red): New.  Handle reduction expressions
	of more than two operands.
	(clast_to_gcc_expression): Call clast_to_gcc_expression_red.
	(get_vdef_before_scop): Handle also the case of default definitions.



Co-Authored-By: Jan Sjodin <jan.sjodin@amd.com>
Co-Authored-By: Tobias Grosser <tobi.grosser@amd.com>

From-SVN: r143415
2009-01-15 23:23:48 +00:00
Andrew Pinski a2712544dc re PR c++/29388 (ICE with invalid nested name specifier)
2009-01-15  Andrew Pinski  <andrew_pinski@playstation.sony.com>

        PR C++/29388
        * decl.c (grokdeclarator): Check for a non namespace/class context.


2009-01-15  Andrew Pinski  <andrew_pinski@playstation.sony.com>

        PR C++/29388
        * g++.dg/template/error37.C: New testcase.

From-SVN: r143411
2009-01-15 14:10:24 -08:00
Richard Sandiford 574af2d680 caller-save.c (add_used_regs_1, [...]): New functions.
gcc/
	* caller-save.c (add_used_regs_1, add_used_regs): New functions.
	(insert_one_insn): Use them instead of REG_DEAD and REG_INC notes.
	Also use them when walking CALL_INSN_FUNCTION_USAGE.

From-SVN: r143409
2009-01-15 21:22:32 +00:00
Benjamin Kosnik adc8a1e3e0 re PR libstdc++/32666 (FAIL: abi_check hppa)
2009-01-15  Benjamin Kosnik  <bkoz@redhat.com>

	PR libstdc++/32666
	* config/abi/post/hppa-linux-gnu/baseline_symbols.txt: Update.

2009-01-15  Benjamin Kosnik  <bkoz@redhat.com>

	PR libstdc++/32666
	* Makefile.am (hosted_source): Remove libmath directory.
	* Makefile.in: Regenerate.
	* linkage.m4 (GLIBCXX_CHECK_COMPLEX_MATH_SUPPORT): Remove.
	(AC_REPLACE_MATHFUNCS): Remove.
	(GLIBCXX_CHECK_MATH_SUPPORT): Remove copysign, copysignl checks as done
	in GLIBCXX_CHECK_C99_TR1.
	* acinclude.m4: Remove libmath, need_math.
	* crossconfig.m4: Remove use of HAVE_COPYSIGN, HAVE_COPYSIGNL,
	HAVE_COPYSIGNF, GLIBCXX_CHECK_COMPLEX_MATH_SUPPORT, need_libmath.
	* configure.ac: Same.
	* configure: Regenerate.
	* fragment.am: Fix comment.
	* config.h.in: Regenerate.
	* src/Makefile.in: Regenerate.
	* src/Makefile.am: Remove libmath references.
	* doc/Makefile.in: Regenerate.
	* po/Makefile.in: Regenerate.
	* include/Makefile.in: Regenerate.
	* libsupc++/Makefile.in: Regenerate.
	* testsuite/Makefile.in: Regenerate.

	* src/compatibility.cc: Also export long double versions of "C" math
	library if hppa-linux.
	* config/abi/pre/gnu.ver: Remove unused __signbit exports.
	* doc/xml/manual/appendix_contributing.xml: Remove libmath reference.

	* libmath: Remove.
	* libmath/signbit.c: Same.
	* libmath/stubs.c: Same.
	* libmath/Makefile.in: Same.
	* libmath/copysignf.c: Same.
	* libmath/mathconf.h: Same.
	* libmath/signbitf.c: Same.
	* libmath/Makefile.am: Same.
	* libmath/signbitl.c: Same.

From-SVN: r143406
2009-01-15 20:02:11 +00:00
Jason Merrill 4af9e878d9 re PR c++/36334 (typedef to function type leads to problems)
PR c++/36334
        PR c++/37646
        * tree.c (lvalue_p_1): Handle BASELINK.  A COMPONENT_REF to
        a function isn't necessarily an lvalue. Take tree, not const_tree.
        (lvalue_p, real_lvalue_p): Take tree, not const_tree.
        * typeck.c (lvalue_or_else): Likewise.
        * cp-tree.h: Adjust prototypes.

From-SVN: r143404
2009-01-15 13:14:32 -05:00
Steve Ellcey f1253e7e69 re PR c++/38357 (ICE cc1plus (Segmentation fault))
PR c++/38357
	* g++.dg/template/crash87.C: New test.

From-SVN: r143403
2009-01-15 18:09:04 +00:00
Steve Ellcey 5fa0e8530e re PR c++/38357 (ICE cc1plus (Segmentation fault))
PR c++/38357
	* pt.c (tsubst): Check for NULL args.

From-SVN: r143402
2009-01-15 18:07:46 +00:00
H.J. Lu e939805b7b re PR middle-end/37843 (unaligned stack in main due to tail call optimization)
gcc/

2009-01-15  H.J. Lu  <hongjiu.lu@intel.com>
	    Joey Ye  <joey.ye@intel.com>

	PR middle-end/37843
	* cfgexpand.c (expand_stack_alignment): Don't update stack
	boundary nor check incoming stack boundary here.
	(gimple_expand_cfg): Update stack boundary and check incoming
	stack boundary here.

gcc/testsuite/

2009-01-15  H.J. Lu  <hongjiu.lu@intel.com>

	PR middle-end/37843
	* gcc.target/i386/pr37843-3.c: Replace _Decimal128 with __m128.

Co-Authored-By: Joey Ye <joey.ye@intel.com>

From-SVN: r143400
2009-01-15 07:44:41 -08:00
Kenneth Zadeck 750900dba0 dce.c (find_call_stack_args, [...]): Fixed comments.
2009-01-15  Kenneth Zadeck <zadeck@naturalbridge.com>

	* dce.c (find_call_stack_args, delete_unmarked_insns): Fixed
	comments.

From-SVN: r143398
2009-01-15 15:27:20 +00:00