Commit Graph

106431 Commits

Author SHA1 Message Date
Ian Lance Taylor
d62d06b6ff libgo: Fix typo in syscalls/socket_bsd.go.
From-SVN: r169190
2011-01-25 00:40:00 +00:00
GCC Administrator
b74385f07c Daily bump.
From-SVN: r169189
2011-01-25 00:18:38 +00:00
Ian Lance Taylor
ca11cc98b9 Recognize m68k, mips, PPC. Don't require arch syscall files to exist.
From-SVN: r169185
2011-01-24 23:42:22 +00:00
Jan Hubicka
e8ba94fc1f re PR c/21659 ([unit-at-a-time] "weak declaration must precede definition" error missing at >= O1)
PR c/21659
	* doc/extend.texi (weak pragma): Drop claim that it must
	appear before definition.
	* varasm.c (merge_weak, declare_weak): Only sanity check
	that DECL is not output at a time it is declared weak.

From-SVN: r169184
2011-01-24 23:07:25 +00:00
Ian Lance Taylor
71c67403a2 syscalls/sleep_rtems.go: Add missing package clause.
From-SVN: r169183
2011-01-24 22:44:52 +00:00
Kenneth Zadeck
2b6e2d13ff machmode.def: Fixed comments.
2011-01-24  Kenneth Zadeck  <zadeck@naturalbridge.com>

	* machmode.def: Fixed comments.

From-SVN: r169179
2011-01-24 20:08:06 +00:00
Graham Reed
083fcbcbc3 re PR libstdc++/47387 (AIX ctype 'mask' override not working)
2011-01-24  Graham Reed  <greed@pobox.com>

	PR libstdc++/47387
	* config/os/aix/ctype_inline.h (ctype<char>::is): Use _M_table if
	provided.

From-SVN: r169178
2011-01-24 19:53:35 +00:00
Kai Tietz
9841210f04 emit-rtl.c (reg_attrs_htab_hash): Replace long by intptr_t.
2011-01-24  Kai Tietz  <kai.tietz@onevision.com>

        * emit-rtl.c (reg_attrs_htab_hash): Replace long by intptr_t.

Additionally correct ChangeLog date entry for Koenig.

From-SVN: r169176
2011-01-24 19:49:20 +01:00
Paul Koning
e046112d14 builtins.c (c_readstr): Fix byte order if BYTES_BIG_ENDIAN != WORDS_BIG_ENDIAN.
* builtins.c (c_readstr): Fix byte order if BYTES_BIG_ENDIAN !=
WORDS_BIG_ENDIAN.

From-SVN: r169174
2011-01-24 12:46:15 -05:00
H.J. Lu
a6c5070a12 Visit basic blocks using the work-list based algorithm.
2011-01-24  H.J. Lu  <hongjiu.lu@intel.com>

	PR target/46519
	* config/i386/i386.c: Include sbitmap.h and fibheap.h.
	(block_info): Add scanned and prev.
	(move_or_delete_vzeroupper_2): Return if the basic block
	has been scanned and the upper 128bit state is unchanged
	from the last scan.
	(move_or_delete_vzeroupper_1): Return true if the exit
	state is changed.
	(move_or_delete_vzeroupper): Visit basic blocks using the
	work-list based algorithm based on vt_find_locations in
	var-tracking.c.

	* config/i386/t-i386: Also depend on sbitmap.h and $(FIBHEAP_H).

From-SVN: r169173
2011-01-24 09:29:58 -08:00
Johannes Singler
fc722a0ea4 re PR libstdc++/47433 (libstdc++ parallel mode calls std::swap explicitely)
2011-01-24  Johannes Singler  <singler@kit.edu>

        PR libstdc++/47433
        * include/parallel/losertree.h
        (_LoserTree<>::__delete_min_insert):
        Do not qualify swap with std:: for value type, 
        but include a using directive instead.
        (_LoserTreeUnguarded<>::__delete_min_insert): Likewise.
        * include/parallel/balanced_quicksort.h (__qsb_divide):
        Use std::iter_swap instead of std::swap.
        (__qsb_local_sort_with_helping): Likewise.
        * include/parallel/partition.h (__parallel_partition): 
        Likewise. (__parallel_nth_element): Likewise.

From-SVN: r169171
2011-01-24 17:07:35 +00:00
Nick Clifton
a40d79d7af v850.opt (mv850es): New option - alias for -mv850e1.
* config/v850/v850.opt (mv850es): New option - alias for -mv850e1.
	* config/v850/v850.h (ASM_SPEC): If -mv850es is specified pass
	-mv850e1 to the assembler.  If -mv850e1 or -mv850es is specified
	then define __v850e1__.
	* doc/invoke.texi: Document -mv850es.

From-SVN: r169170
2011-01-24 17:00:28 +00:00
Richard Henderson
440eb8de89 rx: Uncomplicate fp comparisons.
It turns out that the middle-end will happily take care of
doing the swapping and splitting of compound fp comparisons.
No need for us to replicate that here.

From-SVN: r169169
2011-01-24 08:59:15 -08:00
Michael Meissner
3ff79f9970 Fix PR 47408 and 47385
From-SVN: r169167
2011-01-24 16:47:16 +00:00
Johannes Singler
a2e064a9c0 re PR libstdc++/47437 (libstdc++ parallel mode: multiway_merge does not compile)
2011-01-24  Johannes Singler  <singler@kit.edu>

        PR libstdc++/47437
        * include/parallel/multiway_merge.h (_UnguardedIterator):
        Remove useless "mutable" from reference declaration.

From-SVN: r169166
2011-01-24 16:44:30 +00:00
Rainer Orth
789abad8f3 * lib/scanasm.exp (dg-function-on-line): Handle mips-sgi-irix*.
From-SVN: r169157
2011-01-24 11:45:49 +00:00
Rainer Orth
467b72a8dd cray_pointers_2.f90: Avoid cycling through optimization options.
* gfortran.dg/cray_pointers_2.f90: Avoid cycling through
	optimization options.

From-SVN: r169155
2011-01-24 09:35:13 +00:00
Rainer Orth
742f951567 re PR target/45988 (gfortran.dg/vect/fast-math-pr38968.f90 times out on 32-bit Solaris 10/x86)
* gfortran.dg/array_constructor_33.f90: Use dg-timeout-factor 4.

	PR testsuite/45988
	* gfortran.dg/vect/fast-math-pr38968.f90: Use dg-timeout-factor 2.

From-SVN: r169153
2011-01-24 09:30:31 +00:00
Eric Botcazou
8788adb6a2 Fix long line
From-SVN: r169152
2011-01-24 08:02:01 +00:00
GCC Administrator
164990c9b1 Daily bump.
From-SVN: r169150
2011-01-24 00:18:17 +00:00
Tobias Burnus
25cbe58f23 re PR fortran/47421 (Wrong-code: Value of scalar ALLOCATABLE CHARACTER(len=n) dummy is mangled)
2011-01-23  Tobias Burnus  <burnus@net-b.de>

        PR fortran/47421
        * trans-decl.c (gfc_trans_deferred_vars): Do not nullify
        scalar allocatable dummy arguments.

2011-01-23  Tobias Burnus  <burnus@net-b.de>

        PR fortran/47421
        * gfortran.dg/allocatable_scalar_12.f90: New.

From-SVN: r169145
2011-01-23 23:26:27 +01:00
Bernd Schmidt
ff3d9d08a8 re PR rtl-optimization/47166 (SpecCpu2000 Ammp segfaults for ARM with -O3 -mthumb)
PR rtl-optimization/47166
	* reload1.c (emit_reload_insns): Disable the spill_reg_store
	mechanism for PRE_MODIFY and POST_MODIFY.
	(inc_for_reload): For PRE_MODIFY, return the insn that sets the
	reloadreg.

Co-Authored-By: Richard Sandiford <rdsandiford@googlemail.com>

From-SVN: r169144
2011-01-23 21:11:24 +00:00
Andreas Schwab
7fcaf152b6 compare-elim.c (maybe_select_cc_mode): Add ATTRIBUTE_UNUSED markers.
* compare-elim.c (maybe_select_cc_mode): Add ATTRIBUTE_UNUSED
markers.

From-SVN: r169143
2011-01-23 14:27:33 +00:00
Ira Rosen
aeb4e803dc costmodel-vect-33.c: Expect vectorization to be not profitable if...
* gcc.dg/vect/costmodel/spu/costmodel-vect-33.c: Expect
        vectorization to be not profitable if peeling is used
        to realign the memory access.
        * gcc.dg/vect/costmodel/spu/costmodel-vect-76a.c:
        Increase loop bound to avoid loop unrolling.
        * gcc.dg/vect/costmodel/spu/costmodel-vect-76c.c:
        Likewise.

From-SVN: r169142
2011-01-23 08:20:22 +00:00
GCC Administrator
b3237aa952 Daily bump.
From-SVN: r169141
2011-01-23 00:18:24 +00:00
Jan Hubicka
d09b58c48b re PR target/47333 (g++.dg/lto/20091219 FAILs on Solaris 2 with SUN as)
PR lto/47333
	* g++.dg/lto/pr47333.C: New file.
	* lto-cgraph.c (reachable_from_this_partition_p): Fix pasto.

From-SVN: r169137
2011-01-22 23:45:45 +00:00
Jan Hubicka
e8ff8c5ab8 re PR target/43884 (Performance degradation for simple fibonacci numbers calculation)
PR tree-optimization/43884
	PR lto/44334
	* predict.c (maybe_hot_frequency_p): Use entry block frequency as an base.
	* doc/invoke.texi (hot-bb-frequency-fraction): Update docs.
	* gcc.dg/autopar/outer-2.c: Increase array size.
	* gcc.dg/tree-ssa/ldist-pr45948.c: Update test.

From-SVN: r169136
2011-01-22 21:47:40 +00:00
Anatoly Sokolov
ccaed3ba91 s390.h (REGISTER_MOVE_COST, [...]): Remove.
* config/s390/s390.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
	* config/s390/s390.c (s390_register_move_cost,
	s390_memory_move_cost): New.
	(TARGET_REGISTER_MOVE_COST, TARGET_MEMORY_MOVE_COST): Define.

From-SVN: r169135
2011-01-23 00:38:39 +03:00
Ulrich Weigand
0cecee061e re PR middle-end/47401 (Support for must-not-throw regions with SJLJ exceptions broken)
PR middle-end/47401
	* except.c (sjlj_assign_call_site_values): Move setting the
	crtl->uses_eh_lsda flag to ...
	(sjlj_mark_call_sites): ... here.
	(sjlj_emit_function_enter): Support NULL dispatch label.
	(sjlj_build_landing_pads): In a function with no landing pads
	that still has must-not-throw regions, generate code to register
	a personality function with empty LSDA.

From-SVN: r169134
2011-01-22 21:24:54 +00:00
Richard Henderson
1b7ae0b722 rx: Enable the compare-elim pass.
From-SVN: r169133
2011-01-22 11:39:36 -08:00
Richard Henderson
3843787fd9 mn10300: Enable the compare-elim pass.
From-SVN: r169132
2011-01-22 11:37:55 -08:00
Richard Henderson
e692f27683 New -fcompare-elim pass.
Version 3, with two rounds of comments from Paolo Bonzini.

From-SVN: r169131
2011-01-22 11:35:10 -08:00
Thomas Koenig
8a9adf2c8f re PR fortran/38536 (ICE with C_LOC in resolve.c due to not properly going through expr->ref)
2011-01-22  Thomas Koenig  <tkoenig@gcc.gnu.org>

	PR fortran/38536
	* resolve.c (gfc_iso_c_func_interface):  For C_LOC,
	check for array sections followed by component references
	which are illegal.  Also check for coindexed arguments.

2011-01-22  Thomas Koenig  <tkoenig@gcc.gnu.org>

	PR fortran/38536
	* gfortran.dg/c_loc_tests_16.f90:  New test.

From-SVN: r169130
2011-01-22 17:30:22 +00:00
Nick Clifton
9a7c205049 rx.md (cstoresf4): Pass comparison operator to rx_split_fp_compare.
* config/rx/rx.md (cstoresf4): Pass comparison operator to
	rx_split_fp_compare.

From-SVN: r169129
2011-01-22 16:09:52 +00:00
Nick Clifton
15ba56964d rx.md (UNSPEC_CONST): New.
* config/rx/rx.md (UNSPEC_CONST): New.
	(deallocate_and_return): Wrap the amount popped off the stack in
	an UNSPEC_CONST in order to stop it being rejected by
	-mmax-constant-size.
	(pop_and_return): Add a "(return)" rtx.
	(call): Drop the immediate operand.
	(call_internal): Likewise.
	(call_value): Likewise.
	(call_value_internal): Likewise.
	(sibcall_internal): Likewise.
	(sibcall_value_internal): Likewise.
	(sibcall): Likewise.  Generate an explicit call using
	sibcall_internal.
	(sibcall_value): Likewise.
	(mov<>): FAIL if a constant operand is not legitimate.
	(addsi3_unpsec): New pattern.
	* config/rx/rx.c (rx_print_operand_address): Handle UNPSEC
	CONSTs.
	(ok_for_max_constant): New function.
	(gen_safe_add): New function.
	(rx_expand_prologue): Use gen_safe_add.
	(rx_expand_epilogue): Likewise.
	(rx_is_legitimate_constant): Use ok_for_max_constant.  Handle
	UNSPEC CONSTs.

From-SVN: r169128
2011-01-22 16:05:49 +00:00
Tobias Burnus
4618de23d8 re PR fortran/47399 ([OOP] ICE with TBP of a PARAMETER)
2011-01-22  Tobias Burnus  <burnus@net-b.de>

        PR fortran/47399
        * primary.c (gfc_match_varspec): Relax gcc_assert to allow for
        PARAMETER TBP.

2011-01-22  Tobias Burnus  <burnus@net-b.de>

        PR fortran/47399
        * gfortran.dg/typebound_proc_19.f90: New.

From-SVN: r169126
2011-01-22 14:50:25 +01:00
Jeff Law
caaf13d387 re PR tree-optimization/47053 (ICE: verify_flow_info failed: BB 2 can not throw but has an EH edge with -O -fnon-call-exceptions)
PR tree-optimization/47053
	* tree-ssa-dse.c (need_eh_cleanup): New bitmap.
	(dse_optimize_stmt): Set the appropriate bit in NEED_EH_CLEANUP when
	statements are deleted.
	(tree_ssa_dse): Allocate & free NEED_EH_CLEANUP.  If NEED_EH_CLEANUP
	is nonempty, then purge dead edges and cleanup the CFG.

	PR tree-optimization/47053
	* g++.dg/pr47053.C: New test.

From-SVN: r169123
2011-01-21 21:09:44 -07:00
Ian Lance Taylor
47ba04ab54 Avoid crash when M structure free just before thread exit.
From-SVN: r169121
2011-01-22 02:59:24 +00:00
Ian Lance Taylor
039868965d libgo: Adjust deadlock avoidance.
From-SVN: r169120
2011-01-22 02:15:01 +00:00
Ian Lance Taylor
2e8e58aa8a syscalls: Add SPARC RTEMS specific file.
From-SVN: r169119
2011-01-22 02:01:38 +00:00
GCC Administrator
e0747d001a Daily bump.
From-SVN: r169118
2011-01-22 00:18:41 +00:00
Ian Lance Taylor
7e33c4aadc Avoid deadlock creating new thread.
From-SVN: r169114
2011-01-22 00:12:00 +00:00
Ian Lance Taylor
cf606aeb06 Avoid deadlock when finalizer lock is held during gc.
From-SVN: r169112
2011-01-21 23:33:52 +00:00
Janne Blomqvist
723553bdc1 PR 46267 strerror thread safety
From-SVN: r169110
2011-01-22 00:42:17 +02:00
Jason Merrill
62f9aedcd0 re PR c++/47041 (Internal compiler error in build_data_member_initialization, add cp/semantics.c:5483)
PR c++/47041
	* semantics.c (build_constexpr_constructor_member_initializers):
	Handle trivial copy.

From-SVN: r169108
2011-01-21 17:30:26 -05:00
Alexandre Oliva
12c30f2fba re PR bootstrap/47402 (Bootstrap comparison failure)
PR debug/47402
Temporarily revert:
2011-01-21  Alexandre Oliva  <aoliva@redhat.com>
PR debug/47106
* tree-dfa.c (create_var_ann): Mark variable as used.

From-SVN: r169107
2011-01-21 22:11:24 +00:00
Ian Lance Taylor
22afca6694 Fix race condition in test case.
Brought over from master repository.

From-SVN: r169106
2011-01-21 22:01:02 +00:00
Jakub Jelinek
95cc031fd8 re PR c++/47388 (ICE: in begin_for_stmt, at cp/semantics.c:863 with -fno-for-scope and for(;;) inside a template)
PR c++/47388
	* semantics.c (begin_for_stmt): If -fno-for-scope, don't
	assume init must be NULL if scope is NULL.
	(begin_range_for_stmt): Likewise.

	* g++.dg/cpp0x/range-for10.C: New test.
	* g++.dg/template/for1.C: New test.

From-SVN: r169105
2011-01-21 22:34:25 +01:00
Tobias Burnus
abba182313 re PR fortran/47394 (Internal compiler error when error count limit is reached)
2011-01-21  Tobias Burnus  <burnus@net-b.de>

        PR fortran/47394
        * error.c (gfc_error_now, gfc_fatal_error, gfc_error_check):
        Use defined instead of magic number exit status codes.
        * scanner.c (include_line, gfc_new_file): Ditto.

From-SVN: r169104
2011-01-21 21:33:10 +01:00
Benjamin Kosnik
ee3ee948de c++config (_GLIBCXX_EXPORT_TEMPLATE): Remove.
2011-01-21  Benjamin Kosnik  <bkoz@redhat.com>

	* include/bits/c++config (_GLIBCXX_EXPORT_TEMPLATE): Remove.
	* include/debug/safe_sequence.h: Same.
	* include/debug/safe_iterator.h: Same.
	* include/std/forward_list: Same.
	* include/std/deque: Same.
	* include/std/list: Same.
	* include/std/random: Same.
	* include/std/streambuf: Same.
	* include/std/fstream: Same.
	* include/std/istream: Same.
	* include/std/string: Same.
	* include/std/ostream: Same.
	* include/std/sstream: Same.
	* include/ext/vstring.h: Same.
	* include/bits/basic_ios.h: Same.
	* include/bits/locale_classes.h: Same.
	* include/bits/locale_facets.h: Same.
	* include/bits/valarray_array.h: Same.
	* include/bits/locale_facets_nonio.h: Same.
	* include/tr1/random: Same.

From-SVN: r169102
2011-01-21 19:41:13 +00:00