Commit Graph

95751 Commits

Author SHA1 Message Date
Bernd Schmidt
5254cd509f gcc/
From Mike Frysinger  <michael.frysinger@analog.com>
	* config/bfin/bfin-protos.h (bfin_cpu_type): Add BFIN_CPU_BF542M,
	BFIN_CPU_BF544M, BFIN_CPU_BF547M, BFIN_CPU_BF548M, and BFIN_CPU_BF549M.
	* config/bfin/bfin.c (bfin_cpus[]): Add 0.3 for bf542m, bf544m, bf547m,
	bf548m, and bf549m.
	* config/bfin/bfin.h (TARGET_CPU_CPP_BUILTINS): Define __ADSPBF542M__
	for BFIN_CPU_BF542M, __ADSPBF544M__ for BFIN_CPU_BF544M, __ADSPBF547M__
	for BFIN_CPU_BF547M, __ADSPBF548M__ for BFIN_CPU_BF548M, and
	__ADSPBF549M__ for BFIN_CPU_BF549M.
	* config/bfin/t-bfin-elf (MULTILIB_MATCHES): Select bf532-none for
	bf542m-none, bf544m-none, bf547m-none, bf548m-none, and bf549m-none.
	* config/bfin/t-bfin-linux (MULTILIB_MATCHES): Likewise.
	* config/bfin/t-bfin-uclinux (MULTILIB_MATCHES): Likewise.
	* doc/invoke.texi (Blackfin Options): Document that -mcpu now accepts
	bf542m, bf544m, bf547m, bf548m, and bf549m.

gcc/testsuite/
	From Mike Frysinger  <michael.frysinger@analog.com>
	* gcc.target/bfin/mcpu-bf542m.c: New file.
	* gcc.target/bfin/mcpu-bf544m.c: Likewise.
	* gcc.target/bfin/mcpu-bf546m.c: Likewise.
	* gcc.target/bfin/mcpu-bf548m.c: Likewise.
	* gcc.target/bfin/mcpu-bf549m.c: Likewise.

From-SVN: r151488
2009-09-07 18:59:49 +00:00
Bernd Schmidt
4dce27df21 From Jie Zhang <jie.zhang@analog.com>:
* config/bfin/bfin-protos.h (enum bfin_cpu_type, bfin_cpu_type,
	bfin_si_revision, bfin_workarounds): Move these ...
	* config/bfin/bfin.h: ... here.

From-SVN: r151487
2009-09-07 18:42:50 +00:00
Bernd Schmidt
c7cb1555e5 bfin.md (UNSPEC_VOLATILE_STALL): New constant.
* config/bfin/bfin.md (UNSPEC_VOLATILE_STALL): New constant.
	(attr "addrtype"): New member "spreg".
	Use it if mem_spfp_address_operand is true for the address.
	(attr "type"): New entry "stall".
	(cpu_unit "load"): New.
	(insn_reservations "load32", "loadp", "loadi"): Add reservation of
	"load".
	(insn_reservation "loadsp"): New.
	(insn_reservation "load_stall1"): New.
	(insn_reservation "load_stall3"): New.
	(stall): New insn.	
	* config/bfin/predicates.md (const1_operand, const3_operand): New.
	(mem_p_address_operand): Exclude stack and frame pointer based
	addresses.
	(mem_spfp_address_operand): New; match them here.
	* config/bfin/bfin.c (add_sched_insns_for_speculation): New function.
	(bfin_reorg): Call it if scheduling insns.
	(bfin_gen_bundles): Remove dummy insns created by
	add_sched_insns_for_speculation.

From-SVN: r151486
2009-09-07 18:06:51 +00:00
Martin Jambor
4a50e99c65 re PR middle-end/41282 (Revision 151394 failed to compile mplayer)
2009-09-07  Martin Jambor  <mjambor@suse.cz>

	PR middle-end/41282
	* tree-sra.c (create_artificial_child_access): Return NULL if
	build_ref_for_offset fails.
	(propagate_subacesses_accross_link): Allow build_ref_for_offset
	and create_artificial_child_access to fail.

	* testsuite/gcc.c-torture/compile/pr41282.c: New test.

From-SVN: r151484
2009-09-07 19:08:12 +02:00
Dmitry Gorbachev
e5b258a4c9 re PR c++/41214 (Null pointer dereferenced in _Unwind_SetGR())
PR c++/41214
        * unwind-dw2.c (uw_init_context_1): Mark noinline.
        * config/ia64/unwind-ia64.c (uw_init_context_1): Likewise.
        * config/xtensa/unwind-dw2-xtensa.c (uw_init_context_1): Likewise.

From-SVN: r151482
2009-09-07 08:41:52 -07:00
Thomas Koenig
6c145259f5 re PR fortran/41197 (ICE with ALLOCATE and nonscalar STAT= variable)
2009-09-07  Thomas Koenig  <tkoenig@gcc.gnu.org>

	PR fortran/41197
	* resolve_c (resolve_allocate_deallocate):  Complain
	if stat or errmsg varaible is an array.

2009-09-07  Thomas Koenig  <tkoenig@gcc.gnu.org>

	PR fortran/41197
	* gfortran.dg/allocate_alloc_opt_1.f90:  Use scalar
	variables for stat and errmsg.
	* gfortran.dg/deallocate_alloc_opt_1.f90:  Likewise.
	* gfortran.dg/allocate_stat_2.f90:  New test.

From-SVN: r151480
2009-09-07 15:23:15 +00:00
Bernd Schmidt
8ff7f82415 bfin.c (bfin_optimize_loop): When creating a new basic block, ensure it has an exit edge.
gcc/
	* config/bfin/bfin.c (bfin_optimize_loop): When creating a new basic
	block, ensure it has an exit edge.  Emit a barrier after a jump.

gcc/testsuite/
	* gcc.c-torture/compile/20090907-1.c: New test.

From-SVN: r151479
2009-09-07 15:13:40 +00:00
Nick Clifton
3beb864c19 gcc.c (this_is_linker_script): New variable.
* gcc.c (this_is_linker_script): New variable.  Like
        this_is_library_file but for the %T constructor.
        (end_going_arg): If this_is_linker_script is set then locate the
        script and insert a --script switch before it
        (do_spec_2): Initialise this_is_linker_script.
        (do_spec_1): Likewise.  Handle %T construct.
        (eval_spec_function): Preserve this_is_linker_script.
        * doc/invoke.texi: Document %T construct in spec files.
        * config/m32c/m32c.h (LIB_SPEC): Use it.

From-SVN: r151477
2009-09-07 14:48:02 +00:00
H.J. Lu
d4e0a1c056 re PR libstdc++/41280 (Revision 151352 breaks 32bit libstdc++)
2009-09-07  H.J. Lu  <hongjiu.lu@intel.com>
            Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>

	PR libstdc++/41280
	* configure.ac: Run "${multi_basedir}/config-ml.in" to generate
	MULTISUBDIR = in subdirectory Makefiles, with ml_norecursion set.
	* configure: Regenerate.

Co-Authored-By: Ralf Wildenhues <Ralf.Wildenhues@gmx.de>

From-SVN: r151476
2009-09-07 13:38:27 +00:00
Andreas Krebbel
3fce100b40 rtl.h (PREFETCH_SCHEDULE_BARRIER_P): New macro.
2009-09-07  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>

	* rtl.h (PREFETCH_SCHEDULE_BARRIER_P): New macro.	
	* sched-deps.c (sched_analyze_2): Make prefetches a hard barrier
	when volatile flag is set.
	* doc/rtl.texi (PREFETCH_SCHEDULE_BARRIER_P): Add documentation pieces.

From-SVN: r151475
2009-09-07 10:30:32 +00:00
Laurent GUERBY
2dcbb2c0bf targtyps.c: Add missing include for tm_p.h.
2009-09-07  Laurent GUERBY  <laurent@guerby.net>

	* gcc-interface/targtyps.c: Add missing include for tm_p.h.
	* gcc-interface/Make-lang.in: Update dependencies.

From-SVN: r151474
2009-09-07 09:25:08 +00:00
Laurent GUERBY
e9491f468a make.adb: Add missing documentation for multilib handling.
2009-09-07  Laurent GUERBY  <laurent@guerby.net>

        * make.adb: Add missing documentation for multilib handling.

From-SVN: r151473
2009-09-07 09:00:51 +00:00
Eric Botcazou
7717df30b1 Fix typo
From-SVN: r151468
2009-09-07 06:25:59 +00:00
GCC Administrator
a7303f2bde Daily bump.
From-SVN: r151466
2009-09-07 00:17:01 +00:00
Eric Botcazou
1362aa3131 re PR bootstrap/41241 (bootstrap comparison failure)
PR bootstrap/41241
	* combine-stack-adj.c (try_apply_stack_adjustment): Handle stores.
	(combine_stack_adjustments_for_block): Allow insns between stack
	adjustments and stores with corresponding with pre-(dec|inc)rement
	or pre-modify.

From-SVN: r151463
2009-09-06 21:15:45 +00:00
Jakub Jelinek
90588a106e re PR bootstrap/41241 (bootstrap comparison failure)
PR bootstrap/41241
	* combine-stack-adj.c (struct csa_memlist): Rename to...
	(struct csa_reflist): ... this.  Rename mem field to ref.
	(free_csa_memlist): Rename to...
	(free_csa_reflist): ... this.
	(record_one_stack_memref): Rename to...
	(record_one_stack_ref): ... this.  Handle also REG_P.
	(try_apply_stack_adjustment): Handle also REG_P.
	(struct record_stack_memrefs_data): Rename to...
	(struct record_stack_refs_data): ... this.  Rename memlist field to
	reflist.
	(record_stack_memrefs): Rename to...
	(record_stack_refs): ... this.  For DEBUG_INSNs keep traversing
	subexpressions instead of failing when a MEM contains SP references.
	For SP itself in DEBUG_INSNs queue it also onto reflist chain.
	(combine_stack_adjustments_for_block): Adjust for mem to ref renaming.

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

From-SVN: r151462
2009-09-06 21:31:55 +02:00
Richard Guenther
3797a0ff2f re PR c++/41144 (ice for legal code with -O2 in get_alias_set)
2009-09-06  Richard Guenther  <rguenther@suse.de>

	PR middle-end/41144
	* tree.c (build_array_type): Do not record types marked
	with structural equality in the canonical type hashtable.

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

From-SVN: r151461
2009-09-06 16:49:48 +00:00
Richard Guenther
3c45b96b27 re PR middle-end/41261 (ice with -O2 -fprofile-arcs when compiling Linux kernel)
2009-09-06  Richard Guenther  <rguenther@suse.de>

	PR middle-end/41261
	* tree-ssa-alias.c (refs_may_alias_p_1): Bail out for function decls.

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

From-SVN: r151460
2009-09-06 16:48:41 +00:00
Paolo Carlini
f7d601a5bd re PR libstdc++/41267 (vector<>::resize() from an empty vector calls memmove for 0 bytes (twice), wasting a lot of cpu time in a production PowerDNS)
2009-09-06  Paolo Carlini  <paolo.carlini@oracle.com>

	PR libstdc++/41267
	* include/bits/stl_algobase.h (__copy_move::__copy_m,
	__copy_move_backward::__copy_move_b): Don't call __builtin_memmove
	with a null third argument.

From-SVN: r151459
2009-09-06 15:41:38 +00:00
GCC Administrator
0d8d6c874e Daily bump.
From-SVN: r151458
2009-09-06 00:16:51 +00:00
Richard Guenther
6a12956780 re PR tree-optimization/41181 (internal compiler error when using x86_64-w64-mingw32-gcc to build ffmpeg ac3enc.c)
2009-09-05  Richard Guenther  <rguenther@suse.de>

	PR middle-end/41181
	* tree-ssa-ccp.c (maybe_fold_stmt_addition): Use the correct type.

	* gcc.c-torture/compile/pr41181.c: New testcase.

From-SVN: r151455
2009-09-05 19:32:25 +00:00
Richard Guenther
432b4b3129 re PR c++/41273 (ICE in add_virtual_operand, at tree-ssa-operands.c:638)
2009-09-05  Richard Guenther  <rguenther@suse.de>

	PR debug/41273
	* tree-ssa-operands.c (get_tmr_operands): Pass through opf_no_vops.

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

From-SVN: r151454
2009-09-05 15:15:16 +00:00
Richard Guenther
575140c2f2 re PR tree-optimization/41271 (FAIL: gcc.dg/matrix/matrix-2.c scan-ipa-dump-times matrix-reorg "Flattened 2 dimensions" 1)
2009-09-05  Richard Guenther  <rguenther@suse.de>

	PR middle-end/41271
	* tree-ssa.c (useless_type_conversion_p): Drop qualifiers
	before comparing function argument types.

From-SVN: r151453
2009-09-05 15:14:12 +00:00
Paul Thomas
b2acf59460 re PR fortran/41258 (internal compiler error: in find_typebound_proc_uop, at fortran/symbol.c:4575)
2009-09-05  Paul Thomas  <pault@gcc.gnu.org>

	PR fortran/41258
	* primary.c (gfc_match_varspec): Do not look for typebound
	procedures unless the derived type has a f2k_derived namespace.

2009-09-05  Paul Thomas  <pault@gcc.gnu.org>

	PR fortran/41258
	* gfortran.dg/typebound_proc_12.f90 : New test.

From-SVN: r151451
2009-09-05 14:20:51 +00:00
Francois-Xavier Coudert
896237cdcd re PR target/41024 (driver passes wrong parameter to as)
PR target/41024
	* config/i386/mingw-w64.h (ASM_SPEC): Pass -v instead of -V to
	the assembler.

From-SVN: r151450
2009-09-05 14:14:28 +00:00
Benjamin Kosnik
880b527fd8 revert: compatibility.cc: Make C++0x safe, add in explicit casts to bool for stream sentry objects.
2009-09-04  Benjamin Kosnik  <bkoz@redhat.com>

	Revert.
	2009-08-06  Benjamin Kosnik  <bkoz@redhat.com>
	* src/compatibility.cc: Make C++0x safe, add in explicit casts to
	bool for stream sentry objects.
	* include/bits/istream.tcc: Same.
	* include/bits/ostream.tcc: Same.
	* include/bits/basic_string.tcc: Same.
	* include/bits/ostream_insert.h: Same.
	* src/istream.cc: Same.

From-SVN: r151445
2009-09-05 00:18:07 +00:00
GCC Administrator
e8fc61f753 Daily bump.
From-SVN: r151444
2009-09-05 00:16:50 +00:00
Uros Bizjak
e139ab343b revert: alpha.c (alpha_output_mi_thunk_osf): Allocate insn locators before emit_insn is called.
2009-09-04  Uros Bizjak  <ubizjak@gmail.com>

	Revert:
	2009-08-18  Uros Bizjak  <ubizjak@gmail.com>

	* config/alpha/alpha.c (alpha_output_mi_thunk_osf): Allocate insn
	locators before emit_insn is called.

From-SVN: r151441
2009-09-04 21:57:51 +02:00
Vladimir Makarov
1fe281160d re PR bootstrap/41241 (bootstrap comparison failure)
2009-09-04  Vladimir Makarov  <vmakarov@redhat.com>

	PR bootstrap/41241
	* ira.c (update_equiv_reg): Revert my previous patch for the PR.
	* reginfo.c (resize_reg_info): Call allocate_reg_info if necessary.
	(reginfo_init): Don't call allocate_reg_info.

From-SVN: r151440
2009-09-04 19:36:26 +00:00
Uros Bizjak
14e58be032 re PR target/41262 (ICE compiling 09/03/09 snapshot of gcc on DEC Alpha)
PR target/41262
	* config/alpha/alpha.c (alpha_does_function_need_gp): Use
	NONDEBUG_INSN_P instead of INSN_P.

From-SVN: r151439
2009-09-04 21:32:04 +02:00
Alexandre Oliva
3157b0c242 re PR debug/41225 (VTA: internal compiler error: in vect_stmt_relevant_p, at tree-vect-stmts.c:150)
gcc/ChangeLog:
PR debug/41225
* tree-vect-stmts.c (vect_stmt_relevant_p): Skip debug uses.
gcc/testsuite/ChangeLog:
PR debug/41225
* gfortran.dg/pr41225.f90: New.

From-SVN: r151438
2009-09-04 19:03:49 +00:00
Alexandre Oliva
510bc854f5 re PR target/41252 (Var tracking by default breaks arm-none-eabi build of newlib)
PR target/41252
* config/arm/vfp.md (*cmpdf_split_vfp): Fix src mode in the second
pattern of the split.

From-SVN: r151437
2009-09-04 18:59:50 +00:00
Alexandre Oliva
c45ae2c8db * compare-debug: Grep for blank before dash to avoid grep -e.
From-SVN: r151436
2009-09-04 18:59:15 +00:00
Alexandre Oliva
5646b7b97e configure.ac (with-build-config): Document.
* configure.ac (with-build-config): Document.  Handle without.
Handle missing argument.
* configure: Rebuilt.

From-SVN: r151435
2009-09-04 18:58:34 +00:00
Alexandre Oliva
b98a26e6d0 guality.h: Include stdint.h.
* gcc.dg/guality/guality.h: Include stdint.h.  Drop unnecessary
unistd.h, sys/types.h and sys/wait.h.
(gualchk_t): New.
(GUALCVT): New.
(GUALCHKXPR, GUALCHKVAL, GUALCHKFLA): Use it.
(GUALITY_GDB_REDIRECT): New.
(GUALITY_GDB_ARGS): Use it.

From-SVN: r151434
2009-09-04 18:56:39 +00:00
Alexandre Oliva
6751b6f658 toplev.c (process_options): Move setter of flag_var_tracking before other tests that depend on it.
* toplev.c (process_options): Move setter of flag_var_tracking
before other tests that depend on it.  Move down setter of
flag_rename_registers.  Don't enable var-tracking-assignments
by default if selective scheduling is enabled.  Warn if both
are enabled.

From-SVN: r151433
2009-09-04 18:55:45 +00:00
Alexandre Oliva
24277d3405 var-tracking.c (dv_is_decl_p): Adjust NULL behavior to match comment.
* var-tracking.c (dv_is_decl_p): Adjust NULL behavior to match
comment.  Use switch statement to catch overlaps between rtx
and tree codes.  Accept FUNCTION_DECLs in addition to those in...
(IS_DECL_CODE): ... here. Remove.
(check_value_is_not_decl): Remove.
(dv_from_decl, dv_from_value): Check after conversion.

From-SVN: r151432
2009-09-04 18:55:25 +00:00
Richard Guenther
5f1a9ebbc1 re PR middle-end/41257 (Bogus error '*.LTHUNK0' aliased to undefined symbol '_ZN1CD1Ev')
2009-09-04  Richard Guenther  <rguenther@suse.de>

	PR middle-end/41257
	* (cgraph_finalize_compilation_unit): Move finalizing aliases
	after emitting tunks.  Move emitting thunks and ctors from ...
	(cgraph_optimize): ... here.  Remove redundant
	cgraph_analyze_functions.
	* varasm.c (find_decl_and_mark_needed): Remove no longer
	necessary check.
	(finish_aliases_1): Adjust check for thunk aliases.

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

From-SVN: r151431
2009-09-04 18:54:01 +00:00
Daniel Gutson
8d142c15c9 arm.md (ctzsi2): Added braces to avoid warning that broke booststrap.
2009-09-04  Daniel Gutson  <dgutson@codesourcery.com>

        * config/arm/arm.md (ctzsi2): Added braces
        to avoid warning that broke booststrap.

From-SVN: r151427
2009-09-04 15:42:05 +00:00
Ozkan Sezer
0e497905ce re PR target/39065 (libiberty hashtab.c:hash_pointer() needs intptr_t)
2009-09-04  Ozkan Sezer  <sezeroz@gmail.com>

	PR target/39065
	* configure.ac: Replace AC_CHECK_TYPE() for intptr_t and uintptr_t
	with AC_TYPE_INTPTR_T and AC_TYPE_UINTPTR_T.
	* config.in: Regenerated.
	* configure: Regenerated.

From-SVN: r151423
2009-09-04 07:33:16 -07:00
Martin Jambor
22fc64b4d9 re PR tree-optimization/41112 (ACATS c43205b fails at -O2 (tree-sra))
2009-09-04  Martin Jambor  <mjambor@suse.cz>

	PR tree-optimization/41112
	* tree-sra.c (build_ref_for_offset_1): Signal that we cannot
	handle variable-bounded arrays.
	(expr_with_var_bounded_array_refs_p): New function.
	(analyze_access_subtree): Call expr_with_var_bounded_array_refs_p.

	* testsuite/gnat.dg/array8.adb: New test.

From-SVN: r151420
2009-09-04 13:08:12 +02:00
Wolfgang Gellerich
2cdece442d 2097.md: Removed two incorrect bypasses.
2009-09-04  Wolfgang Gellerich  <gellerich@de.ibm.com>

	* config/s390/2097.md: Removed two incorrect bypasses.
	(z10_fsimpdf): Fixed latency.
	(z10_fhex): New insn_reservation.
	(z10_floaddf): Fixed latency.
	(z10_floadsf): Fixed latency.
	(z10_ftrunctf): Fixed latency.
	(z10_ftruncdf): Fixed latency.
	* config/s390/s390.c (z10_cost): Fixed values.
	(s390_adjust_priority): Added z10 path.
	* config/s390/s390.md (type): Added fhex.
	(*mov<mode>_64dfp): Updated type attribute.
	(*mov<mode>_64): Updated type attribute.
	(*mov<mode>_31): Updated type attribute.
	(*mov<mode>"): Likewise.
	* config/s390/2084.md (x_fsimpdf): Updated condition.

From-SVN: r151419
2009-09-04 10:11:00 +00:00
Tobias Burnus
aa4042b15e re PR fortran/41219 (libgfortran build warnings)
2009-09-04  Tobias Burnus  <burnus@net-b.de>

        PR fortran/41219
        * intrinsics/getlog.c: Define _POSIX for MINGW32.

From-SVN: r151417
2009-09-04 11:25:00 +02:00
Andreas Krebbel
b09062ee0b s390.md ("*fmadd<mode>", [...]): Enable mem RTXs in the predicate for operand 1.
2009-09-04  Andreas Krebbel  <krebbel1@de.ibm.com>

	* config/s390/s390.md ("*fmadd<mode>", "*fmsub<mode>"): Enable mem
	RTXs in the predicate for operand 1.

From-SVN: r151416
2009-09-04 07:48:09 +00:00
Jakub Jelinek
4d17b2f695 guality.exp: Only run guality tests if a trivial testcase using guality.h compiles and links...
* gcc.dg/guality/guality.exp: Only run guality tests if a trivial
	testcase using guality.h compiles and links and if a global variable
	can be verified by gdb.

From-SVN: r151410
2009-09-04 08:56:55 +02:00
Daniel Gutson
ca96ed43b2 arm.md (UNSPEC_RBIT): New constant.
2009-09-03  Daniel Gutson  <dgutson@codesourcery.com>

	* config/arm/arm.md (UNSPEC_RBIT): New constant.
	(rbitsi2): New insn.
	(ctzsi2): New expand.
	* config/arm/arm.h (CTZ_DEFINED_VALUE_AT_ZERO): New macro.

	testsuite/
	* gcc.target/arm/ctz.c: New test case.

From-SVN: r151402
2009-09-04 02:52:08 +00:00
Daniel Gutson
9af43ec7a2 Daniel Gutson added.
From-SVN: r151400
2009-09-04 00:20:27 +00:00
GCC Administrator
a66627ed30 Daily bump.
From-SVN: r151399
2009-09-04 00:17:45 +00:00
Martin Jambor
687b5078a5 tree-sra.c (duplicate_expr_for_different_base): Removed.
2009-09-03  Martin Jambor  <mjambor@suse.cz>

	* tree-sra.c (duplicate_expr_for_different_base): Removed.
	(create_artificial_child_access): Use build_ref_for_offset instead
	of duplicate_expr_for_different_base.
	(propagate_subacesses_accross_link): Likewise.

From-SVN: r151394
2009-09-03 23:25:00 +02:00
Eric Botcazou
755d55bbe5 Fix long line
From-SVN: r151393
2009-09-03 20:26:12 +00:00