Commit Graph

105893 Commits

Author SHA1 Message Date
Rainer Orth
3c2e63dea1 re PR tree-optimization/46021 (3 tree-ssa tests XPASS almost everywhere)
PR tree-optimization/46021
	* gcc.dg/tree-ssa/20040204-1.c: Don't XFAIL on alpha*-*-*,
	i?86-*-*, x86_64-*-*.

From-SVN: r168635
2011-01-10 18:19:45 +00:00
Jeff Law
2e5e346da2 re PR tree-optimization/47141 (segfault)
* PR tree-optimization/47141
	* ipa-split.c (split_function): Handle case where we are returning a
	value and the return block has a virtual operand phi.

	* gcc.c-torture/compile/pr47141.c: New test.

Approved by richie in IRC

From-SVN: r168634
2011-01-10 09:48:42 -07:00
Jan Hubicka
cf9712ccc0 re PR tree-optimization/47234 (ipa-split is executed before profile feedback is read)
PR tree-optimization/47234 
	* tree-pass.h (TODO_rebuild_cgraph_edges): New TODO.
	(pass_feedback_split_functions): Declare.
	* passes.c (init_optimization_passes): Add ipa-split as subpass of
	tree-profile.
	* ipa-split.c (gate_split_functions): Update comments; disable
	split-functions for profile_arc_flag and branch_probabilities.
	(gate_feedback_split_functions): New function.
	(execute_feedback_split_functions): New function.
	(pass_feedback_split_functions): New global var.

From-SVN: r168632
2011-01-10 14:33:04 +00:00
H.J. Lu
94cd932cae Check e->call_stmt before calling gimple_call_set_cannot_inline.
2011-01-10  H.J. Lu  <hongjiu.lu@intel.com>

	PR lto/46760
	* tree-inline.c (tree_can_inline_p): Check e->call_stmt before
	calling gimple_call_set_cannot_inline.

From-SVN: r168631
2011-01-10 05:24:27 -08:00
Joseph Myers
18c9fa1720 * ja.po: Update.
From-SVN: r168630
2011-01-10 13:19:40 +00:00
Eric Botcazou
112578854e re PR testsuite/46230 (several vectorization tests FAIL or XPASS on SPARC)
PR testsuite/46230
	* gcc.dg/vect/vect-vfa-slp.c: Remove XFAIL.
	* gcc.dg/vect/slp-23.c: Remove XFAIL for SLP.
	* gcc.dg/vect/slp-35.c: Remove XFAILs.
	* gcc.dg/vect/no-tree-pre-slp-29.c: Likewise.

From-SVN: r168629
2011-01-10 12:51:00 +00:00
Eric Botcazou
81d8de64f3 re PR testsuite/46230 (several vectorization tests FAIL or XPASS on SPARC)
PR testsuite/46230
	* gcc.dg/vect/vect-peel-1.c (main): Prevent initialization loop from
	being vectorized.  Adjust dg-final pattern.  Remove XFAIL.
	* gcc.dg/vect/vect-peel-2.c (main): Likewise.
	* gcc.dg/vect/vect-peel-4.c (main): Prevent initialization loop from
	being vectorized.  Adjust dg-final pattern.

From-SVN: r168628
2011-01-10 12:41:40 +00:00
Eric Botcazou
af08e73446 re PR testsuite/46230 (several vectorization tests FAIL or XPASS on SPARC)
PR testsuite/46230
	* gcc.dg/vect/pr33804.c: XFAIL only for ilp32.
	* gcc.dg/vect/slp-24.c: Likewise.

From-SVN: r168627
2011-01-10 12:11:59 +00:00
Iain Sandoe
fbbfcaf185 darwin-sections.def: Remove unused section.
gcc:

	* config/darwin-sections.def: Remove unused section.

From-SVN: r168626
2011-01-10 08:41:58 +00:00
Dave Korn
d06865bf07 re PR c++/47218 (C++ multiple definitions of non-virtual thunk problem)
gcc/ChangeLog:

	PR c++/47218
	* cgraphunit.c (assemble_thunk): Call resolve_unique_section.

gcc/testsuite/ChangeLog:

	PR c++/47218
	* g++.dg/other/pr47218-1.C: New test file.
	* g++.dg/other/pr47218.C: Likewise.
	* g++.dg/other/pr47218.h: New supporting header.

From-SVN: r168624
2011-01-10 00:33:32 +00:00
GCC Administrator
637ebedd38 Daily bump.
From-SVN: r168623
2011-01-10 00:18:33 +00:00
Nicola Pero
96bbfbacda In gcc/: 2011-01-09 Nicola Pero <nicola.pero@meta-innovation.com>
In gcc/:
2011-01-09  Nicola Pero  <nicola.pero@meta-innovation.com>

	PR objc/47232
	* c-parser.c (c_parser_declaration_or_fndef): Improved
	error message.

In gcc/testsuite/:
2011-01-09  Nicola Pero  <nicola.pero@meta-innovation.com>

	PR objc/47232
	* objc.dg/attributes/invalid-attribute-1.m: New.
	* obj-c++.dg/attributes/invalid-attribute-1.mm: New.

From-SVN: r168619
2011-01-09 22:47:22 +00:00
Janus Weil
8977b4bb0d re PR fortran/47224 ([F03] ICE with procedure pointer component)
2011-01-09  Janus Weil  <janus@gcc.gnu.org>

	PR fortran/47224
	* resolve.c (resolve_actual_arglist): Remove unneeded and buggy piece
	of code.


2011-01-09  Janus Weil  <janus@gcc.gnu.org>

	PR fortran/47224
	* gfortran.dg/proc_ptr_comp_28.f90: New.

From-SVN: r168618
2011-01-09 22:01:38 +01:00
Iain Sandoe
20ad868865 gnu-api-2-class.mm: Skip for Darwin < 9.
gcc/testsuite:

	* obj-c++.dg/gnu-api-2-class.mm: Skip for Darwin < 9.
	* obj-c++.dg/gnu-api-2-ivar.mm: Likewise.
	* obj-c++.dg/gnu-api-2-method.mm: Likewise.
	* obj-c++.dg/gnu-api-2-objc.mm: Likewise.
	* obj-c++.dg/gnu-api-2-object.mm: Likewise.
	* obj-c++.dg/gnu-api-2-property.mm: Likewise.
	* obj-c++.dg/gnu-api-2-protocol.mm: Likewise.
	* obj-c++.dg/gnu-api-2-sel.mm: Likewise.
	* objc.dg/gnu-api-2-class.m: Likewise.
	* objc.dg/gnu-api-2-ivar.m: Likewise.
	* objc.dg/gnu-api-2-method.m: Likewise.
	* objc.dg/gnu-api-2-objc.m: Likewise.
	* objc.dg/gnu-api-2-object.m: Likewise.
	* objc.dg/gnu-api-2-property.m: Likewise.
	* objc.dg/gnu-api-2-protocol.m: Likewise.
	* objc.dg/gnu-api-2-sel.m: Likewise.

From-SVN: r168617
2011-01-09 16:59:00 +00:00
Iain Sandoe
5471aef02d foreach-1.m: Skip for Darwin < 9.
gcc/testsuite:

	* objc.dg/foreach-1.m: Skip for Darwin < 9.
	* objc.dg/objc-foreach-4.m: Likewise.
	* objc.dg/objc-foreach-5.m: Skip for Darwin < 9, adjust headers.
	* objc.dg/foreach-2.m: Skip for Darwin < 9, return self from init.
	* objc.dg/foreach-4.m: Likewise.
	* objc.dg/foreach-5.m: Likewise.
	* objc.dg/foreach-3.m: Return self from init.

From-SVN: r168616
2011-01-09 16:24:46 +00:00
Kai Tietz
1ba6516f4c winnt.c (i386_pe_start_function): Make sure to switch back to function's section.
2011-01-09  Kai Tietz  <kai.tietz@onevision.com>

        * config/i386/winnt.c (i386_pe_start_function): Make sure
        to switch back to function's section.

From-SVN: r168615
2011-01-09 17:20:13 +01:00
Thomas Koenig
32df61aee4 re PR fortran/38536 (ICE with C_LOC in resolve.c due to not properly going through expr->ref)
2011-01-09  Thomas Koenig  <tkoenig@gcc.gnu.org>

	PR fortran/38536
	* resolve.c (is_scalar_expr_ptr):  For a substring reference,
	use gfc_dep_compare_expr to compare start and end expession.
	Add FIXME for using gfc_deb_compare_expr elsewhere.

2011-01-09  Thomas Koenig  <tkoenig@gcc.gnu.org>

	PR fortran/38536
	* gfortran.dg/iso_c_binding_c_loc_char_1.f03:  New test.

From-SVN: r168614
2011-01-09 15:37:47 +00:00
Joseph Myers
8df6219395 * ja.po, sv.po: Update.
From-SVN: r168613
2011-01-09 14:57:15 +00:00
Jan Hubicka
03ebe6c3b3 re PR lto/47225 (cross-compile fails while configuring libgcc with "xgcc: fatal error: -fuse-linker-plugin, but liblto_plugin.so not found")
PR lto/47225
	* Makefile.in: Regenerate.
	* Makefile.def (lto-plugin): Always pass enable-shared to the plugin
	configure.

From-SVN: r168612
2011-01-09 14:34:41 +00:00
Iain Sandoe
0c5d770e3b re PR c/46902 (gcc.dg/plugin/plugindir*.c gives ICEs on powerpc-apple-darwin9)
PR gcc/46902
	PR testsuite/46912
	* plugin.c: Move include of dlfcn.h from here...
	* system.h: ... to here.

From-SVN: r168611
2011-01-09 12:41:33 +00:00
Janus Weil
b52956be02 re PR fortran/46313 ([OOP] class container naming collisions)
2011-01-09  Janus Weil  <janus@gcc.gnu.org>

	PR fortran/46313
	* class.c (get_unique_type_string): Make type name start with upper
	case letter.


2011-01-09  Janus Weil  <janus@gcc.gnu.org>

	PR fortran/46313
	* gfortran.dg/class_35.f90: New.

From-SVN: r168610
2011-01-09 11:35:50 +01:00
Ralf Wildenhues
4ee1aa2a94 doc: cpp manual nits
gcc/:
	* doc/cpp.texi (C++ Named Operators): Fix markup for header
	file name.
	* doc/cppinternals.texi (Top): Wrap node in @ifnottex to avoid
	two extra empty pages in PDF output.

From-SVN: r168609
2011-01-09 07:18:42 +00:00
GCC Administrator
ad3f0a407d Daily bump.
From-SVN: r168608
2011-01-09 00:18:03 +00:00
Thomas Koenig
f90b55a606 re PR fortran/46405 (Preprocessor generated code can exceed 132 characters)
2011-01-08  Thomas Koenig  <tkoenig@gcc.gnu.org>

	PR fortran/46405
	* invoke.texi:  Mention -ffree-line-length-none and
	-ffixed-line-length-none for preprocessing.

From-SVN: r168604
2011-01-08 22:59:42 +00:00
Iain Sandoe
28a2c1d594 update gcc/objc/Changelog copyright years.
From-SVN: r168603
2011-01-08 20:47:27 +00:00
Iain Sandoe
5d19c15004 objc-act.c (objc_finish_foreach_loop): Mark collection expression as read.
gcc/objc:

	* objc-act.c (objc_finish_foreach_loop): Mark collection expression
	as read.

gcc/testsuite:

	* objc.dg/foreach-1.m: Add "-Wall" to flags.

From-SVN: r168602
2011-01-08 20:32:32 +00:00
Nicola Pero
046608a3e0 In gcc/: 2011-01-08 Nicola Pero <nicola.pero@meta-innovation.com>
In gcc/:
2011-01-08  Nicola Pero  <nicola.pero@meta-innovation.com>

	PR objc/47078
	* c-parser.c (c_parser_objc_type_name): If the type is unknown,
	for error recovery purposes behave as if it was not specified so
	that the default type is usd.

In gcc/testsuite/:
2011-01-08  Nicola Pero  <nicola.pero@meta-innovation.com>

	PR objc/47078
	* objc.dg/invalid-method-2.m: New.
	* obj-c++.dg/invalid-method-2.mm: New.

In gcc/cp/:
2011-01-08  Nicola Pero  <nicola.pero@meta-innovation.com>

	PR objc/47078
	* parser.c (cp_parser_objc_typename): If the type is unknown, for
	error recovery purposes behave as if it was not specified so that
	the default type is used.

From-SVN: r168601
2011-01-08 19:44:30 +00:00
Paul Thomas
f1f39033ac re PR fortran/46896 (Wrong code with transpose(a) passed to subroutine)
2011-01-08  Paul Thomas  <pault@gcc.gnu.org>

	PR fortran/46896
	* trans-expr.c (gfc_conv_procedure_call): With a non-copying
	procedure argument (eg TRANSPOSE) use a temporary if there is
	any chance of aliasing due to host or use association.
	(arrayfunc_assign_needs_temporary): Correct logic for function
	results and do not use a temporary for implicitly PURE
	variables.  Use a temporary for Cray pointees.
	* symbol.c (gfc_add_save): Explicit SAVE not compatible with
	implicit pureness of containing procedure.
	* decl.c (match_old_style_init, gfc_match_data): Where decl
	would fail in PURE procedure, set implicit_pure to zero.
	* gfortran.h : Add implicit_pure to structure symbol_attr and
	add prototype for function gfc_implicit_pure.
	* expr.c (gfc_check_pointer_assign, gfc_check_vardef_context):
	Where decl would fail in PURE procedure, reset implicit_pure.
	* io.c (match_vtag, gfc_match_open, gfc_match_close,
	gfc_match_print, gfc_match_inquire, gfc_match_wait): The same.
	* match.c (gfc_match_critical, gfc_match_stopcode,
	sync_statement, gfc_match_allocate, gfc_match_deallocate): The
	same.
	* parse.c (decode_omp_directive): The same.
	(parse_contained): If not PURE, set implicit pure attribute.
	* resolve.c (resolve_formal_arglist, resolve_structure_cons,
	resolve_function, resolve_ordinary_assign) : The same.
	(gfc_implicit_pure): New function.
	* module.c (mio_symbol_attribute): Introduce AB_IMPLICIT_PURE
	to ab_attribute enum and use it in this function.

2011-01-08  Paul Thomas  <pault@gcc.gnu.org>

	PR fortran/46896
	* gfortran.dg/transpose_optimization_2.f90 : New test.

From-SVN: r168600
2011-01-08 19:17:03 +00:00
Joseph Myers
f69e4b94c1 * ja.po: Update.
From-SVN: r168599
2011-01-08 16:41:39 +00:00
Jan Hubicka
8cb114b9a9 re PR tree-optimization/46469 (ICE: verify_cgraph_node failed: inline clone is needed at -O)
PR tree-optmization/46469
	* ipa.c (function_and_variable_visibility): Clear needed flags on
	nodes with external decls; handle weakrefs merging correctly.

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

From-SVN: r168598
2011-01-08 16:33:57 +00:00
Iain Sandoe
d5dc93f446 ObjC NeXT, split encode-support code from next-mapping.h
* objc-obj-c++-shared/next-mapping.h: Move code and definitions for
	emulation of libobjc-gnu structure layout functionality to ..
	* objc-obj-c++-shared/objc-test-suite-next-encode-assist.h: New.
	* objc-obj-c++-shared/objc-test-suite-next-encode-assist-impl.h: New.
	* objc/execute/bf-common.h: Adjust headers.
	* objc/execute/bf-1.m: Likewise.
	* objc/execute/bf-2.m: Likewise.
	* objc/execute/bf-3.m: Likewise.
	* objc/execute/bf-4.m: Likewise.
	* objc/execute/bf-5.m: Likewise.
	* objc/execute/bf-6.m: Likewise.
	* objc/execute/bf-7.m: Likewise.
	* objc/execute/bf-8.m: Likewise.
	* objc/execute/bf-9.m: Likewise.
	* objc/execute/bf-10.m: Likewise.
	* objc/execute/bf-11.m: Likewise.
	* objc/execute/bf-12.m: Likewise.
	* objc/execute/bf-13.m: Likewise.
	* objc/execute/bf-14.m: Likewise.
	* objc/execute/bf-15.m: Likewise.
	* objc/execute/bf-16.m: Likewise.
	* objc/execute/bf-17.m: Likewise.
	* objc/execute/bf-18.m: Likewise.
	* objc/execute/bf-19.m: Likewise.
	* objc/execute/bf-20.m: Likewise.
	* objc/execute/bf-21.m: Likewise.
	* objc/execute/bycopy-3.m: Adjust headers, add next-specific code for
	objc_get_type_qualifiers ().

From-SVN: r168597
2011-01-08 14:12:14 +00:00
Thomas Koenig
ecb3baaa8e re PR fortran/45777 (Alias analysis broken for arrays where LHS or RHS is a component ref)
2011-01-08  Thomas Koenig  <tkoenig@gcc.gnu.org>

	PR fortran/45777
	* symbol.c (gfc_symbols_could_alias):  Strip gfc_ prefix,
	make static and move in front of its only caller, to ...
	* trans-array.c (symbols_could_alias): ... here.
	Pass information about pointer and target status as
	arguments.  Allocatable arrays don't alias anything
	unless they have the POINTER attribute.
	(gfc_could_be_alias):  Keep track of pointer and target
	status when following references.  Also check if typespecs
	of components match those of other components or symbols.

2011-01-08  Thomas Koenig  <tkoenig@gcc.gnu.org>

	PR fortran/45777
	* gfortran.dg/dependency_39.f90:  New test.

From-SVN: r168596
2011-01-08 09:38:13 +00:00
Eric Botcazou
72e961c86a Fix long lines
From-SVN: r168595
2011-01-08 07:56:36 +00:00
Joseph Myers
b294a75eaf opts.c (finish_options): Set opts->x_flag_opts_finished to true, not false.
* opts.c (finish_options): Set opts->x_flag_opts_finished to true,
	not false.

From-SVN: r168594
2011-01-08 01:59:33 +00:00
Jan Hubicka
96bdf9b403 Makefile.in: Regenerate.
* Makefile.in: Regenerate.
	* Makefile.def (gcc host module) and soft dependency on lto-plugin
	and configure dependency on lto-plugin configure.
	(lto-plugin module): Remove dependency on GCC; add dependency on
	liniberty.

	* doc/invoke.texi: (-flto, -fuse-linker-plugin): Update defaults
	and no longer claim that gold is required for linker plugin.
	* configure: Regenerate.
	* gcc.c (PLUGIN_COND): New macro.
	(LINK_COMMAND_SPEC): Use it.
	(main): Default to plugin enabled with HAVE_LTO_PLUGIN is set.
	* config.in (HAVE_LTO_PLUGIN): New.
	* configure.ac (--with-lto-plugin): New parameter; autodetect
	HAVE_LTO_PLUGIN.

From-SVN: r168593
2011-01-08 01:37:00 +00:00
GCC Administrator
f35cafc9ff Daily bump.
From-SVN: r168592
2011-01-08 00:18:00 +00:00
Jan Hubicka
804a780f85 Get builtins tests ready for linker plugin.
* gcc.c-torture/execute/builtins/memcpy-chk.c (s2,s3,l1): Mark volatile.
	* gcc.c-torture/execute/builtins/memops-asm-lib.c (my_memcpy, my_bcopy, my_memset,
	my_bzero): Mark used.
	* gcc.c-torture/execute/builtins/memset-chk.c (l1, l3): Mark volatile.
	* gcc.c-torture/execute/builtins/memmove-chk.c (s1,s2,s3,l1): Mark volatile.
	* gcc.c-torture/execute/builtins/mempcpy-chk.c (s2,s3,l1): Mark volatile

From-SVN: r168588
2011-01-07 23:29:27 +00:00
Jan Hubicka
17afc0fe9c re PR tree-optimization/46367 (ICE during cgraph edge cloning)
PR tree-optimization/46367
	* g++.dg/torture/pr46367.C: New file.
	* ipa-inline.c (cgraph_clone_inlined_nodes): Use original function only
	when we can update original.
	(cgraph_mark_inline_edge): Sanity check.
	* ipa-prop.c (ipa_make_edge_direct_to_target): Sanity check.

From-SVN: r168587
2011-01-07 22:52:54 +00:00
William Schmidt
c12e816f59 * MAINTAINERS (Write After Approval): Add myself.
From-SVN: r168586
2011-01-07 21:54:14 +00:00
Kai Tietz
dc1b62ea18 re PR bootstrap/47215 (Failed to bootstrap)
2011-01-07  Kai Tietz  <kai.tietz@onevision.com>

        PR bootstrap/47215
        * decl.c (java_init_decl_processing): Initialize unsigned_type_node.

From-SVN: r168585
2011-01-07 22:11:48 +01:00
Ulrich Weigand
d4c48c0f58 * config/spu/spu.h (ASM_COMMENT_START): Define.
From-SVN: r168584
2011-01-07 21:08:03 +00:00
H.J. Lu
96f5b13771 Keep -m[arch|tune]=native in COLLECT_GCC_OPTIONS.
2011-01-07  H.J. Lu  <hongjiu.lu@intel.com>

	PR driver/42445
	* gcc.c (%>S): New.
	(SWITCH_KEEP_FOR_GCC): Likewise.
	(set_collect_gcc_options): Check SWITCH_KEEP_FOR_GCC.
	(do_spec_1): Handle "%>".

	* config/i386/i386.h (CC1_CPU_SPEC): Replace "%<" with "%>".

From-SVN: r168583
2011-01-07 12:35:05 -08:00
Jakub Jelinek
c21bbd7a5e re PR target/47201 (ICE: SIGSEGV in adjust_mems (var-tracking.c:814) with -O -fPIC -g)
PR target/47201
	* config/i386/i386.c (ix86_delegitimize_address): If
	simplify_gen_subreg fails, return orig_x.

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

From-SVN: r168582
2011-01-07 19:41:40 +01:00
Jakub Jelinek
c6a8f6de08 re PR bootstrap/47187 (profiledbootstrap failure on i386)
PR bootstrap/47187
	* value-prof.c (gimple_stringop_fixed_value): Handle
	lhs of the call properly.

	* gcc.dg/tree-prof/pr47187.c: New test.

From-SVN: r168581
2011-01-07 19:39:11 +01:00
Jan Hubicka
fe95fbf907 re PR lto/45375 ([meta-bug] Issues with building Mozilla (i.e. Firefox) with LTO)
PR lto/45375
	* lto-opt.c (lto_reissue_options): Set flag_shlib.

From-SVN: r168580
2011-01-07 18:21:00 +00:00
Tobias Burnus
eaf31d823f re PR fortran/41580 ([OOP] SAME_TYPE_AS and EXTENDS_TYPE_OF - add compile-time simplifcation)
2011-01-07  Tobias Burnus  <burnus@net-b.de>

        PR fortran/41580
        * class.c (gfc_build_class_symbol): Mark __vtab as attr.vtab.
        * intrinsic.c (add_functions): Use simplify functions for
        EXTENDS_TYPE_OF and SAME_TYPE_AS.
        * intrinsic.h (gfc_simplify_extends_type_of,
        gfc_simplify_same_type_as): New prototypes.
        * simplify.c (is_last_ref_vtab, gfc_simplify_extends_type_of,
        gfc_simplify_same_type_as): New functions.

2011-01-07  Tobias Burnus  <burnus@net-b.de>

        PR fortran/41580
        * gfortran.dg/extends_type_of_3.f90: New.

From-SVN: r168579
2011-01-07 17:19:29 +01:00
Joseph Myers
138d831e9b * ru.po: New.
From-SVN: r168573
2011-01-07 14:34:04 +00:00
Kai Tietz
a76d8c3c76 dllexport-MI1.C: Adjust test.
2011-01-07  Kai Tietz  <kai.tietz@onevision.com>

        * g++.dg/ext/dllexport-MI1.C: Adjust test.
        * g++.dg/ext/dllimport-MI1.C: Likewise.
        * g++.dg/ext/dllimport1.C: Add test for x86_64-*-mingw*.
        * g++.dg/ext/dllimport10.C: Likewise.
        * g++.dg/ext/dllimport11.C: Likewise.
        * g++.dg/ext/dllimport12.C: Likewise.
        * g++.dg/ext/dllimport13.C: Likewise.
        * g++.dg/ext/dllimport2.C: Likewise.
        * g++.dg/ext/dllimport3.C: Likewise.
        * g++.dg/ext/dllimport4.C: Likewise.
        * g++.dg/ext/dllimport5.C: Likewise.
        * g++.dg/ext/dllimport6.C: Likewise.
        * g++.dg/ext/dllimport8.C: Likewise.
        * g++.dg/ext/dllimport9.C: Likewise.
        * g++.dg/ext/selectany2.C: Enable test for x86_64-*-mingw*
        targets, too. Additionally enable test for i?86-*-mingw*.
        * g++.dg/ext/selectany1.C: Likewise.
        Remove guard variable check.

From-SVN: r168572
2011-01-07 15:12:43 +01:00
Iain Sandoe
14d11d4097 allow the target to label code fragments generated by partitioning.
* target.def (function_switched_text_sections): New Hook.
	* doc/tm.texi Regenerated.
	* doc/tm.texi.in (TARGET_ASM_FUNCTION_SWITCHED_TEXT_SECTIONS)
	New.
	* final.c (default_function_switched_text_sections): New.
	(final_scan_insn): Call function_switched_text_sections when a mid-function section
	change occurs.
	* output.h (default_function_switched_text_sections): Declare.
	* config/darwin-protos.h (darwin_function_switched_text_sections) : Likewise.
	* config/darwin.c (darwin_function_switched_text_sections): New.
	* config/darwin.h (TARGET_ASM_FUNCTION_SWITCHED_TEXT_SECTIONS)
	New.

From-SVN: r168571
2011-01-07 13:57:45 +00:00
Iain Sandoe
0b764288f9 provide pubnames when there are multiple code sections
* dwarf2out.c (gen_subprogram_die):  Add pubnames with code ranges for
	DWARF >= 3.  Add pubnames for the primary section and a reduced DIE for
	the secondary code fragment when outputting for DWARF == 2.

From-SVN: r168570
2011-01-07 13:52:29 +00:00