Commit Graph

96428 Commits

Author SHA1 Message Date
Uros Bizjak aeaf114b41 i386.md (*setcc_<mode>_2): Do not use ix86_expand_clear to zero operand 0.
* config/i386/i386.md (*setcc_<mode>_2): Do not use ix86_expand_clear
	to zero operand 0.

From-SVN: r152664
2009-10-12 14:31:38 +02:00
Dodji Seketeli 9ef3dbcdae Candidate fix for PR c++/41570
gcc/ChangeLog:
	PR c++/41570
	* gcc/dwarf2out.c (template_parameter_pack_die,
	gen_formal_parameter_pack_die): Use add_name_and_src_coords_attributes.

gcc/testsuite/ChangeLog:
	PR c++/41570
	* gcc/testsuite/g++.dg/debug/dwarf2/template-params-7.C: New test.

From-SVN: r152663
2009-10-12 13:57:30 +02:00
Alexandre Oliva 3a56edc75e re PR debug/41616 (Variables promoted to Gimple registers by aliasing are not getting debug statements.)
gcc/ChangeLog:
PR debug/41616
* tree-into-ssa.c (insert_phi_nodes_for): Build debug bind stmts
on updates too.
(maybe_register_def): Likewise.  Take stmt iterator.
(rewrite_update_stmt): Take stmt iterator and pass it on.
(rewrite_update_enter_block): Pass stmt iterator.
gcc/testsuite/ChangeLog:
PR debug/41616
* gcc.dg/guality/pr41616-1.c: New.

From-SVN: r152662
2009-10-12 05:15:02 +00:00
Jason Merrill 45fe7947ed re PR c++/37204 ([c++0x] reinterpret_cast<T&&>(v) incorrectly yields an lvalue)
PR c++/37204
	* typeck.c (build_reinterpret_cast_1): Handle rvalue refs
	properly.

From-SVN: r152661
2009-10-12 00:39:04 -04:00
Jerry DeLisle 420bc2e7aa re PR fortran/38439 (I/O PD edit descriptor inconsistency)
2009-10-11  Jerry DeLisle  <jvdelisle@gcc.gnu.org>

	PR libgfortran/38439
	* gfortran.dg/fmt_error_9.f: New test.
	* gfortran.dg/fmt_error_10.f: New test.

From-SVN: r152658
2009-10-12 00:54:11 +00:00
Jerry DeLisle a30595bf43 re PR fortran/38439 (I/O PD edit descriptor inconsistency)
2009-10-11  Jerry DeLisle  <jvdelisle@gcc.gnu.org>

	PR libgfortran/38439
	* io/format.c (parse_format_list): Correct logic for FMT_F reading vs
	writing. Code clean-up.

From-SVN: r152657
2009-10-12 00:52:45 +00:00
GCC Administrator f4089aae40 Daily bump.
From-SVN: r152656
2009-10-12 00:16:42 +00:00
Andrew Pinski 2c93399fdf spu.c (TARGET_BUILTIN_DECL): Define.
2009-10-11  Andrew Pinski  <andrew_pinski@playstation.sony.com>

        * config/spu/spu.c (TARGET_BUILTIN_DECL): Define.
        (spu_builtin_decl): New function.

From-SVN: r152651
2009-10-11 14:58:13 -07:00
Uros Bizjak bfb597465a i386.md (SWIM): New mode iterator.
* config/i386/i386.md (SWIM): New mode iterator.
	(mov<mode>cc): Macroize expander from mov{qi,hi,si,di}cc patterns
	using SWIM mode iterator.
	(x86_mov<mode>cc_0_m1): Macroize insn from x86_mov{si,di}cc_0_m1
	patterns using SWI48 mode iterator.
	(*x86_mov<mode>cc_0_m1_se):  Macroize insn from
	*x86_mov{si,di}cc_0_m1_se patterns using SWI48 mode iterator.
	(*x86_mov<mode>cc_0_m1_neg): New insn pattern.
	(*mov<mode>cc_noc): Macroize insn from *mov{hi,si,di}cc_noc
	patterns using SWI248 mode iterator.
	* config/i386/i386.c (ix86_expand_int_movcc): Update the call to
	gen_x86_movdicc_0_m1_rex64 for renamed function

From-SVN: r152650
2009-10-11 23:49:10 +02:00
Jose Ruiz cb7d60a677 re PR target/33743 (unwinding through signal frames)
PR target/33743
	* config/sparc/sol2.h (MD_UNWIND_SUPPORT): Define.
	* config/sparc/sol2-unwind.h: New file.

Co-Authored-By: Eric Botcazou <ebotcazou@adacore.com>

From-SVN: r152649
2009-10-11 20:48:46 +00:00
Olivier Hainque 8d232178a9 re PR target/33743 (unwinding through signal frames)
PR target/33743
	* config/i386/sol2.h (MD_UNWIND_SUPPORT): Define.
	* config/i386/sol2-unwind.h: New file.

Co-Authored-By: Eric Botcazou <ebotcazou@adacore.com>

From-SVN: r152648
2009-10-11 20:06:12 +00:00
H.J. Lu e1d4f419ea re PR target/41665 (Typo in addsi_1_zext?)
2009-10-11  H.J. Lu  <hongjiu.lu@intel.com>

	PR target/41665
	* config/i386/i386.md (addsi_1_zext): Get the proper second
	operand for lea.

From-SVN: r152647
2009-10-11 12:42:54 -07:00
Richard Sandiford c47d1dbaeb simplify-rtx.c (simplify_replace_rtx): Use rtx_equal_p for all OLD_RTXes, not just REGs.
gcc/
	* simplify-rtx.c (simplify_replace_rtx): Use rtx_equal_p for
	all OLD_RTXes, not just REGs.  Use copy_rtx to create the
	replacement value.

From-SVN: r152646
2009-10-11 19:09:01 +00:00
Jerry DeLisle 3c6d5e12dd re PR fortran/38439 (I/O PD edit descriptor inconsistency)
2009-10-11 Jerry DeLisle  <jvdelisle@gcc.gnu.org>

	PR fortran/38439
	* io.c (check_format): Fix locus for error messages and fix a comment.

From-SVN: r152645
2009-10-11 17:41:23 +00:00
Jerry DeLisle d8c00a207c re PR fortran/38439 (I/O PD edit descriptor inconsistency)
2009-10-11  Jerry DeLisle  <jvdelisle@gcc.gnu.org>

	PR libgfortran/38439
	* io/format.c (parse_format_list): Add check for tokens not allowed
	after P specifier. Fix comments.  Remove un-needed code. Fix the
	default exponent list. Correct pointer assignment error.

From-SVN: r152644
2009-10-11 17:37:50 +00:00
Richard Guenther 652a8c1cde gimple.c (iterative_hash_type_name): Do not handle special anonymous names.
2009-10-11  Richard Guenther  <rguenther@suse.de>

	* gimple.c (iterative_hash_type_name): Do not handle special
	anonymous names.

	cp/
	* tree.c (cp_free_lang_data): Drop anonymous aggregate names.

From-SVN: r152643
2009-10-11 16:29:57 +00:00
Uros Bizjak b09ee6aaf7 i386.md (*setcc_di_1): New insn_and_split pattern.
* config/i386/i386.md (*setcc_di_1): New insn_and_split pattern.
	(*setcc_si_1_and): Ditto.
	(*setcc_si_1_movzbl): Ditto.
	(*setcc_<mode>_2): Ditto.
	(*setcc_qi): Rename from *setcc_1.
	(*setcc_qi_slp): Rename from *setcc_2.

	(*zero_extendqihi2_movzbw_and splitter): Use ix86_expand_clear.
	(*zero_extendqisi2_movzbw_and splitter): Ditto.

	* config/i386/i386.c (ix86_expand_clear): Remove reload_completed from
	"if" condition, there is already assert with reload_completed present.

From-SVN: r152642
2009-10-11 14:53:24 +02:00
Paul Thomas 1aa4ade670 re PR fortran/41583 ([OOP] TYPE IS rejected because of way vtable index is implemented)
2009-10-11  Paul Thomas  <pault@gcc.gnu.org>

	PR fortran/41583
	* decl.c (hash_value): New function.
	(gfc_match_derived_decl): Call it.

2009-10-11  Paul Thomas  <pault@gcc.gnu.org>

	PR fortran/41583
	* gfortran.dg/class_4a.f03: New test with class_4b,c and d.f03.
	* gfortran.dg/class_4b.f03: As above.
	* gfortran.dg/class_4c.f03: As above.
	* gfortran.dg/class_4d.f03: As above.

From-SVN: r152641
2009-10-11 12:24:51 +00:00
Paul Thomas a14ce12818 re PR fortran/40440 (Automatic deallocation component of DT function return value)
2009-10-11  Paul Thomas  <pault@gcc.gnu.org>

	PR fortran/40440
	* decl.c (hash_value): New function.
	(gfc_match_derived_decl): Call it.

2009-10-11  Paul Thomas  <pault@gcc.gnu.org>

	PR fortran/40440
	* gfortran.dg/class_4a.f03: New test with class_4b,c and d.f03.
	* gfortran.dg/class_4b.f03: As above.
	* gfortran.dg/class_4c.f03: As above.
	* gfortran.dg/class_4d.f03: As above.

From-SVN: r152640
2009-10-11 12:20:09 +00:00
Richard Guenther b89127e20f re PR tree-optimization/41555 (possible miscompilation in whole-program mode)
2009-10-11  Richard Guenther  <rguenther@suse.de>

	PR tree-optimization/41555
	* gcc.dg/torture/pr41555.c: New testcase.

From-SVN: r152639
2009-10-11 11:24:10 +00:00
Gerald Pfeifer 57703d27e2 plugin.c (try_init_one_plugin): Improve constness of variable err.
* plugin.c (try_init_one_plugin): Improve constness of variable
	err.

From-SVN: r152638
2009-10-11 09:17:09 +00:00
GCC Administrator fdd504a226 Daily bump.
From-SVN: r152635
2009-10-11 00:16:51 +00:00
Jerry DeLisle 007dccd795 re PR libfortran/35862 ([F2003] Implement new rounding modes for run time)
2009-10-10  Jerry DeLisle  <jvdelisle@gcc.gnu.org>

	PR libgfortran/35862
	* gfortran.dg/round_2.f03: Eliminate possible compile error. Use max
	function correctly.

From-SVN: r152632
2009-10-10 23:02:11 +00:00
Jason Merrill fee42aaeb2 fix changelog
From-SVN: r152631
2009-10-10 18:01:47 -04:00
Gerald Pfeifer 0ffd69c52e README: Refer to the various COPYING* files instead of just COPYING.
* README: Refer to the various COPYING* files instead of just           
	COPYING.                                                                
	Refer to http://gcc.gnu.org/bugs/ for bug reporting instructions.

From-SVN: r152630
2009-10-10 20:59:49 +00:00
Gerald Pfeifer c08766bc7a install.texi (Final install): Refer to http://gcc.gnu.org/bugs/ for bug reporting.
* doc/install.texi (Final install): Refer to
	http://gcc.gnu.org/bugs/ for bug reporting.

From-SVN: r152629
2009-10-10 20:46:10 +00:00
Gerald Pfeifer f12c3a1d3a * update_web_docs_svn: Update BUGURL to http://gcc.gnu.org/bugs/.
From-SVN: r152628
2009-10-10 20:43:15 +00:00
Jerry DeLisle 4557df3c55 re PR libfortran/35862 ([F2003] Implement new rounding modes for run time)
2009-10-10  Jerry DeLisle  <jvdelisle@gcc.gnu.org>

	PR libgfortran/35862
	* gfortran.dg/round_2.f03: Eliminate possible compile error.

From-SVN: r152627
2009-10-10 18:57:35 +00:00
Peter Bergner 47f67e5156 configure.ac: Add test for dci instruction.
* configure.ac: Add test for dci instruction.
	* configure: Regenerate.
	* config.in: Likewise.
	* config.gcc: Handle --with-cpu=476 and --with-cpu=476fp.
	* doc/invoke.texi: Add cpu_type 476 and 476fp.
	(-mmulhw): Add 476 to description.
	(-mdlmzb): Likewise.
	* config/rs6000/t-fprules (MULTILIB_MATCHES_FLOAT): Include -mcpu=476.
	* config/rs6000/rs6000.c (processor_costs): Add ppc476_cost.
	(processor_target_table): Add 476 and 476fp entries.
	(rs6000_override_options): Use ppc476_cost for PROCESSOR_PPC476.
	(rs6000_issue_rate): Add CPU_PPC476.
	* config/rs6000/rs6000.h (ASM_CPU_476_SPEC): Define.
	(ASM_CPU_SPEC): Pass %(asm_cpu_476) for -mcpu=476 and -mcpu=476fp.
	(processor_type): Add PROCESSOR_PPC476.
	(EXTRA_SPECS): Add asm_cpu_476 string.
	* config/rs6000/rs6000.md: (define_attr "type"): Add isel attribute.
	(define_attr "cpu"): Add ppc476.
	Include 476.md.
	Update comments for 476.
	(isel_signed, isel_unsigned): Change to use "isel" type attribute.
	* config/rs6000/vxworks.h (CPP_SPEC): Handle 464 and 476.
	Update copyright year.
	* config/rs6000/476.md: New file.
	* config/rs6000/40x.md: Add description for "isel" attribute.
	Update copyright year.
	* config/rs6000/440.md: Likewise.
	* config/rs6000/603.md: Likewise.
	* config/rs6000/6xx.md: Likewise.
	* config/rs6000/7450.md: Likewise.
	* config/rs6000/7xx.md: Likewise.
	* config/rs6000/8540.md: Likewise.
	* config/rs6000/cell.md: Likewise.
	* config/rs6000/e300c2c3.md: Likewise.
	* config/rs6000/e500mc.md: Likewise.
	* config/rs6000/mpc.md: Likewise.
	* config/rs6000/power4.md: Likewise.
	* config/rs6000/power5.md: Likewise.
	* config/rs6000/power6.md: Likewise.
	* config/rs6000/power7.md: Likewise.
	* config/rs6000/rios1.md: Likewise.
	* config/rs6000/rios2.md: Likewise.
	* config/rs6000/rs64.md: Likewise.

From-SVN: r152626
2009-10-10 13:43:31 -05:00
Jerry DeLisle b6ebf72767 Fix PR reference number.
From-SVN: r152625
2009-10-10 17:49:22 +00:00
Jerry DeLisle 43fc5430a1 re PR testsuite/41612 (FAIL: gfortran.dg/round_2.f03)
2009-10-10  Jerry DeLisle  <jvdelisle@gcc.gnu.org>

	PR libgfortran/41612
	* gfortran.dg/round_2.f03: Update test to also test for smaller kind.
	Add conditions to avoid runtime errors if not supported.

From-SVN: r152624
2009-10-10 17:34:06 +00:00
Richard Guenther 740bb6ad8f re PR tree-optimization/41654 (ICE: in gimple_cond_get_ops_from_tree, at gimple.c:417)
2009-10-10  Richard Guenther  <rguenther@suse.de>

	PR tree-optimization/41654
	* tree-ssa-ifcombine.c (ifcombine_ifandif): Properly canonicalize
	a cond expr before calling gimple_cond_set_condition_from_tree.
	(ifcombine_iforif): Likewise.

	* gfortran.fortran-torture/compile/pr41654.f90: New testcase.

From-SVN: r152620
2009-10-10 14:53:27 +00:00
Samuel Tardieu fdfea49e45 sem_eval.adb: Give a more precise error message.
gcc/ada/
	* sem_eval.adb: Give a more precise error message.

From-SVN: r152619
2009-10-10 14:52:18 +00:00
Gerald Pfeifer 9b99d0fde6 * doc/xml/manual/messages.xml: Update GNU gettext reference.
From-SVN: r152618
2009-10-10 12:20:16 +00:00
Gerald Pfeifer ff7c1dc161 Fix ChangeLog date of latest entry.
From-SVN: r152617
2009-10-10 12:11:52 +00:00
Gerald Pfeifer a25f290c03 codecvt.xml: Refer to The Open Group Base Specifications, Issue 6 (IEEE Std.
* doc/xml/manual/codecvt.xml: Refer to The Open Group Base
	Specifications, Issue 6 (IEEE Std. 1003.1-2004).
	Update link to bogus site with reference to unix.org.
	* doc/xml/manual/ctype.xml: Ditto.
	* doc/xml/manual/locale.xml: Ditto.

From-SVN: r152616
2009-10-10 12:06:06 +00:00
Ian Lance Taylor 0c2edd9f44 configure.ac: Use AC_SEARCH_LIBS to find dlopen.
* configure.ac: Use AC_SEARCH_LIBS to find dlopen.
	* configure: Rebuild.

From-SVN: r152615
2009-10-10 04:47:05 +00:00
Jason Merrill 30c99a9e19 * charset.c (_cpp_valid_ucn): Update C++0x restrictions.
From-SVN: r152614
2009-10-09 20:39:46 -04:00
Neil Vachharajani 2214382ca9 directives.c (DIRECTIVE_TABLE): Remove DEPRECATED from ident and sccs.
2009-10-09  Neil Vachharajani <nvachhar@google.com>

       * libcpp/directives.c (DIRECTIVE_TABLE): Remove DEPRECATED from ident and
       sccs.

       * gcc/doc/cpp.texi (Other Directives): Do not list #ident and #sccs as
       deprecated.

From-SVN: r152612
2009-10-10 00:34:21 +00:00
GCC Administrator 98f4c2a362 Daily bump.
From-SVN: r152611
2009-10-10 00:16:40 +00:00
Janus Weil 619dd721d9 re PR fortran/41585 ([OOP] Reject CLASS(T) as component of "TYPE :: T")
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
2009-10-10 00:35:11 +02:00
Richard Guenther e9e4b3a892 re PR lto/41638 (Back-end builtins are mishandled)
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
2009-10-09 22:31:53 +00:00
Tobias Burnus d0a9804e35 re PR fortran/41582 ([OOP] Allocation of abstract types requires a type spec or a SOURCE)
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
2009-10-09 22:34:35 +02:00
Janus Weil 7431bf06bc re PR fortran/41579 ([OOP] Nesting of SELECT TYPE)
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
2009-10-09 22:25:19 +02:00
Jakub Jelinek 21ece9b288 re PR preprocessor/41445 (Debug information is wrong with and without --save-temps.)
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
2009-10-09 21:55:34 +02:00
Jakub Jelinek 9c1e641ac1 re PR debug/40521 (-g causes GCC to generate .eh_frame)
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
2009-10-09 21:07:23 +02:00
Jakub Jelinek 78441afbc8 re PR rtl-optimization/41646 (Reload ICE due to combiner extending life time of a hard register)
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
2009-10-09 21:01:53 +02:00
Richard Guenther aabf6a0372 re PR tree-optimization/41634 (ICE in dom)
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
2009-10-09 18:30:05 +00:00
Cary Coutant 38265b7400 Updated commit entry for r152577 (added entry for xcoff_debug_hooks in
dbxout.c).

From-SVN: r152595
2009-10-09 10:41:43 -07:00
Uros Bizjak dfb3b0e3b8 sfp-machine.h (__FP_FRAC_SUB_4): Change operand constraint of y0 to "g".
* config/i386/32/sfp-machine.h (__FP_FRAC_SUB_4): Change operand
	constraint of y0 to "g".

From-SVN: r152594
2009-10-09 19:30:56 +02:00