Commit Graph

95642 Commits

Author SHA1 Message Date
Richard Guenther 70a6b17e84 re PR tree-optimization/41101 (ICE in compute_antic, at tree-ssa-pre.c:2419)
2009-09-09  Richard Guenther  <rguenther@suse.de>

	PR tree-optimization/41101
	* tree-ssa-pre.c (maximal_set): Remove.
	(compute_antic_aux): Treat the maximal set as implicitly all ones.
	Defer all blocks we didn't visit at least one successor.
	(add_to_exp_gen): Do not add to the maximal set.
	(make_values_for_phi): Likewise.
	(compute_avail): Likewise.
	(init_pre): Do not allocate the maximal set.
	(execute_pre): Do not dump it.

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

From-SVN: r151561
2009-09-09 15:04:27 +00:00
Martin Jambor 7648edc4d3 tree-cfg.c (verify_gimple_phi): Check that gimple_phi_result is an SSA_NAME rather than a is_gimple_variable.
2009-09-09  Martin Jambor  <mjambor@suse.cz>

	* tree-cfg.c (verify_gimple_phi): Check that gimple_phi_result is
	an SSA_NAME rather than a is_gimple_variable.

From-SVN: r151560
2009-09-09 16:44:23 +02:00
Richard Guenther 5a4b005fef re PR middle-end/41317 (folding causes strict aliasing violation)
2009-09-09  Richard Guenther  <rguenther@suse.de>

	PR middle-end/41317
	* tree-ssa-ccp.c (maybe_fold_offset_to_component_ref): Remove
	code dealing with plain pointer bases.
	(maybe_fold_offset_to_reference): Likewise.
	(maybe_fold_stmt_addition): Adjust.

	* gcc.c-torture/execute/pr41317.c: New testcase.
	* gcc.dg/tree-ssa/forwprop-11.c: XFAIL.
	* gcc.dg/tree-ssa/forwprop-12.c: Likewise.

From-SVN: r151559
2009-09-09 14:35:51 +00:00
Richard Guenther ccffb7554e tree.c (free_lang_data_in_type): Do not free the type variant chains.
2009-09-09  Richard Guenther  <rguenther@suse.de>

	* tree.c (free_lang_data_in_type): Do not free the type variant
	chains.
	(free_lang_data): Merge char_type_node with its properly signed
	variant.
	(pass_ipa_free): Collect after freeing language specific data.

From-SVN: r151558
2009-09-09 09:30:26 +00:00
François-Xavier Coudert e79faf7e44 * ChangeLog: Fix last entry.
From-SVN: r151557
2009-09-09 09:15:16 +00:00
Jack Howarth f105647b0b re PR bootstrap/41180 (can not build gcc 4.4.1 on Snow Leopard Mac OS X 10.6)
PR bootstrap/41180
	* gcc/cp/Make-lang.in: Remove redundant code from linkage
	for darwin10.

From-SVN: r151554
2009-09-09 08:14:36 +00:00
Michael Matz 4e18a7d41d re PR middle-end/41268 (bootstrap is broken after r151350 (expand from tuples))
PR middle-end/41268
	* cfgexpand.c (expand_gimple_stmt_1): Use an int for storing
	SUBREG_PROMOTED_UNSIGNED_P, instead of a bool.
	* rtl.h (struct rtx, SUBREG_PROMOTED_UNSIGNED_P): Update comments
	to reflect reality.

From-SVN: r151544
2009-09-09 00:43:36 +00:00
DJ Delorie 5fb455bc70 * config/mep/mep.c (conversions[]): Add "ml" pattern.
From-SVN: r151543
2009-09-08 20:17:52 -04:00
GCC Administrator 06ae202234 Daily bump.
From-SVN: r151542
2009-09-09 00:17:01 +00:00
Dodji Seketeli c0389e926a Use -fno-merge-debug-string for some dwarf tests
Use -fno-merge-debug-string to comply with Darwin
	* g++.dg/debug/dwarf2/namespace-1.C: Use -fno-merge-debug-string
	and adjust.
	* g++.dg/debug/dwarf2/template-func-params-6.C: Likewise.
	* g++.dg/debug/dwarf2/template-func-params-7.C: Likewise.
	* g++.dg/debug/dwarf2/template-params-6.C: Likewise.
	* g++.dg/debug/dwarf2/pubnames-1.C: Likewise. Also, adjust to
	take darwin specifics in account.

From-SVN: r151538
2009-09-09 00:36:41 +02:00
Joseph Myers edf736cb4d profile-dir-1.c, [...]: Disable for remote-host testing.
* gcc.dg/profile-dir-1.c, gcc.dg/profile-dir-2.c,
	gcc.dg/profile-dir-3.c: Disable for remote-host testing.

From-SVN: r151537
2009-09-08 23:31:13 +01:00
Paolo Carlini f8c6dba24e re PR c++/39923 ([C++0x] ICE in build_init_list_var_init)
/cp
2009-09-08  Paolo Carlini  <paolo.carlini@oracle.com>

	PR c++/39923
	* decl.c (build_init_list_var_init): Check return value of
	perform_implicit_conversion.

/testsuite
2009-09-08  Paolo Carlini  <paolo.carlini@oracle.com>

	PR c++/39923
	* g++.dg/cpp0x/initlist24.C: New.

From-SVN: r151536
2009-09-08 22:00:42 +00:00
Eric Botcazou 7c20033ecc decl.c (gnat_to_gnu_entity): Tidy flow of control.
* gcc-interface/decl.c (gnat_to_gnu_entity) <E_Array_Subtype>: Tidy
	flow of control.
	Avoid useless work when processing the Treat_As_Volatile flag.

From-SVN: r151535
2009-09-08 19:40:00 +00:00
Jason Merrill d5df7223bf tree.c (tree_find_value): Remove.
* tree.c (tree_find_value): Remove.
	* tree.h: Remove prototype.
	* varasm.c (assemble_external): Use value_member instead.

From-SVN: r151534
2009-09-08 15:26:06 -04:00
Ozkan Sezer 60adb6417c large-size-array-2.c: Fix target requirement.
2009-09-08  Ozkan Sezer  <sezeroz@gmail.com>

        * gcc.dg/large-size-array-2.c: Fix target requirement.
        * gcc.dg/large-size-array-4.c: Likewise.
        * gcc.dg/c90-const-expr-2.c: Define ZERO as 0LL for _WIN64.
        * gcc.dg/c99-const-expr-2.c: Likewise.
        * gcc.dg/c90-const-expr-6.c: Typedef ptrdiff_t with __extension__.
        * gcc.dg/c90-const-expr-9.c: Typedef size_t with __extension__.
        * gcc.dg/c90-const-expr-10.c: Likewise.
        * gcc.dg/torture/pr39074.c: Use intptr_t typedef'ed as __PTRDIFF_TYPE__
        instead of long.
        * gcc.dg/tree-ssa/pr33920.c: Likewise.
        * gcc.dg/vect/pr33846.c: Likewise.
        * gcc.dg/vect/pr33833.c: Use uintptr_t, typedef'ed as unsigned
        __PTRDIFF_TYPE__, instead of unsigned long.
        * gcc.dg/vect/O1-pr33854.c: Use __SIZE_TYPE__ instead of unsigned long.

From-SVN: r151533
2009-09-08 21:16:18 +02:00
Richard Henderson 35ecd40884 tree-ssa-sccvn.c (vn_reference_lookup_3): Don't assume there are more VR->OPERANDS than LHS operands.
* tree-ssa-sccvn.c (vn_reference_lookup_3): Don't assume there are
        more VR->OPERANDS than LHS operands.  Free LHS before returning.

From-SVN: r151530
2009-09-08 11:35:24 -07:00
Jason Merrill 3e5e84be5a class.c (currently_open_class): Make sure we're dealing with the main variant.
* class.c (currently_open_class): Make sure we're dealing with the
	main variant.

From-SVN: r151529
2009-09-08 14:13:02 -04:00
Jason Merrill ee18fe39d3 cp-tree.h (enum overload_flags): Remove OP_FLAG.
* cp-tree.h (enum overload_flags): Remove OP_FLAG.
	* method.c (lazily_declare_fn): Check for dtorness in ABI warning.

From-SVN: r151528
2009-09-08 14:12:54 -04:00
Jason Merrill f33ab5c3f1 name-lookup.c (is_class_level): Remove.
* name-lookup.c (is_class_level): Remove.
	(push_binding_level, leave_scope, resume_scope): Adjust.
	(pushlevel_class): Adjust.
	(poplevel_class): Make sure we're on class_binding_level.

From-SVN: r151527
2009-09-08 14:12:45 -04:00
Jason Merrill 02c5ff73d4 decl.c (grokmethod): Rename from start_method.
* decl.c (grokmethod): Rename from start_method.
	(finish_method): Remove.
	* cp-tree.h: Adjust.
	* parser.c (cp_parser_save_member_function_body): Adjust.

From-SVN: r151526
2009-09-08 14:12:37 -04:00
Ralf Wildenhues 3e54529c11 Fix toplevel config.status for HP-UX sed.
/:
	* configure.ac: Do not use $extrasub for replacing @if/@endif
	parts in Makefile; instead, use additional arguments to
	AC_CONFIG_COMMANDS to do the replacement manually, with several
	sed invocations, to avoid HP-UX sed command limits.
	* configure: Regenerate.

From-SVN: r151525
2009-09-08 17:55:03 +00:00
Alexandre Oliva 6a57e634bf toplev.c (process_options): Choose default debugging type when gtoggle enables debug info and type is unset.
* toplev.c (process_options): Choose default debugging type when
gtoggle enables debug info and type is unset.

From-SVN: r151524
2009-09-08 17:44:50 +00:00
Alexandre Oliva da4a947987 re PR debug/41276 (Segmentation fault in lookup_page_table_entry)
PR debug/41276
PR debug/41307
* cselib.c (cselib_expand_value_rtx_1): Don't return copy of
invalid subreg.

From-SVN: r151523
2009-09-08 17:44:10 +00:00
Alexandre Oliva 713e2ea6b6 libtool.m4 (output_verbose_link_cmd): Require leading blank, and blank before -L.
ChangeLog:
* libtool.m4 (output_verbose_link_cmd): Require leading blank, and
blank before -L.
gcc/ChangeLog:
* configure: Rebuilt with modified libtool.m4.
libstdc++-v3/ChangeLog:
* configure: Rebuilt with modified libtool.m4.
boehm-gc/ChangeLog:
* configure: Rebuilt with modified libtool.m4.
libjava/ChangeLog:
* configure: Rebuilt with modified libtool.m4.

From-SVN: r151522
2009-09-08 17:43:37 +00:00
Alexandre Oliva 91642126f3 re PR debug/41229 (VTA: internal compiler error: verify_ssa failed)
gcc/ChangeLog:
PR debug/41229
PR debug/41291
PR debug/41300
* tree-ssa.c (execute_update_addresses_taken): Update debug insns.
gcc/testsuite/ChangeLog:
PR debug/41229
PR debug/41291
PR debug/41300
* gfortran.dg/pr41229.f90: New.

From-SVN: r151521
2009-09-08 17:42:11 +00:00
Alexandre Oliva ae0a44495f tree-ssa-loop-ivopts.c (get_phi_with_result): Remove.
* tree-ssa-loop-ivopts.c (get_phi_with_result): Remove.
(remove_statement): Likewise.
(rewrite_use_nonlinear_expr): Adjust.
(remove_unused_ivs): Collect SSA NAMEs to remove and call...
* tree-ssa.c (release_defs_bitset): ... this.  New.
* tree-flow.h (release_defs_bitset): Declare.

From-SVN: r151520
2009-09-08 17:40:45 +00:00
Alexandre Oliva 21719cea11 re PR debug/41232 (VTA: SSA name in freelist but still referenced)
gcc/ChangeLog:
PR debug/41232
* tree-ssa-phiopt.c (minmax_replacement): Skip debug stmts
in the middle block.
gcc/testsuite/ChangeLog:
PR debug/41232
* gcc.dg/pr41232.c: New.

From-SVN: r151519
2009-09-08 17:39:42 +00:00
Ralf Wildenhues a3d3711969 sed portability fixes in fixincludes
fixincludes/:
	PR testsuite/29737
	PR bootstrap/35938
	PR testsuite/39655
	* check.tpl: Fix typos.
	* README: Likewise.  Also, document that 'select' uses ERE.
	* mkheaders.in: Update copyright years in --version output.
	* inclhack.def (sco_math): Add missing final newline in sed
	script 'a', 'c', or 'i' commands, for BSD sed.
	(sco_math): In the text of 'a', 'c', or 'i' sed
	commands, prepend leading white space with a backslash to avoid
	the whitespace to be removed by BSD sed.
	(sco_math): Match plain 'C++' instead of 'C\+\+' in sed regex.
	(x11_new): Fix sed expression, for BSD sed.
	(glibc_mutex_init): Fix newlines in sed 's' command replacement
	part, for GNU sed 3.02 and Solaris sed.
	(glibc_mutex_init): Replace unportable \+ sed regex operator
	with \{1,\}.
	(glibc_c99_inline_2, glibc_mutex_init): Avoid unportable sed
	alternation \| regex operator.
	(solaris_complex): Remove superfluous backslashes from
	replacement string.  Replace \+ operator with \{1,\}.
	* tests/base/Xm/Traversal.h: This is fixed for BSD sed now.
	* fixincl.x: Regenerate.

From-SVN: r151518
2009-09-08 17:30:31 +00:00
Kai Tietz fa8023742a Missed regeneration.
From-SVN: r151516
2009-09-08 17:28:27 +02:00
Kai Tietz 34c6743caf tree-ssa-reassoc.c (find_operand_rank): Cast pointer via intptr_t to long type.
2009-09-08  Kai Tietz  <kai.tietz@onevision.com>

        * tree-ssa-reassoc.c (find_operand_rank): Cast pointer
        via intptr_t to long type.
        (insert_operand_rank): Cast long type via intptr_t to
        pointer type.
        * genattrtab.c (RTL_HASH): Use intptr_t to cast from
        pointer to scalar.
        * c-pretty-print.c (pp_c_tree_decl_identifier): Cast
        from pointer to unsigned via uintptr_t.

From-SVN: r151515
2009-09-08 17:26:50 +02:00
Kai Tietz 7c2a2dbf50 [multiple changes]
2009-09-08  Paolo Bonzini  <bonzini@gnu.org>

	* stdint.m4: Rewrite by using autoconf 2.64 features.

2009-09-08  Kai Tietz  <kai.tietz@onevision.com>

	* configure.ac (GCC_STDINT_TYPES): Initialize intptr_t,
	uintptr_t, HAVE_INTTYPES_H, HAVE_STDINT_H, HAVE_UINTPTR_T,
	and HAVE_INTPTR_T.
	* configure: Regenerated.
	* config.in: Regenerated
	* system.h (stdint.h): Add include.
	(inttypes.h): Likewise.
	* Makefile.in (aclocal): Add config/stdint.m4.
	* aclocal.m4: Regenerated.

From-SVN: r151514
2009-09-08 17:21:07 +02:00
Bernd Schmidt 8472b25510 bfin.c (np_check_regno, [...]): New static variables.
* config/bfin/bfin.c (np_check_regno, np_after_branch): New static
	variables.
	(note_np_check_stores): New function.
	(harmless_null_pointer_p): New function.
	(trapping_loads_p): New args NP_REG and AFTER_NP_BRANCH.  Callers
	changed.  Take into account whether we're in the shadow of a condjump
	that tested NP_REG for NULL.
	Lose all code that tested for SEQUENCEs.
	(workaround_speculation): Avoid inserting NOPs for loads that are
	either always executed or a NULL pointer.

From-SVN: r151513
2009-09-08 14:52:02 +00:00
Jan Hubicka ac875c2ec2 invoke.texi (early-inlining-insns): Reduce from 12 to 8.
* doc/invoke.texi (early-inlining-insns): Reduce from 12 to 8.
	* params.def (early-inlining-insns): Likewise.

From-SVN: r151511
2009-09-08 13:59:20 +00:00
Joseph Myers 05266d7f38 * id.po: Update.
From-SVN: r151508
2009-09-08 13:15:41 +01:00
Joseph Myers 3dd1415dc8 i386-prefetch.exp: Skip tests when multilib flags contain -march.
* gcc.misc-tests/i386-prefetch.exp: Skip tests when multilib flags
	contain -march.
	* gcc.dg/tree-ssa/prefetch-7.c, gcc.target/i386/387-1.c,
	gcc.target/i386/387-5.c, gcc.target/i386/cmov7.c,
	gcc.target/i386/funcspec-1.c, gcc.target/i386/funcspec-8.c,
	gcc.target/i386/gcc-have-sync-compare-and-swap-1.c,
	gcc.target/i386/gcc-have-sync-compare-and-swap-2.c,
	gcc.target/i386/isa-6.c, gcc.target/i386/lea.c,
	gcc.target/i386/pentium4-not-mull.c, gcc.target/i386/sse-5.c,
	gcc.target/i386/ssefn-1.c: Skip when multilib flags contain -march
	options other than that used in dg-options.

From-SVN: r151506
2009-09-08 11:55:09 +01:00
Jakub Jelinek 1098d3a551 re PR rtl-optimization/41239 (Scheduler reorders division by zero before a call that might not return)
PR rtl-optimization/41239
	* sched-int.h (struct deps): Add last_function_call_may_noreturn field.
	* sched-rgn.c (deps_join): Join also last_function_call_may_noreturn
	lists.
	* sched-deps.c (sched_analyze_insn): Prevent moving trapping insns
	across calls, as the calls might not always return normally.
	(call_may_noreturn_p): New function.
	(deps_analyze_insn): Update last_function_call_may_noreturn list.
	(init_deps): Initialize it.
	(remove_from_deps): Also remove calls from
	last_function_call_may_noreturn list.

	* gcc.c-torture/execute/pr41239.c: New test.

From-SVN: r151500
2009-09-08 11:25:47 +02:00
Eric Botcazou c673a2c7b4 * gcc-interface/targtyps.c: Reorder include directives.
From-SVN: r151498
2009-09-08 06:57:47 +00:00
Jerry DeLisle c89c07c2c7 re PR fortran/41192 (NAMELIST input with just a comment ("&NAME ! comment \") fails)
2009-09-07  Jerry DeLisle  <jvdelisle@gcc.gnu.org>

	PR libgfortran/41192
	* gfortran.dg/namelist_59.f90: New test.

From-SVN: r151496
2009-09-08 01:18:48 +00:00
Jerry DeLisle 951b8fbe45 re PR fortran/41192 (NAMELIST input with just a comment ("&NAME ! comment \") fails)
2009-09-07  Jerry DeLisle  <jvdelisle@gcc.gnu.org>

	PR libgfortran/41192
	* io/list_read.c (eat_line): Enable eat_line to function on
	internal units.

	PR libgfortran/41219
	* io/list_read.c (nml_read_obj): Replace GFC_DTYPE_UNKNOWN with
	BT_NULL to get rid of warning.

From-SVN: r151495
2009-09-08 00:59:05 +00:00
GCC Administrator 21a4564b8e Daily bump.
From-SVN: r151494
2009-09-08 00:17:08 +00:00
Bernd Schmidt b3187e24a3 From Jie Zhang <jie.zhang@analog.com>:
* config/bfin/predicates.md (p_register_operand): New
	predicate.
	(dp_register_operand): New predicate.
	* config/bfin/bfin-protos.h (WA_05000074): Define.
	(ENABLE_WA_05000074): Define.
	* config/bfin/bfin.c (bfin_cpus[]): Add WA_05000074 for
	all cpus.
	(bfin_gen_bundles): Put dsp32shiftimm instruction in slot[0].
	* config/bfin/bfin.md (define_attr type): Add dsp32shiftimm.
	(define_attr addrtype): Allow load/store register to be
	P register.
	(define_attr storereg): New.
	(define_cpu_unit anomaly_05000074): New.
	(define_insn_reservation dsp32shiftimm): New.
	(define_insn_reservation dsp32shiftimm_anomaly_05000074): New.
	(define_insn_reservation loadp): Cannot use slot2.
	(define_insn_reservation loadsp): Cannot use slot2.
	(define_insn_reservation storep): Cannot use slot2. Does not
	apply when working around 05000074.
	(define_insn_reservation storep_anomaly_05000074): New.
	(define_insn_reservation storei): Does not apply when working
	around 05000074.
	(define_insn_reservation storei_anomaly_05000074): New.
	(define_attr length): Add dsp32shiftimm case.
	(define_insn movsi_insn32, movsi_insv, ashlsi3_insn, ashrsi3,
	ror_one, rol_one, lshrsi3, lshrpdi3, ashrpdi3, movhiv2hi_low,
	movhiv2hi_high, composev2hi, packv2hi, movv2hi_hi,
	ssashiftv2hi3, ssashifthi3, ssashiftsi3, lshiftv2hi3, lshifthi3):
	Set type as dsp32shiftimm for dsp32shiftimm alternatives.

From-SVN: r151490
2009-09-07 21:40:23 +00:00
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