Commit Graph

92615 Commits

Author SHA1 Message Date
Diego Novillo
68a607d814 [multiple changes]
2009-04-14  Diego Novillo  <dnovillo@google.com>
	    Le-Chun Wu  <lcwu@google.com>

	* configure.ac: Add --enable-plugin support.
	Define ENABLE_PLUGIN and PLUGINLIBS when specified.
	* Makefile.in (PLUGIN_H): Define.
	Export ENABLE_PLUGIN and GMPINC to site.exp.
	Add PLUGINLIBS to link command.
	Add/modify dependencies for plugin.o and files including plugin.h.
	(plugin.o): New.
	* config.in: Regenerate.
	
	* opts.c (common_handle_option): Handle OPT_fplugin_ and
	OPT_fplugin_arg_.

2009-04-14  Le-Chun Wu  <lcwu@google.com>

	* tree-pass.h (register_one_dump_file): Add a prototype for
	register_one_dump_file.
	* toplev.c (compile_file): Call initialize_plugins.
	(do_compile): Call invoke_plugin_callbacks.
	(toplev_main): Call invoke_plugin_callbacks.
	* common.opt: Add -fplugin= and -fplugin-arg-.
	* gcc-plugin.h: New public header file for plugins to include.
	* plugin.c: New source file.
	* plugin.h: New internal header file.
	* passes.c (register_one_dump_file): Make it external.
	
	* c-parser.c (c_parser_declspecs): Call invoke_plugin_callbacks.

2009-04-14  Diego Novillo  <dnovillo@google.com>

	* doc/plugins.texi: New.
	* doc/gccint.texi: Add reference to Plugins chapter.
	* doc/invoke.texi: Document -fplugin and -fplugin-arg
	* diagnostic.c (diagnostic_report_diagnostic): Warn about
	loaded plugins, if any.
	* timevar.def (TV_PLUGIN_INIT): Define.
	(TV_PLUGIN_RUN): Define.
	* plugin.c: Include timevar.h
	(plugins_active_p): New.
	(dump_active_plugins): New.
	(debug_active_plugins): New.


cp/ChangeLog

2009-04-14  Le-Chun Wu  <lcwu@google.com>

	* Make-lang.in: Modify dependencies of files including plugin.h.
	* decl.c (finish_function): Call invoke_plugin_callbacks.
	* parser.c (cp_parser_type_specifier): Call invoke_plugin_callbacks.

From-SVN: r146059
2009-04-14 16:18:49 -04:00
Joseph Myers
5061725708 sol2.h (LINK_ARCH32_SPEC_BASE): Use %R with absolute library paths.
* config/sol2.h (LINK_ARCH32_SPEC_BASE): Use %R with absolute
	library paths.
	* config/sparc/sol2-bi.h (LINK_ARCH64_SPEC_BASE): Likewise.

From-SVN: r146057
2009-04-14 20:56:27 +01:00
Eli Zaretskii
01459fb584 configure.ac (setobjs, msdosdjgpp): Move a-priori setting of existing and required library functions to...
* configure.ac  (setobjs, msdosdjgpp): Move a-priori setting of
existing and required library functions to with_target_subdir
section, so that the native build does detect them at configure
time.
* configure: Regenerated.

From-SVN: r146056
2009-04-14 13:46:29 -04:00
Kazu Hirata
b32f6fffc9 arm.c (arm_rtx_costs_1): Treat a minus with a shift the same as a minus without a shift.
* config/arm/arm.c (arm_rtx_costs_1): Treat a minus with a shift
	the same as a minus without a shift.

From-SVN: r146055
2009-04-14 17:30:37 +00:00
Jason Merrill
f9b20c620a re PR c++/39763 (-Wshadow reports shadowed declarations for parameters of unnamed temp objects)
PR c++/39763
	* name-lookup.c (pushdecl_maybe_friend): Avoid all warnings
	about shadowing by tentative parms.

From-SVN: r146053
2009-04-14 13:04:04 -04:00
Nick Clifton
85d04fa2c8 stormy16.md (ineqbranch_1): Do not assume that comparisons with small integers will always produce a short...
* config/stormy16/stormy16.md (ineqbranch_1): Do not assume that
        comparisons with small integers will always produce a short
        branch.

From-SVN: r146039
2009-04-14 15:16:50 +00:00
Rafael Avila de Espindola
e495a0c84d [multiple changes]
2009-04-14  Rafael Avila de Espindola  <espindola@google.com>

	Merge:

	2008-12-19  Diego Novillo  <dnovillo@google.com>

        	* cgraph.c (dump_cgraph_node): Show memory address of NODE.

From-SVN: r146036
2009-04-14 13:54:41 +00:00
Richard Guenther
587aa06343 tree-cfg.c (verify_gimple_assign_unary): Adjust vector code verification.
2000-04-14  Richard Guenther  <rguenther@suse.de>

	* tree-cfg.c (verify_gimple_assign_unary): Adjust vector code
	verification.
	(verify_gimple_assign_binary): Likewise.  Handle shifts and
	rotates correctly.
	(verify_gimple_phi): Print the mismatched argument position.
	* tree-vect-loop-manip.c (vect_update_ivs_after_vectorizer):
	Fix types.
	(vect_update_init_of_dr): Likewise.
	* matrix-reorg.c (transform_access_sites): Do what the
	comment suggests.
	* omp-low.c (expand_omp_atomic_pipeline): Use the correct types.

From-SVN: r146035
2009-04-14 13:50:18 +00:00
Uros Bizjak
58277f4892 pr39740.c (dg-options): Add -mexplicit-relocs.
* gcc.target/alpha/pr39740.c (dg-options): Add -mexplicit-relocs.
	(do_D): Remove attribute hidden.

From-SVN: r146031
2009-04-14 12:36:34 +02:00
Jakub Jelinek
50e8c6d283 * gennews (files): Reference GCC 4.4 web pages.
From-SVN: r146026
2009-04-14 11:56:38 +02:00
Jakub Jelinek
309c24a90d configure.ac: Change copyright header to refer to version 3 of the GNU General Public License...
* configure.ac: Change copyright header to refer to version
	3 of the GNU General Public License and to point readers at the
	COPYING3 file and the FSF's license web page.
	* Makefile.def: Likewise.
	* Makefile.tpl: Likewise.
	* Makefile.in: Regenerate.

From-SVN: r146023
2009-04-14 10:50:26 +02:00
GCC Administrator
6c1ad72ac4 Daily bump.
From-SVN: r146019
2009-04-14 00:16:45 +00:00
Michael Eager
9eca177408 Add configuration-specific options for --target=powerpc-xilinx-eabi.
From-SVN: r146016
2009-04-13 22:49:18 +00:00
Dwarakanath Rajagopal
b0e2d00839 ipa-inline.c (cgraph_decide_inlining_of_small_function): Dump ...
2009-04-13  Dwarakanath Rajagopal  <dwarak.rajagopal@amd.com>                                                                   
                                                                                                                                
        * ipa-inline.c (cgraph_decide_inlining_of_small_function): Dump                                                         
        file_name:line_number type locator of the call site.

From-SVN: r146014
2009-04-13 21:29:01 +00:00
Jason Merrill
82e738a541 fix changelog dates
From-SVN: r146012
2009-04-13 16:55:37 -04:00
Jason Merrill
15237f9a89 re PR c++/39480 (generated memcpy causes trouble in assignment)
PR c++/39480
	* call.c (build_over_call): Don't call memcpy if the target is
	the same as the source.

From-SVN: r146011
2009-04-13 16:53:34 -04:00
Vladimir Makarov
1244a8b735 genautomata.c: Put blank after comma.
2009-04-13  Vladimir Makarov  <vmakarov@redhat.com>

	* genautomata.c: Put blank after comma.
	(automaton_decls): New.
	(struct unit_usage): Add comments to member next.
	(store_alt_unit_usage): Keep the list ordered.
	(unit_present_on_list_p, equal_alternatives_p): New.
	(check_regexp_units_distribution): Check units distribution
	correctness correctly.
	(main): Don't write automata if error is found.  Return correct
	exit code.
	
	* config/m68k/cf.md (cfv4_ds): Remove.
	(cfv4_pOEP1, cfv4_sOEP1, cfv4_pOEP2,cfv4_sOEP2, cfv4_pOEP3,
	cfv4_sOEP3): Assign to cfv4_oep instead of cfv4_ds.

	* config/rs6000/power4.md (lsuq_power4, iq_power4, fpq_power4,
	power4-load-ext, power4-store, power4-store-update,
	power4-fpstore, power4-fpstore-update, power4-two, power4-three,
	power4-insert, power4-compare, power4-lmul-cmp, power4-imul-cmp,
	power4-lmul, , power4-imul, power4-imul3, power4-sdiv,
	power4-sqrt, power4-isync): Modify reservation to make correct
	unit distribution to automata.

	* config/rs6000/power5.md (iq_power5, fpq_power5, power5-store,
	power5-store-update, power5-two, power5-three, power5-lmul,
	power5-imul, power5-imul3, power5-sdiv, power5-sqrt): Ditto.

From-SVN: r146010
2009-04-13 20:02:41 +00:00
H.J. Lu
1b1c508f21 re PR testsuite/39733 (gcc.misc-tests/help.exp doesn't work with multilib)
2009-04-13  H.J. Lu  <hongjiu.lu@intel.com>

	PR testsuite/39733
	* gcc.misc-tests/options.exp (check_for_options): Renamed to ...
	(check_for_all_options): This.

From-SVN: r146009
2009-04-13 12:42:26 -07:00
Jason Merrill
c1b93f2b52 re PR c++/39750 (ICE in uses_template_parms, at cp/pt.c:6332)
PR c++/39750
	* pt.c (uses_template_parms): Handle CONSTRUCTOR.

From-SVN: r146006
2009-04-13 14:54:40 -04:00
Adam Nemet
f7dd18640e except.c (pass_set_nothrow_function_flags): Set name and add TODO_dump_func.
* except.c (pass_set_nothrow_function_flags): Set name and add
	TODO_dump_func.
	(set_nothrow_function_flags): Mention in the dump file when
	changing a function to nothrow.

From-SVN: r146003
2009-04-13 14:51:30 +00:00
Paolo Carlini
a5d8781c69 2009-04-13 Paolo Carlini <paolo.carlini@oracle.com>
* ChangeLog rotation.

From-SVN: r146002
2009-04-13 14:41:54 +00:00
Ozkan Sezer
92c3e7043a re PR target/39397 (libiberty/pex-*, inconsistent/incorrect pid_t usage)
2009-04-13  Ozkan Sezer  <sezeroz@gmail.com>

        PR target/39397
        * pex-common.h (struct pex_obj): Store pid values as pid_t,
        not as long (members *children and (*wait))
        * pex-common.c (pex_run_in_environment): Likewise.
        * pex-win32.c (pex_win32_wait): Return pid_t and properly check
        returned pid value.
        * pex-djgpp.c (pex_djgpp_wait): Return pid_t.
        * pex-msdos.c (pex_msdos_wait): Likewise.

From-SVN: r146001
2009-04-13 12:45:58 +02:00
Ozkan Sezer
266aa80543 re PR other/39062 (libssp/ssp.c needs malloc.h for mingw)
2009-04-13  Ozkan Sezer  <sezeroz@gmail.com>

        PR target/39062
        * ssp.c: Also include malloc.h for alloca(). MinGW needs it.
        * configure.ac: Also check for malloc.h.
        * configure: Regenerated.
        * config.h.in: Regenerated.

From-SVN: r146000
2009-04-13 12:37:17 +02:00
Ozkan Sezer
59a1171ffc gbl-ctors.h (DO_GLOBAL_CTORS_BODY): Use __SIZE_TYPE__ instead of unsigned long.
2009-04-13  Ozkan Sezer  <sezeroz@gmail.com>

        PR/39066
        * gbl-ctors.h (DO_GLOBAL_CTORS_BODY): Use __SIZE_TYPE__
        instead of unsigned long.

From-SVN: r145999
2009-04-13 12:11:48 +02:00
Ramana Radhakrishnan
934c2060de arm.c (return_used_this_function): Remove.
2009-04-13  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>

       * config/arm/arm.c (return_used_this_function): Remove.
       (arm_output_function_prologue): Remove use of
	return_used_this_function.
       (output_return_instruction): Replace use of
	return_used_this_function
	by cfun->machine->return_used_this_function.
       (arm_output_epilogue): Likewise.
       (arm_output_function_epilogue): Likewise.
       (thumb_unexpanded_epilogue): Likewise.
       * config/arm/arm.h (struct machine_function):
	New member return_used_this_function.

From-SVN: r145997
2009-04-13 08:25:55 +00:00
Mark Mitchell
ae5cc01695 install.texi: Correct description of default directory for --with-gxx-include-dir.
* doc/install.texi: Correct description of default directory for
	--with-gxx-include-dir.

From-SVN: r145996
2009-04-13 04:50:06 +00:00
Jason Merrill
0f8a770633 re PR c++/39742 (ice in C++ overload resolution)
PR c++/39742
	* call.c (joust): Don't crash on variadic fn.

From-SVN: r145994
2009-04-13 00:04:58 -04:00
GCC Administrator
6312fca0d9 Daily bump.
From-SVN: r145993
2009-04-13 00:16:54 +00:00
Joseph Myers
18f41a1b45 re PR preprocessor/31869 (stringifying empty macros)
libcpp:
	PR preprocessor/31869
	* macro.c (stringify_arg): Handle NULL source token in padding
	token where previous padding token did not have source token with
	preceding whitespace.

gcc/testsuite:
	* gcc.dg/cpp/strify5.c: New test.

From-SVN: r145989
2009-04-12 23:20:02 +01:00
Eric Botcazou
849d624b4a fold-const.c (build_range_check): Properly deal with enumeral and boolean base types.
* fold-const.c (build_range_check): Properly deal with enumeral and
	boolean base types.

From-SVN: r145988
2009-04-12 21:39:39 +00:00
Steven Bosscher
3906a4a1bc invoke.texi (max_gcse_passes): Remove documentation.
* doc/invoke.texi (max_gcse_passes): Remove documentation.
	* params.def (PARAM_MAX_GCSE_PASSES): Remove.
	* params.h (MAX_GCSE_PASSES): Remove.
	* gcse.c (gcse_main): Run CPROP1, PRE or HOIST, and CPROP2
	in sequence.  Remove ability to run multiple passes.
	(bypass_jumps): Report run as third CPROP pass.

From-SVN: r145987
2009-04-12 19:43:46 +00:00
Adam Nemet
efaadb930b re PR middle-end/39651 (New cleanup test failures)
PR middle-end/39651
	* except.c (can_throw_external): Look at each insn in a SEQUENCE
	when deciding whether the whole SEQUENCE can throw.

From-SVN: r145986
2009-04-12 19:36:50 +00:00
Uros Bizjak
4c48007b43 re PR target/39740 (unrecognizable insn on alpha using -O3 and -std=c99)
2009-04-12  Uros Bizjak  <ubizjak@gmail.com>

	PR target/39740
	* config/alpha/predicates.md (local_symbolic_operand): Return 1 for
	offseted label references.

testsuite/ChangeLog:

	PR target/39740
	* gcc.target/alpha/pr39740.c: New test.

From-SVN: r145985
2009-04-12 20:55:25 +02:00
GCC Administrator
4de43cbedd Daily bump.
From-SVN: r145972
2009-04-12 00:17:01 +00:00
Jan Hubicka
b41040182a * tree-ssa-pre.c (eliminate): Fix call of update_stmt.
From-SVN: r145961
2009-04-11 18:20:43 +00:00
Daniel Kraft
cadb8f4246 re PR fortran/37746 (bounds check of string dummy arguments)
2009-04-11  Daniel Kraft  <d@domob.eu>

	PR fortran/37746
	* gfortran.h (struct gfc_charlen): New field `passed_length' to store
	the actual passed string length for dummy arguments.
	* trans-decl.c (gfc_create_string_length): Formatting fixes and added
	assertion, moved a local variable into the innermost block it is needed.
	(create_function_arglist): Removed TODO about the check being
	implemented and initialize cl->passed_length here.
	(add_argument_checking): New method.
	(gfc_generate_function_code): Call the argument checking method.

2009-04-11  Daniel Kraft  <d@domob.eu>

	PR fortran/37746
	* gfortran.dg/bounds_check_strlen_1.f90: New test.
	* gfortran.dg/bounds_check_strlen_2.f90: New test.
	* gfortran.dg/bounds_check_strlen_3.f90: New test.
	* gfortran.dg/bounds_check_strlen_4.f90: New test.
	* gfortran.dg/bounds_check_strlen_5.f90: New test.
	* gfortran.dg/bounds_check_strlen_6.f90: New test.
	* gfortran.dg/bounds_check_strlen_7.f90: New test.
	* gfortran.fortran-torture/execute/intrinsic_index.f90: Fix wrong
	expected string length that failed with -fbounds-check now.
	* gfortran.fortran-torture/execute/intrinsic_trim.f90: Ditto.

From-SVN: r145958
2009-04-11 18:44:37 +02:00
Janus Weil
d1e49db443 re PR fortran/39692 (f95: conflict between EXTERNAL and POINTER)
2009-04-11  Janus Weil  <janus@gcc.gnu.org>

	PR fortran/39692
	* symbol.c (check_conflict): Reject procedure pointers for -std=f95.


2009-04-11  Janus Weil  <janus@gcc.gnu.org>

	PR fortran/39692
	* gfortran.dg/proc_ptr_14.f90: New.

From-SVN: r145955
2009-04-11 12:30:29 +02:00
Richard Guenther
32848948c2 re PR middle-end/39732 (-fprofile-generate -O1: ICE: verify_stmts failed, ADDRESSABLE bit not set on pointers passed to std::copy)
2009-04-11  Richard Guenther  <rguenther@suse.de>

	PR middle-end/39732
	* tree-inline.c (declare_return_variable): Mark DECL_BY_REFERENCE
	return variables as TREE_ADDRESSABLE.

	* g++.dg/torture/pr39732.C: New testcase.

From-SVN: r145954
2009-04-11 10:19:55 +00:00
Daniel Franke
568eecadba resolve.c (resolve_global_procedure): Enable whole-file checking for procedures that are declared later in the file.
gcc/fortran/:
2009-04-11  Daniel Franke  <frake.daniel@gmail.com>

        * resolve.c (resolve_global_procedure): Enable whole-file checking for
        procedures that are declared later in the file.


gcc/testsuite:
2009-04-11  Daniel Franke  <franke.daniel@gmail.com>

        * gfortran.dg/whole_file_5.f90: New.
        * gfortran.dg/whole_file_6.f90: New.

From-SVN: r145953
2009-04-11 05:33:11 -04:00
Richard Guenther
8810712ed9 re PR tree-optimization/39713 (ICE in get_expr_value_id)
2009-04-11  Richard Guenther  <rguenther@suse.de>

	PR tree-optimization/39713
	* tree-ssa-sccvn.c (vn_get_expr_for): Make sure built
	reference trees have SSA_NAME operands.

	* g++.dg/torture/pr39713.C: New testcase.

From-SVN: r145951
2009-04-11 07:34:09 +00:00
Richard Guenther
fa78c0c18b re PR c/39712 (type mismatch in address expression)
2009-04-11  Richard Guenther  <rguenther@suse.de>

	PR c/39712
	* c-gimplify.c (c_gimplify_expr): Adjust check for mismatched
	address expressions.

	* gcc.dg/pr39712.c: New testcase.

From-SVN: r145950
2009-04-11 07:32:52 +00:00
Dave Korn
4d7221309b cygwin-stdint.h (INT_LEAST32_TYPE): Update to match changes in Cygwin 1.7 (UINT_LEAST32_TYPE...
* config/i386/cygwin-stdint.h (INT_LEAST32_TYPE):  Update to
	match changes in Cygwin 1.7
	(UINT_LEAST32_TYPE, INT_FAST16_TYPE, INT_FAST32_TYPE,
	UINT_FAST16_TYPE, UINT_FAST32_TYPE):  Likewise.

From-SVN: r145949
2009-04-11 05:31:17 +00:00
Paolo Bonzini
567a90f59c re PR middle-end/39701 (Revision 145846 caused many test failures)
2009-04-10  Paolo Bonzini  <bonzini@gnu.org>

	PR tree-optimization/39701
	* doc/invoke.texi (Optimization Options): Document change in
	meaning and initialization of -fdelete-null-pointer-checks.

From-SVN: r145948
2009-04-10 17:43:33 -07:00
GCC Administrator
1f54468443 Daily bump.
From-SVN: r145947
2009-04-11 00:16:52 +00:00
H.J. Lu
1ad2f450a0 re PR middle-end/39701 (Revision 145846 caused many test failures)
2009-04-10  H.J. Lu  <hongjiu.lu@intel.com>

	PR middle-end/39701
	* common.opt (-fdelete-null-pointer-checks): Initialize to 1.

	* opts.c (decode_options): Don't set flag_delete_null_pointer_checks
	here.

	* doc/invoke.texi: Update -fdelete-null-pointer-checks.

From-SVN: r145937
2009-04-10 11:58:12 -07:00
H.J. Lu
72b75d0333 re PR c++/28301 (ICE with broken specialization)
gcc/cp/

2009-04-10  Jason Merrill  <jason@redhat.com>

	PR c++/28301
	* parser.c (cp_parser_skip_to_end_of_block_or_statement): Return
	if we see a close brace without an open brace.

gcc/testsuite/

2009-04-10  H.J. Lu  <hongjiu.lu@intel.com>

	PR c++/28301
	* g++.dg/cpp0x/enum2.C: Updated.
	* g++.dg/debug/pr22514.C: Likewise.
	* g++.dg/parse/enum2.C: Likewise.
	* g++.dg/parse/enum3.C: Likewise.
	* g++.dg/template/crash79.C: Likewise.
	* g++.old-deja/g++.jason/cond.C: Likewise.

	* g++.dg/template/pr28301.C: New.

From-SVN: r145936
2009-04-10 11:56:07 -07:00
Chao-ying Fu
6e990b5462 interrupt_handler.c: Change from compile to assemble.
2009-04-10  Chao-ying Fu  <fu@mips.com>

	* gcc.target/mips/interrupt_handler.c: Change from compile to
	assemble.

From-SVN: r145935
2009-04-10 18:22:46 +00:00
Chao-ying Fu
1afc537304 tm.texi (Instruction Output): Document TARGET_ASM_FINAL_POSTSCAN_INSN.
2009-04-10  Chao-ying Fu  <fu@mips.com>

	* doc/tm.texi (Instruction Output): Document
	TARGET_ASM_FINAL_POSTSCAN_INSN.
	* target.h (final_postscan_insn): New field in asm_out.
	* target-def.h (TARGET_ASM_FINAL_POSTSCAN_INSN): New define.
	(TARGET_ASM_OUT): Add TARGET_ASM_FINAL_POSTSCAN_INSN.
	* final.c (final_scan_insn): Call
	targetm.asm_out.final_postscan_insn after outputting
	an asm macro and a normal instruction.

	* config/mips/mips.h (FINAL_PRESCAN_INSN): New define.
	* config/mips/mips-protos.h (mips_final_prescan_insn): Declare.
	* config/mips/mips.c (mips_at_reg_p): New for_each_rtx callback.
	(mips_final_prescan_insn, mips_final_postscan_insn): New functions.
	(TARGET_ASM_FINAL_POSTSCAN_INSN): New define.

From-SVN: r145934
2009-04-10 18:20:22 +00:00
Kaveh R. Ghazi
aa070a60c3 forward-1.x: Fix x86_64 entry typos.
* objc/execute/forward-1.x: Fix x86_64 entry typos.

From-SVN: r145932
2009-04-10 17:25:42 +00:00
Paolo Bonzini
a862775d0b re PR middle-end/39701 (Revision 145846 caused many test failures)
2009-04-10  Paolo Bonzini  <bonzini@gnu.org>

	PR middle-end/39701
	* trans.c (gfc_allocate_with_status): Fix type mismatches
	on "pstat == 0".

From-SVN: r145930
2009-04-10 10:14:35 -07:00