Commit Graph

106733 Commits

Author SHA1 Message Date
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
GCC Administrator
a44b6422a3 Daily bump.
From-SVN: r169846
2011-02-05 00:18:46 +00:00
Benjamin Kosnik
2a86b40440 regex_error.h (__throw_regex_error): Not inline.
2011-02-04  Benjamin Kosnik  <bkoz@redhat.com>

	* include/bits/regex_error.h (__throw_regex_error): Not inline.
	* src/functexcept.cc: Add definition.
	* config/abi/pre/gnu.ver: Export.

From-SVN: r169842
2011-02-05 00:14:42 +00:00
Joseph Myers
962101acd8 iris6.opt: New.
* config/mips/iris6.opt: New.
	* config.gcc (mips-sgi-irix6.5*): Use mips/iris6.opt.

From-SVN: r169841
2011-02-04 23:14:48 +00:00
Richard Henderson
55eaaa5bfb re PR target/46997 (new ia64 vector instructions are broken on HP-UX (big-endian))
2011-02-04  Richard Henderson  <rth@redhat.com>
	    Steve Ellcey  <sje@cup.hp.com>

	PR target/46997
	* config/ia64/predicates.md (mux1_brcst_element): New.
	* config/ia64/ia64-protos.h (ia64_unpack_assemble): New.
	* config/ia64/ia64.c (ia64_unpack_assemble): New.
	(ia64_unpack_sign): New.
	(ia64_expand_unpack): Rewrite using new routines.
	(ia64_expand_widen_sum): Ditto.
	(ia64_expand_dot_prod_v8qi): Ditto.
	* config/ia64/vect.md (mulv8qi3): Rewrite to use new
	routines, add endian check.
	(pmpy2_even): Rename from pmpy2_r, add endian check.
	(pmpy2_odd): Rename from pmpy2_l, add endian check.
	(vec_widen_smult_lo_v4hi): Rewrite using new routines.
	(vec_widen_smult_hi_v4hi): Ditto.
	(vec_widen_umult_lo_v4hi): Ditto.
	(vec_widen_umult_hi_v4hi): Ditto.
	(mulv2si3): Change endian checks.
	(sdot_prodv4hi): Rewrite with new calls.
	(udot_prodv4hi): New.
	(vec_pack_ssat_v4hi): Add endian check.
	(vec_pack_usat_v4hi): Ditto.
	(vec_pack_ssat_v2si): Ditto.
	(max1_even): Rename from max1_r, add endian check.
	(max1_odd): Rename from max1_l, add endian check.
	(*mux1_rev): Format change.
	(*mux1_mix): Ditto.
	(*mux1_shuf): Ditto.
	(*mux1_alt): Ditto.
	(*mux1_brcst_v8qi): Use new predicate.
	(vec_extract_evenv8qi): Remove endian check.
	(vec_extract_oddv8qi): Ditto.
	(vec_interleave_lowv4hi): Format change.
	(vec_interleave_highv4hi): Ditto.
	(mix2_even): Rename from mix2_r, add endian check.
	(mix2_odd): Rename from mux2_l, add endian check.
	(*mux2): Fix mask setting for TARGET_BIG_ENDIAN.
	(vec_extract_evenodd_helper): Format change.
	(vec_extract_evenv4hi): Remove endian check.
	(vec_extract_oddv4hi): Remove endian check.
	(vec_interleave_lowv2si): Format change.
	(vec_interleave_highv2si): Format change.
	(vec_initv2si): Remove endian check.
	(vecinit_v2si): Add endian check.
	(reduc_splus_v2sf): Add endian check.
	(reduc_smax_v2sf): Ditto.
	(reduc_smin_v2sf): Ditto.
	(vec_initv2sf): Remove endian check.
	(fpack): Add endian check.
	(fswap): Add endian check.
	(vec_interleave_highv2sf): Add endian check.
	(vec_interleave_lowv2sf): Add endian check.
	(fmix_lr): Add endian check.
	(vec_setv2sf): Format change.
	(*vec_extractv2sf_0_be): Use shift to extract operand.
	(*vec_extractv2sf_1_be): New.
	(vec_pack_trunc_v4hi): Add endian check.
	(vec_pack_trunc_v2si): Format change.

Co-Authored-By: Steve Ellcey <sje@cup.hp.com>

From-SVN: r169840
2011-02-04 21:46:45 +00:00
H.J. Lu
4946bd35e9 Add a testcase for PR tree-optimization/43695.
2011-02-04  H.J. Lu  <hongjiu.lu@intel.com>

	PR tree-optimization/43695
	* g++.dg/ipa/pr43695.C: New.

From-SVN: r169835
2011-02-04 09:23:30 -08:00
Jakub Jelinek
dcde5957ce re PR inline-asm/23200 (rejects "i"(&var + 1))
PR inline-asm/23200
	* tree-ssa-ter.c (is_replaceable_p): Add TER argument.  Don't
	do bb, locus and block comparison and disallow loads if it is
	not set.
	(stmt_is_replaceable_p): New function.
	(process_replaceable, find_replaceable_in_bb): Adjust is_replaceable_p
	callers.
	* expr.c (expand_expr_real_1) <case SSA_NAME>: If
	get_gimple_for_ssa_name try for EXPAND_INITIALIZER harder to use
	SSA_NAME_DEF_STMT.
	* tree-flow.h (stmt_is_replaceable_p): New prototype.

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

From-SVN: r169831
2011-02-04 16:50:51 +01:00
Joseph Myers
a64a8e5a13 xilinx.opt: New.
* config/rs6000/xilinx.opt: New.
	* config.gcc (powerpc-xilinx-eabi*): Use rs6000/xilinx.opt.

From-SVN: r169827
2011-02-04 13:02:18 +00:00
Joseph Myers
4da2ed2ff2 * config/mips/mips.opt (EB, EL, noasmopt): New Driver options.
From-SVN: r169826
2011-02-04 13:01:12 +00:00
Ralf Corsepius
0a9e55e1bf Fix typo in previous commit.
From-SVN: r169824
2011-02-04 08:28:45 +01:00
Ralf Corsepius
07ecaaf9ea crossconfig.m4 (GLIBCXX_CROSSCONFIG): Add *-rtems*.
2011-02-04  Ralf Corsépius <ralf.corsepius@rtems.org.>

	* crossconfig.m4 (GLIBCXX_CROSSCONFIG): Add *-rtems*.
	* configure: Regenerate.

From-SVN: r169823
2011-02-04 08:26:57 +01:00
Ralf Wildenhues
4e6ad4226d Fix PR java/21206: Unrecognized option '-Wl,-rpath' for jv-convert
libjava/:
	PR java/21206
	* configure.ac (LDLIBICONV): New substituted variable, with
	instances of '-Wl,' removed from LIBICONV.
	* configure: Regenerate.
	* libgcj.spec.in: Use @LDLIBICONV@ not @LIBICONV@.
	* Makefile.in: Regenerate.
	* gcj/Makefile.in: Likewise.
	* include/Makefile.in: Likewise.
	* testsuite/Makefile.in: Likewise.

From-SVN: r169822
2011-02-04 05:51:57 +00:00
Ian Lance Taylor
084996f1d1 Implement __sync_fetch_and_add_4 if necessary.
From-SVN: r169820
2011-02-04 00:49:47 +00:00
GCC Administrator
6dc5461821 Daily bump.
From-SVN: r169819
2011-02-04 00:18:31 +00:00
Jonathan Wakely
a7a871771c re PR c++/47589 (internal compiler error: Segmentation fault)
2011-02-03  Jonathan Wakely  <jwakely.gcc@gmail.com>

	PR c++/47589
	* g++.dg/pr47589.C: New test.

From-SVN: r169815
2011-02-03 22:47:37 +00:00
Anatoly Sokolov
a6e508f91d xtensa.h (PREFERRED_RELOAD_CLASS, [...]): Remove.
* config/xtensa/xtensa.h (PREFERRED_RELOAD_CLASS,
	PREFERRED_OUTPUT_RELOAD_CLASS): Remove.
	* config/xtensa/xtensa-protos.h (xtensa_preferred_reload_class,
	secondary_reload_info, xtensa_secondary_reload): Remove.
	* config/xtensa/xtensa.c (TARGET_PREFERRED_RELOAD_CLASS,
	TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
	(xtensa_preferred_reload_class): Make static. Change return and
	'rclass' argument type to reg_class_t. Remove 'isoutput' argument.
	Use CONST_DOUBLE_P predicate.
	(xtensa_preferred_output_reload_class): New function.
	(xtensa_secondary_reload): Make static.

From-SVN: r169810
2011-02-03 23:14:10 +03:00
Joseph Myers
82dc0de3f7 microblaze.opt (Zxl-mode-bootstrap, [...]): New Driver options.
* config/microblaze/microblaze.opt (Zxl-mode-bootstrap,
	Zxl-mode-executable, Zxl-mode-novectors, Zxl-mode-xilkernel,
	Zxl-mode-xmdstub, mxl-mode-xilkernel): New Driver options.

From-SVN: r169809
2011-02-03 20:03:11 +00:00
Dodji Seketeli
25aea4e968 re PR c++/47398 (tree check: accessed elt 10 of tree_vec with 9 elts in tsubst, at cp/pt.c:10500)
Fix PR c++/47398

gcc/cp/

	PR c++/47398
	* tree.c (cp_tree_equal)<TEMPLATE_PARM_INDEX>: Take the number of
	template parameters in account.

gcc/testsuite/

	PR c++/47398
	* g++.dg/template/typedef37.C: New test.
	* g++.dg/template/param1.C: Adjust expected error message.

From-SVN: r169807
2011-02-03 20:55:00 +01:00
Jakub Jelinek
7fece97913 re PR middle-end/31490 (Compile error section type conflict)
PR middle-end/31490
	* output.h (SECTION_RELRO): Define.
	(SECTION_MACH_DEP): Adjust.
	(get_variable_section): New prototype.
	* varpool.c (varpool_finalize_named_section_flags): New function.
	(varpool_assemble_pending_decls): Call it.
	* cgraph.h (varpool_finalize_named_section_flags): New prototype.
	* cgraphunit.c (cgraph_output_in_order): Call
	varpool_finalize_named_section_flags.
	* varasm.c (get_section): Allow section flags conflicts between
	relro and read-only sections if the section hasn't been declared yet.
	Set SECTION_OVERRIDE after diagnosing section type conflict.
	(get_variable_section): No longer static.
	(default_section_type_flags): Use SECTION_WRITE | SECTION_RELRO for
	readonly sections that need relocations.
	(decl_readonly_section_1): New function.
	(decl_readonly_section): Use it.

	Revert:
	2010-11-17  Dinar Temirbulatov <dtemirbulatov@gmail.com>
		    Steve Ellcey  <sje@cup.hp.com>

	PR middle-end/31490
	* varasm.c (categorize_decl_for_section): Ignore reloc_rw_mask
	if section attribute used.

	* gcc.dg/pr31490-2.c: New test.
	* gcc.dg/pr31490-3.c: New test.
	* gcc.dg/pr31490-4.c: New test.

From-SVN: r169804
2011-02-03 20:12:07 +01:00
Jakub Jelinek
d18d547862 darwin.h (SECTION_NO_ANCHOR): Remove.
* config/darwin.h (SECTION_NO_ANCHOR): Remove.
	* config/darwin.c (SECTION_NO_ANCHOR): Define.
	(darwin_init_sections): Remove assertion.

From-SVN: r169802
2011-02-03 20:08:42 +01:00
Nathan Froyd
ba9e6dd56c re PR c++/46890 (Failed to compile scummvm's player_v4a.cpp)
gcc/c-family/
	PR c++/46890
	* c-common.h (keyword_is_decl_specifier): Declare.
	* c-common.c (keyword_is_decl_specifier): Define.
	(keyword_is_function_specifier): New function.

gcc/cp/
	PR c++/46890
	* parser.c (cp_parser_class_specifier): Fix setting of
	want_semicolon.

gcc/testsuite/
	PR c++/46890
	* g++.dg/parser/semicolon3.C: Adjust.
	* g++.dg/parser/semicolon4.C: New testcase.
	* g++.dg/pr46890.C: New testcase.


Co-Authored-By: Jakub Jelinek <jakub@redhat.com>

From-SVN: r169797
2011-02-03 17:16:17 +00:00
Paolo Carlini
4ba67a0659 re PR c++/29571 (ICE with invalid static const member)
2011-02-03  Paolo Carlini  <paolo.carlini@oracle.com>

	PR c++/29571
	* g++.dg/init/pr29571.C: New.

From-SVN: r169796
2011-02-03 17:03:33 +00:00