106703 Commits

Author SHA1 Message Date
Iain Sandoe
fcc414dca4 don't try to run Objective-C API=2 tests for Darwin < 9
testsuite:
	* objc.dg/special/load-category-1.m: Remove unused header.
	* objc.dg/special/load-category-1a.m: Likewise.
	* objc.dg/special/load-category-2.m: Likewise.
	* objc.dg/special/load-category-2a.m: Likewise.
	* objc.dg/special/load-category-3.m: Likewise.
	* objc.dg/special/load-category-3a.m: Likewise.
	* objc.dg/attributes/proto-attribute-2.m: Likewise.
	* objc.dg/attributes/proto-attribute-3.m: Likewise.
	* objc.dg/attributes/class-attribute-1.m: Likewise.
	* objc.dg/property/property.exp: Don't run for Darwin < 9.
	* obj-c++.dg/property/property.exp: Likewise.
	* objc.dg/attributes/method-sentinel-1.m: Update type header.
	* obj-c++.dg/attributes/method-sentinel-1.mm: Likewise.
	* obj-c++.dg/attributes/proto-attribute-2.mm: Skip for Darwin < 9.
	* obj-c++.dg/attributes/class-attribute-1.mm: Likewise.
	* obj-c++.dg/attributes/proto-attribute-3.mm: Likewise.
	* obj-c++.dg/template-8.mm: Likewise.

From-SVN: r170001
2011-02-10 11:34:09 +00:00
Jakub Jelinek
525a2d06d3 re PR target/47665 (ICE in trunc_int_for_mode)
PR target/47665
	* combine.c (make_compound_operation): Only change shifts into
	multiplication for SCALAR_INT_MODE_P.

	* gcc.target/i386/pr47665.c: New test.

From-SVN: r170000
2011-02-10 12:15:23 +01:00
Kai Tietz
8ead22235d re PR lto/47241 (lto not work on mingw32, reporting 'ld.exe: could not unlink output file')
2011-02-10  Kai Tietz  <kai.tietz@onevision.com>

        PR lto/47241
        * lto.c (lto_read_section_data): Free
        fd_name in failure case.
        For mingw targets don't hash file-descriptor.
        (read_cgraph_and_symbols): Close current_lto_file
        in failure case.

From-SVN: r169999
2011-02-10 09:57:24 +01:00
Jie Zhang
06c969bd26 re PR testsuite/47622 (FAIL: gcc.dg/pr42631.c scan-rtl-dump-not web "Web oldreg")
PR testsuite/47622
	Revert
	2011-02-05  Jie Zhang  <jie@codesourcery.com>
	PR debug/42631
	* web.c (entry_register): Don't clobber the number of the
	first uninitialized reference in used[].

	testsuite/
	PR testsuite/47622
	Revert
	2011-02-05  Jie Zhang  <jie@codesourcery.com>
	PR debug/42631
	* gcc.dg/pr42631.c: Update test.
	* gcc.dg/pr42631-2.c: New test.

From-SVN: r169997
2011-02-10 04:22:44 +00:00
Jonathan Wakely
604e39b109 status_cxx200x.xml: Update.
2011-02-10  Jonathan Wakely  <jwakely.gcc@gmail.com>

	* doc/xml/manual/status_cxx200x.xml: Update.
	* doc/html/*: Regenerate.

From-SVN: r169996
2011-02-10 00:54:53 +00:00
Jonathan Wakely
4b09b79915 debug.xml: Improve data race docs.
2011-02-10  Jonathan Wakely  <jwakely.gcc@gmail.com>

	* doc/xml/manual/debug.xml: Improve data race docs.

From-SVN: r169995
2011-02-10 00:42:02 +00:00
GCC Administrator
a58cf9794b Daily bump.
From-SVN: r169994
2011-02-10 00:18:36 +00:00
Paolo Carlini
87a0c779bb re PR libstdc++/47668 (missing 'typename' in debug-mode map)
2011-02-09  Paolo Carlini  <paolo.carlini@oracle.com>

	PR libstdc++/47668
	* include/debug/map.h (map): Remove unnecessary using-declaration.
	* include/debug/multimap.h (multimap): Likewise.
	* include/profile/map.h (map): Likewise.
	* include/profile/multimap.h (multimap): Likewise.

From-SVN: r169990
2011-02-10 00:08:42 +00:00
Jonathan Wakely
2bddc50958 re PR libstdc++/43863 (Unused recursive_init_error class defined with -fno-exceptions)
2011-02-09  Jonathan Wakely  <jwakely.gcc@gmail.com>

	PR libstdc++/43863
	* libsupc++/guard.cc (recursive_init_error::~recursive_init_error):
	Move to ...
	* libsupc++/guard_error.cc: ... new file.
	* libsupc++/Makefile.am: Update.
	* libsupc++/Makefile.in: Regenerate.

From-SVN: r169989
2011-02-09 23:22:27 +00:00
Jonathan Wakely
7a0269ded1 future (packaged_task::operator bool): Rename to...
2011-02-09  Jonathan Wakely  <jwakely.gcc@gmail.com>

	* include/std/future (packaged_task::operator bool): Rename to...
	(packaged_task::valid): ...this.
	* testsuite/30_threads/packaged_task/cons/1.cc: Adjust.
	* testsuite/30_threads/packaged_task/cons/2.cc: Adjust.
	* testsuite/30_threads/packaged_task/cons/move.cc: Adjust.
	* testsuite/30_threads/packaged_task/cons/move_assign.cc: Adjust.
	* testsuite/30_threads/packaged_task/cons/alloc.cc: Adjust.
	* testsuite/30_threads/packaged_task/members/invoke.cc: Adjust.
	* testsuite/30_threads/packaged_task/members/reset.cc: Adjust.
	* testsuite/30_threads/packaged_task/members/reset2.cc: Adjust.
	* testsuite/30_threads/packaged_task/members/swap.cc: Adjust.
	* testsuite/30_threads/packaged_task/members/boolconv.cc: Remove.
	* testsuite/30_threads/packaged_task/members/valid.cc: Add.

From-SVN: r169988
2011-02-09 23:17:05 +00:00
Janus Weil
c79bb35514 re PR fortran/47352 ([F03] ICE with proc-pointers in generic procedures)
2011-02-09  Janus Weil  <janus@gcc.gnu.org>

	PR fortran/47352
	* resolve.c (resolve_procedure_interface): If interface has a result
	variable, copy the typespec and set result pointer to self.


2011-02-09  Janus Weil  <janus@gcc.gnu.org>

	PR fortran/47352
	* gfortran.dg/proc_decl_25.f90: New.

From-SVN: r169987
2011-02-09 23:59:02 +01:00
Ian Lance Taylor
2181e7141c The "main" package is not special if -fgo-prefix is used.
From-SVN: r169986
2011-02-09 22:28:42 +00:00
Janus Weil
15167bbaa5 re PR fortran/47463 ([OOP] ICE in gfc_add_component_ref)
2011-02-09  Janus Weil  <janus@gcc.gnu.org>

	PR fortran/47463
	* resolve.c (resolve_typebound_subroutine): Remove erroneous line.


2011-02-09  Janus Weil  <janus@gcc.gnu.org>

	PR fortran/47463
	* gfortran.dg/typebound_assignment_2.f03: New.

From-SVN: r169985
2011-02-09 21:30:20 +01:00
Richard Guenther
282ec48e04 re PR middle-end/47664 (early inliner now needs iteration for multiple calls)
2011-02-09  Richard Guenther  <rguenther@suse.de>

	PR tree-optimization/47664
	* ipa-inline.c (cgraph_decide_inlining_incrementally): Visit
	all edges again.

	* gcc.dg/tree-ssa/inline-7.c: New testcase.

From-SVN: r169983
2011-02-09 20:04:56 +00:00
Eric Botcazou
5d85c0e3c1 re PR middle-end/47646 (Revision 169918 caused many testsuite failures)
PR middle-end/47646
	* gnat.dg/uninit_func.adb: Adjust dg directive.
	* obj-c++.dg/attributes/method-noreturn-1.mm: Adjust dg directives.

From-SVN: r169982
2011-02-09 19:23:02 +00:00
David Edelsohn
df98c3e88b aix61.h (PROCESSOR_DEFAULT): Change to PROCESSOR_POWER7.
* config/rs6000/aix61.h (PROCESSOR_DEFAULT): Change to
        PROCESSOR_POWER7.
        (PROCESSOR_DEFAULT64): Same.
        (RS6000_DEFAULT_LONG_DOUBLE_SIZE): Delete.

From-SVN: r169981
2011-02-09 13:54:37 -05:00
Janus Weil
c7f1781582 re PR fortran/47637 ([OOP] Memory leak involving INTENT(OUT) CLASS argument w/ allocatable components)
2011-02-09  Janus Weil  <janus@gcc.gnu.org>

	PR fortran/47637
	* trans-decl.c (init_intent_out_dt): Handle CLASS arguments.


2011-02-09  Janus Weil  <janus@gcc.gnu.org>

	PR fortran/47637
	* gfortran.dg/auto_dealloc_2.f90: New.

From-SVN: r169978
2011-02-09 16:58:05 +01:00
Rainer Orth
67b6839f99 iris6.h (TARGET_C99_FUNCTIONS): Define.
gcc:
	* config/mips/iris6.h (TARGET_C99_FUNCTIONS): Define.

	gcc/testsuite:
	* gcc.dg/builtins-config.h: Remove __sgi handling.
	* lib/target-supports.exp (add_options_for_c99_runtime): Add
	-std=c99 for mips-sgi-irix6.5*.

From-SVN: r169976
2011-02-09 15:05:03 +00:00
Paolo Carlini
0b0eaff093 io.xml: Fix typo.
2011-02-09  Paolo Carlini  <paolo.carlini@oracle.com>

	* doc/xml/manual/io.xml: Fix typo.
	* doc/html/manual/streambufs.html: Likewise.

From-SVN: r169966
2011-02-09 13:17:52 +00:00
Paolo Carlini
0a6b921d6e gnu.ver: Fix.
2011-02-09  Paolo Carlini  <paolo.carlini@oracle.com>

	* config/abi/pre/gnu.ver: Fix.

From-SVN: r169965
2011-02-09 13:13:32 +00:00
Martin Jambor
4fd7321445 re PR middle-end/45505 (gfortran.dg/pr25923.f90)
2011-02-09  Martin Jambor  <mjambor@suse.cz>

	PR middle-end/45505
	* tree-sra.c (struct access): New flags grp_scalar_read and
	grp_scalar_write.  Changed description of assignment read and write
	flags.
	(dump_access): Dump new flags, reorder all of them.
	(sort_and_splice_var_accesses): Set the new flag accordingly, use them
	to detect multiple scalar reads.
	(analyze_access_subtree): Use the new scalar read write flags instead
	of the old flags.  Adjusted comments.

	* testsuite/gfortran.dg/pr25923.f90: Remove xfails.

From-SVN: r169964
2011-02-09 12:48:09 +01:00
Rainer Orth
1bbb474148 re PR libffi/46661 (32-bit cls_pointer.c, cls_pointer_stack.c FAIL on IRIX 6.5)
PR libffi/46661
	* testsuite/libffi.call/cls_pointer.c (main): Cast void * to
	uintptr_t first.
	* testsuite/libffi.call/cls_pointer_stack.c (main): Likewise.

From-SVN: r169963
2011-02-09 10:01:07 +00:00
Jerry DeLisle
88c98057c8 re PR fortran/47583 (Inquire affected by previous read)
2011-02-08  Jerry DeLisle  <jvdelisle@gcc.gnu.org>

	PR fortran/47583
	* gfortran.dg/inquire_14.f90: New test.

From-SVN: r169962
2011-02-09 06:07:14 +00:00
Jerry DeLisle
70b9ed884a io.c (match_io_element): Do not set dt if not inquire.
2011-02-08  Jerry DeLisle  <jvdelisle@gcc.gnu.org>

	* io.c (match_io_element): Do not set dt if not inquire.

From-SVN: r169961
2011-02-09 06:02:56 +00:00
Benjamin Kosnik
df2c31eed7 *: Regenerate.
2011-02-08  Benjamin Kosnik  <bkoz@redhat.com>

	* doc/html/*: Regenerate.

From-SVN: r169960
2011-02-09 01:45:25 +00:00
DJ Delorie
91140cd3cf re PR target/47548 (m32c-rtems ICEt in change_address_1, at emit-rtl.c:1933)
PR target/47548
* config/m32c/m32c.c (m32c_subreg): Don't try to validate interim
patterns.

From-SVN: r169959
2011-02-08 19:54:31 -05:00
Joseph Myers
4254bbfe51 uclinux.opt: New.
* config/m68k/uclinux.opt: New.
	* config.gcc (m68k-*-uclinux*): Use m68k/uclinux.opt.

From-SVN: r169958
2011-02-09 00:22:56 +00:00
GCC Administrator
435d189521 Daily bump.
From-SVN: r169957
2011-02-09 00:18:31 +00:00
Joseph Myers
f1fda84e78 * config/cris/elf.opt (sim): New Driver option.
From-SVN: r169953
2011-02-08 23:40:53 +00:00
Eric Botcazou
07b8e9109e * gcc-interface/Makefile.in (x86-64 darwin): Handle multilibs.
From-SVN: r169950
2011-02-08 22:55:57 +00:00
Joseph Myers
4933ae741c elf.opt: New.
* config/xtensa/elf.opt: New.
	* config.gcc (xtensa*-*-elf*): Use xtensa/elf.opt.

From-SVN: r169949
2011-02-08 22:52:12 +00:00
Janus Weil
7522a06499 re PR fortran/45290 ([F08] pointer initialization)
2011-02-08  Janus Weil  <janus@gcc.gnu.org>

	PR fortran/45290
	* expr.c (gfc_check_assign_symbol): Reject pointers as pointer
	initialization target.


2011-02-08  Janus Weil  <janus@gcc.gnu.org>

	PR fortran/45290
	* gfortran.dg/pointer_init_6.f90: New.

From-SVN: r169948
2011-02-08 23:51:04 +01:00
Joseph Myers
4ad70280ec elf.opt: New.
* config/vax/elf.opt: New.
	* config.gcc (vax-*-linux*, vax-*-netbsdelf*): Use vax/elf.opt.

From-SVN: r169947
2011-02-08 21:53:51 +00:00
Ian Lance Taylor
a0e1520784 re PR go/47378 (ld warning linking with libgo.so: relocation bound to a symbol with STV_PROTECTED visibility)
PR go/47378
Don't use protected visibility for type descriptors.

From-SVN: r169946
2011-02-08 20:55:02 +00:00
Jonathan Wakely
76eddcf660 fix typo
From-SVN: r169945
2011-02-08 20:41:16 +00:00
Joseph Myers
20893707da * config/rs6000/aix64.opt (posix, pthread): New Driver options.
From-SVN: r169943
2011-02-08 20:34:27 +00:00
Joseph Myers
b8e7038e40 gnu-user.opt: New.
* config/gnu-user.opt: New.
	* config.gcc (*-*-linux* | frv-*-*linux* | *-*-kfreebsd*-gnu |
	*-*-knetbsd*-gnu | *-*-gnu* | *-*-kopensolaris*-gnu,
	*-*-uclinux*): Use gnu-user.opt.

From-SVN: r169942
2011-02-08 20:33:40 +00:00
Tobias Burnus
846cf392b9 MAINTAINERS: Add myself as libquadmath maintainer.
2011-02-08  Tobias Burnus  <burnus@net-b.de>

        * MAINTAINERS: Add myself as libquadmath maintainer.

From-SVN: r169940
2011-02-08 21:18:05 +01:00
Joel Sherrill
9993cf6070 ffi.c: Add RTEMS support for cache flushing.
2011-02-07  Joel Sherrill <joel.sherrill@oarcorp.com>

	* libffi/src/m68k/ffi.c: Add RTEMS support for cache flushing.
	Handle case when CPU variant does not have long double support.
	* libffi/src/m68k/sysv.S: Add support for mc68000, Coldfire,
	and cores with soft floating point.

From-SVN: r169938
2011-02-08 19:19:01 +00:00
Joel Sherrill
899fb23dc0 ffi.c: Add RTEMS support for cache flushing.
2011-02-07  Joel Sherrill <joel.sherrill@oarcorp.com>

	* libffi/src/m68k/ffi.c: Add RTEMS support for cache flushing.
	Handle case when CPU variant does not have long double support.
	* libffi/src/m68k/sysv.S: Add support for mc68000, Coldfire,
	and cores with soft floating point.

From-SVN: r169937
2011-02-08 19:18:31 +00:00
Joel Sherrill
38db4d09fa configure.ac: Add mips*-*-rtems* support.
2011-02-07  Joel Sherrill <joel.sherrill@oarcorp.com>

	* configure.ac: Add mips*-*-rtems* support.
	* configure: Regenerate.
	* src/mips/ffitarget.h: Ensure needed constants are available
	for targets which do not have sgidefs.h.

From-SVN: r169936
2011-02-08 19:17:55 +00:00
Thomas Schwinge
e1c5225a76 GNU/Hurd: remove -bsd command-line option.
gcc/
	* config/gnu.h (CPP_SPEC, LIB_SPEC): Remove handling of -bsd option.
	* config/i386/gnu.h (CPP_SPEC): Likewise.

From-SVN: r169935
2011-02-08 20:14:04 +01:00
Thomas Schwinge
f897ac2b0f * MAINTAINERS: Update my email address.
From-SVN: r169934
2011-02-08 20:13:42 +01:00
Jeff Law
2cfeef8833 re PR tree-optimization/42893 (Missed conditionally dead store elimination)
PR tree-optimization/42893
	* gcc.tree-ssa/pr42893.c: New test.

From-SVN: r169933
2011-02-08 11:54:12 -07:00
Benjamin Kosnik
d2b0caaab8 appendix_porting.xml: Add doc section.
2011-02-08  Benjamin Kosnik  <bkoz@redhat.com>

	* doc/xml/manual/appendix_porting.xml: Add doc section.
	* doc/xml/manual/appendix_contributing.xml: Split out doc bits to...
	* doc/xml/manual/documentation_hacking.xml: ...here.

	* doc/xml/manual/debug_mode.xml: Adjust.
	* doc/xml/manual/prerequisites.xml: Adjust.
	* doc/Makefile.am (xml_sources): Add dot files,
	documentation_hacking.xml.
	* doc/Makefile.in: Regenerate.

	* doc/xml/manual/build_hacking.xml: Use absolute paths for images.
	* doc/xml/images/confdeps.pdf: Add.

From-SVN: r169932
2011-02-08 18:33:31 +00:00
Ian Lance Taylor
9b5484722f go-lang.c (go_langhook_init_options_struct): Set frontend_set_flag_errno_math.
* go-lang.c (go_langhook_init_options_struct): Set
	frontend_set_flag_errno_math.  Don't set x_flag_trapping_math.

From-SVN: r169931
2011-02-08 17:53:17 +00:00
Ian Lance Taylor
5e46b0c65b common.opt (fcx-limited-range): Add SetByCombined flag.
* common.opt (fcx-limited-range): Add SetByCombined flag.
	(ffinite-math-only, fmath-errno, frounding-math): Likewise.
	(fsignaling-nans, fsigned-zeros, ftrapping-math): Likewise.
	(fassociative-math, freciprocal-math): Likewise.
	(funsafe-math-optimizations): Likewise.
	* opth-gen.awk: Handle SetByCombined.
	* optc-gen.awk: Likewise.
	* opts.c (set_fast_math_flags): Don't override flag if set by
	frontend.
	(set_unsafe_math_optimizations_flags): Likewise.
	* doc/options.texi (Option properties): Document SetByCombined.

From-SVN: r169930
2011-02-08 17:41:00 +00:00
Joseph Myers
32243d4670 config.gcc (arc-*, [...]): Mark obsolete.
* config.gcc (arc-*, alpha*-*-gnu*, arm*-*-netbsd*, arm-*-pe*,
	i[34567]86-*-interix3*, i[34567]86-*-netbsd*, i[34567]86-*-pe,
	m68hc11-*-*, m6811-*-*, m68hc12-*-*, m6812-*-*,
	m68k-*-uclinuxoldabi*, mcore-*-pe*, powerpc*-*-gnu*,
	sh*-*-symbianelf*, vax-*-netbsd*): Mark obsolete.

From-SVN: r169929
2011-02-08 17:02:56 +00:00
Sebastian Pop
479c1fb3fa Fix PRs 46834, 46994, and 46995: only rewrite reductions not containing other computations.
2011-02-08  Sebastian Pop  <sebastian.pop@amd.com>

	PR tree-optimization/46834
	PR tree-optimization/46994
	PR tree-optimization/46995
	* graphite-sese-to-poly.c (used_outside_reduction): New.
	(detect_commutative_reduction): Call used_outside_reduction.
	(rewrite_commutative_reductions_out_of_ssa_close_phi): Call
	translate_scalar_reduction_to_array only when at least one
	loop-phi/close-phi tuple has been detected.

	* gcc.dg/graphite/id-pr46834.c: New.
	* gfortran.dg/graphite/id-pr46994.f90: New.
	* gfortran.dg/graphite/id-pr46995.f90: New.

From-SVN: r169928
2011-02-08 16:53:57 +00:00
Andreas Krebbel
1431a37d18 re PR middle-end/47646 (Revision 169918 caused many testsuite failures)
2011-02-08  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>

	PR middle-end/47646
	* gcc.dg/pr39666-2.c (foo2): If the location of the statement
	using the variable is known the warning is emitted there.
	* gcc.dg/uninit-pr19430.c (foo): Likewise.
	* g++.dg/warn/Wuninitialized-5.C (foo): Likewise.

	* c-c++-common/pr20000.c (g): Both warnings occur at the return
	statement.
	(vg): Likewise.
	* gcc.dg/noreturn-1.c (foo5): Likewise.
	* objc.dg/attributes/method-noreturn-1.m (method1): Likewise.
	(method2): Likewise.

	* gfortran.dg/pr25923.f90 (baz): The warning will now be issued for
	the return statement using the uninitialized variable.
	* gfortran.dg/pr39666-2.f90 (f): Likewise.

From-SVN: r169927
2011-02-08 16:46:20 +00:00