Commit Graph

96353 Commits

Author SHA1 Message Date
Jakub Jelinek
7613143b72 dwarf2out.c (dwarf_tag_name): Handle DW_TAG_rvalue_reference_type and DW_TAG_template_alias.
* dwarf2out.c (dwarf_tag_name): Handle DW_TAG_rvalue_reference_type
	and DW_TAG_template_alias.
	(dwarf_attr_name): Handle DW_AT_main_subprogram,
	DW_AT_data_bit_offset, DW_AT_const_expr, DW_AT_enum_class,
	DW_AT_linkage_name, DW_AT_GNU_guarded_by, DW_AT_GNU_pt_guarded_by,
	DW_AT_GNU_guarded, DW_AT_GNU_pt_guarded, DW_AT_GNU_locks_excluded,
	DW_AT_GNU_exclusive_locks_required, DW_AT_GNU_shared_locks_required
	and DW_AT_GNU_odr_signature.
	(dwarf_form_name): Handle DW_FORM_sec_offset, DW_FORM_exprloc,
	DW_FORM_flag_present and DW_FORM_ref_sig8.
	(output_signature): Only print name on the first byte.
	(output_die): Likewise for dw_val_class_data8.

	* include/dwarf2.h (DW_LANG_Python): Add comment that it is
	a DWARF 4 addition.

From-SVN: r152853
2009-10-15 18:40:52 +02:00
Alexander Monakov
83bb5ce30b invoke.texi: Clarify that most optimizations are not enabled without -O.
2009-10-15  Alexander Monakov  <amonakov@ispras.ru>

	* doc/invoke.texi: Clarify that most optimizations are not enabled
	without -O.

From-SVN: r152852
2009-10-15 20:10:49 +04:00
Richard Guenther
77785f4f7a re PR lto/41668 (ICE in get_alias_set, at alias.c:698)
2009-10-15  Richard Guenther  <rguenther@suse.de>

	PR lto/41668
	* gimple.c (compare_type_names_p): Handle anonymous names
	differently based on new mode argument.
	(gimple_types_compatible_p): For structs also compare the tags.
	(iterative_hash_type_name): Rename to ...
	(iterative_hash_name): ... this.  Hash all names.
	(iterative_hash_gimple_type): Fix hashing the struct tag of
	pointer targets.  Hash field decl names.

From-SVN: r152851
2009-10-15 16:04:29 +00:00
Richard Guenther
4c8160e78b re PR lto/41669 (Infinite recursion trying to build gcc)
2009-10-15  Richard Guenther  <rguenther@suse.de>

	PR lto/41669
	* gimple.c (gimple_get_alias_set): Avoid recursing on
	invalid type topology.

	* gcc.dg/lto/20091015-1_0.c: New testcase.
	* gcc.dg/lto/20091015-1_1.c: Likewise.
	* gcc.dg/lto/20091015-1_2.c: Likewise.
	* gcc.dg/lto/20091015-1_a.h: Likewise.
	* gcc.dg/lto/20091015-1_b.h: Likewise.

From-SVN: r152850
2009-10-15 16:03:32 +00:00
Steve Ellcey
b8b6edc9d9 pr41555.c: Add -std=c99 option.
2009-10-15  Steve Ellcey  <sje@cup.hp.com>

	* gcc.dg/torture/pr41555.c: Add -std=c99 option.

From-SVN: r152848
2009-10-15 15:40:31 +00:00
Andrew Pinski
3f25460732 spu.c (get_branch_target): Use extract_asm_operands.
2009-10-15  Andrew Pinski  <andrew_pinski@playstation.sony.com>

        * config/spu/spu.c (get_branch_target): Use extract_asm_operands.

From-SVN: r152847
2009-10-15 08:12:03 -07:00
Rafael Avila de Espindola
b10071c5cf lto-plugin.c (resolution_file): New.
2009-10-15  Rafael Avila de Espindola  <espindola@google.com>

	* lto-plugin.c (resolution_file): New.
	(free_1): Update comment.
	(free_2): Free resolution_file.
	(write_resolution): Write resolution to specified file. Use the
	syms array from the symbol table.
	(all_symbols_read_handler): Delay call to free_1 past call to
	write_resolution.
	(process_option): Add a -resolution option.

From-SVN: r152846
2009-10-15 14:36:40 +00:00
Jim Blandy
dda4416508 2009-10-15 Jim Blandy <jimb@red-bean.com>
* libgnuintl.h (_INTL_MAY_RETURN_STRING_ARG, gettext, dgettext)
	(dcgettext, ngettext, dngettext, dcngettext): Backport changes
	from current gettext to provide GCC format_arg attributes.

From-SVN: r152842
2009-10-15 08:56:02 +00:00
Richard Guenther
23503efce3 tree.c (free_lang_data_in_decl): Free DECL_FCONTEXT.
2009-10-15  Richard Guenther  <rguenther@suse.de>

	* tree.c (free_lang_data_in_decl): Free DECL_FCONTEXT.

From-SVN: r152841
2009-10-15 08:53:35 +00:00
Jakub Jelinek
b44dd04358 option-defaults.h (OPTION_DEFAULT_SPECS): Don't add --with-tune{,-32,-64} configured default for -mtune if...
* config/rs6000/option-defaults.h (OPTION_DEFAULT_SPECS): Don't
	add --with-tune{,-32,-64} configured default for -mtune if explicit
	-mcpu is used.

From-SVN: r152799
2009-10-15 09:34:25 +02:00
Benjamin Kosnik
49d60f14c0 authors.xml: Update.
2009-10-14  Benjamin Kosnik  <bkoz@redhat.com>

	* doc/xml/authors.xml: Update.
	* doc/xml/manual/intro.xml: Move test section...
	* doc/xml/manual/appendix_porting.xml: ...here.
	* doc/xml/manual/diagnostics.xml: Edit.
	* doc/xml/manual/using.xml: Break out exception section.
	* doc/xml/manual/using_exceptions.xml: New.
	* doc/html: Regenerate.

From-SVN: r152797
2009-10-15 02:51:30 +00:00
Paolo Carlini
7fee263aa4 gnu.ver: Export the _S_construct<> helpers.
2009-10-14  Paolo Carlini  <paolo.carlini@oracle.com>

	* config/abi/pre/gnu.ver: Export the _S_construct<> helpers.

From-SVN: r152796
2009-10-15 02:39:28 +00:00
DJ Delorie
186746591a h8300.c (F): New.
* config/h8300/h8300.c (F): New.
(Fpa): New.
(h8300_emit_stack_adjustment): Call them.
(push): Likewise.
(h8300_push_pop): Likewise.
(h8300_expand_prologue): Likewise.
* config/h8300/h8300.h (DWARF2_DEBUGGING_INFO): Define.
(MUST_USE_SJLJ_EXCEPTIONS): Define.
(INCOMING_RETURN_ADDR_RTX): Define.
(INCOMING_FRAME_SP_OFFSET): Define.
(DWARF_CIE_DATA_ALIGNMENT): Define.

From-SVN: r152795
2009-10-14 22:30:48 -04:00
Paolo Carlini
5cab701369 basic_string.h (operator+=(initializer_list<>), [...]): Forward to the append overload taking a const CharT* pointer and a size...
2009-10-14  Paolo Carlini  <paolo.carlini@oracle.com>

	* include/bits/basic_string.h (operator+=(initializer_list<>),
	append(initializer_list<>)): Forward to the append overload taking
	a const CharT* pointer and a size, thus avoiding instantiating
	unnecessarily in the built library the overload taking a pair of
	iterators.
	(operator=(initializer_list<>), assign(initializer_list<>)): Likewise
	for assign.
	(insert(iterator, initializer_list<>): Likewise for insert.

From-SVN: r152794
2009-10-15 01:16:53 +00:00
GCC Administrator
b2b5d6e34d Daily bump.
From-SVN: r152793
2009-10-15 00:17:03 +00:00
Paolo Carlini
1351c40132 c++config: Do not disable extern templates for string in plain parallel-mode and in...
2009-10-14  Paolo Carlini  <paolo.carlini@oracle.com>

	* include/bits/c++config: Do not disable extern templates for string
	in plain parallel-mode and in profile-mode; add comment explaining
	_GLIBCXX_EXTERN_TEMPLATE == -1.
	* testsuite/ext/profile/mutex_extensions.cc: Adjust dg-error line.

From-SVN: r152790
2009-10-15 00:01:05 +00:00
Paolo Carlini
4299992823 c++config: Do not disable extern templates for string in plain parallel-mode and in...
2009-10-14  Paolo Carlini  <paolo.carlini@oracle.com>

	* include/bits/c++config: Do not disable extern templates for string
	in plain parallel-mode and in profile-mode; add comment explaining
	_GLIBCXX_EXTERN_TEMPLATE == -1.

From-SVN: r152789
2009-10-14 23:50:09 +00:00
Jakub Jelinek
4c0a0455ea stor-layout.c (place_field): Don't emit -Wpadded warnings for fields in builtin structs.
* stor-layout.c (place_field): Don't emit -Wpadded warnings for
	fields in builtin structs.
	(finalize_record_size): Likewise.

	* obj-c++.dg/layout-1.mm: Don't xfail dg-bogus on lp64, change
	line from 1 to 0.
	* obj-c++.dg/bitfield-1.mm: Likewise.
	* obj-c++.dg/bitfield-4.mm: Likewise.

From-SVN: r152780
2009-10-14 23:30:19 +02:00
Richard Guenther
3e8c245c4e re PR lto/41173 ([LTO] internal error: builtin function to __builtin_spe_mtspefscr already processed)
2009-10-14  Richard Guenther  <rguenther@suse.de>

	PR lto/41173
	* gcc.dg/lto/20091014-1_0.c: New testcase.

From-SVN: r152778
2009-10-14 19:55:49 +00:00
Daniel Gutson
8cb32ff23b neon.md (neon_vshll_n<mode>): Checking Bounds fixed.
2009-10-14  Daniel Gutson  <dgutson@codesourcery.com>

        gcc/
        * config/arm/neon.md (neon_vshll_n<mode>): Checking Bounds
        fixed.

        gcc/testsuite/
        * gcc.target/arm/neon/vfp-shift-a2t2.c: New test case.

From-SVN: r152777
2009-10-14 19:18:20 +00:00
Richard Guenther
88ca1146aa gimple.c (gtc_ob): New global.
2009-10-14  Richard Guenther  <rguenther@suse.de>

	* gimple.c (gtc_ob): New global.
	(struct type_pair_d): Replace pointers with type UIDs.
	(type_pair_hash): Adjust.
	(type_pair_eq): Likewise.
	(lookup_type_pair): Likewise.  Allocate from an obstack.
	(gimple_force_type_merge): Adjust.
	(gimple_types_compatible_p): Likewise.
	(free_gimple_type_tables): Free the obstack.

From-SVN: r152776
2009-10-14 18:39:45 +00:00
Jakub Jelinek
0f66d09c1e re PR middle-end/41707 (g++.dg/plugin/attribute_plugin-test-1.C failed)
PR testsuite/41707
	* g++.dg/plugin/attribute_plugin-test-1.C: Expect the first
	warning on line 0 instead of 1.

From-SVN: r152773
2009-10-14 19:06:39 +02:00
Jakub Jelinek
4f2a9af862 tree-parloops.c (separate_decls_in_region_debug_bind): Drop debug stmts setting DEBUG_EXPR_DECLs.
* tree-parloops.c (separate_decls_in_region_debug_bind): Drop debug
	stmts setting DEBUG_EXPR_DECLs.

	* cfgexpand.c (expand_debug_expr): Ignore zero-length bitfields.
	Don't crash if mode1 is VOIDmode.

From-SVN: r152772
2009-10-14 19:05:45 +02:00
Vladimir Makarov
1833192f30 params.def (PARAM_IRA_LOOP_RESERVED_REGS): New.
2009-09-26  Vladimir Makarov  <vmakarov@redhat.com>

	* params.def (PARAM_IRA_LOOP_RESERVED_REGS): New.
	* params.h (IRA_LOOP_RESERVED_REGS): New
	* tree-pass.h (pass_subregs_of_mode_init,
	pass_subregs_of_mode_finish): Remove.
	* passes.c (pass_subregs_of_mode_init,
	pass_subregs_of_mode_finish): Remove.
	(pass_reginfo_init): Move before loop optimizations.
	* config/i386/i386.h (STACK_REG_COVER_CLASS): Define.
	* common.opt (fira-loop-pressure): New.
	* toplev.h (flag_ira_loop_pressure): New.
	* rtl.h (init_subregs_of_mode, finish_subregs_of_mode): New
	externals.
	* reginfo.c (init_subregs_of_mode, finish_subregs_of_mode):
	Make external and void type functions.
	(gate_subregs_of_mode_init, pass_subregs_of_mode_init,
	pass_subregs_of_mode_finish): Remove.
	* ira-costs.c (init_costs): Call init_subregs_of_mode.
	* regmove.c: Include ira.h.
	(regmove_optimize): Call ira_set_pseudo_classes after IRA based
	register pressure calculation in loops.
	* loop-invariant.c: Include REGS_H and ira.h.
	(struct loop_data): New members max_reg_pressure, regs_ref, and
	regs_live.
	(struct invariant): New member orig_regno.
	(curr_loop): New variable.
	(find_exits): Initialize regs_ref and regs_live.
	(create_new_invariant): Initialize orig_regno.
	(get_cover_class_and_nregs): New.
	(get_inv_cost): Make aregs_needed an array.  Use regs_needed as an
	array.  Add code for flag_ira_loop_pressure.
	(gain_for_invariant): Make new_regs an array.  Add code for
	flag_ira_loop_pressure.
	(best_gain_for_invariant): Ditto.
	(set_move_mark): New parameter gain.  Use it for debugging output.
	(find_invariants_to_move): Make regs_needed and new_regs an array.
	Add code for flag_ira_loop_pressure.
	(move_invariant_reg): Set up orig_regno.
	(move_invariants): Set up reg classes for pseudos for
	flag_ira_loop_pressure.
	(free_loop_data): Clear regs_ref and regs_live.
	(curr_regs_live, curr_reg_pressure, regs_set, n_regs_set,
	get_regno_cover_class, change_pressure, mark_regno_live,
	mark_regno_death, mark_reg_store, mark_reg_clobber,
	mark_reg_death, mark_ref_regs, calculate_loop_reg_pressure): New.
	(move_loop_invariants): Calculate pressure.  Initialize curr_loop.
	* ira.c (ira): Call ira_set_pseudo_classes after IRA based
	register pressure calculation in loops if new regs were added.
	Call finish_subregs_of_mode.
	* opts.c (decode_options): Set up flag_ira_loop_pressure.
	* Makefile.in (loop-invariant.o): Add ira.h.
	(regmove.o): Ditto.
	* doc/invoke.texi (-fira-loop-pressure, ira-loop-reserved-regs):
	Describe.
	* doc/tm.texi (STACK_REG_COVER_CLASS): Describe.

From-SVN: r152770
2009-10-14 16:24:11 +00:00
Richard Guenther
200c8750d6 lto-symtab.c (lto_symtab_compatible): Fold in ...
2009-10-14  Richard Guenther  <rguenther@suse.de>

	* lto-symtab.c (lto_symtab_compatible): Fold in ...
	(lto_symtab_merge): ... here.  Rewrite both to take the
	prevailing and a to-be-merged entry and to queue diagnostics
	properly.
	(lto_symtab_resolve_replaceable_p): New predicate for
	symbol resolution.
	(lto_symtab_resolve_can_prevail_p): Likewise.
	(lto_symtab_resolve_symbols): Rewrite.  Fold in code that
	handles merging commons by choosing the largest decl.  Fold
	in code that gives ODR errors.
	(lto_symtab_merge_decls_2): Simplify a lot.  Emit queued
	diagnostics here.
	(lto_symtab_merge_decls_1): Re-structure.  Deal with the
	case of no prevailing decl here.  Diagnose mismatches
	in object types here.  Drop all but the prevailing decls.
	(lto_symtab_prevailing_decl): Return the single prevailing decl.
	* lto-streamer-in.c (lto_input_tree_ref): Deal with
	VIEW_CONVERT_EXPRs in decl slots.  Unshare the tree in this case.

	lto/
	* lto.c (lto_fixup_tree): In case the prevailing decl is not
	compatible with the one we replace wrap it around a
	VIEW_CONVERT_EXPR.

From-SVN: r152768
2009-10-14 14:14:44 +00:00
Richard Guenther
77ce724c6b re PR lto/41521 ([LTO] ICE verify_cgraph_node only with "-g")
2009-10-14  Richard Guenther  <rguenther@suse.de>

	PR lto/41521
	* lto-streamer-in.c (input_bb): Replace debug stmts with
	nops instead of dropping them.

	* gfortran.dg/lto/pr41521_0.f90: New testcase.
	* gfortran.dg/lto/pr41521_1.f90: Likewise.

From-SVN: r152767
2009-10-14 13:08:44 +00:00
Nick Clifton
8ad1dde72b extended.texi: Replace the dash character with @minus{} in situations where it is being used...
* gcc/doc/extended.texi: Replace the dash character with
    @minus{} in situations where it is being used as a minus
    symbol.
    * gcc/doc/tm.texi: Likewise.
    * gcc/doc/invoke.texi: Likewise.
    * gcc/doc/md.texi: Likewise.

From-SVN: r152765
2009-10-14 12:05:33 +00:00
Jakub Jelinek
96c169e156 re PR preprocessor/41543 (BUILTINS_LOCATION wrong with -fpreprocessed)
PR preprocessor/41543
	* input.h (BUILTINS_LOCATION): Change to 1 from 2.
	Assert BUILTINS_LOCATION < RESERVED_LOCATION_COUNT.
	* tree.c: Include intl.h.
	(expand_location): Handle BUILTINS_LOCATION.
	* Makefile.in (tree.o): Depend on intl.h.

	* include/line-map.h (RESERVED_LOCATION_COUNT): Define.
	* line-map.c (linemap_init): Initialize highest_location and
	highest_line to RESERVED_LOCATION_COUNT-1 instead of 0.

	* gcc.dg/debug/dwarf2/pr41543.c: New test.

From-SVN: r152761
2009-10-14 12:04:22 +02:00
Jakub Jelinek
b29ee46cf2 re PR debug/41695 (Invalid .debug_loc created)
PR debug/41695
	* dwarf2out.c (dwarf2out_var_location): Always clear
	last_postcall_label when changing last_label.

	* gcc.dg/debug/dwarf2/pr41695.c: New test.

From-SVN: r152760
2009-10-14 11:53:55 +02:00
Pascal Obry
1b5bc8e9f2 gcc.c (DEFAULT_SWITCH_CURTAILS_COMPILATION): Add -E.
* gcc.c (DEFAULT_SWITCH_CURTAILS_COMPILATION): Add -E.
        (process_command): Handle -E as done with -c and -S.  Do not add
        the target executable suffix to the output file when -E is used.
        (main): Adjust error message accordingly.

From-SVN: r152758
2009-10-14 08:39:43 +00:00
Uros Bizjak
4a8df4faf2 * testsuite/ChangeLog: Fix formatting.
From-SVN: r152754
2009-10-14 09:27:17 +02:00
Uros Bizjak
37cfd16988 i386.exp (check_effective_target_ms_hook_prologue): New procedure.
* gcc.target/i386/i386.exp (check_effective_target_ms_hook_prologue):
	New procedure.
	* gcc.target/i386/ms_hook_prologue.c: Check for  ms_hook_prologue
	effective target.

From-SVN: r152753
2009-10-14 08:53:28 +02:00
Jason Merrill
f067355594 re PR c++/39866 ([c++0x] deleted functions not removed from "no match" error messages)
PR c++/39866
	* call.c (print_z_candidates): Don't print deleted candidates.
	(print_z_candidate): Note deleted candidates.

From-SVN: r152752
2009-10-14 02:27:50 -04:00
Larry Evans
9524f7104a re PR c++/40092 ([c++0x] expansion pattern fails with error about derived template instead of actual template)
PR c++/40092
	* tree.c (cp_tree_equal): Add test for TEMPLATE_PARM_PARAMETER_PACK
	equality.

From-SVN: r152751
2009-10-14 02:27:41 -04:00
Alexandre Oliva
a743523c38 pr41616-1.c: Drop -O2.
* gcc.dg/guality/pr41616-1.c: Drop -O2.
* gcc.dg/guality/pr41447-1.c: Likewise.  Name main.

From-SVN: r152750
2009-10-14 05:01:41 +00:00
Alexandre Oliva
a83f540959 re PR debug/41343 (sysdeps/ieee754/dbl-64/dosincos.c from glibc causes excessive memory use)
PR debug/41343
PR debug/41447
PR debug/41264
PR debug/41338
* tree.c (tree_node_structure_for_code): DEBUG_EXPR_DECL uses
decl with rtl.
(tree_code_size): Likewise.

From-SVN: r152749
2009-10-14 05:01:24 +00:00
Kaveh R. Ghazi
05130a3dcc complex_intrinsic_8.f90: New test.
* gfortran.dg/complex_intrinsic_8.f90: New test.

From-SVN: r152748
2009-10-14 01:20:08 +00:00
Kaveh R. Ghazi
7610abd8cb builtins.c (fold_builtin_1): Support complex "arc" functions.
* builtins.c (fold_builtin_1): Support complex "arc" functions.
	* real.h (HAVE_mpc_arc): Define.

testsuite:
	* gcc.dg/torture/builtin-math-6.c: Test complex "arc" functions.
	* lib/target-supports.exp (check_effective_target_mpc_arc): New.

From-SVN: r152746
2009-10-14 01:14:53 +00:00
Kaz Kojima
1cc245760c sh.c (TARGET_BUILTIN_DECL): Define.
* config/sh/sh.c (TARGET_BUILTIN_DECL): Define.
	(struct builtin_description): Add fndecl field.
	(bdesc): Remove const qualifier.  Update initializer.
	(sh_media_init_builtins): Remove const qualifier for d.  Record
	the result of add_builtin_function to the fndecl field.
	(sh_builtin_decl): New.
	(sh_media_builtin_decl): New.

From-SVN: r152745
2009-10-14 00:17:51 +00:00
GCC Administrator
21f5e01449 Daily bump.
From-SVN: r152744
2009-10-14 00:16:59 +00:00
Hans-Peter Nilsson
26352f4724 re PR rtl-optimization/38948 (unrecognizable insn, postreload.c:395)
PR target/38948
	* gcc.dg/torture/pr38948.c: New test.

From-SVN: r152741
2009-10-14 00:01:37 +00:00
Hans-Peter Nilsson
83907fddfa re PR rtl-optimization/38948 (unrecognizable insn, postreload.c:395)
PR target/38948
	* config/cris/cris.h (SECONDARY_RELOAD_CLASS): Handle reload
	requests between special registers.

From-SVN: r152740
2009-10-14 00:01:09 +00:00
Steve Ellcey
62afe9917d fast-math-pr38968.f90: Add timeout.
2009-10-13  Steve Ellcey  <sje@cup.hp.com>

	* gfortran.dg/vect/fast-math-pr38968.f90: Add timeout.

From-SVN: r152735
2009-10-13 23:19:28 +00:00
Eric Botcazou
0e081833c3 * dwarf2out.c (mem_loc_descriptor): Accept UNGT as well.
From-SVN: r152733
2009-10-13 22:04:28 +00:00
Rainer Orth
d5274ef620 * env.c [__alpha__ && __osf__] (AES_SOURCE): Define.
From-SVN: r152730
2009-10-13 18:56:38 +00:00
Richard Henderson
d6063d7f3f re PR tree-optimization/41377 (gimple EH rewrite causes ICE with PPRE (enabled at -O3))
PR tree-optimization/41377
        * tree-eh.c (unsplit_eh): Propagate degenerate PHIs.
        (cleanup_empty_eh_merge_phis): New change_region parameter;
        pass it on to redirect_eh_edge_1.  Update callers.
        (cleanup_empty_eh_unsplit): Don't require an existing EH label
        at the destination block.

From-SVN: r152728
2009-10-13 11:41:56 -07:00
Janus Weil
f43085aaa3 re PR fortran/41581 ([OOP] Allocation of a CLASS with SOURCE=<class> does not work)
2009-10-13  Janus Weil  <janus@gcc.gnu.org>

	PR fortran/41581
	* decl.c (encapsulate_class_symbol): Add new component '$size'.
	* resolve.c (resolve_allocate_expr): Move CLASS handling to
	gfc_trans_allocate.
	(resolve_class_assign): Replaced by gfc_trans_class_assign.
	(resolve_code): Remove calls to resolve_class_assign.
	* trans.c (gfc_trans_code): Use new function gfc_trans_class_assign.
	* trans-expr.c (get_proc_ptr_comp): Fix a memory leak.
	(gfc_conv_procedure_call): For CLASS dummies, set the
	$size component.
	(gfc_trans_class_assign): New function, replacing resolve_class_assign.
	* trans-stmt.h (gfc_trans_class_assign): New prototype.
	* trans-stmt.c (gfc_trans_allocate): Use correct size when allocating
	CLASS variables. Do proper initialization. Move some code here from
	resolve_allocate_expr.


2009-10-13  Janus Weil  <janus@gcc.gnu.org>

	PR fortran/41581
	* gfortran.dg/class_allocate_2.f03: Modified.
	* gfortran.dg/class_allocate_3.f03: New test case.

From-SVN: r152715
2009-10-13 18:12:24 +02:00
Basile Starynkevitch
b9e467a24a passes.c (register_pass): Replaced gcc_unreachable by fatal_error on failure.
2009-10-13  Basile Starynkevitch  <basile@starynkevitch.net>
    * gcc/passes.c (register_pass): Replaced gcc_unreachable by
    fatal_error on failure. Mentions plugins in comments & messages.

From-SVN: r152709
2009-10-13 14:58:11 +00:00
Paolo Carlini
a018595e87 for_each_selectors.h: Minor uglification and stylistic fixes.
2009-10-13  Paolo Carlini  <paolo.carlini@oracle.com>

	* include/parallel/for_each_selectors.h: Minor uglification and
	stylistic fixes.

From-SVN: r152708
2009-10-13 14:57:28 +00:00
Jakub Jelinek
e4fb38bd17 re PR target/41693 (RTL Check Failure in expand_debug_expr, at cfgexpand.c:2371)
PR target/41693
	* rtl.h (DEBUG_EXPR_TREE_DECL): Define.
	* sched-vis.c (print_value): Use it.
	* cselib.c (cselib_hash_rtx): Likewise.
	* print-rtl.c (print_rtx): Likewise.
	* cfgexpand.c (expand_debug_rtx): Likewise.
	* var-tracking.c (vt_expand_loc_callback): Likewise.

From-SVN: r152707
2009-10-13 15:56:07 +02:00