Commit Graph

97151 Commits

Author SHA1 Message Date
Michael Meissner
497d383424 Undo part of 2009-10-23 change
From-SVN: r154380
2009-11-20 21:40:39 +00:00
Simon Martin
2282976b05 re PR c++/38646 (ICE with invalid specialization of variadic template)
gcc/cp/

2009-11-20  Simon Martin  <simartin@users.sourceforge.net>

	PR c++/38646
	* pt.c (process_partial_specialization): Do not turn wrongly located
	parameter pack arguments into error_mark_node.
	Split too long lines into two.

gcc/testsuite/

2009-11-20  Simon Martin  <simartin@users.sourceforge.net>

	PR c++/38646
	* g++.dg/cpp0x/pr38646.C: New test.

From-SVN: r154378
2009-11-20 21:37:23 +00:00
Jonathan Wakely
70826946ea re PR libstdc++/42019 (shared_ptr can not be used with -fno-rtti)
2009-11-20  Jonathan Wakely  <jwakely.gcc@gmail.com>

	PR libstdc++/42019
	* include/tr1/shared_ptr.h: Only use typeid when RTTI is enabled.
	* include/bits/shared_ptr_base.h: Likewise.
	* include/bits/shared_ptr.h: Likewise.
	* testsuite/tr1/2_general_utilities/shared_ptr/misc/42019.cc: New.
	* testsuite/20_util/shared_ptr/misc/42019.cc: New.

From-SVN: r154377
2009-11-20 21:23:02 +00:00
Paul Brook
d547364305 invoke.texi: Document ARM -mcpu=cortex-a5.
2009-11-20  Paul Brook  <paul@codesourcery.com>

	gcc/
	* doc/invoke.texi: Document ARM -mcpu=cortex-a5.
	* config/arm/arm-cores.def: Add cortex-a5.
	* config/arm/bpabi.h (BE8_LINK_SPEC): Add mcpu=cortex-a5.
	* config/arm/arm-tune.md: Regenerate.

From-SVN: r154375
2009-11-20 17:37:30 +00:00
Olga Golovanevsky
eed8fcad82 re PR tree-optimization/39960 (struct-reorg is broken)
2009-11-17 Olga Golovanevsky <olga@il.ibm.com>

	PR middle-end/39960
	* ipa-struct-reorg.c (find_pos_in_stmt): New parameter.
	(ref_pos): New field in structure.
	(insert_new_var_in_stmt): New function.

From-SVN: r154374
2009-11-20 16:57:35 +00:00
Rainer Orth
25bcd7ea32 config.gcc (alpha*-dec-osf[45]*): Set use_gcc_stdint.
gcc:
	* config.gcc (alpha*-dec-osf[45]*): Set use_gcc_stdint.
	* config/alpha/osf.h (SIG_ATOMIC_TYPE): Define.
	(INT8_TYPE, INT16_TYPE, INT32_TYPE, INT64_TYPE): Define.
	(UINT8_TYPE, UINT16_TYPE, UINT32_TYPE, UINT64_TYPE): Define.
	(INT_LEAST8_TYPE, INT_LEAST16_TYPE, INT_LEAST32_TYPE,
	(INT_LEAST64_TYPE): Define.
	(UINT_LEAST8_TYPE, UINT_LEAST16_TYPE, UINT_LEAST32_TYPE,
	UINT_LEAST64_TYPE): Define.
	(INT_FAST8_TYPE, INT_FAST16_TYPE, INT_FAST32_TYPE,
	INT_FAST64_TYPE): Define.
	(UINT_FAST8_TYPE, UINT_FAST16_TYPE, UINT_FAST32_TYPE,
	UINT_FAST64_TYPE): Define.
	(INTPTR_TYPE, UINTPTR_TYPE): Define.

	gcc/testsuite:
	* gcc.dg/c99-stdint-6.c: Set dg-options for alpha*-dec-osf5*.
	Wrap *int_least*_t tests in !NO_LEAST_TYPES.
	Wrap *intmax_t tests in !NO_MAX_TYPES.

From-SVN: r154373
2009-11-20 16:55:19 +00:00
Julian Brown
2ee67fbb88 arm.h (ASM_OUTPUT_REG_PUSH): Handle STATIC_CHAIN_REGNUM specially for Thumb-1.
gcc/
	* config/arm/arm.h (ASM_OUTPUT_REG_PUSH): Handle STATIC_CHAIN_REGNUM
	specially for Thumb-1.
	(ASM_OUTPUT_REG_POP): Likewise.

From-SVN: r154372
2009-11-20 16:48:28 +00:00
Paolo Carlini
10d3a72a80 re PR c++/42060 ([c++0x] ICE throwing array with initializer list)
cp/
2009-11-20  Paolo Carlini  <paolo.carlini@oracle.com>

	PR c++/42060
	* except.c (build_throw): Check the tree returned by
	decay_conversion for error_mark_node.

testsuite/
2009-11-20  Paolo Carlini  <paolo.carlini@oracle.com>

	PR c++/42060
	* g++.dg/cpp0x/initlist28.C: New.

From-SVN: r154371
2009-11-20 16:03:19 +00:00
Janus Weil
2848dbd32c intrinsic.texi (C_F_PROCPOINTER): Remove obsolete comment.
2009-11-20  Janus Weil  <janus@gcc.gnu.org>

	* intrinsic.texi (C_F_PROCPOINTER): Remove obsolete comment.

From-SVN: r154370
2009-11-20 16:40:55 +01:00
H.J. Lu
fbbb752e58 Remove testsuite/ from pathname.
From-SVN: r154365
2009-11-20 06:44:37 -08:00
H.J. Lu
aeb1da2ea1 proc_ptr_comp_23.f90: Add a missing space.
2009-11-20  H.J. Lu  <hongjiu.lu@intel.com>

	* gfortran.dg/proc_ptr_comp_23.f90: Add a missing space.

From-SVN: r154364
2009-11-20 06:07:06 -08:00
Andreas Krebbel
b5308c02b4 vrp47.c: Skip on S/390.
2009-11-20  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>

	* gcc.dg/tree-ssa/vrp47.c: Skip on S/390.

From-SVN: r154363
2009-11-20 12:58:48 +00:00
Paolo Carlini
3d68714e22 compatibility-c++0x.cc (_Fnv_hash<4>, [...]): Add.
2009-11-21  Paolo Carlini  <paolo.carlini@oracle.com>

	* src/compatibility-c++0x.cc (_Fnv_hash<4>, _Fnv_hash<8>): Add.

From-SVN: r154361
2009-11-20 10:35:43 +00:00
Shujing Zhao
c86818cfbe re PR c++/29017 (%s substituted with different untranslated words can't be properly translated)
/cp
2009-11-20  Shujing Zhao  <pearly.zhao@oracle.com>

	PR c++/29017
	* cp-tree.h (composite_pointer_operation): New type.
	(composite_pointer_type): Adjust prototype with new argument.
	* typeck.c (composite_pointer_type): Accept
	composite_pointer_operation as argument and emit diagnostic to be
	visible to gettext and checked at compile time.
	(composite_pointer_type_r): Likewise.
	(common_pointer_type): Update call to composite_pointer_type.
	(cp_build_binary_op): Likewise.
	* call.c (build_conditional_expr): Likewise.

/testsuite
2009-11-20  Shujing Zhao  <pearly.zhao@oracle.com>

	* g++.old-deja/g++.jason/rfg20.C: Make expected dg-error strings
	explicit.
	* g++.old-deja/g++.rfg/00321_01-.C: Likewise.
	* g++.old-deja/g++.rfg/00324_02-.C: Likewise.
	* g++.old-deja/g++.law/typeck1.C: Likewise.
	* g++.old-deja/g++.bugs/900324_02.C: Likewise.
	* g++.dg/conversion/ptrmem9.C: Likewise.
	* g++.dg/expr/cond2.C: Likewise.

From-SVN: r154360
2009-11-20 10:05:37 +00:00
Arnaud Charlet
3de8a540d8 macro.c (enter_macro_context): Call cb.used callback if defined.
* macro.c (enter_macro_context): Call cb.used callback if defined.
	* directives.c (do_idef, do_ifndef): Ditto.
	* include/cpplib.h (struct cpp_callbacks): Add used callback.

From-SVN: r154359
2009-11-20 09:18:16 +01:00
Paul Thomas
9f29c05e32 re PR fortran/42104 ([F03] runtime segfault with procedure pointer component)
2009-11-20  Paul Thomas  <pault@gcc.gnu.org>
	    Janus Weil  <janus@gcc.gnu.org>

	PR fortran/42104
	* trans-expr.c (gfc_conv_procedure_call): If procedure pointer
	component call, use the component's 'always_explicit' attr
	for array arguments.

2009-11-20  Paul Thomas  <pault@gcc.gnu.org>
	    Janus Weil  <janus@gcc.gnu.org>

	PR fortran/42104
	* gfortran.dg/proc_ptr_comp_23.f90 : New test.


Co-Authored-By: Janus Weil <janus@gcc.gnu.org>

From-SVN: r154358
2009-11-20 06:43:13 +00:00
Jason Merrill
5cd25f0725 re PR c++/42115 (r154072 & r154073 break build of ppl, non-placement deallocation issue)
PR c++/42115
	* call.c (build_op_delete_call): Don't complain about using
	op delete (void *, size_t) for placement delete if there's an
	op delete (void *).

From-SVN: r154357
2009-11-20 00:03:21 -05:00
Jason Merrill
98fba7f7af DR 176 permissiveness
DR 176 permissiveness
gcc/
	* dwarf2out.c (get_context_die): Take TYPE_MAIN_VARIANT.
gcc/cp/
	* class.c (build_self_reference): Call set_underlying_type.
	* decl.c (check_elaborated_type_specifier): Don't complain about
	injected-class-name.
	(type_is_deprecated): Use TYPE_MAIN_VARIANT.
	* pt.c (convert_template_argument): Handle injected-class-name used
	as template template argument.
	* typeck2.c (abstract_virtuals_error): Use TYPE_MAIN_VARIANT.

From-SVN: r154354
2009-11-19 22:12:07 -05:00
GCC Administrator
2fc9ae768b Daily bump.
From-SVN: r154353
2009-11-20 00:17:09 +00:00
Ben Elliston
5ca0106ad5 * config.guess: Update from upstream sources.
From-SVN: r154349
2009-11-20 09:47:13 +11:00
Andy Hutchinson
7787fb8cd1 pr40204.c: Test only for int32 target.
*gcc.c-torture/compile/pr40204.c: Test only for int32 target.
*gcc.c-torture/compile/pr41181.c: Skip test for avr target.

From-SVN: r154346
2009-11-19 21:38:48 +00:00
Andy Hutchinson
de2b713283 raw-string-1.c: Skip test for avr target.
* gcc-dg/raw-string-1.c: Skip test for avr target.
* gcc-dg/utf-array-short-wchar.c: Ditto.
* gcc-dg/utf-array.c: Ditto.
* gcc-dg/utf8-2.c: Ditto.

From-SVN: r154345
2009-11-19 21:32:56 +00:00
Ben Elliston
c22c44bac0 pex-unix.c (pex_child_error): Define writeerr macro to avoid unused result warnings from write(3) calls.
* pex-unix.c (pex_child_error): Define writeerr macro to avoid
	unused result warnings from write(3) calls.  Undefine writeerr
	after all uses.

From-SVN: r154344
2009-11-20 08:16:45 +11:00
Janne Blomqvist
872d209423 Move includes after include guards
From-SVN: r154343
2009-11-19 22:23:03 +02:00
Rafael Espindola
e4d5031cc8 [multiple changes]
2009-11-19  Rafael Avila de Espindola  <espindola@google.com>

	* g++.dg/plugin/selfassign.c: Include plugin-version.h.
	(plugin_init): Pass correct version to plugin_default_version_check.
	* gcc.dg/plugin/ggcplug.c: Include plugin-version.h.
	(plugin_init): Pass correct version to plugin_default_version_check.
	* gcc.dg/plugin/selfassign.c: Include plugin-version.h.
	(plugin_init): Pass correct version to plugin_default_version_check.


2009-11-19  Basile Starynkevitch  <basile@starynkevitch.net>
            Rafael Avila de Espindola  <espindola@google.com>

	* doc/plugins.texi (Plugin initialization): Added advices for
	retrieving the version of GCC at plugin compilation and loading
	times.

From-SVN: r154342
2009-11-19 20:22:53 +00:00
Benjamin Kosnik
bf4967a1bd pool_allocator.cc: Adjust catch blocks.
2009-11-19  Benjamin Kosnik  <bkoz@redhat.com>

	* src/pool_allocator.cc: Adjust catch blocks.
	* src/bitmap_allocator.cc: Same.
	* src/localename.cc: Same.
	* src/ios.cc: Same.

	* libsupc++/cxxabi-forced.h: Adjust comments, markup.

	* testsuite/util/testsuite_hooks.h (copy_constructor::copyCount):
	Remove.
	(copy_constructor::dtorCount): Remove.
	* testsuite/23_containers/list/modifiers/1.h: Adjust.
	* testsuite/23_containers/list/modifiers/2.h: Same.
	* testsuite/23_containers/list/modifiers/3.h: Same.

From-SVN: r154341
2009-11-19 19:21:05 +00:00
Basile Starynkevitch
fdabb520f2 plugin.c (FMT_FOR_PLUGIN_EVENT): added definition.
2009-11-19  Basile Starynkevitch  <basile@starynkevitch.net>

	* gcc/plugin.c (FMT_FOR_PLUGIN_EVENT): added definition.
	(dump_active_plugins): output to file everything. Use
	internationalized dump & FMT_FOR_PLUGIN_EVENT.

From-SVN: r154337
2009-11-19 17:21:50 +00:00
Jason Merrill
7bead48f16 re PR c++/561 (std:unclear about Overloaded Function Pointer resolution)
PR c++/561
	* decl.c (static_fn_type): Split out...
	(revert_static_member_fn): ...from here.
	* cp-tree.h: Declare it.
	* class.c (resolve_address_of_overloaded_function): Use it to compare
	pointers to member functions.
	* typeck.c (build_static_cast_1): Call instantiate_type.

From-SVN: r154336
2009-11-19 11:59:05 -05:00
Paolo Carlini
4a85780b75 re PR libstdc++/41622 ([DR 1245] [c++0x] std::hash<std::string>::operator() copies its argument)
2009-11-19  Paolo Carlini  <paolo.carlini@oracle.com>

	PR libstdc++/41622
	* include/bits/functional_hash.h: Implement inline the various
	std::hash specializations, using, when appropriate, pass by
	const ref too, per DR 1245.
	* include/tr1_impl/functional_hash.h: Remove, move its contents...
	* include/tr1/functional_hash.h: ... here.
	* include/std/functional: Tweak includes.
	* src/hash_c++0x: Rename to...
	* src/compatibility-c++0x.cc: ... this, implementing compatibility
	std::hash<>::operator() specializations.
	* src/hash.cc: Do not mark specializations as throw().
	* src/Makefile.am: Adjust.
	* include/Makefile.am: Likewise.
	* src/Makefile.in: Regenerate.
	* include/Makefile.in: Likewise.
	* testsuite/util/testsuite_api.h: Define a dummy hash for
	NonDefaultConstructible.
	* testsuite/23_containers/unordered_map/requirements/
	explicit_instantiation/2.cc: Use it.
	* testsuite/23_containers/unordered_multimap/requirements/
	explicit_instantiation/2.cc: Likewise.
	* testsuite/23_containers/unordered_set/requirements/
	explicit_instantiation/2.cc: Likewise.
	* testsuite/23_containers/unordered_multiset/requirements/
	explicit_instantiation/2.cc: Likewise.

From-SVN: r154335
2009-11-19 16:55:25 +00:00
Johannes Singler
d95ba652ab partition.h (__parallel_partition): Correctly initialize chunk size.
2009-11-19  Johannes Singler  <singler@kit.edu>

        * include/parallel/partition.h (__parallel_partition): Correctly
        initialize chunk size.
        (__parallel_nth_element): Respect nth_element_minimal_n.  Use
        sequential nth_element as base case, instead of sequential sort.

From-SVN: r154333
2009-11-19 16:43:20 +00:00
Richard Guenther
b66a1bac46 gimple.c (canonicalize_cond_expr_cond): Strip conversions around truth-valued expressions.
2009-11-19  Richard Guenther  <rguenther@suse.de>

	* gimple.c (canonicalize_cond_expr_cond): Strip conversions
	around truth-valued expressions.
	* tree.c (free_lang_data): Untangle check for LTO frontend.

From-SVN: r154332
2009-11-19 15:45:48 +00:00
Rafael Avila de Espindola
92fa7608a4 re PR bootstrap/42096 (lto.c:289:7: error: implicit declaration of function 'strtoll')
2009-11-19  Rafael Avila de Espindola  <espindola@google.com>

	PR bootstrap/42096
	* lto-plugin.c (claim_file_handler): Print offsets in hex.

2009-11-19  Rafael Avila de Espindola  <espindola@google.com>

	PR bootstrap/42096
	* lto-elf.c (lto_elf_file_open): Use lto_parse_hex.
	* lto.c (lto_parse_hex): New.
	(lto_resolution_read): Use lto_parse_hex.
	* lto.h (lto_parse_hex): New.

From-SVN: r154330
2009-11-19 15:30:04 +00:00
Jakub Jelinek
986ad1338d tree.c (need_assembler_name_p): Use cgraph_get_node instead of cgraph_node_for_decl.
* tree.c (need_assembler_name_p): Use cgraph_get_node instead
	of cgraph_node_for_decl.
	* cgraph.h (cgraph_node_for_decl): Remove prototype.
	* cgraph.c (cgraph_node_for_decl): Remove.
	(cgraph_get_node): Just return NULL if !cgraph_hash.

From-SVN: r154329
2009-11-19 14:23:23 +01:00
Paul Brook
1abed66bb0 config.gcc: Add new ARM --with-fpu options.
2009-11-19  Paul Brook  <paul@codesourcery.com>

	gcc/
	* config.gcc: Add new ARM --with-fpu options.
	* doc/invoke.texi: Docuent ARM -mfpu=fpv4-sp-d16.
	* config/arm/arm.c (all_fpus): Add fpv4-sp-d16.

From-SVN: r154328
2009-11-19 12:09:22 +00:00
Janus Weil
08fbe2fe5e trans-expr.c (conv_isocbinding_procedure): New function.
2009-11-19  Janus Weil  <janus@gcc.gnu.org>

	* trans-expr.c (conv_isocbinding_procedure): New function.
	(gfc_conv_procedure_call): Move ISO_C_BINDING stuff to
	separate function.

From-SVN: r154327
2009-11-19 11:29:41 +01:00
Tobias Burnus
dae5882f9c gfortran.texi (Interoperable Subroutines and Functions): Fix example.
2009-11-19  Tobias Burnus  <burnus@net-b.de>

       * gfortran.texi (Interoperable Subroutines and Functions): Fix
       example.

From-SVN: r154326
2009-11-19 09:57:02 +01:00
Nick Clifton
87af78d462 20091002-1_0.C: Replace -shared with -r -nostlib.
* g++.dg/lto/20091002-1_0.C: Replace -shared with -r -nostlib.
        * g++.dg/lto/20081120-1_0.C: Likewise.
        * g++.dg/lto/20091002-2_0.C: Likewise.
        * g++.dg/lto/20081120-2_0.C: Likewise.
        * g++.dg/lto/20091002-3_0.C: Likewise.
        * g++.dg/lto/20081123_0.C: Likewise.
        * g++.dg/lto/20090313_0.C: Likewise.
        * g++.dg/lto/20081109-1_0.C: Likewise.
        * g++.dg/lto/20081219_0.C: Likewise.
        * g++.dg/lto/20081204-1_0.C: Likewise.
        * g++.dg/lto/20090302_0.C: Likewise.
        * g++.dg/lto/20081119-1_0.C: Likewise.
        * g++.dg/lto/20081118_0.C: Likewise.

From-SVN: r154325
2009-11-19 08:28:46 +00:00
Jerry DeLisle
9cfb4eba43 re PR fortran/42090 (I/O: Problems when reading partial records in formatted direct access files)
2009-11-18  Jerry DeLisle  <jvdelisle@gcc.gnu.org>

	PR libgfortran/42090
	* gfortran.dg/direct_io_11.f90: New test.

From-SVN: r154317
2009-11-19 05:27:15 +00:00
Jerry DeLisle
0b4d979f55 re PR fortran/42090 (I/O: Problems when reading partial records in formatted direct access files)
2009-11-18  Jerry DeLisle  <jvdelisle@gcc.gnu.org>

	PR libgfortran/42090
	* io/transfer.c (skip_record): Set bytes_left_subrecord to zero after
	skipping the remaining bytes in the record.
	(next_record_r): Call skip_record with the number of bytes_left to be
	skipped.

From-SVN: r154316
2009-11-19 04:50:04 +00:00
GCC Administrator
271cb0240a Daily bump.
From-SVN: r154311
2009-11-19 00:17:19 +00:00
Richard Guenther
bb4efb4dd0 gimple.h (union gimple_statement_d): Add gsmembase member.
2009-11-18  Richard Guenther  <rguenther@suse.de>

	* gimple.h (union gimple_statement_d): Add gsmembase member.
	(gimple_vuse_op): Use gsmembase for access.
	(gimple_vdef_op): Likewise.
	(gimple_vuse): Likewise.
	(gimple_vdef): Likewise.
	(gimple_vuse_ptr): Likewise.
	(gimple_vdef_ptr): Likewise.
	(gimple_set_vuse): Likewise.
	(gimple_set_vdef): Likewise.
	* gsstruct.def (GSS_WITH_MEM_OPS_BASE): Add.

From-SVN: r154306
2009-11-18 20:28:19 +00:00
H.J. Lu
76425f8978 linkage.exp: Also check -m32 for i*86-*-linux*.
2009-11-18  H.J. Lu  <hongjiu.lu@intel.com>

	* gcc.misc-tests/linkage.exp: Also check -m32 for i*86-*-linux*.

From-SVN: r154303
2009-11-18 09:50:45 -08:00
Daniel Jacobowitz
573282f83b * doc/arm-neon-intrinsics.texi: Regenerated.
From-SVN: r154302
2009-11-18 17:06:46 +00:00
Daniel Jacobowitz
31d1afdee1 neon-docgen.ml (analyze_shape_elt): Handle Alternatives.
* config/arm/neon-docgen.ml (analyze_shape_elt): Handle
	Alternatives.

From-SVN: r154301
2009-11-18 17:04:34 +00:00
Paul Brook
60bd3528ad arm.c (FL_ARCH7EM, [...]): Define.
2009-11-18  Paul Brook  <paul@codesourcery.com>
	Daniel Jacobowitz  <dan@codesourcery.com>

	gcc/
	* config/arm/arm.c (FL_ARCH7EM, FL_FOR_ARCH7EM): Define.
	(arm_arch7em): New variable.
	(all_architectures): Add armv7e-m.
	(arm_override_options): Set arm_arch7em.
	* config/arm/arm.h (TARGET_DSP_MULTIPLY, TARGET_INT_SIMD):
	Include arm_arch7em.
	(arm_arch7em): Declare.


Co-Authored-By: Daniel Jacobowitz <dan@codesourcery.com>

From-SVN: r154299
2009-11-18 16:51:56 +00:00
Richard Guenther
7caa21fc32 lto-streamer-in.c (input_gimple_stmt): Assert that we find a valid field decl if checking is enabled.
2009-11-18  Richard Guenther  <rguenther@suse.de>

	* lto-streamer-in.c (input_gimple_stmt): Assert that we find
	a valid field decl if checking is enabled.

From-SVN: r154298
2009-11-18 16:13:09 +00:00
Nick Clifton
647e7a92de 20091002-1_0.C: Replace -shared with -r -nostlib.
* g++.dg/lto/20091002-1_0.C: Replace -shared with -r -nostlib.
        * g++.dg/lto/20081120-1_0.C: Likewise.
        * g++.dg/lto/20091002-2_0.C: Likewise.
        * g++.dg/lto/20081120-2_0.C: Likewise.
        * g++.dg/lto/20091002-3_0.C: Likewise.
        * g++.dg/lto/20081123_0.C: Likewise.
        * g++.dg/lto/20090313_0.C: Likewise.
        * g++.dg/lto/20081109-1_0.C: Likewise.
        * g++.dg/lto/20081219_0.C: Likewise.
        * g++.dg/lto/20081204-1_0.C: Likewise.
        * g++.dg/lto/20090302_0.C: Likewise.
        * g++.dg/lto/20081119-1_0.C: Likewise.
        * g++.dg/lto/20081118_0.C: Likewise.

From-SVN: r154297
2009-11-18 16:08:23 +00:00
H.J. Lu
b31c74fe48 re PR testsuite/41913 (ERROR: tcl error sourcing gcc.dg/lto/lto.exp)
2009-11-18  H.J. Lu  <hongjiu.lu@intel.com>

	PR testsuite/41913
	* lib/lto.exp (scan-symbol): Properly check if target exist.

From-SVN: r154296
2009-11-18 08:02:17 -08:00
Martin Jambor
661e733051 ipa-prop.h (struct ipa_param_call_note): New field lto_stmt_uid.
2009-11-18  Martin Jambor  <mjambor@suse.cz>

	* ipa-prop.h (struct ipa_param_call_note): New field lto_stmt_uid.
	(lto_ipa_fixup_call_notes): Declare.
	* ipa-prop.c (ipa_note_param_call): Store gimple uid.
	(update_call_notes_after_inlining): Copy call stmt uid to the new
	edge.
	(ipa_write_param_call_note): New function.
	(ipa_read_param_call_note): New function
	(ipa_write_node_info): Write also param call notes.  Removed a bogus
	comment, reformatted to fit 80 columns.
	(ipa_read_node_info): Read also param call notes. Removed a bogus
	comment.  Remove ipa_edge_args_vector growth.
	(lto_ipa_fixup_call_notes): New function.
	* ipa-cp.c (pass_ipa_cp): Add stmt_fixup hook.
	* ipa-inline.c (cgraph_mark_inline_edge): Perform indirect
	inlining regardless of flag_wpa.
	(cgraph_decide_inlining_of_small_functions): Likewise.
	(cgraph_decide_inlining): Likewise.
	(inline_read_summary): Likewise.

From-SVN: r154293
2009-11-18 15:10:02 +01:00
Janus Weil
827c5be4f7 re PR fortran/42072 ([F03] wrong-code with C_F_PROCPOINTER)
2009-11-18  Janus Weil  <janus@gcc.gnu.org>

	PR fortran/42072
	* trans-expr.c (gfc_conv_procedure_call): Handle procedure pointer
	dummies which are passed to C_F_PROCPOINTER.


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

	PR fortran/42072
	* gfortran.dg/proc_ptr_8.f90: Extended.

From-SVN: r154292
2009-11-18 14:24:54 +01:00