1. 16 Oct, 2009 3 commits
    • re PR fortran/41648 ([OOP] Type-bound procedures refused) · 28188747
      2009-10-16  Paul Thomas  <pault@gcc.gnu.org>
      
      	PR fortran/41648
      	PR fortran/41656
      	* trans-expr.c (select_class_proc): Convert the expression for the
      	vindex, carried on the first member of the esym list.
      	* gfortran.h : Add the vindex field to the esym_list structure.
      	and eliminate the class_object field.
      	* resolve.c (check_class_members): Remove the setting of the
      	class_object field.
      	(vindex_expr): New function.
      	(get_class_from_expr): New function.
      	(resolve_class_compcall): Call the above to find the ultimate
      	class or derived component.  If derived, do not generate the
      	esym list.  Add and expression for the vindex to the esym list
      	by calling the above.
      	(resolve_class_typebound_call): The same.
      
      2009-10-16  Paul Thomas  <pault@gcc.gnu.org>
      
      	PR fortran/41648
      	* gfortran.dg/dynamic_dispatch_4.f03 : New test.
      
      	PR fortran/41656
      	* gfortran.dg/dynamic_dispatch_5.f03 : New test.
      
      From-SVN: r152890
      Paul Thomas committed
    • ChangeLogs fixed, again. · 8e200755
      From-SVN: r152888
      Daniel Gutson committed
    • Daily bump. · a2074f14
      From-SVN: r152887
      GCC Administrator committed
  2. 15 Oct, 2009 25 commits
  3. 14 Oct, 2009 12 commits
    • c++config: Do not disable extern templates for string in plain parallel-mode and in... · 42999928
      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
      Paolo Carlini committed
    • stor-layout.c (place_field): Don't emit -Wpadded warnings for fields in builtin structs. · 4c0a0455
      	* 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
      Jakub Jelinek committed
    • re PR lto/41173 ([LTO] internal error: builtin function to… · 3e8c245c
      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
      Richard Guenther committed
    • neon.md (neon_vshll_n<mode>): Checking Bounds fixed. · 8cb32ff2
      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
      Daniel Gutson committed
    • gimple.c (gtc_ob): New global. · 88ca1146
      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
      Richard Guenther committed
    • re PR middle-end/41707 (g++.dg/plugin/attribute_plugin-test-1.C failed) · 0f66d09c
      	PR testsuite/41707
      	* g++.dg/plugin/attribute_plugin-test-1.C: Expect the first
      	warning on line 0 instead of 1.
      
      From-SVN: r152773
      Jakub Jelinek committed
    • tree-parloops.c (separate_decls_in_region_debug_bind): Drop debug stmts setting DEBUG_EXPR_DECLs. · 4f2a9af8
      	* 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
      Jakub Jelinek committed
    • params.def (PARAM_IRA_LOOP_RESERVED_REGS): New. · 1833192f
      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
      Vladimir Makarov committed
    • lto-symtab.c (lto_symtab_compatible): Fold in ... · 200c8750
      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
      Richard Guenther committed
    • re PR lto/41521 ([LTO] ICE verify_cgraph_node only with "-g") · 77ce724c
      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
      Richard Guenther committed
    • extended.texi: Replace the dash character with @minus{} in situations where it is being used... · 8ad1dde7
          * 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
      Nick Clifton committed
    • re PR preprocessor/41543 (BUILTINS_LOCATION wrong with -fpreprocessed) · 96c169e1
      	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
      Jakub Jelinek committed