Commit Graph

85253 Commits

Author SHA1 Message Date
Kaveh Ghazi 8debbe4841 Fix typo in last commit.
From-SVN: r131418
2008-01-09 09:03:49 +00:00
Uros Bizjak b73d152763 invoke.texi (i386 and x86-64 Options): Two small spell fixes.
* doc/invoke.texi (i386 and x86-64 Options) [mrecip]:
	Two small spell fixes.

From-SVN: r131414
2008-01-09 08:35:49 +01:00
John David Anglin 876e92ef8c re PR testsuite/30459 (FAIL: g++.dg/eh/ia64-2.C (test for excess errors))
PR testsuite/30459
	g++.dg/eh/ia64-2.C: Require weak support.

From-SVN: r131410
2008-01-09 03:14:15 +00:00
GCC Administrator 14a697970e Daily bump.
From-SVN: r131408
2008-01-09 00:17:24 +00:00
Richard Guenther 3fe2f42a2c re PR c++/31863 (g++-4.1: out of memory with -O1/-O2)
2008-01-08  Richard Guenther  <rguenther@suse.de>

	PR middle-end/31863
	* tree-ssa-structalias.c (push_fields_onto_fieldstack): Bail
	out early if the result will be unused.

	* g++.dg/torture/pr31863.C: New testcase.

From-SVN: r131405
2008-01-08 21:35:25 +00:00
Richard Guenther 416a8af4da re PR fortran/34706 (FE should reuse array temporaries, reduce temporaties and tell ME the array-size type)
2008-01-08  Richard Guenther  <rguenther@suse.de>

	PR fortran/34706
	PR tree-optimization/34683
	* trans-types.c (gfc_get_array_type_bounds): Use an array type
	with known size for accesses if that is known.

From-SVN: r131404
2008-01-08 21:21:29 +00:00
Uros Bizjak 4d86971803 re PR target/34709 (revision 131342 miscompiled 481.wrf on Linux/Intel64)
PR target/34709
        Revert:

        2008-01-05  Uros Bizjak  <ubizjak@gmail.com>
        * config/i386/i386.c (ix86_builtin_reciprocal): Remove check
        for TARGET_RECIP.

From-SVN: r131403
2008-01-08 20:22:46 +01:00
Paolo Carlini bcc0edbb91 user_facet_hierarchies.cc: Do not include <cassert>.
2008-01-08  Paolo Carlini  <pcarlini@suse.de>

	* testsuite/22_locale/global_templates/user_facet_hierarchies.cc: Do
	not include <cassert>.
	* testsuite/22_locale/global_templates/standard_facet_hierarchies.cc:
	Likewise.
	* testsuite/util/testsuite_common_types.h: Include <algorithm>.

From-SVN: r131402
2008-01-08 18:16:06 +00:00
Jan Sjodin cedbd7647a 2008-01-08 Jan Sjodin <jan.sjodin@amd.com>
* config/i386/i386.c:
        (k8_cost, amdfam10_cost): Branch costs for vectorization tuned.

From-SVN: r131401
2008-01-08 16:35:44 +00:00
Richard Guenther a9990582a8 re PR tree-optimization/34683 (SSA rewriting in the loop unroller causes quadratic behavior)
2008-01-08  Richard Guenther  <rguenther@suse.de>

	PR tree-optimization/34683
	* tree-ssa-operands.c (operand_build_cmp): Export.
	* tree-ssa-operands.h (operand_build_cmp): Declare.
	* tree-vn.c (vuses_compare): Remove.
	(sort_vuses): Use operand_build_cmp.
	(sort_vuses_heap): Likewise.
	* tree-ssa-sccvn.c (vuses_to_vec): Use VEC_reserve, not VEC_alloc
	to re-use old VEC if available.  Do not sort already sorted VUSEs.
	(vdefs_to_vec): Do not sort already sorted VDEFs.

From-SVN: r131400
2008-01-08 16:29:14 +00:00
Jakub Jelinek 0f3e711eef configure.ac (--enable-linux-futex): Add new configure option.
libstdc++-v3/
	* configure.ac (--enable-linux-futex): Add new configure option.
	(HAVE_LINUX_FUTEX): New AC_DEFINE.
	* Makefile.in: Rebuilt.
	* aclocal.m4: Rebuilt.
	* configure: Rebuilt.
	* config.h.in: Rebuilt.
	* config/cpu/generic/cxxabi_tweaks.h (_GLIBCXX_GUARD_BIT,
	_GLIBCXX_GUARD_PENDING_BIT, _GLIBCXX_GUARD_WAITING_BIT): Define.
	* config/cpu/arm/cxxabi_tweaks.h (_GLIBCXX_GUARD_BIT,
	_GLIBCXX_GUARD_PENDING_BIT, _GLIBCXX_GUARD_WAITING_BIT): Define.
	* libsupc++/guard.cc: Include climits and syscall.h.
	(_GLIBCXX_USE_FUTEX): Define if futex syscall and atomic builtins
	are supported.
	(_GLIBCXX_FUTEX_WAIT, _GLIBCXX_FUTEX_WAKE): Likewise.
	(__guard_test_bit): New static inline.
	(__cxa_guard_acquire, __cxa_guard_release, __cxa_guard_abort): Use
	atomic builtins and futex syscall if _GLIBCXX_USE_FUTEX.
config/
	* futex.m4: New file.
libgomp/
	* configure.ac: Move futex checking into ../config/futex.m4.
	* configure: Rebuilt.
	* aclocal.m4: Rebuilt.
	* Makefile.in: Rebuilt.

	* configure.tgt: Rename have_tls to gcc_cv_have_tls to match
	2007-10-15 ../config/tls.m4 change.

From-SVN: r131399
2008-01-08 17:14:49 +01:00
Jakub Jelinek c90eee444c re PR middle-end/34694 (Wrong line number for uninitialized variable)
PR middle-end/34694
	* omp-low.c (copy_var_decl): Copy also DECL_SOURCE_LOCATION.

	* gcc.dg/gomp/pr34694.c: New test.
	* g++.dg/gomp/pr34694.C: New test.

From-SVN: r131398
2008-01-08 17:08:24 +01:00
Jakub Jelinek b2ebd26837 re PR c++/33890 (ICE in tsubst_copy with OpenMP)
PR c++/33890
	* semantics.c (finish_omp_for): Don't call
	fold_build_cleanup_point_expr if processing_template_decl.

	* g++.dg/gomp/pr33890.C: New test.

From-SVN: r131397
2008-01-08 17:06:31 +01:00
Paul Thomas 0c6ce8b027 re PR fortran/34476 (Parameters: Bogus out of bounds error in array constructor)
2008-01-08  Paul Thomas  <pault@gcc.gnu.org>

	PR fortran/34476
	* expr.c (find_array_element): Check that the array bounds are
	constant before using them.  Use lower, as well as upper bound.
	(check_restricted): Allow implied index variable.

2008-01-08  Paul Thomas  <pault@gcc.gnu.org>

	PR fortran/34476
	* gfortran.dg/parameter_array_init_3.f90: New test.

From-SVN: r131396
2008-01-08 15:14:33 +00:00
Paul Thomas 3672065a1d re PR fortran/34681 (SAVEd derived type with allocatable components causes ICE)
2008-01-08  Paul Thomas  <pault@gcc.gnu.org>

	PR fortran/34681
	* trans_array.c (gfc_trans_deferred_array): Do not null the
	data pointer on entering scope, nor deallocate it on leaving
	scope, if the symbol has the 'save' attribute.

	PR fortran/34704
	* trans_decl.c (gfc_finish_var_decl): Derived types with
	allocatable components and an initializer must be TREE_STATIC.

2008-01-08  Paul Thomas  <pault@gcc.gnu.org>

	PR fortran/34681
	PR fortran/34704
	* gfortran.dg/alloc_comp_default_init_1.f90: New test.

From-SVN: r131395
2008-01-08 15:12:34 +00:00
Uros Bizjak 8bce96f5a0 re PR target/34702 (1.0 is not the inverse of 1.0 with -mrecip on x86)
PR target/34702
	* doc/invoke.texi (i386 and x86-64 Options) [mrecip]: Document
	limitations of reciprocal sequences on x86 targets.

From-SVN: r131394
2008-01-08 14:50:14 +01:00
Richard Guenther 4eefcc98fb re PR tree-optimization/34683 (SSA rewriting in the loop unroller causes quadratic behavior)
2008-01-08  Richard Guenther  <rguenther@suse.de>

	PR tree-optimization/34683
	* tree-flow-inline.h (var_ann): Remove overzealous asserts.

From-SVN: r131393
2008-01-08 12:12:56 +00:00
GCC Administrator 0eb52172bc Daily bump.
From-SVN: r131391
2008-01-08 00:18:22 +00:00
Ben Elliston 9cb8756f70 * config.sub, config.guess: Update from upstream sources.
From-SVN: r131388
2008-01-08 10:24:49 +11:00
Jakub Jelinek b69d564b66 re PR target/34622 (gcc.c-torture/execute/20000801-4.c fails at -O1 and above)
PR target/34622
	* config/darwin.c (darwin_mergeable_string_section): Don't use
	.cstring if int_size_in_bytes != TREE_STRING_LENGTH.

From-SVN: r131386
2008-01-07 22:49:27 +01:00
Janis Johnson 6dd116bef6 target-supports.exp (check_effective_target_powerpc_spu): New.
* lib/target-supports.exp (check_effective_target_powerpc_spu): New.
	* g++.dg/other/spu2vmx-1.C: Use it.

From-SVN: r131385
2008-01-07 21:05:03 +00:00
Jack Howarth dcc0807467 out-of-bounds-1.c: Don't use -mstrict-align for Darwin.
2008-01-07  Jack Howarth  <howarth@bromo.med.uc.edu>

	* gcc.dg/out-of-bounds-1.c: Don't use -mstrict-align for Darwin.

From-SVN: r131384
2008-01-07 21:03:46 +00:00
Jack Howarth 5252f8477f re PR testsuite/34575 (gcc.target/powerpc/parity-1.c and popcount-1.c scan-assembler popcntb on darwin9)
2008-01-07  Jack Howarth  <howarth@bromo.med.uc.edu>

	PR testsuite/34575
	* gcc.target/powerpc/popcount-1.c: Skip on darwin.
	* gcc.target/powerpc/parity-1.c: Likewise.

From-SVN: r131383
2008-01-07 21:02:24 +00:00
Paolo Carlini f1e37c7496 re PR libstdc++/34680 (Unconditional use of dynamic_cast in locale_facets.tcc breaks compilation with -fno-rtti)
2008-01-06  Paolo Carlini  <pcarlini@suse.de>

	PR libstdc++/34680
	* doc/cpp.texi ([Common Predefined Macros]): Document.

From-SVN: r131382
2008-01-07 20:54:49 +00:00
Uros Bizjak 6b76185174 re PR target/34682 (70% slowdown with SSE enabled)
PR target/34682
        * config/i386/i386.md (neg<mode>2): Rename from negsf2, negdf2 and
        negxf2.  Macroize expander using X87MODEF mode iterator.  Change
        predicates of op0 and op1 to register_operand.
        (abs<mode>2): Rename from abssf2, absdf2 and negxf2.  Macroize expander
        using X87MODEF mode iterator.  Change predicates of op0 and op1 to
        register_operand.
        ("*absneg<mode>2_mixed", "*absneg<mode>2_sse"): Rename from
        corresponding patterns and macroize using MODEF macro.  Change
        predicates of op0 and op1 to register_operand and remove
        "m" constraint. Disparage "r" alternative with "!".
        ("*absneg<mode>2_i387"): Rename from corresponding patterns and
        macroize using X87MODEF macro.  Change predicates of op0 and op1
        to register_operand and remove "m" constraint.  Disparage "r"
        alternative with "!".
        (absneg splitter with memory operands): Remove.
        ("*neg<mode>2_1", "*abs<mode>2_1"): Rename from corresponding
        patterns and macroize using X87MODEF mode iterator.
        * config/i386/sse.md (negv4sf2, absv4sf2, neg2vdf2, absv2df2):
        Change predicate of op1 to register_operand.
        * config/i386/i386.c (ix86_expand_fp_absneg_operator): Remove support
        for memory operands.

From-SVN: r131381
2008-01-07 21:06:34 +01:00
Nathan Froyd 5ca0373f91 * config/rs6000/rs6000.h (ASM_CPU_SPEC): Add clause for mcpu=8548.
From-SVN: r131380
2008-01-07 19:35:04 +00:00
Fred Fish 681c6ab0da re PR preprocessor/30363 (Support for -traditional-cpp is incomplete in current gcc relative to gcc 2.95.3)
libcpp
2008-01-07  Fred Fish  <fnf@specifix.com>
	PR preprocessor/30363:
	* traditional.c (replace_args_and_push): Add local variable
	cxtquote, calculate the replacement text size assuming a 
	worst case of every input character quoted with backslash,
	and properly handle output quoting of quote characters in
	actual arguments used in function-like macros.
gcc/testsuite
2008-01-07  Fred Fish  <fnf@specifix.com>
	PR preprocessor/30363:
	* gcc.dg/cpp/trad/macroargs.c: Add code to test quoting in
	macro expansions.

From-SVN: r131379
2008-01-07 17:23:40 +00:00
Richard Guenther 2eac9a765c basic-block.h (struct edge_def): Pair dest_idx with goto_locus fields.
2008-01-07  Richard Guenther  <rguenther@suse.de>

        * basic-block.h (struct edge_def): Pair dest_idx with goto_locus
        fields.

From-SVN: r131378
2008-01-07 16:49:37 +00:00
Paul Thomas 3a7b9fdaf6 re PR fortran/34672 (.mod file misses renamed, USEd symbol)
2008-01-07  Paul Thomas  <pault@gcc.gnu.org>

	PR fortran/34672
	* module.c (write_generic): Rewrite completely.
	(write_module): Change call to write_generic.

2008-01-07  Paul Thomas  <pault@gcc.gnu.org>

	PR fortran/34672
	* gfortran.dg/use_only_2.f90: New test.

From-SVN: r131377
2008-01-07 16:44:43 +00:00
Richard Guenther b61ea03d2d re PR tree-optimization/34683 (SSA rewriting in the loop unroller causes quadratic behavior)
2008-01-07  Richard Guenther  <rguenther@suse.de>

	PR tree-optimization/34683
	* tree-ssa-sccvn.c (vuses_to_vec): Pre-allocate the vector of
	VOPs of the needed size to save memory.  Use VEC_quick_push
	to save compile-time.
	(vdefs_to_vec): Likewise.

From-SVN: r131375
2008-01-07 14:49:36 +00:00
Sa Liu c4bd75cd50 Genetate inline code for double division.
From-SVN: r131374
2008-01-07 13:53:07 +00:00
Sa Liu 51173714c9 Genetate inline code for double division.
From-SVN: r131373
2008-01-07 13:48:12 +00:00
Paolo Carlini 32f1271c4f re PR libstdc++/34680 (Unconditional use of dynamic_cast in locale_facets.tcc breaks compilation with -fno-rtti)
2008-01-07  Paolo Carlini  <pcarlini@suse.de>

	PR libstdc++/34680
	* include/bits/locale_classes.h (has_facet<>, use_facet<>): Do not
	use dynamic_cast when run-time type identification is disabled; do
	not mark inline; only declare, define...
	* include/bits/locale_classes.tcc: ... here.

From-SVN: r131372
2008-01-07 11:11:02 +00:00
Jerry DeLisle bd5db9de0d re PR fortran/34659 (corner case continuation line)
2008-01-06  Jerry DeLisle  <jvdelisle@gcc.gnu.org>

	PR fortran/34659
	* scanner.c (load_line): Do not count ' ' as printable when checking for
	continuations.

From-SVN: r131371
2008-01-07 02:53:04 +00:00
GCC Administrator d6b66affc4 Daily bump.
From-SVN: r131369
2008-01-07 00:17:12 +00:00
Paolo Carlini ba551ec277 re PR libstdc++/34680 (Unconditional use of dynamic_cast in locale_facets.tcc breaks compilation with -fno-rtti)
gcc/
2008-01-06  Paolo Carlini  <pcarlini@suse.de>

	PR libstdc++/34680
	* c-cppbuiltin.c (c_cpp_builtins): Define __GXX_RTTI, if appropriate.
	* doc/cpp.texi ([Common Predefined Macros]): Document.

gcc/testsuite/
2008-01-06  Paolo Carlini  <pcarlini@suse.de>

	PR libstdc++/34680
	* g++.dg/rtti/predefined-rtti-macro-1.C: New.
	* g++.dg/rtti/predefined-rtti-macro-2.C: Likewise.

From-SVN: r131366
2008-01-06 22:30:32 +00:00
Paul Thomas 5989df83be re PR fortran/34545 (ICE when compiling Fortran 95 code)
2008-01-06  Paul Thomas  <pault@gcc.gnu.org>

	PR fortran/34545
	* module.c (load_needed): If the namespace has no proc_name
	give it the module symbol.

2008-01-06  Paul Thomas  <pault@gcc.gnu.org>

	PR fortran/34545
	* gfortran.dg/use_12.f90: New test.

From-SVN: r131364
2008-01-06 22:00:00 +00:00
Hans-Peter Nilsson b8c9ec3da0 Revert last change.
From-SVN: r131363
2008-01-06 20:54:14 +00:00
Tobias Burnus d614540645 re PR fortran/34690 (gfortran.dg/elemental_args_check_2.f90 doesn't work)
2008-01-06  Tobias Burnus  <burnus@net-b.de>

       PR fortran/34690
       * gfortran.dg/elemental_args_check_2.f90: Fix test case.

From-SVN: r131362
2008-01-06 21:30:10 +01:00
Ted Phelps dfd503426c re PR c++/34152 (Erratic behaviour: Exception translation (throw from signal handlers))
PR c++/34152
	* libsupc++/eh_personality.cc (PERSONALITY_FUNCTION): Check
	_GLIBCXX_HAVE_GETIPINFO instead of HAVE_GETIPINFO.

From-SVN: r131361
2008-01-06 21:25:57 +01:00
Tobias Burnus bffcdc8720 re PR fortran/34689 (libgomp.fortran/appendix-a/a.33.3.f90 -O (test for excess errors))
2008-01-06  Tobias Burnus  <burnus@net-b.de>

       PR fortran/34689
       * gfortran.dg/intent_out_4.f90: Fix test case.

From-SVN: r131360
2008-01-06 21:18:01 +01:00
Tobias Burnus ac61ba6af2 re PR fortran/34689 (libgomp.fortran/appendix-a/a.33.3.f90 -O (test for excess errors))
2008-01-06  Tobias Burnus  <burnus@net-b.de>

       PR fortran/34689
       * interface.c (compare_actual_formal): Fix intent(out) check for
       function result variables.

2008-01-06  Tobias Burnus  <burnus@net-b.de>

       PR fortran/34689
       * gfortran.dg/intent_out_4.f90: New.

From-SVN: r131359
2008-01-06 20:36:44 +01:00
Uros Bizjak 43db797998 i386.c (ix86_emit_swsqrtsf): Use negative constants in order to use commutative addition instead of subtraction.
* config/i386/i386.c (ix86_emit_swsqrtsf): Use negative constants in
        order to use commutative addition instead of subtraction.

From-SVN: r131358
2008-01-06 19:59:38 +01:00
Jerry DeLisle e39bd31393 re PR libfortran/34540 (cshift, eoshift, kind=1 and kind=2 arguments...)
2008-01-06  Jerry DeLisle  <jvdelisle@gcc.gnu.org>

	PR libfortran/34540
	* gfortran.dg/optional_dim_3.f90: New test.

From-SVN: r131357
2008-01-06 18:34:14 +00:00
Jerry DeLisle 9b09c4dec4 re PR fortran/34387 (FAIL: gfortran.dg/optional_dim_2.f90: FE vs library argument missmatch)
2008-01-06  Jerry DeLisle  <jvdelisle@gcc.gnu.org>

	PR fortran/34387
	* trans-expr.c (gfc_conv_missing_dummy): Use a temporary to type convert
	the dummy variable expression, test for NULL, and pass the variable
	address to the called function.

From-SVN: r131356
2008-01-06 18:19:06 +00:00
Tobias Burnus 346ecba81d re PR fortran/34658 (save / common)
2007-01-06  Tobias Burnus  <burnus@net-b.de>

        PR fortran/34658
        * match.c (gfc_match_common): Remove blank common in
        DATA BLOCK warning.
        * resolve.c (resolve_common_vars): New function.
        (resolve_common_blocks): Move checks to resolve_common_vars
        and invoke that function.
        (resolve_types): Call resolve_common_vars for blank commons.

2007-01-06  Tobias Burnus  <burnus@net-b.de>

        PR fortran/34658
        * gfortran.dg/common_11.f90: New.
        * gfortran.dg/blockdata_1.f90: Update test case.
        * gfortran.dg/blockdata_2.f90: Update test case.

From-SVN: r131355
2008-01-06 19:17:14 +01:00
Tobias Burnus caa42d865f equiv_constraint_9.f90: Fix typo.
2008-01-06  Tobias Burnus  <burnus@net-b.de>

        * gfortran.dg/equiv_constraint_9.f90: Fix typo.

From-SVN: r131354
2008-01-06 19:11:42 +01:00
Tobias Burnus cddcf0d4ae re PR fortran/34655 (5.5.2.5)
2008-01-06  Tobias Burnus  <burnus@net-b.de>

        PR fortran/34655
        * resolve.c (resolve_equivalence_derived): Reject derived types
        * with
        default initialization if equivalenced with COMMON variable.

2008-01-06  Tobias Burnus  <burnus@net-b.de>

        PR fortran/34655
        * gfortran.dg/equiv_constraint_9.f90: New.

From-SVN: r131353
2008-01-06 19:07:52 +01:00
Revital Eres 2c460d1291 Fix PR34263: Cleaning up latch blocks
From-SVN: r131352
2008-01-06 15:24:10 +00:00
Andreas Tobler 79ca8fc00b ffi.c (ffi_prep_cif_machdep): Fix thinko.
2008-01-06  Andreas Tobler  <a.tobler@schweiz.org>

	* src/x86/ffi.c (ffi_prep_cif_machdep): Fix thinko.

From-SVN: r131351
2008-01-06 13:17:03 +01:00