Commit Graph

96267 Commits

Author SHA1 Message Date
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
Rafael Avila de Espindola
63f72e39b3 plugin-api.h (ld_plugin_add_input_library): Change argument name to libname.
2009-10-09  Rafael Espindola  <espindola@google.com>

	* plugin-api.h (ld_plugin_add_input_library): Change argument name to
	libname.

From-SVN: r152592
2009-10-09 15:23:04 +00:00
Andreas Krebbel
22d72dbce4 s390.md ("prefetch"): Remove stcmh for prefetching.
2009-10-09  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>

	* config/s390/s390.md ("prefetch"): Remove stcmh for prefetching.

From-SVN: r152590
2009-10-09 15:18:48 +00:00
Paolo Carlini
6aa7cd49e8 numeric (__adjacent_difference_switch): Fix typo.
2009-10-09  Paolo Carlini  <paolo.carlini@oracle.com>

	* include/parallel/numeric (__adjacent_difference_switch): Fix typo.
	* include/parallel/for_each_selectors.h
	(__adjacent_difference_selector): Likewise.

From-SVN: r152589
2009-10-09 14:41:15 +00:00
Richard Guenther
b1b07c92e1 re PR driver/41637 (testsuite (-flto/-fwhopr) leaves does not clean up in /tmp)
2009-10-09  Richard Guenther  <rguenther@suse.de>

	PR driver/41637
	* lto-wrapper.c (ltrans_output_file, flto_out, args_name): New
	globals.
	(lto_wrapper_exit): New function.
	(fatal): Use it.
	(fatal_perror): Likewise.
	(fork_execute): Use global args_name, do not free it.
	(run_gcc): Use global ltrans_output_file, flto_out, do not free them.
	* lto-streamer.h: Remove duplicate prototypes.

	PR lto/41635
	PR lto/41636
	lto/
	* lto.c (read_cgraph_and_symbols): Do not assert we can open
	a file.
	* lto-elf.c (init_shdr##BITS): Fix i18n problems.
	(init_ehdr##BITS): Likewise.

From-SVN: r152588
2009-10-09 13:24:59 +00:00
Richard Guenther
9f3f7d131f cgraph.c (cgraph_create_edge): Check for NULL call_stmt before calling stmt_can_throw_external.
2009-10-09  Richard Guenther  <rguenther@suse.de>

	* cgraph.c (cgraph_create_edge): Check for NULL call_stmt
	before calling stmt_can_throw_external.

From-SVN: r152587
2009-10-09 13:22:22 +00:00
Uros Bizjak
af2efb2bbb block_2.f08: Cleanup "original" tree dump.
* gfortran.dg/block_2.f08: Cleanup "original" tree dump.

From-SVN: r152586
2009-10-09 15:18:20 +02:00
Eric Botcazou
3f49ba3f41 re PR tree-optimization/40071 (ICE (aliasing assert) in vectorizable_store at tree-vect-stmts.c:3117)
PR tree-optimization/40071
	* tree-vect-data-refs.c (vect_create_data_ref_ptr): Build a ref-all
	pointer if the original data reference doesn't conflict with the
	created vector data reference.  Fix long line.

From-SVN: r152585
2009-10-09 12:44:59 +00:00
Uros Bizjak
857607344f i386.md (any_div): New code iterator.
* config/i386/i386.md (any_div): New code iterator.
	(u): Handle div and udiv.
	(sgnprefix): Ditto.
	(<u>divqi3): Macroize insn from divqi3 and udivqi using and_div
	code iterator.
	(lfloor<MODEF:mode><SWI48:mode>2): Macroize insn from
	lfloor<mode>{si,di}2 patterns using SWI48 mode iterator.
	(lceil<MODEF:mode><SWI48:mode>2): Macroize insn from
	lceil<mode>{si,di}2 patterns using SWI48 mode iterator.

From-SVN: r152584
2009-10-09 09:43:01 +02:00
GCC Administrator
bfcd7d74a7 Daily bump.
From-SVN: r152583
2009-10-09 00:16:40 +00:00
Doug Kwan
88beb54d68 re PR rtl-optimization/41574 (Distribute floating point expressions causes bad code [4.4 only])
2009-10-08  Doug Kwan  <dougkwan@google.com>

	PR rtl-optimization/41574
	* gcc.dg/pr41574.c: New test.

From-SVN: r152580
2009-10-08 22:16:58 +00:00
Joseph Myers
3c2e7d4535 lto-elf.c (init_shdr##BITS, [...]): Remove trailing "." from diagnostics.
* lto-elf.c (init_shdr##BITS, lto_elf_begin_section_with_type,
	init_ehdr##BITS, lto_elf_file_close): Remove trailing "." from
	diagnostics.
	* lto-lang.c (lto_post_options): Remove trailing "." from
	diagnostics.

From-SVN: r152579
2009-10-08 22:54:16 +01:00