99730 Commits

Author SHA1 Message Date
Steven Bosscher
42db504c2f tm.texi (defmac SMALL_REGISTER_CLASSES): Remove.
* doc/tm.texi (defmac SMALL_REGISTER_CLASSES): Remove.
	(TARGET_SMALL_REGISTER_CLASSES_FOR_MODE_P): Add documentation,
	based on the above, for new target hook.

	* hooks.c (hook_bool_mode_true): New generic hook.
	* hooks.h (hook_bool_mode_true): Add prototype.

	* target.h (struct gcc_target): Add small_register_classes_for_mode_p
	target hook.
	* target-def.h (TARGET_SMALL_REGISTER_CLASSES_FOR_MODE_P): New default
	target hook, set to hook_bool_mode_false.
	* regs.h: Remove default definition of SMALL_REGISTER_CLASSES.
	* reload.c (push_secondary_reload): Replace SMALL_REGISTER_CLASSES
	with targetm.small_register_classes_for_mode_p.
	(find_reusable_reload): Likewise.
	(combine_reloads): Likewise.
	* reload1.c (reload_as_needed): Likewise.
	* cse.c (approx_reg_cost_1, hash_rtx_cb): Likewise.
	* ifcvt.c (noce_process_if_block, check_cond_move_block,
	dead_or_predicable): Likewise.
	* regmove.c (optimize_reg_copy_1): Likewise.
	* calls.c (prepare_call_address): Likewise.
	(precompute_register_parameters): Likewise.

	* config/sh/sh.h: Replace SMALL_REGISTER_CLASSES with new target
	hook definition.
	* config/sh/sh.c (sh_small_register_classes_for_mode_p): Add
	implementation of the hook that considers all register classes
	small except for SH64.
	(sh_override_options): Use the new hook.
	* config/sh/sh-protos.h (sh_small_register_classes_for_mode_p):
	Add prototype.

	* config/arm/arm.h: Replace SMALL_REGISTER_CLASSES with new target
	hook definition.
	* config/arm/arm.c (arm_small_register_classes_for_mode_p): Add
	implementation of the hook that considers all register classes
	small for THUMB1.
	* config/arm/arm-protos.h (arm_small_register_classes_for_mode_p):
	Add prototype.

	* config/mips/mips.h: Replace SMALL_REGISTER_CLASSES with new target
	hook definition.
	* config/mips/mips.c (mips_small_register_classes_for_mode_p): Add
	implementation of the hook that considers all register classes
	small for MIPS16.
	* config/mips/mips-protos.h (mips_small_register_classes_for_mode_p):
	Add prototype.

	* config/i386/i386.h: Replace SMALL_REGISTER_CLASSES with new target
	hook definition.
	* config/m32c/m32c.h: Likewise.
	* config/pdp11/pdp11.h: Likewise.
	* config/avr/avr.h: Likewise.
	* config/xtensa/xtensa.h: Likewise.
	* config/m68hc11/m68hc11.h: Likewise.
	* config/mn10300/mn10300.h: Likewise.
	* config/mcore/mcore.h: Likewise.
	* config/h8300/h8300.h: Likewise.
	* config/bfin/bfin.h: Likewise.

	* config/iq2000/iq2000.h: Remove SMALL_REGISTER_CLASSES definition.
	* config/rx/rx.h: Remove SMALL_REGISTER_CLASSES definition.

From-SVN: r158997
2010-05-03 17:47:47 +00:00
Rainer Orth
d5ece0a1f5 run_acats (which): New function.
* ada/acats/run_acats (which): New function.
	(host_gnatchop, host_gnatmake): Use it.

From-SVN: r158994
2010-05-03 16:40:54 +00:00
Anatoly Sokolov
e6693cfa84 double-int.h (tree_to_double_int): Remove macro.
* double-int.h (tree_to_double_int): Remove macro.
	(double_int_to_tree, double_int_fits_to_tree_p): Move prototypes ...
	* tree.h (double_int_to_tree, double_int_fits_to_tree_p): ... here.
	(tree_to_double_int): New function.
	* double-int.c (double_int_to_tree, double_int_fits_to_tree_p):
	Move ...
	* tree.c (double_int_to_tree, double_int_fits_to_tree_p): ... here.

From-SVN: r158993
2010-05-03 20:21:15 +04:00
Richard Guenther
8eb7bc3cda re PR tree-optimization/43971 (index domain error in tree-ssa-structalias.c:3450)
2010-05-03  Richard Guenther  <rguenther@suse.de>

	PR tree-optimization/43971
	* tree-ssa-structalias.c (get_constraint_for_1): Fix
	constraints in the !flag_delete_null_pointer_checks case.

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

From-SVN: r158991
2010-05-03 16:12:12 +00:00
Jakub Jelinek
c4e26da143 re PR debug/43972 (ICE in loc_cmp)
PR debug/43972
	* config/i386/i386.c (ix86_delegitimize_address): Make sure the
	result mode matches original rtl mode.

	* gcc.dg/debug/pr43972.c: New test.

From-SVN: r158989
2010-05-03 17:42:43 +02:00
GCC Administrator
43f9f5210f Daily bump.
From-SVN: r158988
2010-05-03 00:16:58 +00:00
Dave Korn
2385a4704c ChangeLog: Added missing PR reference from last commit.
* gcc/ChangeLog: Added missing PR reference from last commit.

From-SVN: r158984
2010-05-02 23:54:21 +00:00
Dave Korn
2dfccd834c winnt.c (i386_pe_binds_local_p): Handle weak decls.
* config/i386/winnt.c (i386_pe_binds_local_p): Handle weak decls.

From-SVN: r158983
2010-05-02 23:51:59 +00:00
Uros Bizjak
63004b4903 re PR testsuite/43963 (FAIL: g++.dg/debug/dwarf2/icf.C scan-assembler 0x0.*Vtable slot)
PR testsuite/43963
	* g++.dg/debug/dwarf2/icf.C: Update scan regexp for Vtable slot 0.

From-SVN: r158982
2010-05-02 22:45:20 +02:00
Uros Bizjak
18fdef206f i386.c (ix86_target_string): Output 'flags', not 'isa', when processing flag options.
* config/i386/i386.c (ix86_target_string): Output 'flags', not 'isa',
	when processing flag options.

From-SVN: r158979
2010-05-02 21:57:13 +02:00
Uros Bizjak
7c393241cf vmsdbgout.c (ASM_OUTPUT_DEBUG_DATA1): Change format string placeholder from 0x%x to %#x.
* vmsdbgout.c (ASM_OUTPUT_DEBUG_DATA1): Change format string
	placeholder from 0x%x to %#x.
	(ASM_OUTPUT_DEBUG_DATA1): Ditto.
	(ASM_OUTPUT_DEBUG_DATA4): Ditto.
	(ASM_OUTPUT_DEBUG_DATA): Ditto.
	(ASM_OUTPUT_DEBUG_ADDR_DATA): Ditto.
	(ASM_OUTPUT_DEBUG_DATA8): Ditto.
	* optc-gen.awk: Ditto.
	* hwint.h (HOST_WIDE_INT_PRINT_DOUBLE_HEX): Ditto.
	(HOST_WIDE_INT_PRINT_HEX): Ditto.
	(HOST_WIDEST_INT_PRINT_HEX): Ditto.
	(HOST_WIDEST_INT_PRINT_DOUBLE_HEX): Ditto.
	* gcov-dump.c (tag_function): Ditto.
	(tag_summary): Ditto.

From-SVN: r158978
2010-05-02 21:39:31 +02:00
Richard Guenther
52c307baff re PR tree-optimization/43879 (-fipa-pta causes various miscompilations)
2010-05-02  Richard Guenther  <rguenther@suse.de>

	PR tree-optimization/43879
	* tree-tailcall.c (find_tail_calls): Clobbers also prevent
	tail calls.

	* gcc.dg/torture/pr43879-3.c: New testcase.

From-SVN: r158977
2010-05-02 18:10:53 +00:00
Giuseppe Scrivano
d52e74b25f * gnathtml.pl: Use 755 as mask for new directories.
From-SVN: r158976
2010-05-02 16:56:05 +00:00
Bruno Haible
4896c7b821 * doc/extend.texi (Function Attributes): Fix a typo.
From-SVN: r158975
2010-05-02 15:25:21 +00:00
Tobias Burnus
0d6d8e000b re PR fortran/18918 (Eventually support Fortran 2008's coarrays [co-arrays])
2010-05-02  Tobias Burnus  <burnus@net-b.de>

        PR fortran/18918
        * intrinsic.c (add_functions): Fix GFC_STD and add gfc_resolve_*
        calls for lcobound, ucobound, image_index and this_image.
        * intrinsic.h (gfc_resolve_lcobound, gfc_resolve_this_image,
        gfc_resolve_image_index, gfc_resolve_ucobound): New prototypes.
        * iresolve.c (gfc_resolve_lcobound, gfc_resolve_this_image,
        gfc_resolve_image_index, gfc_resolve_ucobound, resolve_bound): New
        functions.
        (gfc_resolve_lbound, gfc_resolve_ubound): Use resolve_bound.

From-SVN: r158974
2010-05-02 17:13:03 +02:00
Uros Bizjak
34a47f6fa9 revert: hwint.h (HOST_WIDE_INT_PRINT_DOUBLE_HEX): Change format string placeholder from 0x%x to %#x.
Revert:
	* hwint.h (HOST_WIDE_INT_PRINT_DOUBLE_HEX): Change format string
	placeholder from 0x%x to %#x.
	(HOST_WIDEST_INT_PRINT_DOUBLE_HEX): Ditto.
	* config/i386/i386.c (output_pic_addr_const): Ditto.

From-SVN: r158972
2010-05-02 15:10:40 +02:00
Uros Bizjak
35c59d9c2a vmsdbgout.c (ASM_OUTPUT_DEBUG_DATA1): Change format string placeholder from 0x%x to %#x.
* vmsdbgout.c (ASM_OUTPUT_DEBUG_DATA1): Change format string
	placeholder from 0x%x to %#x.
	(ASM_OUTPUT_DEBUG_DATA1): Ditto.
	(ASM_OUTPUT_DEBUG_DATA4): Ditto.
	(ASM_OUTPUT_DEBUG_DATA): Ditto.
	(ASM_OUTPUT_DEBUG_ADDR_DATA): Ditto.
	(ASM_OUTPUT_DEBUG_DATA8): Ditto.
	* optc-gen.awk: Ditto.
	* hwint.h (HOST_WIDE_INT_PRINT_DOUBLE_HEX): Ditto.
	(HOST_WIDE_INT_PRINT_HEX): Ditto.
	(HOST_WIDEST_INT_PRINT_HEX): Ditto.
	(HOST_WIDEST_INT_PRINT_DOUBLE_HEX): Ditto.
	* gcov-dump.c (tag_function): Ditto.
	(tag_summary): Ditto.

From-SVN: r158971
2010-05-02 14:31:18 +02:00
Anatoly Sokolov
82f81f18bf target.h (struct calls): Add function_value_regno_p field.
* target.h (struct calls): Add function_value_regno_p field.
	* target-def.h (TARGET_FUNCTION_VALUE_REGNO_P): Define.
	(TARGET_INITIALIZER): Use TARGET_FUNCTION_VALUE_REGNO_P.
	* targhooks.c (default_function_value_regno_p): New function.
	* targhooks.h (default_function_value_regno_p): Declare function.
	* rtlanal.c (keep_with_call_p): Use function_value_regno_p hook.
	* builtins.c. (apply_result_size): (Ditto.).
	* combine.c. (likely_spilled_retval_p): (Ditto.).
	* mode-switching.c. Include 'target.h'.
	(create_pre_exit): Use function_value_regno_p hook.
	* Makefile.in (mode-switching.o): Add dependency on TARGET_H.
	* doc/tm.texi (FUNCTION_VALUE_REGNO_P,
	TARGET_FUNCTION_VALUE_REGNO_P): Revise documentation.

	* config/i386/i386.h (TARGET_FUNCTION_VALUE_REGNO_P): Remove macro.
	* config/i386/i386.c (TARGET_FUNCTION_VALUE_REGNO_P): Define macro.
	(ix86_function_value_regno_p): Declare as static, change argument
	type to const unsigned int.
	* config/i386/i386-protos.h (ix86_function_value_regno_p): Remove.

From-SVN: r158970
2010-05-02 14:49:10 +04:00
GCC Administrator
2018489bf4 Daily bump.
From-SVN: r158969
2010-05-02 00:17:07 +00:00
Richard Guenther
bab4d587a0 re PR tree-optimization/43949 (bogus warning: array subscript is above array bounds)
2010-05-01  Richard Guenther  <rguenther@suse.de>

	PR tree-optimization/43949
	* tree-vrp.c (ssa_name_nonnegative_p): Return true for unsigned
	types.
	(extract_range_from_binary_expr): Handle *_MOD_EXPR.

	* g++.dg/warn/Warray-bounds-5.C: New testcase.

From-SVN: r158965
2010-05-01 21:30:26 +00:00
Jonathan Wakely
8d825422c0 faq.xml: Fix anachronisms.
2010-05-01  Jonathan Wakely  <jwakely.gcc@gmail.com>

	* doc/xml/faq.xml: Fix anachronisms.
	* doc/xml/manual/intro.xml (Make): Tweak grammar and whitespace.
	* doc/xml/manual/support.xml (NULL): Use inline <code> element
	instead of <programlisting> block.
	* doc/html/*: Regenerate.

From-SVN: r158964
2010-05-01 21:03:19 +01:00
Anatoly Sokolov
3e93ff8196 rtl.h (CONST_DOUBLE_P): Define.
* rtl.h (CONST_DOUBLE_P): Define.
	(rtx_to_double_int): Declare.
	* emit-rtl.c (rtx_to_double_int): New function.
	* dwarf2out.c (insert_double): New function.
	(loc_descriptor, add_const_value_attribute): Clean up, use
	rtx_to_double_int and insert_double functions.

From-SVN: r158963
2010-05-01 21:52:02 +04:00
Jonathan Wakely
bcbc9564cd extend.texi (Inline): Add missing return keyword to examples.
* doc/extend.texi (Inline): Add missing return keyword to examples.
	(Function Attributes, Variable Attributes, Pragmas): Hyphenate
	"command-line".

From-SVN: r158962
2010-05-01 17:31:17 +01:00
Joseph Myers
d4d437e4b5 * sv.po: Update.
From-SVN: r158960
2010-05-01 16:23:59 +01:00
H.J. Lu
13ead6d8c5 Revert the accidental checkin in revision 158918.
gcc/cp/

2010-05-01  H.J. Lu  <hongjiu.lu@intel.com>

	PR c++/43951
	* init.c (build_new_1): Revert the accidental checkin in
	revision 158918.

gcc/testsuite/

2010-05-01  H.J. Lu  <hongjiu.lu@intel.com>

	PR c++/43951
	* g++.dg/init/new28.C: New.

From-SVN: r158959
2010-05-01 06:52:52 -07:00
Iain Sandoe
619dea2d5c [multiple changes]
2010-04-30  Iain Sandoe  <iains@gcc.gnu.org>

	PR objc++/32052
	* objc-act.c (encode_aggregate_within): Encode structure tags
	with template args for ObjC++.

2010-04-30  Iain Sandoe <iains@gcc.gnu.org>

	PR objc++/32052
	* obj-c++.dg/encode-2.mm: Remove XFAIL. Add test for anonymous
	structure and nested declarations.
	* obj-c++.dg/encode-3.mm:  Remove XFAIL. Add test for anonymous
	structure and nested declarations.  Reduce header clutter and
	use _exit() rather than abort().
	* objc.dg/encode-10.m: New.
	* objc.dg/encode-11.m: New.

From-SVN: r158958
2010-05-01 00:32:13 +00:00
GCC Administrator
6482762d81 Daily bump.
From-SVN: r158957
2010-05-01 00:17:01 +00:00
Eric Botcazou
ce276b614c tree-ssa-loop-ivopts.c (may_be_unaligned_p): Check the alignment of the variable part of the offset as well.
* tree-ssa-loop-ivopts.c (may_be_unaligned_p): Check the alignment of
	the variable part of the offset as well.  Use highest_pow2_factor for
	all alignment checks.

From-SVN: r158948
2010-04-30 21:10:53 +00:00
Jason Merrill
5cb6410a27 re PR c++/43868 (ICE with -g)
PR c++/43868
	* cxx-pretty-print.c (pp_cxx_decl_specifier_seq): Move pmf handling...
	(pp_cxx_type_specifier_seq): ...here.

From-SVN: r158947
2010-04-30 16:48:12 -04:00
Richard Biener
8267740011 re PR tree-optimization/43879 (-fipa-pta causes various miscompilations)
2010-04-30  Richard Guenther  <rguenther@suse.de>

	PR tree-optimization/43879
	* tree-ssa-structalias.c (type_could_have_pointers): Functions
	can have pointers.

From-SVN: r158945
2010-04-30 18:52:44 +00:00
Jan Hubicka
cd71491e1c lto-symtab.c (lto_symtab_resolve_can_prevail_p): Chose var with varpool.
* lto-symtab.c (lto_symtab_resolve_can_prevail_p): Chose var with varpool.
	(lto_symtab_merge_decls_1): Remove logic looking for an initializer.

From-SVN: r158944
2010-04-30 18:45:47 +00:00
Jan Hubicka
ace72c88c5 lto.c (get_filename_for_set): Look for cgraph node and if none found, use default name.
* lto.c (get_filename_for_set): Look for cgraph node and if none found, use
	default name.
	(lto_wpa_write_files): Write any non-empty partition.

	* cgraph.h (cgraph_node_set_nonempty_p, varpool_node_set_nonempty_p): New.
	* lto-cgraph.c (input_cgraph): Remove call to lto_mark_file_for_ltrans.
	* lto-streamer.h (lto_file_decl_data): Remove needs_ltrans_p.
	(lto_file_needs_ltrans_p, lto_mark_file_for_ltrans,
	cgraph_node_set_needs_ltrans_p): Remove.

From-SVN: r158943
2010-04-30 18:44:41 +00:00
Tobias Burnus
bf65e4b184 2010-04-30 Tobias Burnus Mburnus@net-b.de>
PR fortran/18918
        PR fortran/43931
        *  trans-types.c (gfc_get_array_descriptor_base): Fix index
        calculation for array descriptor types.

2010-04-30  Tobias Burnus  Mburnus@net-b.de>

        PR fortran/18918
        PR fortran/43931
        * gfortran.dg/coarray_13.f90: New test.

From-SVN: r158941
2010-04-30 20:30:53 +02:00
Steven Bosscher
b6feb7966a sdbout.c: Include vec.h, do not include varray.h.
* sdbout.c: Include vec.h, do not include varray.h.
	(deferred_global_decls, sdbout_global_decl,
	sdbout_finish, sdbout_init): Use VEC instead of VARRAY.
	* toplev.c: Do not include varray.h.
	(dump_memory_report): Do not dump VARRAY statistics.
	* gengtype.c (open_base_file): Ignore varray.h.
	* Makefile.in: Update for abovementioned changes.
	Remove all traces of varray.c and varray.h.
	* varray.c: Remove file.
	* varray.h: Remove file.

From-SVN: r158939
2010-04-30 14:58:54 +00:00
Jan Hubicka
05575e0780 lto-cgraph.c (lto_output_varpool_node): Always output constant pool references.
* lto-cgraph.c (lto_output_varpool_node): Always output constant pool
	references.

	* lto.c: Do not attempt to make constant pool references global.

From-SVN: r158938
2010-04-30 14:26:51 +00:00
Jan Hubicka
9c6e079827 tree-profile.c (tree_init_ic_make_global_vars): Mark new decls as needed.
* tree-profile.c (tree_init_ic_make_global_vars): Mark new decls as
	needed.

From-SVN: r158937
2010-04-30 14:24:44 +00:00
Richard Guenther
47d8a9035d tree-ssa-structalias.c (get_constraint_for_1): Generate constraints for CONSTRUCTOR.
2010-04-30  Richard Guenther  <rguenther@suse.de>

	* tree-ssa-structalias.c (get_constraint_for_1): Generate
	constraints for CONSTRUCTOR.

From-SVN: r158936
2010-04-30 13:37:02 +00:00
Richard Guenther
b6050cb77f re PR lto/43946 (SPEC2000 GCC fails to build with -fprofile-generate -O2 -ffast-math -flto -fwhole-program)
2010-04-30  Richard Guenther  <rguenther@suse.de>

	PR lto/43946
	* passes.c (init_optimization_passes): Move pass_ipa_free_lang_data
	first after all lowering passes.

	* gcc.dg/lto/20100430-1_0.c: New testcase.

From-SVN: r158935
2010-04-30 13:23:25 +00:00
Steven Bosscher
ccb253b36c Fix broken ChangeLog entry
From-SVN: r158934
2010-04-30 12:09:36 +00:00
Steven Bosscher
9aae8d16dd toplev.c: Include varray.h for statistics dumping.
gcc/ChangeLog:
	* toplev.c: Include varray.h for statistics dumping.
	* tree.h: Do not declare varray_head_tag.
	* tree-into-ssa.c, tree-ssa-uninit.c, tree-phinodes.c, omega.c,
	regs.h, lto-cgraph.c, tree-ssa-loop-ivopts.c, tree-nomudflap.c,
	c-objc-common.c, lto-streamer-out.c, tree-ssa-propagate.c,
	gimple-low.c, c-semantics.c, dwarf2out.c, lto-streamer-in.c,
	lto-section-in.c, alias.c, tree-if-conv.c, gimplify.c, ggc-zone.c,
	tree-ssa.c, tree-ssa-loop-prefetch.c, integrate.h, c-gimplify.c,
	c-common.c, c-common.h, reg-stack.c, basic-block.h,
	tree-ssa-structalias.c, lto-section-out.c, tree-ssanames.c: Do not
	include varray.h.
	* Makefile.in: Update for abovementioned changes.

objc/ChangeLog:
	* objc-act.c: Do not include varray.h.

objcp/ChangeLog:
	* objcp-decl.c: Do not include varray.h.

cp/ChangeLog:
	* optimize.c, parser.c,mangle.c, cp-tree.h: DO not include varray.h.
	* Make-lang.in: Don't include varray.h dependency in CXX_TREE_H.

From-SVN: r158933
2010-04-30 11:58:49 +00:00
Jakub Jelinek
a07ecd2bc4 re PR debug/43942 (-fcompare-debug faulure with external declaration in function.)
PR debug/43942
	* tree.c (auto_var_in_fn_p): Return false for DECL_EXTERNAL vars.

	* c-c++-common/pr43942.c: New test.

From-SVN: r158931
2010-04-30 13:24:16 +02:00
Steven Bosscher
1179ee883f 20091216-1_0.c: Adjust test case to avoid conflict with darwin crt1.o 'start' symbol.
* gcc.dg/lto/20091216-1_0.c: Adjust test case to avoid
	conflict with darwin crt1.o 'start' symbol.

From-SVN: r158929
2010-04-30 10:09:41 +00:00
Paolo Carlini
5e108459ec stl_pair.h (piecewise_construct_t, [...]): Add.
2010-04-30  Paolo Carlini  <paolo.carlini@oracle.com>

	* include/bits/stl_pair.h (piecewise_construct_t,
	pair<>::pair(piecewise_construct_t, tuple, tuple)): Add.
	(pair<>::__cons, pair<>::__do_cons): Declare.
	(__decay_and_strip, __strip_reference_wrapper): Move...
	* include/std/type_traits: ... here.
	* include/std/functional (_Index_tuple, _Build_index_tuple): Move...
	* include/std/tuple: ... here.
	(pack_arguments): Add.
	(pair<>::__cons, pair<>::__do_cons): Define.
	* testsuite/20_util/tuple/creation_functions/pack_arguments.cc: New.
	* testsuite/20_util/pair/piecewise.cc: Likewise.
	* testsuite/20_util/tuple/cons/big_tuples.cc: Include <utility>.
	* testsuite/20_util/tuple/cons/constructor.cc: Likewise.
	* testsuite/20_util/make_signed/requirements/typedefs_neg.cc: Adjust
	dg-error line numbers.
	* testsuite/20_util/make_unsigned/requirements/typedefs_neg.cc:
	Likewise.
	* testsuite/20_util/declval/requirements/1_neg.cc: Likewise.

From-SVN: r158928
2010-04-30 09:52:41 +00:00
Hariharan Sandanagobalane
41700fc33b picochip.c (picochip_legitimize_address): Define.
* config/picochip/picochip.c (picochip_legitimize_address): Define.
        Use this function to do machine-specific conversion.
        (picochip_legitimize_reload_address): Likewise.
        (picochip_legitimate_address_p): Check valid base register only if
        strict.
        (picochip_check_conditional_copy): Check for modw only if opnd is
        register.
        * config/picochip/picochip.h (LEGITIMIZE_RELOAD_ADDRESS): Use this
        to call the function in c.
        * config/picochip/picochip-protos.h
        (picochip_legitimize_reload_address): Define.
        * config/picochip/picochip.md (supported_compare1): Define.

From-SVN: r158927
2010-04-30 09:40:21 +00:00
Jan Hubicka
8b4765bf42 cgraph.h (cgraph_local_info): Remove for_functions_valid.
* cgraph.h (cgraph_local_info): Remove for_functions_valid.
	(cgraph_global_info): Remove inlined.
	(LTO_cgraph_tag_names): Remove.
	(LTO_cgraph_tags, LCC_NOT_FOUND): Move to ...
	* lto-cgraph.c (LTO_cgraph_tags, LCC_NOT_FOUND): ... here;
	simplify cgraph tags and document.
	(lto_output_node): Use only LTO_cgraph_unavail_node and
	LTO_cgraph_analyzed_node; Do not save analzed, reachable,
	for_functions_valid, global info, process and output
	flags.
	(input_overwrite_node): Initialize estimated stack size and
	estimated growth.
	Do not read flags we no longer store.
	(input_node): Likewise do not read info no longer stored.
	* ipa-inline.c (cgraph_mark_inline_edge): Do not set global.inlined
	flag.

From-SVN: r158926
2010-04-30 09:29:44 +00:00
Kai Tietz
e7fc9c75d0 unix.c (raw_truncate): Explicit cast from integer-scal to pointer.
2010-04-30  Kai Tietz  <kai.tietz@onevision.com>

        PR/43844
        * io/unix.c (raw_truncate): Explicit cast from integer-scal
        to pointer.
        (empfile): Use for mingw GetTempPath and avoid double slash
        for path.

From-SVN: r158925
2010-04-30 11:15:03 +02:00
Richard Guenther
4be68d9a2d re PR tree-optimization/43879 (-fipa-pta causes various miscompilations)
2010-04-30  Richard Guenther  <rguenther@suse.de>

	PR tree-optimization/43879
	* tree-ssa-structalias.c (get_constraint_for_1): Properly
	handle non-zero initializers.

	* gcc.dg/torture/pr43879_1.c: New testcase.

From-SVN: r158924
2010-04-30 08:22:15 +00:00
Richard Guenther
0646825443 builtins.c (fold_builtin_1): Delete free (0).
2010-04-30  Richard Guenther  <rguenther@suse.de>

	* builtins.c (fold_builtin_1): Delete free (0).

	* gcc.dg/tree-ssa/builtin-free.c: New testcase.

From-SVN: r158923
2010-04-30 08:18:51 +00:00
Shujing Zhao
8cdea6ab13 re PR c++/43779 (Parts of message not available for translation)
2010-04-30  Shujing Zhao  <pearly.zhao@oracle.com>

        PR c++/43779
        * typeck.c (warn_args_num): New function.
        (convert_arguments): Use warn_args_num to print the diagnostic
        messages.

From-SVN: r158919
2010-04-30 06:16:26 +00:00
Fabien Chêne
10ab8f62db re PR c++/43890 (invalid uninitialized reference in class)
PR c++/43890
	* init.c (diagnose_uninitialized_cst_or_ref_member): check for
	user-provided constructor while recursing.

From-SVN: r158918
2010-04-30 00:23:00 -04:00