1. 11 Oct, 2009 14 commits
  2. 10 Oct, 2009 18 commits
  3. 09 Oct, 2009 8 commits
    • re PR fortran/41585 ([OOP] Reject CLASS(T) as component of "TYPE :: T") · 619dd721
      2009-10-09  Janus Weil  <janus@gcc.gnu.org>
      
      	PR fortran/41585
      	* decl.c (build_struct): Bugfix for CLASS components.
      
      
      2009-10-09  Janus Weil  <janus@gcc.gnu.org>
      
      	PR fortran/41585
      	* gfortran.dg/class_2.f03: Extended test case.
      
      From-SVN: r152608
      Janus Weil committed
    • re PR lto/41638 (Back-end builtins are mishandled) · e9e4b3a8
      2009-10-09  Richard Guenther  <rguenther@suse.de>
      
      	PR lto/41638
      	* target-def.h (TARGET_BUILTIN_DECL): Define.
      	(TARGET_INITIALIZER): Add TARGET_BUILTIN_DECL.
      	* target.h (struct gcc_target): Add builtin_decl target hook.
      	* doc/tm.texi (TARGET_BUILTIN_DECL): Document.
      
      	* lto-streamer-in.c (lto_get_builtin_tree): Fix handling of
      	target builtins.
      	* lto-streamer-out.c (lto_output_tree_pointers): Use sorry,
      	not gcc_unreachable.
      	(lto_output_builtin_tree): Sorry if the target does not support
      	streaming target builtins.
      
      	* config/rs6000/rs6000.c (TARGET_BUILTIN_DECL): Define.
      	(rs6000_builtin_decl): New function.
      	* config/i386/i386.c (TARGET_BUILTIN_DECL): Define.
      	(ix86_builtin_decl): New function.
      
      From-SVN: r152606
      Richard Guenther committed
    • re PR fortran/41582 ([OOP] Allocation of abstract types requires a type spec or a SOURCE) · d0a9804e
      2009-10-09  Tobias Burnus  <burnus@net-b.de>
      
              PR fortran/41582
              * decl.c (encapsulate_class_symbol): Save attr.abstract.
              * resolve.c (resolve_allocate_expr): Reject class allocate
              without typespec or source=.
              * trans-stmt.c (gfc_trans_allocate): Change gfc_warning
              into gfc_error for "not yet implemented".
      
      2009-10-09  Tobias Burnus  <burnus@net-b.de>
      
              PR fortran/41582
              * gfortran.dg/class_allocate_1.f03: Modify code such that
              it compiles with the gfc_warning->gfc_error change.
              * gfortran.dg/class_allocate_1.f03: New test.
      
      From-SVN: r152601
      Tobias Burnus committed
    • re PR fortran/41579 ([OOP] Nesting of SELECT TYPE) · 7431bf06
      2009-10-09  Janus Weil  <janus@gcc.gnu.org>
      
      	PR fortran/41579
      	* gfortran.h (gfc_select_type_stack): New struct, to be used as a stack
      	for SELECT TYPE statements.
      	(select_type_stack): New global variable.
      	(type_selector,select_type_tmp): Removed.
      	* match.c (type_selector,type_selector): Removed.
      	(select_type_stack): New variable, serving as a stack for
      	SELECT TYPE statements.
      	(select_type_push,select_type_set_tmp): New functions.
      	(gfc_match_select_type): Call select_type_push.
      	(gfc_match_type_is): Call select_type_set_tmp.
      	* parse.c (select_type_pop): New function.
      	(parse_select_type_block): Call select_type_pop.
      	* symbol.c (select_type_insert_tmp): New function.
      	(gfc_find_sym_tree): Call select_type_insert_tmp.
      
      
      2009-10-09  Janus Weil  <janus@gcc.gnu.org>
      
      	PR fortran/41579
      	* gfortran.dg/select_type_6.f03: New test.
      
      From-SVN: r152600
      Janus Weil committed
    • re PR preprocessor/41445 (Debug information is wrong with and without --save-temps.) · 21ece9b2
      	PR preprocessor/41445
      	* c-ppoutput.c (do_line_change): New function.
      	(cb_line_change): Use it.
      	(scan_translation_unit): Call do_line_change if
      	avoid_paste or PREV_WHITE and token location is on a different line
      	than print.src_line.
      
      	* gcc.dg/cpp/separate-1.c: Adjust.
      	* gcc.dg/cpp/spacing1.c: Add -P to dg-options.
      	* gcc.dg/debug/dwarf2/pr41445-1.c: New test.
      	* gcc.dg/debug/dwarf2/pr41445-2.c: New test.
      	* gcc.dg/debug/dwarf2/pr41445-3.c: New test.
      	* gcc.dg/debug/dwarf2/pr41445-4.c: New test.
      	* gcc.dg/debug/dwarf2/pr41445-5.c: New test.
      	* gcc.dg/debug/dwarf2/pr41445-6.c: New test.
      
      From-SVN: r152599
      Jakub Jelinek committed
    • re PR debug/40521 (-g causes GCC to generate .eh_frame) · 9c1e641a
      	PR debug/40521
      	* dwarf2out.c (dwarf2out_init): Test whether
      	HAVE_GAS_CFI_SECTIONS_DIRECTIVE is non-zero instead of checking
      	it is defined.
      
      From-SVN: r152598
      Jakub Jelinek committed
    • re PR rtl-optimization/41646 (Reload ICE due to combiner extending life time of a hard register) · 78441afb
      	PR rtl-optimization/41646
      	* calls.c (expand_call): For BLKmode types returned in registers
      	avoid likely spilled hard regs in copy_blkmode_from_reg generated
      	insns.
      
      	* gcc.c-torture/compile/pr41646.c: New test.
      
      From-SVN: r152597
      Jakub Jelinek committed
    • re PR tree-optimization/41634 (ICE in dom) · aabf6a03
      2009-10-09  Richard Guenther  <rguenther@suse.de>
      
      	PR tree-optimization/41634
      	* tree-ssa-dom.c (remove_local_expressions_from_table): Assert
      	we remove the correct elements.
      	(optimize_stmt): Make sure to update stmt operands before
      	optimizing redundancies.
      
      	* gcc.c-torture/compile/pr41634.c: New testcase.
      
      From-SVN: r152596
      Richard Guenther committed