Commit Graph

104589 Commits

Author SHA1 Message Date
Tobias Grosser aba2b02e8f Fix typo
* config/cloog.m4: Fix typo.  verison -> version.
	* configure: Regenerate.

From-SVN: r166670
2010-11-12 18:29:37 +00:00
Tobias Grosser 27882098ab Pass PPL libraries to CLooG version check
* config/cloog.m4: Pass ppl libraries to the CLooG version check.
	* configure: Regenerate.

From-SVN: r166669
2010-11-12 18:29:27 +00:00
Eric Botcazou d16e455d84 function.c (expand_function_end): Set the locator of the prologue on the stack checking insns.
* function.c (expand_function_end): Set the locator of the prologue on
	the stack checking insns.

From-SVN: r166668
2010-11-12 18:17:41 +00:00
James Dennett d780189f23 re PR c++/39415 (static_cast used as downcast can silently lose const)
PR c++/39415
	* typeck.c (build_static_cast_1): Convert to the target type
	when doing static_cast<cv Derived*>(Base*).

From-SVN: r166667
2010-11-12 13:00:21 -05:00
Richard Henderson 47c217252a xtensa: Convert to fma.
* config.gcc [xtensa] (extra_options): Add fused-madd.opt.
        * config/xtensa/xtensa.opt (mfused-madd): Remove.
        * config/xtensa/xtensa.c (TARGET_DEFAULT_TARGET_FLAGS): Remove
        MASK_FUSED_MADD.
        * config/xtensa/xtensa.md (fmasf4): Rename from muladdsf3; use
        * fma.
        (fnmasf4): Rename from mulsubsf3; use fma.

From-SVN: r166666
2010-11-12 09:53:36 -08:00
Joern Rennecke f1cb6795d3 re PR target/46450 (xstormy16-elf --enable-werror-always build fails)
PR target/46450
	* config/stormy16/stormy16.c (xstormy16_expand_prologue):
	Use add_reg_note.
	(xstormy16_function_arg): Dereference cum.
	(xstormy16_expand_builtin): Use expand_normal.
	Change type of omode to enum machine_mode.
	(combine_bnp): Rename and to and_insn.

From-SVN: r166665
2010-11-12 17:46:02 +00:00
Joern Rennecke a8ea94841c re PR target/46428 (moxie-elf --enable-werror-always build fails)
PR target/46428
	* config/moxie/moxie.c (moxie_expand_prologue): Remove unused variables.
	* config/moxie/moxie.h (HARD_REGNO_OK_FOR_BASE_P): Use unsigned
	comparison.

Co-Authored-By: Richard Henderson <rth@redhat.com>

From-SVN: r166664
2010-11-12 17:43:21 +00:00
Joern Rennecke 02809efdd6 re PR target/46431 (fr30-elf --enable-werror-always build fails)
PR target/46431
	* config/fr30/fr30.md (*movsf_constant_store): Remove duplicated
	assignment.

From-SVN: r166663
2010-11-12 17:34:04 +00:00
Joern Rennecke ae77ff7a03 re PR middle-end/44769 (warning for split_double when HOST_BITS_PER_WIDE_INT < BITS_PER_WORD)
PR middle-end/44769
	* final.c (split_double): Don't use BITS_PER_WORD directly in
	shift count.

From-SVN: r166662
2010-11-12 17:24:16 +00:00
Joern Rennecke d3c176fcaf re PR target/46412 (bfin-elf --enable-werror-always build fails)
PR target/46412
	* config/bfin/bfin-protos.h (bfin_local_alignment): Update prototype.
	* config/bfin/bfin.c: Include sel-sched.h .
	(bfin_cpus): Use BFIN_CPU_UNKNOWN for last initializer element.
	(expand_interrupt_handler_prologue): Remove unused variable insn.
	(bfin_load_pic_reg): Likewise.
	(bfin_rtx_costs): Make code / outer_code variables of type
	enum rtx_code, copied from re-named parameters.
	(bfin_local_alignment): Change align argument and return type
	to unsigned.
	(bfin_adjust_cost): Remove unused variable insn_type.
	Declare variables at start of block.
	(struct loop_info): Rename to...
	(struct loop_info_d).
	(workaround_rts_anomaly): Change type of icode to int.
	(harmless_null_pointer_p): Cast REGNO (..) to int before comparison
	with int-typed variable.
	(note_np_check_stores): Likewise.
	(trapping_loads_p): Remove unused variable pat.
	(bfin_expand_binop_builtin): Use expand_normal.
	(bfin_expand_unop_builtin): Likewise.
	(bfin_expand_builtin): Likewise.
	Set tmode before use.

From-SVN: r166661
2010-11-12 17:15:18 +00:00
Joern Rennecke 4a6336ad33 re PR bootstrap/44756 ([meta-bug] --enable-werror-always issues)
PR bootstrap/44756
	PR build/44767
	* doc/tm.texi.in (LOCAL_ALIGNMENT): State that the type, if any,
	should be unsigned.
	(STACK_SLOT_ALIGNMENT, LOCAL_DECL_ALIGNMENT, PUSH_ROUNDING): Likewise.
	* doc/tm.texi: Regenerate.

From-SVN: r166660
2010-11-12 17:11:06 +00:00
Pat Haugen c8967d95e7 opts-common.c (decode_cmdline_option): Initialize separate_args.
* opts-common.c (decode_cmdline_option): Initialize separate_args.

From-SVN: r166658
2010-11-12 16:36:36 +00:00
Jan Hubicka 211ceacad5 invoke.texi (early-inlining-insns): Update default.
* doc/invoke.texi (early-inlining-insns): Update default.
	* params.def (early-inlining-insns): Default to 10.

From-SVN: r166657
2010-11-12 16:29:10 +00:00
Olivier Hainque 146d930bb7 aix.h: #undef TARGET_AIX_OS before #define.
* config/rs6000/aix.h: #undef TARGET_AIX_OS before #define.

From-SVN: r166654
2010-11-12 16:04:12 +00:00
Joern Rennecke f42865cb32 re PR rtl-optimization/46433 (var-tracking.c doesn't include tm_p.h)
PR rtl-optimization/46433
        * var-tracking.c: Include tm_p.h .

From-SVN: r166651
2010-11-12 13:20:28 +00:00
Rainer Orth 882557be02 gcc:
* config/mips/iris6.h [!IRIX_USING_GNU_LD]
	(SUPPORTS_INIT_PRIORITY): Define.

	gcc/testsuite:
	* lib/prune.exp (prune_gcc_output): Ignore IRIX 6 linker multiline
	warning.
	* g++.dg/abi/packed1.C (struct INNER): Ignore warning on
	mips-sgi-irix*.
	* g++.dg/cpp/_Pragma1.C: Skip on mips-sgi-irix*.
	* gcc.target/mips/call-3.c: Add dg-require-visibility.

From-SVN: r166648
2010-11-12 10:55:34 +00:00
Joern Rennecke 3f02a5f3d3 re PR target/46430 (avr-elf --enable-werror-always build fails)
PR target/46430
	* config/avr/avr-protos.h (avr_return_addr_rtx): Update prototype.
	* config/avr/driver-avr.c (avr_device_to_arch): Always return value.
	(avr_device_to_data_start, avr_device_to_startfiles): Likewise.
	(avr_device_to_devicelib): Likewise.
	* config/avr/avr.md (zero_extendqihi2): Put variable declarations
	into block.
	(zero_extendqisi2, zero_extendhisi2, zero_extendqidi2): Likewise.
	(zero_extendhidi2, zero_extendsidi2): Likewise.
	* config/avr/avr.c (avr_num_arg_regs): Constify type.
	(avr_return_addr_rtx): De-constify tem.
	(avr_rotate_bytes): Move declarations to start of block.
	Don't use variable length array.
	Put nested if/else into block.

From-SVN: r166647
2010-11-12 10:09:39 +00:00
Eric Botcazou 4e0084e438 re PR debug/46375 (-fcompare-debug failure (length) with -O -fgcse -fno-tree-dominator-opts)
PR debug/46375
	* emit-rtl.c (remove_insn): Do not mark BBs upon debug insns.

From-SVN: r166646
2010-11-12 09:57:20 +00:00
Rodrigo Rivas Costa 8bbaa77087 re PR lto/46376 (LTO, MinGW and virtual base classes don't work together)
2010-11-11  Rodrigo Rivas Costa  <rodrigorivascosta@gmail.com>

        PR lto/46376
        * lto-symtab.c (lto_symtab_resolve_replaceable_p): Use DECL_ONE_ONLY.

From-SVN: r166645
2010-11-12 10:06:37 +01:00
Nathan Froyd 3a789837f5 re PR c/44782 (implement -ferror-limit=)
gcc/
	PR c/44782
	* common.opt (fmax-errors=): New option.
	* opts.c (common_handle_option) [OPT_fmax_errors_]: Handle it.
	* diagnostic.h (struct diagnostic_context): Add max_errors field.
	* diagnostic.c (diagnostic_initialize): Initialize it.
	(diagnostic_action_after_output): Exit if more than max_errors
	have been output.
	* doc/invoke.texi (Warning Options): Add -fmax-errors.
	(-fmax-errors): Document.

gcc/fortran/
	PR c/44782
	* options.c (gfc_post_options): Initialize gfc_option.max_errors.
	(gfc_handle_option) [OPT_fmax_errors_]: Remove.
	* lang.opt (fmax-errors=): Remove.

gcc/testsuite/
	PR c/44782
	* c-c++-common/fmax-errors.c: New test.

From-SVN: r166644
2010-11-12 03:38:15 +00:00
Richard Henderson f03d897af3 * optabs.c (init_optabs): Init {fma,fms,fnma,fnms}_optab properly.
From-SVN: r166643
2010-11-11 17:10:12 -08:00
Richard Henderson d48e78d639 i386: Convert from -mfused-madd to -ffp-contract.
* config/fused-madd.opt: New file.
	* config.gcc [i386-*, x86_64-*] (extra_options): Use it.
	* config/i386/i386.c (ix86_extra_costs): Handle FMA.
	(TARGET_DEFAULT_TARGET_FLAGS): Remove MASK_FUSED_MADD.
	* config/i386/i386.opt (mfused-madd): Remove.
	* config/i386/sse.md (split_fma): Remove.
	(split_fms, split_fnma, split_fnms): Remove.

From-SVN: r166642
2010-11-11 17:07:49 -08:00
GCC Administrator 75d319c280 Daily bump.
From-SVN: r166641
2010-11-12 00:18:31 +00:00
Jan Hubicka c9a32cfe88 * gcc.dg/tree-ssa/inline-6.c: Fix testcase.
From-SVN: r166637
2010-11-12 00:08:14 +00:00
Jan Hubicka 6783ab05d1 inline-5.c: Fix testcase.
* gcc.dg/tree-ssa/inline-5.c: Fix testcase.
	* gcc.dg/tree-ssa/inline-6.c: Remove bogus testcase.

From-SVN: r166636
2010-11-12 00:00:36 +00:00
Jakub Jelinek 94252ac254 re PR target/46088 (ICE: SIGSEGV in ix86_binary_operator_ok (i386.c:15025) with -Os -fnon-call-exceptions -fpeel-loops)
PR target/46088
	* config/i386/i386.md (*ashl<mode>3_cconly,
	*<shiftrt_insn><mode>3_cconly): Don't use ix86_binary_operator_ok,
	change nonimmediate_operand predicate to register_operand.

	* gcc.dg/pr46088.c: New test.

From-SVN: r166635
2010-11-12 00:51:18 +01:00
Paolo Bonzini 8fb1546627 Makefile.in (gengtype-lex.c): Include bconfig.h first.
2010-11-11  Paolo Bonzini  <bonzini@gnu.org>

        * Makefile.in (gengtype-lex.c): Include bconfig.h first.

From-SVN: r166634
2010-11-11 18:44:44 -05:00
Steven G. Kargl f76b96c20d symbol.c (verify_bind_c_derived_type): Accept BIND(C) on an empty derived type.
2010-11-10  Steven G. Kargl <kargl@gcc.gnu.org>

	* symbol.c (verify_bind_c_derived_type):  Accept BIND(C) on an empty
	derived type.

2010-11-10  Steven G. Kargl <kargl@gcc.gnu.org>

	* gfortran.dg/empty_derived_type.f90: New test.

From-SVN: r166633
2010-11-11 23:34:05 +00:00
Jan Hubicka a9c64730c2 opts.c (finish_options): Do not error on -flto-partition alone.
* opts.c (finish_options): Do not error on -flto-partition alone.
	* options.c (gfc_post_options): Remove flag_whopr.

From-SVN: r166632
2010-11-11 23:29:45 +00:00
Tobias Burnus d565654484 re PR fortran/46413 ([OOP] ICE when printing a polymorphic type)
2010-11-11  Tobias Burnus  <burnus@net-b.de>

        PR fortran/46413
        * resolve.c (resolve_transfer): Reject I/O transfer of
        polymorphic type.

        PR fortran/46205
        * resolve.c (resolve_code): Reject nonscalar FORALL masks.

2010-11-11  Tobias Burnus  <burnus@net-b.de>

        PR fortran/46413
        * gfortran.dg/class_31.f90: New.

        PR fortran/46205
        * gfortran.dg/forall_14.f90: New.

From-SVN: r166631
2010-11-12 00:07:23 +01:00
Jan Hubicka dc09b1077d * config/bootstrap-lto: Use -flto.
From-SVN: r166630
2010-11-11 23:06:25 +00:00
Jakub Jelinek 58ebaaf188 re PR fortran/46325 (gfortran.dg/char_initialiser_actual.f90 FAILs with -fstack-protector)
2010-11-11  Jakub Jelinek <jakub@redhat.com>
            Tobias Burnus <burnus@net-b.de>

    PR fortran/46325
    * gfortran.dg/char_initialiser_actual.f90: Make test case valid. 

Co-Authored-By: Tobias Burnus <burnus@net-b.de>

From-SVN: r166628
2010-11-12 00:02:03 +01:00
Jan Hubicka 014d92e193 invoke.texi (-fwhopr): Merge into -flto section.
* doc/invoke.texi (-fwhopr): Merge into -flto section.
	(-flto-partition): Document none.
	* gcc.c (LINK_COMMAND_SPEC): Remove -fwhopr.
	* lto-wrapper.c: Update comment.
	(run_gcc): Update LTO option parsing.
	* opts.c (finish_options): add support -flto-partition=none
	(common_handle_option): Remove fwhopr.
	* common.opt: Turn fwhopr into flto.
	* collect2.c (main): Update option handling.
	* cgraphunit.c (cgraph_decide_is_function_needed): Remove flag_whopr.
	* ipa-split.c (execute_split_functions): Remove flag_whopr.
	* ipa.c (function_and_variable_visibility): Remove flag_whopr.
	* ipa-prop.c (ipa_compute_jump_functions): Remove flag_whopr.
	* varpool.c (decide_is_variable_needed): Remove flag_whopr.
	
	* gcc.dg/20081223-1.c: Update LTO options.
	* gcc.dg/lto/20090206-1_0.c: Update LTO options.
	* gcc.dg/lto/20081118_0.c: Update LTO options.
	* gcc.dg/lto/ipareference_0.c: Update LTO options.
	* gcc.dg/lto/20100423-2_0.c: Update LTO options.
	* gcc.dg/lto/20081201-1_0.c: Update LTO options.
	* gcc.dg/lto/ipacp_0.c: Update LTO options.
	* gcc.dg/lto/20090116_0.c: Update LTO options.
	* gcc.dg/lto/20091015-1_0.c: Update LTO options.
	* gcc.dg/lto/20090126-2_0.c: Update LTO options.
	* gcc.dg/lto/20081202-2_0.c: Update LTO options.
	* gcc.dg/lto/20081204-1_0.c: Update LTO options.
	* gcc.dg/lto/const-uniq_0.c: Update LTO options.
	* gcc.dg/lto/20081224_0.c: Update LTO options.
	* gcc.dg/lto/20090219_0.c: Update LTO options.
	* gcc.dg/lto/ipareference2_0.c: Update LTO options.
	* gcc.dg/lto/20090206-2_0.c: Update LTO options.
	* gcc.dg/lto/20081115_0.c: Update LTO options.
	* gcc.dg/lto/20081201-2_0.c: Update LTO options.
	* gcc.dg/lto/20081120-2_0.c: Update LTO options.
	* gcc.dg/lto/materialize-1_0.c: Update LTO options.
	* gcc.dg/lto/20090126-1_0.c: Update LTO options.
	* gcc.dg/lto/20081202-1_0.c: Update LTO options.
	* gcc.dg/lto/noreturn-1_0.c: Update LTO options.
	* g++.dg/20090107-1.C: Update LTO options.
	* g++.dg/lto/pr45679-2_0.C: Update LTO options.
	* g++.dg/lto/20081123_0.C: Update LTO options.
	* g++.dg/lto/20090313_0.C: Update LTO options.
	* g++.dg/lto/20081125_0.C: Update LTO options.
	* g++.dg/lto/20081109-1_0.C: Update LTO options.
	* g++.dg/lto/20081219_0.C: Update LTO options.
	* g++.dg/lto/20100724-1_0.C: Update LTO options.
	* g++.dg/lto/20081204-1_0.C: Update LTO options.
	* g++.dg/lto/20090303_0.C: Update LTO options.
	* g++.dg/lto/20100723-1_0.C: Update LTO options.
	* g++.dg/lto/pr45679-1_0.C: Update LTO options.
	* g++.dg/lto/20090128_0.C: Update LTO options.
	* g++.dg/lto/20081204-2_0.C: Update LTO options.
	* g++.dg/lto/20090302_0.C: Update LTO options.
	* g++.dg/lto/20081119-1_0.C: Update LTO options.
	* g++.dg/lto/20081118_0.C: Update LTO options.
	* g++.dg/20090121-1.C: Update LTO options.
	* objc.dg/lto/lto.exp: Update LTO options.
	* lib/lto.exp: Update LTO options.
	* lib/gcc-dg.exp: Update LTO options.
	* lib/c-torture.exp: Update LTO options.
	* obj-c++.dg/lto/lto.exp: Update LTO options.

From-SVN: r166625
2010-11-11 22:54:53 +00:00
Jan Hubicka 2503de8d44 re PR tree-optimization/40436 (0.5% code size regression caused by r147852)
PR tree-optimize/40436
	* gcc.dg/tree-ssa/inline-5.c: New testcase.
	* gcc.dg/tree-ssa/inline-6.c: New testcase.

	* ipa-inline.c (likely_eliminated_by_inlining_p): Rename to ...
	(eliminated_by_inlining_prob): ... this one; return 50% probability for
	SRA.
	(estimate_function_body_sizes): Update use of eliminated_by_inlining_prob;
	estimate static function size for 2 instructions.

From-SVN: r166624
2010-11-11 22:08:26 +00:00
Janus Weil 8be3d7da69 resolve.c (resolve_procedure_interface): Copy 'is_bind_c' attribute.
2010-11-11  Janus Weil  <janus@gcc.gnu.org>

	* resolve.c (resolve_procedure_interface): Copy 'is_bind_c' attribute.


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

	* gfortran.dg/proc_decl_24.f90: New.

From-SVN: r166623
2010-11-11 22:44:15 +01:00
Andreas Simbuerger d32ef397c9 Support official CLooG.org versions.
2010-11-11  Andreas Simbuerger  <simbuerg@fim.uni-passau.de>

	* configure.ac: Support official CLooG.org versions.
	* configure: Regenerate.
	* config/cloog.m4: New.

From-SVN: r166622
2010-11-11 21:33:24 +00:00
Joern Rennecke 77b0efff1d re PR target/44749 (mep-elf fails to build)
PR target/44749
        * config/mep/mep-protos.h (mep_legitimize_reload_address): Always
        declare.  Change type of argument four to type int.
        (mep_secondary_input_reload_class): Returns enum reg_class.
        (mep_secondary_output_reload_class): Likewise.
        (mep_function_value): Change types of arguments to cont_tree.
        * config/mep/mep.c (mep_legitimize_reload_address): Change type of
        argument four to type int.
        (mep_secondary_input_reload_class): Returns enum reg_class.
        (mep_secondary_output_reload_class): Likewise.
        (mep_function_value): Change types of arguments to cont_tree.
        * config/mep/mep.h (REGNO_REG_CLASS): Cast return value of
        mep_regno_reg_class to enum reg_class.

From-SVN: r166614
2010-11-11 19:11:44 +00:00
Nicola Pero d6f62adad7 Fixed my email address in 3 of my ChangeLog entries for the past couple of months
From-SVN: r166613
2010-11-11 19:01:45 +00:00
Nicola Pero 10e34e6eb1 In gcc/objc/: 2010-11-11 Nicola Pero <nicola.pero@meta-innovation.com>
In gcc/objc/:
2010-11-11  Nicola Pero  <nicola.pero@meta-innovation.com>

        * objc-act.c (objc_add_property_declaration): Check that the type
        of a property and of an inherited property match.
        (objc_maybe_build_component_ref): Tidied up indentation and
        comments.
        (objc_common_type): Added new type of check (-5).  If an unknown
        class is involved in a comparison, try to look up its interface.
        (objc_add_synthesize_declaration_for_property): Check that the
        property to synthesize and the instance variable to use have the
        same type.

In gcc/testsuite/:
2010-11-11  Nicola Pero  <nicola.pero@meta-innovation.com>

        * objc.dg/property/at-property-20.m: New.
        * objc.dg/property/synthesize-8.m: New.
        * obj-c++.dg/property/at-property-20.m: New.
        * obj-c++.dg/property/synthesize-8.mm: New.

From-SVN: r166612
2010-11-11 18:58:43 +00:00
Richard Henderson a1d8aa4b1f tree-ssa-math-opts.c (convert_mult_to_fma): Do not verify that the target has the exact fma operation that we matched.
* tree-ssa-math-opts.c (convert_mult_to_fma): Do not verify
	that the target has the exact fma operation that we matched.

From-SVN: r166611
2010-11-11 10:42:35 -08:00
Joseph Myers 658bd5ca00 reginfo.c (fix_register): Avoid inserting English word in diagnostic sentence.
* reginfo.c (fix_register): Avoid inserting English word in
	diagnostic sentence.  Use %qs for quoting and %'.

From-SVN: r166610
2010-11-11 18:28:46 +00:00
H.J. Lu 12bbb78f64 Support Intel processor family 6, model 0x2c.
2010-11-11  H.J. Lu  <hongjiu.lu@intel.com>

	* config/i386/driver-i386.c (host_detect_local_cpu): Support
	Intel processor family 6, model 0x2c.

From-SVN: r166607
2010-11-11 09:30:39 -08:00
Joseph Myers f954bd2c81 opts.c (warning_as_error_callback, [...]): Remove.
* opts.c (warning_as_error_callback,
	register_warning_as_error_callback): Remove.
	(enable_warning_as_error): Don't use warning_as_error_callback.
	* opts.h (register_warning_as_error_callback): Remove.

c-family:
	* c-opts.c (warning_as_error_callback): Remove.
	(c_common_initialize_diagnostics): Don't call
	register_warning_as_error_callback.
	(c_common_handle_option): Handle -Werror=normalized= here.

testsuite:
	* gcc.dg/cpp/warn-normalized-3.c: Update expected note text.

From-SVN: r166606
2010-11-11 16:54:49 +00:00
Richard Henderson a5f09e7311 Recognize -(a * b) + c -> fma(-a,b,c).
* tree-ssa-math-opts.c (convert_mult_to_fma): Handle a NEGATE_EXPR
	in between the MULT and the PLUS/MINUS.

From-SVN: r166605
2010-11-11 08:20:54 -08:00
Jakub Jelinek 1004f0c5c8 re PR middle-end/46388 (ICE in int_mode_for_mode, at stor-layout.c:493)
PR middle-end/46388
	* expr.c (expand_assignment): If to_rtx is a VOIDmode MEM, use
	BLKmode mode for it.
	(expand_expr_real_1): Similarly for op0.

	* gcc.c-torture/compile/pr46388.c: New test.

From-SVN: r166603
2010-11-11 16:48:39 +01:00
Rainer Orth 86de8875db lto.exp (lto-get-options-main): Support optional target selector for dg-suppress-ld-options.
gcc/testsuite:
	* lib/lto.exp (lto-get-options-main): Support optional target
	selector for dg-suppress-ld-options.

	gcc:
	* doc/sourcebuild.texi (LTO Testing, dg-suppress-ld-options):
	Document optional target selector.

From-SVN: r166602
2010-11-11 14:08:47 +00:00
Dave Korn d19e0f01a1 re PR bootstrap/46397 (lto-plugin.c does not build on Solaris 10/SPARC)
PR bootstrap/46397
	PR bootstrap/46362
	* configure.ac: Add AC_TYPE_INT64_T test.
	* config.h.in: Regenerate.
	* configure: Likewise.
	* lto-plugin.c (debug): Use char not bool.
	(nop): Likewise.
	(check_1): Rename from check, and use int not bool for gate argument.
	(check): Macro wrapper for the above to coerce gate argument into
	boolean-valued integer in case it has pointer type.
	(parse_table_entry): Use 0 not false.
	(claim_file_handler): Avoid use of PRIx64 by splitting 64-bit size
	into two 32-bit parts and printing as hex ints.

From-SVN: r166601
2010-11-11 13:33:59 +00:00
Dave Korn a16e07c682 lto-streamer-out.c (write_symbol): Use int_size_in_bytes rather than assembling high and low parts of size if...
* lto-streamer-out.c (write_symbol): Use int_size_in_bytes rather than
	assembling high and low parts of size if not using 32-bit HWINT; else
	use DECL_SIZE_UNITS, not DECL_SIZE.

From-SVN: r166600
2010-11-11 13:29:46 +00:00
Paolo Carlini ad26988476 move.h (forward): Implement N3143, resolving US 90.
2010-11-11  Paolo Carlini  <paolo.carlini@oracle.com>

	* include/bits/move.h (forward): Implement N3143, resolving US 90.
	* testsuite/20_util/forward/a.cc: New.
	* testsuite/20_util/forward/b.cc: Likewise.
	* testsuite/20_util/forward/c_neg.cc: Likewise.
	* testsuite/20_util/forward/d.cc: Likewise.
	* testsuite/20_util/forward/e.cc: Likewise.
	* testsuite/20_util/forward/f_neg.cc: Likewise.

From-SVN: r166599
2010-11-11 13:10:49 +00:00
Martin Jambor 280fedf067 re PR tree-optimization/46383 (ICE: in get_binfo_at_offset, at tree.c:10947)
2010-11-11  Martin Jambor  <mjambor@suse.cz>

	PR tree-optimization/46383
	* ipa-prop.c (compute_complex_assign_jump_func): Ignore negative
	offsets.
	(compute_complex_ancestor_jump_func): Likewise.
	* tree.c (get_binfo_at_offset): Return NULL_TREE if offset is negative.

	* testsuite/g++.dg/torture/pr46383.C: New test.

From-SVN: r166598
2010-11-11 13:03:59 +01:00