Richard Sandiford
267d3070f7
Revert last patch.
...
From-SVN: r172763
2011-04-20 09:25:42 +00:00
Eric Botcazou
0b2ddd9ce3
* bootstrap-lto.mk: Remove obsolete requirement.
...
From-SVN: r172761
2011-04-20 09:24:48 +00:00
Richard Sandiford
c2d7ab2aea
md.texi (vec_load_lanes, [...]): Document.
...
gcc/
* doc/md.texi (vec_load_lanes, vec_store_lanes): Document.
* optabs.h (COI_vec_load_lanes, COI_vec_store_lanes): New
convert_optab_index values.
(vec_load_lanes_optab, vec_store_lanes_optab): New convert optabs.
* genopinit.c (optabs): Initialize the new optabs.
* internal-fn.def (LOAD_LANES, STORE_LANES): New internal functions.
* internal-fn.c (get_multi_vector_move, expand_LOAD_LANES)
(expand_STORE_LANES): New functions.
* tree.h (build_array_type_nelts): Declare.
* tree.c (build_array_type_nelts): New function.
* tree-vectorizer.h (vect_model_store_cost): Add a bool argument.
(vect_model_load_cost): Likewise.
(vect_store_lanes_supported, vect_load_lanes_supported)
(vect_record_strided_load_vectors): Declare.
* tree-vect-data-refs.c (vect_lanes_optab_supported_p)
(vect_store_lanes_supported, vect_load_lanes_supported): New functions.
(vect_transform_strided_load): Split out statement recording into...
(vect_record_strided_load_vectors): ...this new function.
* tree-vect-stmts.c (create_vector_array, read_vector_array)
(write_vector_array, create_array_ref): New functions.
(vect_model_store_cost): Add store_lanes_p argument.
(vect_model_load_cost): Add load_lanes_p argument.
(vectorizable_store): Try to use store-lanes functions for
interleaved stores.
(vectorizable_load): Likewise load-lanes and loads.
* tree-vect-slp.c (vect_get_and_check_slp_defs)
(vect_build_slp_tree):
From-SVN: r172760
2011-04-20 09:10:36 +00:00
Richard Sandiford
1da0876c95
tree-vect-stmts.c (vectorizable_store): Only chain one related statement per copy.
...
gcc/
* tree-vect-stmts.c (vectorizable_store): Only chain one related
statement per copy.
From-SVN: r172759
2011-04-20 08:23:03 +00:00
Richard Sandiford
25583c4f45
Makefile.in (INTERNAL_FN_DEF, [...]): Define.
...
gcc/
* Makefile.in (INTERNAL_FN_DEF, INTERNAL_FN_H): Define.
(GIMPLE_H): Include $(INTERNAL_FN_H).
(OBJS-common): Add internal-fn.o.
(internal-fn.o): New rule.
* internal-fn.def: New file.
* internal-fn.h: Likewise.
* internal-fn.c: Likewise.
* gimple.h: Include internal-fn.h.
(GF_CALL_INTERNAL): New gf_mask.
(gimple_statement_call): Put fntype into a union with a new
internal_fn field.
(gimple_build_call_internal): Declare.
(gimple_build_call_internal_vec): Likewise.
(gimple_call_same_target_p): Likewise.
(gimple_call_internal_p): New function.
(gimple_call_internal_fn): Likewise.
(gimple_call_fntype): Return null for internal calls.
(gimple_call_set_fntype): Assert that the function is not internal.
(gimple_call_set_fn): Likewise.
(gimple_call_set_fndecl): Likewise.
(gimple_call_set_internal_fn): New function.
(gimple_call_addr_fndecl): Handle null functions.
(gimple_call_return_type): Likewise null types.
* gimple.c (gimple_build_call_internal_1): New function.
(gimple_build_call_internal): Likewise.
(gimple_build_call_internal_vec): Likewise.
(gimple_call_same_target_p): Likewise.
(gimple_call_flags): Handle calls to internal functions.
(gimple_call_fnspec): New function.
(gimple_call_arg_flags, gimple_call_return_flags): Use it.
(gimple_has_side_effects): Handle null functions.
(gimple_rhs_has_side_effects): Likewise.
(gimple_call_copy_skip_args): Handle calls to internal functions.
* cfgexpand.c (expand_call_stmt): Likewise.
* expr.c (expand_expr_real_1): Assert that the call isn't internal.
* gimple-fold.c (gimple_fold_call): Handle null functions.
(gimple_fold_stmt_to_constant_1): Don't fold
calls to internal functions.
* gimple-low.c (gimple_check_call_args): Handle calls to internal
functions.
* gimple-pretty-print.c (dump_gimple_call): Likewise.
* ipa-prop.c (ipa_analyze_call_uses): Handle null functions.
* tree-cfg.c (verify_gimple_call): Handle calls to internal functions.
(do_warn_unused_result): Likewise.
* tree-eh.c (same_handler_p): Use gimple_call_same_target_p.
* tree-ssa-ccp.c (ccp_fold_stmt): Handle calls to internal functions.
* tree-ssa-dom.c (hashable_expr): Use the gimple statement to record
the target of a call.
(initialize_hash_element): Update accordingly.
(hashable_expr_equal_p): Use gimple_call_same_target_p.
(iterative_hash_hashable_expr): Handle calls to internal functions.
(print_expr_hash_elt): Likewise.
* tree-ssa-pre.c (can_value_number_call): Likewise.
(eliminate): Handle null functions.
* tree-ssa-sccvn.c (visit_use): Handle calls to internal functions.
* tree-ssa-structalias.c (get_fi_for_callee): Likewise.
(find_func_aliases): Likewise.
* value-prof.c (gimple_ic_transform): Likewise.
(gimple_indirect_call_to_profile): Likewise.
* lto-streamer-in.c (input_gimple_stmt): Likewise.
* lto-streamer-out.c (output_gimple_stmt): Likewise.
From-SVN: r172758
2011-04-20 08:21:25 +00:00
Georg-Johann Lay
7da29ed0cb
pr42629.c: Add dg-require-effective-target int32plus
...
* gcc.dg/pr42629.c: Add dg-require-effective-target int32plus
* gcc.c-torture/execute/cmpsi-2.c: Ditto
* gcc.c-torture/execute/pr45262.c: Ditto
* gcc.dg/torture/pr43165.c: Ditto.
* gcc.dg/torture/pr47228.c: Ditto.
* gcc.dg/tree-ssa/pr45144.c: Ditto.
* gcc.dg/ipa/pr45644.c: Ditto.
* gcc.c-torture/compile/pr43191.c: Ditto. Remove dg-skip-if for
PDP11.
From-SVN: r172757
2011-04-20 06:33:01 +00:00
Jason Merrill
68a29e1cf4
re PR c++/46304 (g++ crashes with ICE in bitmap_first_set_bit, at bitmap.c:770)
...
PR c++/46304
* typeck.c (cp_build_binary_op): Fold COMPLEX_EXPR.
From-SVN: r172754
2011-04-20 02:30:41 -04:00
Jerry DeLisle
b48de48389
re PR libfortran/48602 (Invalid F conversion of G descriptor for values close to powers of 10)
...
2011-04-19 Jerry DeLisle <jvdelisle@gcc.gnu.org>
PR libgfortran/48602
* io/write_float.def (output_float_FMT_G): Fix reversal in conditional.
Use asm volatile to mark temp variable, avoiding optimization errors.
From-SVN: r172753
2011-04-20 04:18:25 +00:00
Jan Hubicka
1a3118e962
ipa-inline-transform.c (save_inline_function_body): Add comments.
...
* ipa-inline-transform.c (save_inline_function_body): Add comments.
* ipa-inline.c (inline_small_functions): Compute summaries first, populate
heap later.
From-SVN: r172751
2011-04-20 01:04:51 +00:00
GCC Administrator
8d6a938b89
Daily bump.
...
From-SVN: r172750
2011-04-20 00:18:18 +00:00
Jason Merrill
c45413fef6
re PR c++/45267 (inlining fails with -m32)
...
PR c++/45267
* decl.c (duplicate_decls): Keep always_inline attribute
in sync with DECL_DISREGARD_INLINE_LIMITS.
From-SVN: r172744
2011-04-19 20:06:19 -04:00
Ian Lance Taylor
8f88846854
statement.cc no longer includes gcc headers.
...
* go-system.h: Include "intl.h".
* Make-lang.in (GO_SYSTEM_H): Add intl.h.
(go/statements.o): Remove dependencies on intl.h $(TREE_H)
$(GIMPLE_H) convert.h tree-iterator.h $(TREE_FLOW_H) $(REAL_H).
From-SVN: r172743
2011-04-19 23:26:19 +00:00
Ian Lance Taylor
0c6caf5ab0
Change general statement method to always use backend interface.
...
From-SVN: r172740
2011-04-19 22:30:46 +00:00
Jan Hubicka
fee8b6dadd
cgraph.h (save_inline_function_body): Remove.
...
* cgraph.h (save_inline_function_body): Remove.
* ipa-inline-transform.c: New file, broke out of...
* ipa-inline.c: ... this one; Update toplevel comment.
(ncalls_inlined, nfunctions_inlined): Move to ipa-inline-transform.c;
make global.
(update_noncloned_frequencies): Move to ipa-inline-transform.c
(cgraph_mark_inline_edge): Rename to inline_call; move to
ipa-inline-transform.c.
(cgraph_clone_inlined_nodes): Rename to clone_inlined_nodes;
move to ipa-inline-transform.c
(recursive_inlining, inline_small_functions, flatten_function,
ipa_inline, inline_always_inline_functions,
early_inline_small_functions): Update.
(inline_transform): Move to ipa-inline-transform.c.
* ipa-inline.h (inline_call, inline_transform, clone_inlined_nodes):
Declare.
* Makefile.in (ipa-inline-transform.o): New file.
* cgraphunit.c (save_inline_function_body): Move to
ipa-inline-transform.c
From-SVN: r172739
2011-04-19 22:28:54 +00:00
Kaz Kojima
61eca8d71b
re PR testsuite/48676 ([sh] Unaligned userspace access in gcc.dg/torture/pr37868.c)
...
PR testsuite/48676
* gcc.dg/torture/pr37868.c: Skip on sh*-*-*.
From-SVN: r172738
2011-04-19 21:58:41 +00:00
Ian Lance Taylor
9131ad6747
Use backend interface for temporary variables.
...
* go-gcc.cc (Gcc_backend::temporary_variable): New function.
From-SVN: r172737
2011-04-19 21:52:41 +00:00
DJ Delorie
f067961248
m32c.c (m32c_emit_epilogue): Don't try to push registers if we already know there aren't any.
...
* config/m32c/m32c.c (m32c_emit_epilogue): Don't try to push
registers if we already know there aren't any.
(m32c_emit_epilogue): Don't emit a barrier here.
(m32c_emit_eh_epilogue): Likewise.
* config/m32c/blkmov.md (movstr): Don't fail on wrong-type
operands at expand time.
* config/m32c/m32c.h (WCHAR_TYPE_SIZE): Change to 4 to match "long
int" wchar type.
(REG_CLASS_CONTENTS, reg_class, REG_CLASS_NAMES): Remove
duplicates. Provide aliases instead.
* config/m32c/prologue.md (eh_return): Emit a barrier here.
(eh_epilogue): Add a "(return)" here as a hint to other parts of
the compiler.
From-SVN: r172735
2011-04-19 16:37:11 -04:00
Anatoly Sokolov
32257ddc4e
sparc.h (GENERAL_OR_I64, [...]): Remove.
...
* config/sparc/sparc.h (GENERAL_OR_I64, REGISTER_MOVE_COST): Remove.
* config/sparc/sparc.c (TARGET_REGISTER_MOVE_COST): Define.
(general_or_i64_p, sparc_register_move_cost): New function.
From-SVN: r172732
2011-04-19 22:23:23 +04:00
Ian Lance Taylor
5ad7db5fa3
Use backend interface for blocks.
...
* go-gcc.cc (class Bblock): Define.
(Gcc_backend::if_statement): Change then_block and else_block to
Bblock*.
(Gcc_backend::block): New function.
(Gcc_backend::block_add_statements): New function.
(Gcc_backend::block_statement): New function.
(tree_to_block, block_to_tree): New functions.
From-SVN: r172731
2011-04-19 18:20:05 +00:00
Janne Blomqvist
f7d2e5d418
Use XCNEWVAR instead of xcalloc
...
From-SVN: r172730
2011-04-19 21:18:08 +03:00
Janne Blomqvist
6c13c5f2ac
Use XDELETEVEC instead of free
...
From-SVN: r172729
2011-04-19 20:57:05 +03:00
Janne Blomqvist
93acb62caa
Replace gfc_getmem with XCNEW, XCNEWVEC or xcalloc
...
From-SVN: r172728
2011-04-19 20:42:51 +03:00
Rainer Orth
60bea92992
install.texi (Configuration, [...]): Remove mach.
...
gcc:
* doc/install.texi (Configuration, --enable-threads): Remove mach.
Add lynx, mipssde.
Sort table.
boehm-gc:
* configure.ac (THREADS): Remove decosf1, irix, mach, os2.
* configure: Regenerate
libjava:
* configure.ac (THREADS): Remove decosf1, irix, mach, os2.
* configure: Regenerate
From-SVN: r172726
2011-04-19 17:22:28 +00:00
Xinliang David Li
444b39959c
revert 172213 and add assertion
...
From-SVN: r172722
2011-04-19 16:48:40 +00:00
Jakub Jelinek
d708ce50e3
re PR target/48678 (unable to find a register to spill in class ‘GENERAL_REGS’)
...
PR target/48678
* config/i386/i386.md (movstrict<mode>): FAIL if operands[0]
is a SUBREG with non-MODE_INT mode inside of it.
* gcc.target/i386/pr48678.c: New test.
From-SVN: r172721
2011-04-19 18:47:06 +02:00
Martin Jambor
49c471e3d8
ipa-cp.c (ipcp_process_devirtualization_opportunities): Devirtualize also according to actual contants.
...
2011-04-19 Martin Jambor <mjambor@suse.cz>
* ipa-cp.c (ipcp_process_devirtualization_opportunities): Devirtualize
also according to actual contants.
* gimple-fold.c (gimple_extract_devirt_binfo_from_cst): New function.
(gimple_fold_call): Use it.
* gimple.h (gimple_extract_devirt_binfo_from_cst): Declare.
* testsuite/g++.dg/opt/devirt1.C: Bump to -O2, remove XFAIL.
* testsuite/g++.dg/opt/devirt2.C: New test.
* testsuite/g++.dg/ipa/devirt-g-1.C: Likewise.
From-SVN: r172719
2011-04-19 18:35:33 +02:00
Tobias Burnus
9714ca7248
re PR fortran/48588 (ICE (segfault) in gfc_get_nodesc_array_type)
...
2011-04-19 Tobias Burnus <burnus@net-b.de>
PR fortran/48588
* parse.c (resolve_all_program_units): Skip modules.
(translate_all_program_units): Handle modules.
(gfc_parse_file): Defer code generation for modules.
2011-04-19 Tobias Burnus <burnus@net-b.de>
PR fortran/48588
* gfortran.dg/whole_file_33.f90: New.
From-SVN: r172718
2011-04-19 18:26:13 +02:00
Martin Jambor
0004f992f0
ipa-prop.c (stmt_may_be_vtbl_ptr_store): Return false for scalar non-pointer assignments.
...
2011-04-19 Martin Jambor <mjambor@suse.cz>
* ipa-prop.c (stmt_may_be_vtbl_ptr_store): Return false for scalar
non-pointer assignments.
From-SVN: r172717
2011-04-19 18:19:13 +02:00
Martin Jambor
405914731a
ipa-cp.c (ipcp_process_devirtualization_opportunities): Take into account anc_offset and otr_type from the indirect edge info.
...
2011-04-19 Martin Jambor <mjambor@suse.cz>
* ipa-cp.c (ipcp_process_devirtualization_opportunities): Take into
account anc_offset and otr_type from the indirect edge info.
* ipa-prop.c (get_ancestor_addr_info): New function.
(compute_complex_ancestor_jump_func): Assignment analysis moved to
get_ancestor_addr_info, call it.
(ipa_note_param_call): Do not initialize information about polymorphic
calls, return the indirect call graph edge. Remove the last
parameter, adjust all callers.
(ipa_analyze_virtual_call_uses): Process also calls to ancestors of
parameters. Initialize polymorphic information in the indirect edge.
* testsuite/g++.dg/ipa/devirt-7.C: New test.
From-SVN: r172716
2011-04-19 18:15:08 +02:00
Martin Jambor
7c589800e2
trans-decl.c (gfc_generate_function_code): Call cgraph_create_node instead of cgraph_get_create_node.
...
2011-04-19 Martin Jambor <mjambor@suse.cz>
gcc/fotrean/
* trans-decl.c (gfc_generate_function_code): Call cgraph_create_node
instead of cgraph_get_create_node.
From-SVN: r172715
2011-04-19 18:08:50 +02:00
John David Anglin
b8a17fa24d
Add missing entry.
...
From-SVN: r172713
2011-04-19 15:13:07 +00:00
Eric Botcazou
abe36b81c5
re PR bootstrap/48148 (LTO bootstrap failed with bootstrap-profiled)
...
PR lto/48148
* gimple.c (gimple_types_compatible_p_1) <ENUMERAL_TYPE>: Do not merge
the types if they have different enumeration identifiers.
From-SVN: r172712
2011-04-19 14:46:37 +00:00
Jan Hubicka
e6416b305e
cgraph.h (cgraph_optimize_for_size_p): Declare.
...
* cgraph.h (cgraph_optimize_for_size_p): Declare.
* ipa-cp.c (ipcp_insert_stage): Use cgraph_optimize_for_size_p.
* predict.c (cgraph_optimize_for_size_p): Break out from ...
(optimize_function_for_size_p) ... here.
From-SVN: r172711
2011-04-19 14:23:38 +00:00
Jonathan Wakely
be7f782278
re PR libstdc++/48521 ([C++0x] std::result_of doesn't work with pointer to member)
...
2011-04-19 Jonathan Wakely <jwakely.gcc@gmail.com>
PR libstdc++/48521
* include/std/type_traits (result_of): Handle pointer to member.
* include/std/functional (__invoke): Likewise.
(_Function_to_function_pointer): Remove.
(_Reference_wrapper_base): Provide nested types independent of
unary_function and binary_function.
(reference_wrapper::operator()): DR 2017.
(ref(const A&&), cref(const A&&): Define as deleted.
* include/std/future (async): Simplify SFINAE and use result_of to
support pointer to member.
* testsuite/20_util/reference_wrapper/invoke.cc: Test pointer to
member.
* testsuite/20_util/reference_wrapper/24803.cc: Likewise.
* testsuite/20_util/reference_wrapper/typedefs.cc: Test for types
instead of derivation from unary_function and binary_function.
* testsuite/20_util/declval/requirements/1_neg.cc: Adjust.
* testsuite/20_util/reference_wrapper/invoke-2.cc: New.
* testsuite/20_util/reference_wrapper/ref_neg.c: New.
* testsuite/20_util/reference_wrapper/typedefs-3.c: New.
From-SVN: r172709
2011-04-19 14:26:08 +01:00
Richard Guenther
d39132ea9b
re PR debug/48207 (ICE in lhd_set_decl_assembler_name, at langhooks.c:158)
...
2011-04-19 Richard Guenther <rguenther@suse.de>
PR lto/48207
* tree.c (free_lang_data): Do not reset the decl-assembler-name
langhook.
* g++.dg/lto/pr48207_0.C: New testcase.
From-SVN: r172708
2011-04-19 13:04:57 +00:00
Eric Botcazou
ff7037dca8
tree-inline.c (expand_call_inline): Do not issue a -Winline warning if DECL_NO_INLINE_WARNING_P is set on the function.
...
* tree-inline.c (expand_call_inline): Do not issue a -Winline warning
if DECL_NO_INLINE_WARNING_P is set on the function.
From-SVN: r172707
2011-04-19 11:22:35 +00:00
Bernd Schmidt
c1ee289264
re PR middle-end/47976 (Recent gfortran.dg/actual_array_constructor_3.f90 regression on arm-linux-gnueabi)
...
2011-04-19 Bernd Schmidt <bernds@codesourcery.com>
PR fortran/47976
* reload1.c (inc_for_reload): Return void. All callers changed.
(emit_input_reload_insns): Don't try to delete previous output
reloads to a register, or record spill_reg_store for autoincs.
From-SVN: r172706
2011-04-19 10:54:47 +00:00
Basile Starynkevitch
fbb20b29c8
gengtype.h: Updated copyright year.
...
2011-04-19 Basile Starynkevitch <basile@starynkevitch.net>
* gengtype.h: Updated copyright year.
(struct input_file_st): Add inpisplugin field.
(type_fileloc): New function.
* gengtype.c
(write_typed_struct_alloc_def): Add gcc_assert.
(write_typed_alloc_defns): Ditto. Don't output for plugin files.
(write_typed_alloc_defns): Don't output for plugin files.
(input_file_by_name): Clear inpisplugin field.
(main): Set inpisplugin field for plugin files.
From-SVN: r172705
2011-04-19 09:45:18 +00:00
Nicola Pero
897e0a890f
In gcc/: 2011-04-19 Nicola Pero <nicola.pero@meta-innovation.com>
...
In gcc/:
2011-04-19 Nicola Pero <nicola.pero@meta-innovation.com>
* gengtype-state.c (string_eq): New.
(read_state): Use string_eq instead of strcmp when creating the
state_ident_tab.
From-SVN: r172702
2011-04-19 09:14:48 +00:00
Wei Guozhi
363ee90e13
arm-protos.h (thumb1_legitimate_address_p): New prototype.
...
* config/arm/arm-protos.h (thumb1_legitimate_address_p): New prototype.
* config/arm/arm.c (thumb1_legitimate_address_p): Remove the static
linkage.
* config/arm/constraints.md (Uu): New constraint.
* config/arm/arm.md (*arm_movqi_insn): Compute attr "length".
From-SVN: r172697
2011-04-19 08:46:54 +00:00
Tristan Gingold
18a24fed72
config.gcc (-*-*-*vms): Added.
...
2011-04-19 Tristan Gingold <gingold@adacore.com>
* config.gcc (-*-*-*vms): Added.
(alpha64-dec-*vms*,alpha*-dec-*vms*, ia64-hp-*vms*): Common
definitions moved.
* config/vms/vms-ld.c: New file.
* config/vms/vms-ar.c: New file.
* config/vms/t-vmsnative: New file.
From-SVN: r172695
2011-04-19 08:10:49 +00:00
Eric Botcazou
7d4f8d0280
Tweak a few entries
...
From-SVN: r172694
2011-04-19 06:35:49 +00:00
Ian Lance Taylor
e09ce6c5bc
Use backend interface for variables.
...
* go-gcc.cc: Include "go-c.h".
(class Bvariable): Define.
(Gcc_backend::init_statement): New function.
(Gcc_backend::global_variable): New function.
(Gcc_backend::global_variable_set_init): New function.
(Gcc_backend::local_variable): New function.
(Gcc_backend::parameter_variable): New function.
(tree_to_type, var_to_tree): New functions.
* Make-lang.in (go/go-gcc.o): Depend on $(GO_C_H).
* (go/gogo-tree.o): Depend on go/gofrontend/backend.h.
From-SVN: r172693
2011-04-19 04:23:00 +00:00
Hans-Peter Nilsson
61bd5ad845
re PR testsuite/48675 (20_util/hash/chi2_quality.cc timeout)
...
PR testsuite/48675
* testsuite/20_util/hash/chi2_quality.cc (test_document_words): Stub
this part if SAMPLES < 100000.
From-SVN: r172692
2011-04-19 03:59:16 +00:00
GCC Administrator
e8580e831a
Daily bump.
...
From-SVN: r172689
2011-04-19 00:18:22 +00:00
Paolo Carlini
65cee9bdb7
type_traits (is_nothrow_default_constructible, [...]): Add.
...
2011-04-18 Paolo Carlini <paolo.carlini@oracle.com>
* include/std/type_traits (is_nothrow_default_constructible,
is_nothrow_copy_constructible, is_nothrow_move_constructible,
is_copy_constructible, is_move_constructible): Add.
(has_nothrow_default_constructor, has_nothrow_copy_constructor):
Remove.
(is_nothrow_constructible): Adjust.
* testsuite/util/testsuite_tr1.h (ThrowDefaultClass,
ThrowCopyConsClass, ThrowMoveConsClass, NoexceptDefaultClass,
ExceptDefaultClass, NoexceptCopyConsClass, ExceptCopyConsClass,
NoexceptMoveConsClass, ExceptMoveConsClass): Add in C++0x mode.
* testsuite/20_util/has_nothrow_default_constructor: Remove.
* testsuite/20_util/has_nothrow_copy_constructor: Likewise.
* testsuite/20_util/is_nothrow_move_constructible/value.cc: Likewise.
* testsuite/20_util/is_nothrow_move_constructible/requirements/
typedefs.cc: Likewise.
* testsuite/20_util/is_nothrow_move_constructible/requirements/
explicit_instantiation.cc: Likewise.
* testsuite/20_util/is_nothrow_copy_constructible/value.cc: Likewise.
* testsuite/20_util/is_nothrow_copy_constructible/requirements/
typedefs.cc: Likewise.
* testsuite/20_util/is_nothrow_copy_constructible/requirements/
explicit_instantiation.cc: Likewise.
* testsuite/20_util/is_nothrow_default_constructible/value.cc:
Likewise.
* testsuite/20_util/is_nothrow_default_constructible/requirements/
typedefs.cc: Likewise.
* testsuite/20_util/is_nothrow_default_constructible/requirements/
explicit_instantiation.cc: Likewise.
* testsuite/20_util/is_move_constructible/value.cc: Likewise.
* testsuite/20_util/is_move_constructible/requirements/typedefs.cc:
Likewise.
* testsuite/20_util/is_move_constructible/requirements/
explicit_instantiation.cc: Likewise.
* testsuite/20_util/is_copy_constructible/value.cc: Likewise.
* testsuite/20_util/is_copy_constructible/requirements/typedefs.cc:
Likewise.
* testsuite/20_util/is_copy_constructible/requirements/
explicit_instantiation.cc: Likewise.
* testsuite/20_util/is_default_constructible/value.cc: Add tests.
* testsuite/20_util/is_nothrow_constructible/value.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: r172684
2011-04-19 00:10:53 +00:00
Xinliang David Li
1c13f168fd
use ASM_COMMENT_START instead of #
...
From-SVN: r172682
2011-04-18 23:58:49 +00:00
Jason Merrill
e5dda97187
re PR c++/48569 (internal compiler error: in build_zero_init_1, at cp/init.c:278)
...
PR c++/48569
* typeck2.c (build_functional_cast): Handle VOID_TYPE.
From-SVN: r172680
2011-04-18 19:54:47 -04:00
Jason Merrill
09262fffd5
re PR c++/48537 (C++0x: ICE using union with non-trivial member)
...
PR c++/48537
* init.c (build_value_init): Handle UNION_TYPE the same.
From-SVN: r172678
2011-04-18 18:40:43 -04:00
Jakub Jelinek
848257079a
re PR middle-end/48661 (wrong-code regression with devirtualization)
...
PR middle-end/48661
* gimple-fold.c (gimple_get_virt_method_for_binfo): Return NULL
if TREE_TYPE (v) is non-NULL.
* gimple-fold.c (gimple_get_virt_method_for_binfo): Renamed from
gimple_get_virt_mehtod_for_binfo.
* gimple.h (gimple_get_virt_method_for_binfo): Likewise.
* ipa-cp.c (ipcp_process_devirtualization_opportunities): Adjust
callers.
* ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
* g++.dg/torture/pr48661.C: New test.
From-SVN: r172677
2011-04-18 23:58:51 +02:00