Commit Graph

99219 Commits

Author SHA1 Message Date
Jakub Jelinek
be36dd859d varasm.c (make_decl_rtl_for_debug): Also clear flag_mudflap for the duration of make_decl_rtl call.
* varasm.c (make_decl_rtl_for_debug): Also clear
	flag_mudflap for the duration of make_decl_rtl call.

From-SVN: r157621
2010-03-22 11:30:27 +01:00
Jakub Jelinek
539eb45985 re PR debug/43443 (We should yank ASM_OPERANDS locs from var-tracking preserved cselib VALUEs)
PR debug/43443
	* var-tracking.c (add_cselib_value_chains): Remove ASM_OPERANDS
	locs from preserved VALUEs.

From-SVN: r157620
2010-03-22 11:26:33 +01:00
Jerry DeLisle
260f179b8d re PR fortran/43409 (I/O: INQUIRE for SIZE does not work.)
2010-03-21  Jerry DeLisle  <jvdelisle@gcc.gnu.org>

	PR fortran/43409
	* io/io.h: Fix type of size in st_parameter_inquire structure.

From-SVN: r157618
2010-03-22 02:39:02 +00:00
John David Anglin
19c1be3917 re PR middle-end/42718 (FAIL: gcc.c-torture/compile/pr42559.c at -O1 and above)
PR middle-end/42718
	* pa.md (movmemsi): Set align to one if zero.
	(movmemdi): Likewise.

From-SVN: r157614
2010-03-22 01:00:30 +00:00
GCC Administrator
e0899a64f9 Daily bump.
From-SVN: r157613
2010-03-22 00:16:51 +00:00
Richard Earnshaw
f8b68ed3c3 re PR target/42321 (NEON/VFP registers from inline assembly clobber list are saved/restored incorrectly)
PR target/42321
	* arm.c (arm_output_epilogue): Correctly match VFP pop instructions
	with their corresponding prologue pushes.

From-SVN: r157609
2010-03-21 20:27:00 +00:00
Dave Korn
474b97ce0f re PR target/42811 (java.lang.ExceptionInInitializerError in ecj1)
PR target/42811
	* libjava/configure.ac (DLLTOOL): Call AC_CHECK_TOOL.
	(libgcj_sublib_core_extra_deps): New host-dependent configure var.
	(LIBGCJ_SUBLIB_CORE_EXTRA_DEPS): AC_SUBST it.
	* libjava/configure.host (libgcj_sublib_core_extra_deps): Define
	appropriately on Cygwin and MinGW.
	(libgcj_sublib_core_extra_deps): Add libgcj-noncore-dummy import
	stub library on Cygwin and MinGW.
	* libjava/Makefile.am (LIBJAVA_CORE_EXTRA): Import AC_SUBST'd
	LIBGCJ_SUBLIB_CORE_EXTRA_DEPS if building sublibs, else define empty.
	(libgcj_la_DEPENDENCIES): Use it.
	(DLL_VERSION): New makefile macro.
	(libgcj-noncore-dummy.dll.a): New build rule for dummy import stub
	library.
	(libgcj_noncore_la_LIBADD): Trim superfluous convenience libs.
	(AM_MAKEFLAGS): Add DLLTOOL recursive propagation.
	* libjava/libgcj-noncore-dummy.def: New file.
	* libjava/Makefile.in: Regenerate.
	* libjava/include/Makefile.in: Likewise.
	* libjava/testsuite/Makefile.in: Likewise.
	* libjava/configure: Likewise.
	* libjava/gcj/Makefile.in: Likewise.

From-SVN: r157606
2010-03-21 19:41:37 +00:00
Dave Korn
713812e244 PR target/42811 (prerequisite)
PR target/42811 (prerequisite)
	* jvmti.cc (_Jv_GetJVMTIEnv): Avoid use of uninitialised memory.

From-SVN: r157605
2010-03-21 19:36:49 +00:00
Dave Korn
045a52c82e PR target/42811 (prerequisite)
PR target/42811 (prerequisite)
	* include/private/gc_priv.h (struct roots) [CYGWIN32]: Don't
	declare r_next member on Cygwin as on other windows hosts.
	(LOG_RT_SIZE) [CYGWIN32]: Don't define likewise.
	(RT_SIZE) [CYGWIN32]: Likewise.
	(struct _GC_arrays) [CYGWIN32]: Do declare _heap_bases[] member
	likewise.
	(GC_heap_bases) [CYGWIN32]: Do define likewise.
	(struct _SYSTEM_INFO) [CYGWIN32]: Do forward-declare likewise.
	(GC_sysinfo) [CYGWIN32]: Do declare extern likewise.
	(GC_n_heap_bases) [CYGWIN32]: Likewise.
	(GC_is_tmp_root) [CYGWIN32]: Do prototype likewise.
	* include/private/gcconfig.h (GC_win32_get_mem) [CYGWIN32]: Likewise.
	(GET_MEM) [CYGWIN32]: Do define likewise.
	* boehm-gc/ptr_chck.c (GC_is_visible) [CYGWIN32]: Do handle dynamic
	registration likewise.
	* boehm-gc/os_dep.c (GC_setpagesize) [CYGWIN32]: Do define likewise.
	(GC_no_win32_dlls) [CYGWIN32]: Define as constant false, unlike
	other windows hosts.
	(GC_sysinfo) [CYGWIN32]: Define as on other windows hosts.
	(GC_n_heap_bases) [CYGWIN32]: Likewise.
	(GLOBAL_ALLOC_TEST) [CYGWIN32]: Likewise.
	(GC_win32_get_mem) [CYGWIN32]: Likewise, but wrapping GC_unix_get_mem
	rather than GlobalAlloc/VirtualAlloc.
	(GC_win32_free_heap) [CYGWIN32]: Likewise, but wrapping free instead
	of GlobalFree (even though the function body is optimised away).
	* boehm-gc/mark_rts.c (add_roots_to_index) [CYGWIN32]: Define as on
	other windows hosts.
	(GC_add_roots_inner) [CYGWIN32]: Avoid overlapping or adjacent
	intervals likewise.
	(GC_clear_roots) [CYGWIN32]: Clear GC_root_index[] likewise.
	(GC_rebuild_root_index) [CYGWIN32]: Define as on other windows hosts.
	(GC_remove_tmp_roots) [CYGWIN32]: Call it likewise.
	(GC_remove_roots) [CYGWIN32]: Don't define, as on other windows hosts.
	(GC_is_tmp_root) [CYGWIN32]: Define, as on other windows hosts.
	(GC_cond_register_dynamic_libraries) [CYGWIN32]: Handle temporary
	roots and dynamic registration likewise.
	* boehm-gc/dyn_load.c (GC_has_static_roots) [CYGWIN32]: Define as on
	other windows hosts.
	(GC_register_has_static_roots_callback) [CYGWIN32]: Likewise.
	(GC_cond_add_roots) [CYGWIN32]: Likewise.
	(GC_register_main_static_data) [CYGWIN32]: Define to always return
	false, as on MSWINCE
	(HAVE_REGISTER_MAIN_STATIC_DATA) [CYGWIN32]: Define as on other
	windows hosts.
	(GC_warn_fb) [CYGWIN32]: Likewise.
	(GC_disallow_ignore_fb) [CYGWIN32]: Likewise.
	(GC_ignore_fb_mb) [CYGWIN32]: Likewise.
	(GC_ignore_fb) [CYGWIN32]: Likewise.
	(is_frame_buffer) [CYGWIN32]: Likewise.
	(GC_dump_meminfo) [CYGWIN32]: Likewise.
	(GC_wnt) [CYGWIN32]: Define to constant true.
	(GC_register_dynamic_libraries) [CYGWIN32]: Define as on other
	windows hosts.

From-SVN: r157604
2010-03-21 19:34:19 +00:00
Kaveh R. Ghazi
242ba3086f ppc-sdata-1.c: Require nonpic.
* gcc.target/powerpc/ppc-sdata-1.c: Require nonpic.
	* gcc.target/powerpc/ppc-sdata-2.c: Likewise.

From-SVN: r157603
2010-03-21 19:25:00 +00:00
GCC Administrator
b4c3699ea6 Daily bump.
From-SVN: r157600
2010-03-21 00:16:48 +00:00
Simon Martin
7801b86acf re PR c++/43081 (ICE with invalid in-class initializer)
gcc/cp/

2010-03-20  Simon Martin  <simartin@users.sourceforge.net>

	PR c++/43081:
	* decl2.c (grokfield): Handle invalid initializers for member
	functions.

gcc/testsuite/

2010-03-20  Simon Martin  <simartin@users.sourceforge.net>
	    Michael Matz  <matz@suse.de>

	PR c++/43081
	* g++.dg/parse/crash56.C: New test.

Co-Authored-By: Michael Matz <matz@suse.de>

From-SVN: r157597
2010-03-20 18:01:18 +00:00
Andrew Pinski
941ce52b94 re PR target/43156 (SPU-elf ICEs on simple programs)
2010-03-20  Andrew Pinski  <pinskia@gmail.com>

        PR target/43156
        * config/spu/spu.c (spu_expand_prologue): Don't emit NOTE_INSN_DELETED
        at the begining or end.
        (spu_expand_epilogue): Likewise.

From-SVN: r157596
2010-03-20 10:45:37 -07:00
Paul Thomas
b8849663cf re PR fortran/43450 (-fwhole-file: ICE in gfc_create_module_variable, at fortran/trans-decl.c:3386)
2010-03-20  Paul Thomas  <pault@gcc.gnu.org>

	PR fortran/43450
	* trans-decl.c (gfc_create_module_variable): With -fwhole-file
	do not assert the context of derived types.

2010-03-20  Paul Thomas  <pault@gcc.gnu.org>

	PR fortran/43450
	* gfortran.dg/whole_file_15.f90 : New test.

From-SVN: r157595
2010-03-20 16:01:17 +00:00
Jerry DeLisle
21b04412b0 re PR fortran/43409 (I/O: INQUIRE for SIZE does not work.)
2010-03-20  Jerry DeLisle  <jvdelisle@gcc.gnu.org>

	PR fortran/43409
	* gfortran.dg/inquire_size.f90: New test.

From-SVN: r157594
2010-03-20 14:42:04 +00:00
Jerry DeLisle
41c3cddc6b re PR fortran/43409 (I/O: INQUIRE for SIZE does not work.)
2010-03-20  Jerry DeLisle  <jvdelisle@gcc.gnu.org>

	PR fortran/43409
	* ioparm.def: Change inquire size variable to type pointer to
	GFC_IO_INT type.

2010-03-20  Jerry DeLisle  <jvdelisle@gcc.gnu.org>

	PR fortran/43409
	* io/unix.h: Add prototype for new function to return file size.
	* io/unix.c (file_size): New function.
	* io/inquire.c (inquire_via_unit): Use new function.
	(inquire_via_filename): Use new function.

From-SVN: r157593
2010-03-20 14:39:00 +00:00
Richard Guenther
d491d2af31 re PR rtl-optimization/43438 (possible wrong code bug)
2010-03-20  Richard Guenther  <rguenther@suse.de>

	PR rtl-optimization/43438
	* combine.c (make_extraction): Properly zero-/sign-extend an
	extraction of the low part of a CONST_INT.  Also handle
	CONST_DOUBLE.

	* gcc.c-torture/execute/pr43438.c: New testcase.

From-SVN: r157592
2010-03-20 13:44:18 +00:00
Dodji Seketeli
39bac0102c re PR c++/43375 (ICE during compiling SSE code)
Fix for PR c++/43375

gcc/cp/ChangeLog:
	PR c++/43375
	* method.c (make_alias_for): Avoid crashing when DECL_LANG_SPECIFIC
	is NULL.
	* decl2.c (vague_linkage_p): Likewise.

gcc/testsuite/g++.dg/ChangeLog:
	PR c++/43375
	* g++.dg/abi/mangle42.C: New test.

From-SVN: r157590
2010-03-20 09:55:32 +01:00
Mike Stump
4dd9ee924b darwin.h (SUBTARGET32_DEFAULT_CPU): Add.
* config/i386/darwin.h (SUBTARGET32_DEFAULT_CPU): Add.
	* config/i386/i386.c (SUBTARGET32_DEFAULT_CPU): Add.
	(override_options): Use SUBTARGET32_DEFAULT_CPU.

From-SVN: r157589
2010-03-20 05:40:05 +00:00
GCC Administrator
66845dac20 Daily bump.
From-SVN: r157588
2010-03-20 00:16:44 +00:00
Andrew Pinski
e49a760f33 re PR c/43211 (ICE with incomplete type in function argument)
2010-03-19  Andrew Pinski  <andrew_pinski@caviumnetworks.com>

        PR C/43211
        * c-decl.c (grokparms): Set arg_types to NULL_TREE if there was an error.

2010-03-19  Andrew Pinski  <andrew_pinski@caviumnetworks.com>

        PR C/43211
        * gcc.dg/pr43211.c: New test.
        * gcc.dg/pr18809-1.c: Don't expect an error when calling foo.

From-SVN: r157585
2010-03-19 15:52:41 -07:00
Bernd Schmidt
fdb2c6841d optabs.c (avoid_expensive_constant): Fix formatting.
* optabs.c (avoid_expensive_constant): Fix formatting.

From-SVN: r157584
2010-03-19 19:45:01 +00:00
Bernd Schmidt
036efbf272 thumb-andsi.c: Correct dg-options and add dg-require-effective-target.
* gcc.target/arm/thumb-andsi.c: Correct dg-options and add
	dg-require-effective-target.

From-SVN: r157583
2010-03-19 19:42:59 +00:00
Bernd Schmidt
c99102b8b4 re PR target/40697 (inefficient code to extract least bits from an integer value)
gcc/
	PR target/40697
	* optabs.c (avoid_expensive_constant): Use rtx_cost to find out
	the cost of loading the constant rather than assuming
	COSTS_N_INSNS (1).
	* config/arm/arm.c (thumb1_rtx_costs) <case CONST_INT>: If the
	outer code is AND, do the same tests as the andsi3 expander and
	return COSTS_N_INSNS (1) if and is cheap.

testsuite/
	PR target/40697
	* gcc.target/arm/thumb-andsi.c: New test.

From-SVN: r157582
2010-03-19 18:41:22 +00:00
Bernd Schmidt
002b2dee5d re PR rtl-optimization/42258 (redundant register move around mul instruction)
gcc/
	PR rtl-optimization/42258
	* ira-lives.c (check_and_make_def_conflict): Ignore conflict for a
	use that may match DEF.

testsuite/
	PR rtl-optimization/42258
	* gcc.target/arm/thumb1-mul-moves.c: New test.

From-SVN: r157581
2010-03-19 18:18:54 +00:00
Michael Matz
f9ceed32dc re PR c++/43116 (ICE when using attributes in a function alias declaration)
PR c++/43116
	* attribs.c (decl_attributes): When rebuilding a function pointer
	type use the same qualifiers as the original pointer type.

testsuite/
	* g++.dg/other/pr43116.C: New testcase.

From-SVN: r157578
2010-03-19 16:37:27 +00:00
Martin Jambor
3795eae664 gimple.texi (Logical Operators): Describe is_gimple_ip_invariant and is_gimple_ip_invariant_address.
2010-03-19  Martin Jambor  <mjambor@suse.cz>

	* doc/gimple.texi (Logical Operators): Describe is_gimple_ip_invariant
	and is_gimple_ip_invariant_address.

From-SVN: r157576
2010-03-19 17:09:16 +01:00
Ramana Radhakrishnan
ae0bef88fd Revert work around for PR40521
2010-03-19  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>

        Revert
        2009-10-01  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
        * config/arm/arm.c (arm_override_options): Turn off
        flag_dwarf2_cfi_asm for AAPCS variants.

From-SVN: r157575
2010-03-19 16:02:49 +00:00
Ramana Radhakrishnan
9abf5d7be1 re PR target/43399 (bootstrap failure in stage1)
Fix PR target/43399

2010-03-19  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>

       PR target/43399
       * config/arm/arm.c (emit_multi_reg_push): Update comments.
       Use PRE_MODIFY instead of PRE_DEC.
       (emit_sfm): Use PRE_MODIFY instead of PRE_DEC.
       (vfp_emit_fstmd): Likewise.

From-SVN: r157574
2010-03-19 15:58:37 +00:00
Bruce Korb
73489878b6 remove vestiges of inadvertently committed changes
From-SVN: r157573
2010-03-19 14:50:06 +00:00
Paolo Carlini
0c56371567 freestanding.cc: Avoid -Wall warnings.
2010-03-19  Paolo Carlini  <paolo.carlini@oracle.com>

	* testsuite/17_intro/freestanding.cc: Avoid -Wall warnings.

From-SVN: r157572
2010-03-19 14:19:23 +00:00
Rodolfo Lima
28de604e8c shared_ptr.h (shared_ptr(unique_ptr&&), [...]): Remove explicit specifier (as per DR 925).
2010-03-19  Rodolfo Lima  <rodolfo@rodsoft.org>

	* include/bits/shared_ptr.h (shared_ptr(unique_ptr&&),
	shared_ptr(auto_ptr&&)): Remove explicit specifier (as per DR 925).
	* include/bits/shared_ptr_base.h: Likewise.
	* testsuite/20_util/shared_ptr/creation/dr925.cc: New.

From-SVN: r157570
2010-03-19 13:32:05 +00:00
Michael Matz
8a0b1aa4c1 re PR target/43305 (ICE: in emit_unop_insn, at optabs.c:3838 with -Os -ffast-math and ilogbl())
PR 43305
	* builtins.c (expand_builtin_interclass_mathfn,
	expand_builtin_signbit): Use maybe_emit_unop_insn, emit libcalls
	if that fails.

testsuite/
	* gcc.dg/pr43305.c: New testcase.

From-SVN: r157567
2010-03-19 12:37:28 +00:00
Paolo Carlini
afcd05a759 random.tcc: Minor formatting changes.
2010-03-19  Paolo Carlini  <paolo.carlini@oracle.com>

	* include/bits/random.tcc: Minor formatting changes.

2010-03-19  Paolo Carlini  <paolo.carlini@oracle.com>

	* include/bits/stl_algo.h (shuffle): Fix typo in signature.
	* include/bits/algorithmfwd.h: Adjust.
	* testsuite/25_algorithms/shuffle/requirements/
	explicit_instantiation/2.cc: Likewise.
	* testsuite/25_algorithms/shuffle/requirements/
	explicit_instantiation/pod.cc: Likewise.

From-SVN: r157565
2010-03-19 11:10:08 +00:00
Paolo Carlini
247d807571 stl_algo.h (shuffle): Add, per D3056.
2010-03-19  Paolo Carlini  <paolo.carlini@oracle.com>

	* include/bits/stl_algo.h (shuffle): Add, per D3056.
	(random_shuffle): Fix signature in C++0x mode.
	(lower_bound, __lg): Move...
	* include/bits/stl_algobase.h: ... here.
	* include/bits/algorithmfwd.h: Adjust.
	* include/parallel/algorithmfwd.h: Likewise.
	* include/parallel/algo.h: Likewise.
	* include/bits/hashtable_policy.h (__lower_bound): Remove,
	adjust callers.
	* include/tr1/hashtable_policy.h (__lower_bound): Likewise.
	* include/bits/random.tcc (__detail::__transform): Add,
	adjust std::transform callers; don't include <algorithm>.
	* testsuite/25_algorithms/shuffle/1.cc: Add.
	* testsuite/25_algorithms/shuffle/requirements/
	explicit_instantiation/2.cc: Likewise.
	* testsuite/25_algorithms/shuffle/requirements/
	explicit_instantiation/pod.cc: Likewise.

	* include/bits/random.h: Add comments.

From-SVN: r157564
2010-03-19 10:36:57 +00:00
Jack Howarth
0aeb3cc6c9 re PR ada/42554 (Can't build GNAT tools)
PR ada/42554
	* configure.ac: Only pass -c to ranlib for darwin9 and earlier.
	* configure: Regenerate.

From-SVN: r157563
2010-03-19 10:19:52 +00:00
Richard Guenther
3e999e7b28 re PR tree-optimization/43415 (Consumes large amounts of memory and time in PRE at -O3)
2010-03-19  Richard Guenther  <rguenther@suse.de>

	PR tree-optimization/43415
	* tree-ssa-pre.c (phi_translate): Split out worker to ...
	(phi_translate_1): ... this.
	(phi_translate): Move all caching here.  Cache all NARY
	and REFERENCE translations.

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

From-SVN: r157562
2010-03-19 10:18:25 +00:00
Mike Stump
a29d9e20cc Update dates.
From-SVN: r157561
2010-03-19 09:22:38 +00:00
Mike Stump
48019e3db9 Canonicalize filenames.
From-SVN: r157560
2010-03-19 09:19:45 +00:00
Eric Botcazou
72c53a837c re PR ada/43106 (optimization error in a case statement)
PR ada/43106
	* gnat.dg/case_optimization2.adb: New test.
	* gnat.dg/case_optimization_pkg2.ad[sb]: New helper.

From-SVN: r157558
2010-03-19 07:18:47 +00:00
David S. Miller
9fd52c6c0f sparc.c: Include dwarf2out.h.
* config/sparc/sparc.c: Include dwarf2out.h.
	(emit_pic_helper): Delete.
	(pic_helper_symbol_name): Delete.
	(pic_helper_emitted_p): Delete.
	(pic_helper_needed): New.
	(USE_HIDDEN_LINKONCE): Define to '1' if HAVE_GAS_HIDDEN else '0'.
	(get_pc_thunk_name): New.
	(load_pic_register): Remove 'delay_pic_helper' arg.  Use
	get_thunk_pc_name and ggc_strdup to generate PIC thunk symbol.
	Set pic_helper_needed to true.  Don't call emit_pic_helper.
	(sparc_expand_prologue): Update load_pic_register call.
	(sparc_output_mi_thunk): Likewise.
	(sparc_file_end): Emit a hidden comdat symbol for the PIC
	thunk if possible.  Output CFI information as needed.

From-SVN: r157557
2010-03-18 22:34:12 -07:00
GCC Administrator
fda79fea62 Daily bump.
From-SVN: r157556
2010-03-19 00:16:39 +00:00
Francois-Xavier Coudert
b6010cabbb re PR target/36399 (ABI bug on darwin/x86-32)
2010-03-11  Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
	    Jack Howarth <howarth@bromo.med.uc.edu>

	PR target/36399
	* gcc/config/i386/i386.h: Fix ABI on darwin x86-32.
	* gcc/testsuite/gcc.target/i386/push-1.c: Don't xfail
	  scan-assembler-not "movups" on darwin.

Co-Authored-By: Jack Howarth <howarth@bromo.med.uc.edu>

From-SVN: r157553
2010-03-18 22:56:38 +00:00
Paul Thomas
1821bcfc49 re PR fortran/43039 ([lto/-fwhole-file] fortran-dev - ICE in gfc_conv_component_ref dynamic_dispatch_5.f03)
2010-03-18  Paul Thomas  <pault@gcc.gnu.org>

        PR fortran/43039
        * trans-expr.c (conv_parent_component_references): Ensure that
	'dt' has a backend_decl.

        PR fortran/43043
        * trans-expr.c (gfc_conv_structure): Ensure that the derived
	type has a backend_decl.

        PR fortran/43044
        * resolve.c (resolve_global_procedure): Check that the 'cl'
	structure is not NULL.

From-SVN: r157552
2010-03-18 21:23:35 +00:00
Aldy Hernandez
b1aa065584 tree.h: Declare make_decl_rtl_for_debug.
* tree.h: Declare make_decl_rtl_for_debug.
	* varasm.c (make_decl_rtl_for_debug): New.
	* dwarf2out.c (rtl_for_decl_location): Call it.
	* cfgexpand.c (expand_debug_expr): Call it.

From-SVN: r157551
2010-03-18 20:41:40 +00:00
Jakub Jelinek
9a05b74924 re PR target/43399 (bootstrap failure in stage1)
PR bootstrap/43399
	* var-tracking.c (adjust_mems) <case POST_MODIFY>: Allow BLKmode
	mem_mode.

From-SVN: r157550
2010-03-18 21:18:53 +01:00
Jakub Jelinek
f0c12fcc59 re PR bootstrap/43403 (ICE in stage1 compiling __bswapdi2)
PR bootstrap/43403
	* var-tracking.c (vt_init_cfa_base): Do nothing if
	cfa_base_rtx would be hard_frame_pointer_rtx or non-fixed
	register.

From-SVN: r157549
2010-03-18 21:17:32 +01:00
Alexandre Oliva
e999b0c986 re PR debug/42873 (deadlock in var tracking in recent builds)
PR debug/42873
	* var-tracking.c (canonicalize_vars_star): New.
	(dataflow_post_merge_adjust): Use it.

From-SVN: r157548
2010-03-18 21:16:48 +01:00
Jakub Jelinek
5644a3d0e3 re PR rtl-optimization/43058 (var-tracking uses up all virtual memory)
PR debug/43058
	* var-tracking.c (non_suitable_const): New function.
	(add_uses): For DEBUG_INSNs with constants, don't record any
	value, instead just the constant value itself.
	(compute_bb_dataflow) <case MO_VAL_LOC>: If PAT_VAR_LOCATION_LOC
	is not VAR_LOC_UNKNOWN_P, set var to the constant.
	(emit_notes_in_bb): Likewise.
	(emit_note_insn_var_location): For onepart variables if
	cur_loc is a VOIDmode constant, use DECL_MODE.

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

From-SVN: r157547
2010-03-18 21:15:05 +01:00
Martin Jambor
8132a837da re PR middle-end/42450 (another GCC 4.5 ICE on C++ templated code)
2010-03-18  Martin Jambor  <mjambor@suse.cz>

	PR middle-end/42450
	* cgraph.h (cgraph_redirect_edge_call_stmt_to_callee): Declare.
	* cgraphunit.c (cgraph_materialize_all_clones): Update calls in
	all non-clones.  Moved call redirection...
	(cgraph_redirect_edge_call_stmt_to_callee): ...to this new
	function.
	(cgraph_materialize_all_clones): Dispose of all
	combined_args_to_skip bitmaps.
	(verify_cgraph_node): Do not check for edges pointing to wrong
	nodes in inline clones.
	* tree-inline.c (copy_bb): Call
	cgraph_redirect_edge_call_stmt_to_callee.
	* ipa.c (cgraph_remove_unreachable_nodes): Call
	cgraph_node_remove_callees even when there are used clones.

	* testsuite/g++.dg/torture/pr42450.C: New test.

From-SVN: r157546
2010-03-18 21:07:13 +01:00