Commit Graph

106804 Commits

Author SHA1 Message Date
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
Richard Guenther
3865a06fb9 re PR tree-optimization/47639 (ICE: verify_stmts failed: statement marked for throw, but doesn't with -fstack-check=generic -fexceptions -fnon-call-exceptions)
2011-02-08  Richard Guenther  <rguenther@suse.de>

	PR middle-end/47639
	* tree-vect-generic.c (expand_vector_operations_1): Update
	stmts here ...
	(expand_vector_operations): ... not here.  Cleanup EH info
	and the CFG if required.

	* g++.dg/opt/pr47639.c: New testcase.

From-SVN: r169926
2011-02-08 14:16:50 +00:00
Richard Guenther
62902f3fea re PR lto/47641 (gcc.dg/lto/20101009-1 c_lto_20101009-1_0.o-c_lto_20101009-1_0.o link ICE)
2011-02-08  Richard Guenther  <rguenther@suse.de>

	PR tree-optimization/47641
	* tree-ssa.c (execute_update_addresses_taken): For asm outputs
	require type compatibility.

From-SVN: r169925
2011-02-08 12:53:50 +00:00
Andreas Krebbel
0efb9d64ad gimple-low.c (lower_function_body): Don't remove the location of the return statement here.
2011-02-08  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>

	* gimple-low.c (lower_function_body): Don't remove the location of
	the return statement here.
	(lower_gimple_return): Do it here instead but only if the return
	statement is actually used twice.

From-SVN: r169918
2011-02-08 11:15:53 +00:00
Richard Guenther
034b8ae4f8 re PR tree-optimization/47632 (ICE: verify_flow_info failed: BB 4 can not throw but has an EH edge with -fnon-call-exceptions -ftrapv and operator new[])
2011-02-08  Richard Guenther  <rguenther@suse.de>

	PR tree-optimization/47632
	* tree-ssa-forwprop.c (remove_prop_source_from_use): Remove
	unused up_to_stmt parameter, return whether cfg-cleanup is
	necessary, remove EH info properly.
	(forward_propagate_into_gimple_cond): Adjust caller.
	(forward_propagate_into_cond): Likewise.
	(forward_propagate_comparison): Likewise.
	(tree_ssa_forward_propagate_single_use_vars): Make
	forward_propagate_comparison case similar to the two others.

	* g++.dg/opt/pr47632.C: New testcase.

From-SVN: r169917
2011-02-08 10:44:06 +00:00
Nick Clifton
298362c83f mn10300.opt (mliw): New command line option.
* config/mn10300/mn10300.opt (mliw): New command line option.
	* config/mn10300/mn10300.md (UNSPEC_LIW): New unspec.
	(liw_bundling): New automaton.
	(liw): New attribute.
	(liw_op): New attribute.
	(liw_op1, liw_op2, liw_both, liw_either): New reservations.
	(movsi_internal): Add LIW attributes.
	(andsi3): Likewise.
	(iorsi3): Likewise.
	(xorsi3): Likewise.
	(addsi3): Separate register and immediate alternatives.
	Add LIW attributes.
	(subsi3): Likewise.
	(cmpsi): Likewise.
	(aslsi3): Likewise.
	(lshrsi3): Likewise.
	(ashrsi3): Likewise.
	(liw): New pattern.
	* config/mn10300/mn10300.c (liw_op_names): New
	(mn10300_print_operand): Handle 'W' operand descriptor.
	(extract_bundle): New function.
	(check_liw_constraints): New function.
	(liw_candidate): New function.
	(mn10300_bundle_liw): New function.
	(mn10300_reorg): New function.
	(TARGET_MACHINE_DEPENDENT_REORG): Define.
	(TARGET_DEFAULT_TARGET_FLAGS): Add MASK_ALLOW_LIW.
	* config/mn10300/mn10300.h (TARGET_CPU_CPP_BUILTINS): Define
	__LIW__ or __NO_LIW__.
	* doc/invoke.texi: Describe the -mliw command line option.

From-SVN: r169916
2011-02-08 09:55:07 +00:00
Jonathan Wakely
30c4a23d02 fdl-1.2.xml: Remove.
2011-02-08  Jonathan Wakely  <jwakely.gcc@gmail.com>

	* doc/xml/gnu/fdl-1.2.xml: Remove.
	* doc/xml/gnu/gpl-2.0.xml: Remove.
	* doc/Makefile.am: Update.
	* doc/Makefile.in: Regnerate.

From-SVN: r169915
2011-02-08 09:43:53 +00:00
Mike Stump
24780fe16b * Make-lang.in (obj-c++.tags): Don't include *.y.
From-SVN: r169914
2011-02-08 03:07:48 +00:00
GCC Administrator
75104eb42c Daily bump.
From-SVN: r169912
2011-02-08 00:18:31 +00:00
Ulrich Weigand
517a8d4397 * g++.dg/abi/packed1.C: Expect warning on spu-*-* as well.
From-SVN: r169908
2011-02-08 00:10:51 +00:00
John David Anglin
90488014d0 config.gcc (hppa[12]*-*-hpux11*): Don't set extra_parts.
* config.gcc (hppa[12]*-*-hpux11*): Don't set extra_parts.
	* config/pa/stublib.c (pthread_default_stacksize_np, pthread_mutex_lock,
	pthread_mutex_unlock): Remove.
	* config/pa/t-pa-hpux11: Remove rules to build pthread stubs.
	* config/pa/t-pa64: Likewise.
	* config/pa/pa64-hpux.h (LIB_SPEC): In static links, link against
	shared libc if not linking against libpthread.
	* config/pa/pa-hpux11.h (LIB_SPEC): Likewise.

From-SVN: r169906
2011-02-07 23:51:54 +00:00
Iain Sandoe
689ff841b4 re PR target/47558 (163267 breaks exception traceback in xplor-nih)
2011-02-07  Iain Sandoe  <iains@gcc.gnu.org>

	PR target/47558
	* config/darwin10.h (LINK_GCC_C_SEQUENCE_SPEC): Put -lSystem first
	on 10.6 and later to ensure that we always use the unwinder from
	the system.  Only add -no_compact_unwind when tarteting darwin
	10.6 or later.

From-SVN: r169905
2011-02-07 21:46:10 +00:00
Steve Ellcey
821014aafd re PR target/46997 (new ia64 vector instructions are broken on HP-UX (big-endian))
2011-02-07  Steve Ellcey  <sje@cup.hp.com>

	PR target/46997
	* vect.md (vec_interleave_highv2sf): Change fmix for TARGET_BIG_ENDIAN.
	(vec_interleave_lowv2sf): Ditto.
	(vec_extract_evenv2sf): Add TARGET_BIG_ENDIAN check.
	(vec_extract_oddv2sf): Ditto.

From-SVN: r169904
2011-02-07 21:06:42 +00:00
Mike Stump
62dea57d86 re PR other/42333 (complex division failure on darwin10 with -lm)
PR target/42333
	Add __ieee_divdc3 entry point.
	* config/i386/darwin.h (DECLARE_LIBRARY_RENAMES): Retain ___divdc3
	entry point.
	(SUBTARGET_INIT_BUILTINS): Call darwin_rename_builtins.
	* config/i386/i386.c (TARGET_INIT_LIBFUNCS): Likewise.
	* config/darwin.c (darwin_rename_builtins): Add.
	* config/darwin-protos.h (darwin_rename_builtins): Add.

From-SVN: r169903
2011-02-07 20:52:33 +00:00
Mike Stump
41cf94fbba re PR target/47558 (163267 breaks exception traceback in xplor-nih)
PR target/47558
	Add __ieee_divdc3 entry point.
	* config/i386/darwin.h (DECLARE_LIBRARY_RENAMES): Retain ___divdc3
	entry point.
	(SUBTARGET_INIT_BUILTINS): Call darwin_rename_builtins.
	* config/i386/i386.c (TARGET_INIT_LIBFUNCS): Likewise.
	* config/darwin.c (darwin_rename_builtins): Add.
	* config/darwin-protos.h (darwin_rename_builtins): Add.

From-SVN: r169902
2011-02-07 20:41:50 +00:00
Michael Meissner
ee09a3dd0f Fix PR target/47636
From-SVN: r169901
2011-02-07 20:32:45 +00:00
Kai Tietz
f43c39352e re PR lto/47225 (cross-compile fails while configuring libgcc with "xgcc: fatal error: -fuse-linker-plugin, but liblto_plugin.so not found")
2011-02-07  Kai Tietz  <kai.tietz@onevision.com>

        PR lto/47225
        * Makefile.am (Wc): New helper for encoding -Wc,.
        (liblto_plugin_la_LIBADD): Use Wc for libiberty library.
        (liblto_plugin_la_DEPENDENCIES): Special case pic libiberty.
        * Makefile.in: Regenerated.

From-SVN: r169900
2011-02-07 21:32:17 +01:00
Paolo Carlini
03e38c1a18 re PR libstdc++/47628 (non-compliant C++0x erase methods on STL containers)
2011-02-07  Paolo Carlini  <paolo.carlini@oracle.com>

	PR libstdc++/47628
	* include/bits/stl_tree.h (_Rb_tree::erase(iterator), erase(iterator,
	iterator)): Add back in C++03 mode.
	* testsuite/23_containers/map/modifiers/erase/47628.cc: New.
	* testsuite/23_containers/multimap/modifiers/erase/47628.cc: Likewise.

From-SVN: r169899
2011-02-07 20:15:48 +00:00
Mike Stump
83296cd0f4 darwin.opt (mmacosx-version-min): Update default OS version.
* config/darwin.opt (mmacosx-version-min): Update default OS
	version.

From-SVN: r169898
2011-02-07 20:11:45 +00:00
Benjamin Kosnik
a10b8e2915 PR libstdc++/47560 try two
2011-02-07  Benjamin Kosnik  <bkoz@redhat.com>

	PR libstdc++/47560 try two
	* config/os/hpux/os_defines.h: Guard for C++.

From-SVN: r169897
2011-02-07 20:06:03 +00:00
Denis Chertykov
0f4e946fbd re PR target/47534 (avr libgcc.S fails to build)
PR target/47534
	* config/avr/libgcc.S (exit): Move .endfunc

From-SVN: r169896
2011-02-07 23:00:08 +03:00
Janne Blomqvist
159c2794c8 More style fixes from Ralf
From-SVN: r169893
2011-02-07 21:19:51 +02:00
Janne Blomqvist
f3f2c465f3 texinfo fixes suggested by Ralf Wildenhues
Co-Authored-By: Ralf Wildenhues <Ralf.Wildenhues@gmx.de>

From-SVN: r169892
2011-02-07 21:02:01 +02:00
Joseph Myers
0e048a1661 * MAINTAINERS (option handling): Add self.
From-SVN: r169889
2011-02-07 17:46:07 +00:00
Richard Guenther
1ec8769054 re PR tree-optimization/47615 (ICE: too deep recursion in phi_translate/phi_translate_1 with -ftree-pre -fno-tree-fre -fno-tree-sra)
2011-02-07  Richard Guenther  <rguenther@suse.de>

	PR tree-optimization/47615
	* tree-ssa-sccvn.h (run_scc_vn): Take a vn-walk mode argument.
	* tree-ssa-sccvn.c (default_vn_walk_kind): New global.
	(run_scc_vn): Initialize it.
	(visit_reference_op_load): Use it.
	* tree-ssa-pre.c (execute_pre): Use VN_WALK if in PRE.

	* g++.dg/opt/pr47615.C: New testcase.

From-SVN: r169888
2011-02-07 16:58:17 +00:00
Ulrich Weigand
b46ae6da88 spu.c (spu_init_libfuncs): Install SImode and DImode trapping arithmetic libfuncs.
* config/spu/spu.c (spu_init_libfuncs): Install SImode and
	DImode trapping arithmetic libfuncs.

From-SVN: r169886
2011-02-07 15:26:06 +00:00
Richard Guenther
c0aae19ce3 re PR tree-optimization/47621 (Missed dependencies in address-taken optimization)
2011-02-07  Richard Guenther  <rguenther@suse.de>

	PR tree-optimization/47621
	* tree-ssa.c (non_rewritable_lvalue_p): New function, split out from
	two duplicates ...
	(execute_update_addresses_taken): ... here.  Make it more
	conservative in what we accept.

	* gcc.dg/torture/pr47621.c: New testcase.

From-SVN: r169881
2011-02-07 12:09:31 +00:00
Paolo Bonzini
e6d926d7d3 revert r169877 patch for PR47225
From-SVN: r169878
2011-02-07 10:26:48 +00:00
Kai Tietz
c7b5125d1f re PR lto/47225 (cross-compile fails while configuring libgcc with "xgcc: fatal error: -fuse-linker-plugin, but liblto_plugin.so not found")
2011-02-07  Kai Tietz  <kai.tietz@onevision.com>

        PR lto/47225
        * Makefile.am (Wl): New helper for encoding -Wl,.
        (liblto_plugin_la_LIBADD): Use -Wl for libiberty library.
        * Makefile.in: Regenerated.

From-SVN: r169877
2011-02-07 09:20:56 +01:00
Uros Bizjak
38be4072f9 transpose_optimization_2.f90: Cleanup original dump.
* gfortran.dg/transpose_optimization_2.f90: Cleanup original dump.

From-SVN: r169876
2011-02-07 08:34:57 +01:00
Joseph Myers
afa626390d * update_web_docs_svn: Generate libquadmath-vers.texi.
From-SVN: r169875
2011-02-07 02:35:06 +00:00
GCC Administrator
40cf15684d Daily bump.
From-SVN: r169874
2011-02-07 00:19:33 +00:00
Gerald Pfeifer
124e69e4ca faq.xml: Adjust link to bug database.
* doc/xml/faq.xml: Adjust link to bug database.
	Remove old item on broken header files.

From-SVN: r169870
2011-02-07 00:14:39 +00:00
Joseph Myers
295d926b52 freebsd.h (ASM_SPEC): Define.
* config/sparc/freebsd.h (ASM_SPEC): Define.
	* config/sparc/vxworks.h (ASM_SPEC): Define.

From-SVN: r169867
2011-02-06 18:23:06 +00:00
Joseph Myers
bdeb247159 * config/sparc/sol2-bi.h (CC1_SPEC): Remove %{sun4:} %{target:}.
From-SVN: r169866
2011-02-06 18:22:13 +00:00
Janne Blomqvist
85883d65c0 Add thread-safety section to menu
From-SVN: r169865
2011-02-06 18:38:31 +02:00
Janne Blomqvist
6985b4a110 Document libgfortran thread-safety
From-SVN: r169864
2011-02-06 18:08:03 +02:00
Kai Tietz
b1b0c7e63d re PR lto/47225 (cross-compile fails while configuring libgcc with "xgcc: fatal error: -fuse-linker-plugin, but liblto_plugin.so not found")
2011-02-06  Kai Tietz  <kai.tietz@onevision.com>

	PR lto/47225
	* Makefile.def: Add dependency for install-gcc
	on install-lto-plugin.
	* Makfile.in: Regenerated

From-SVN: r169863
2011-02-06 16:06:56 +01:00
Paul Thomas
90cf3ecc83 re PR fortran/47592 (Multiple function invocation with ALLOCATE (SOURCE=REPEAT('x',bar())))
2011-02-06  Paul Thomas  <pault@gcc.gnu.org>

	PR fortran/47592
	* trans-stmt.c (gfc_trans_allocate): For deferred character
	length allocations with SOURCE, store to the values and string
	length to avoid calculating twice.  Replace gfc_start_block
	with gfc_init_block to avoid unnecessary contexts and to keep
	declarations of temporaries where they should be. Tidy up the
	code a bit.

2011-02-06  Paul Thomas  <pault@gcc.gnu.org>

	PR fortran/47592
	* gfortran.dg/allocate_with_source_1 : New test.

From-SVN: r169862
2011-02-06 14:22:48 +00:00
Steven Bosscher
d5d3781a0d invoke.texi: Remove reference to compiler internals from user documentation.
* doc/invoke.texi: Remove reference to compiler internals from
	user documentation.

	* reg-notes.def: Remove REG_VALUE_PROFILE.
	* combine.c (distribute_notes): Do not handle REG_VALUE_PROFILE.

From-SVN: r169861
2011-02-06 12:35:10 +00:00
Jakub Jelinek
bbc19a6373 Add myself as libquadmath maintainer.
From-SVN: r169860
2011-02-06 09:06:54 +01:00
GCC Administrator
e37139fdd6 Daily bump.
From-SVN: r169859
2011-02-06 00:17:46 +00:00
Jakub Jelinek
c42c09fc41 re PR middle-end/47610 (cp-demangle.c:1970:1: error: cplus_demangle_builtin_types causes a section type conflict)
PR middle-end/47610
	* varasm.c (default_section_type_flags): If decl is NULL,
	and name is .data.rel.ro or .data.rel.ro.local, set SECTION_RELRO
	bit.

	* gcc.dg/pr47610.c: New test.

From-SVN: r169855
2011-02-05 21:35:16 +01:00
Janne Blomqvist
4a9b1f8edc PR 42434 Update SYSTEM_CLOCK documentation
From-SVN: r169854
2011-02-05 22:20:48 +02:00
Jerry DeLisle
9e7628863b re PR libfortran/47567 (Wrong output for small absolute values with F editing)
2011-02-05  Jerry DeLisle  <jvdelisle@gcc.gnu.org>

	PR libgfortran/47567
	* io/write_float.def (output_float): Eliminate some redundant code.
	Adjust width for case of F0.X for values of zero and all other values.
	Expand cases where '*' is set to give cleaner results.

From-SVN: r169853
2011-02-05 17:58:48 +00:00
Janne Blomqvist
02b177518d PR 47571 Fix HPUX bootstrap regression, cleanup
From-SVN: r169852
2011-02-05 18:22:04 +02:00
Jie Zhang
beea27550e re PR rtl-optimization/42631 ("-fcompare-debug failure" with "-O1 -funroll-loops")
PR debug/42631
	* web.c (entry_register): Don't clobber the number of the
	first uninitialized reference in used[].

	testsuite/
	PR debug/42631
	* gcc.dg/pr42631.c: Update test.
	* gcc.dg/pr42631-2.c: New test.

From-SVN: r169851
2011-02-05 12:06:18 +00:00
Thomas Koenig
991fcb7a01 re PR fortran/47574 (internal compiler error: in build2_stat, at tree.c:3795)
2001-02-05  Thomas Koenig  <tkoenig@gcc.gnu.org>

	PR fortran/47574
	* gfortran.dg/pr47574.f90:  New test.

From-SVN: r169850
2011-02-05 10:35:24 +00:00
Ian Lance Taylor
ee6bde766a libgo: Pass compiler flags to mksysinfo.sh.
From-SVN: r169848
2011-02-05 02:00:32 +00:00
Sebastian Pop
a130584a8a Fix PR46194: fix the computation of distance vectors.
2011-02-04  Sebastian Pop  <sebastian.pop@amd.com>

	PR tree-optimization/46194
	* tree-data-ref.c (analyze_miv_subscript): Remove comment.
	(build_classic_dist_vector_1): Do not represent classic distance
	vectors when the access functions are variating in different loops.

	* gcc.dg/autopar/pr46194.c: New.

From-SVN: r169847
2011-02-05 01:39:20 +00:00