aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite
AgeCommit message (Collapse)AuthorFilesLines
2011-02-21re PR rtl-optimization/46178 (gcc.target/i386/(u)divmod-[58].c FAIL: ICE: in ↵Jeff Law3-0/+31
dec_register_pressure, at ira-lives.c:215 with -fira-algorithm=priority) PR rtl-optimization/46178 * gcc.target/i386/pr46178.c: New test. PR rtl-optimization/46002 * gcc.c-torture/compile/pr46002.c: New test. From-SVN: r170370
2011-02-21lambda-conv.C: Skip scan-assembler check on *-*-hpux10*.John David Anglin2-1/+6
* g++.dg/cpp0x/lambda/lambda-conv.C: Skip scan-assembler check on *-*-hpux10*. From-SVN: r170368
2011-02-21re PR debug/47106 (-fcompare-debug failure (length) with -fpartial-inlining ↵Jakub Jelinek2-0/+6
-flto -fconserve-stack) PR debug/47106 * g++.dg/debug/pr47106.C: Require effective target lto. From-SVN: r170366
2011-02-21re PR c++/47207 ([C++0x] ICE: in decl_constant_var_p, at cp/decl2.c:3563 on ↵Jason Merrill2-0/+9
invalid code) PR c++/47207 * decl2.c (decl_constant_var_p): A constexpr var needs an initializer to be constant. * semantics.c (cxx_eval_constant_expression): Complain about constexpr var used in its own initializer. * call.c (set_up_extended_ref_temp): Set DECL_INITIALIZED_BY_CONSTANT_EXPRESSION_P too. From-SVN: r170365
2011-02-21re PR c++/47199 ([C++0x] ICE: expected class 'type', have 'declaration' ↵Jason Merrill2-0/+19
(function_decl) in same_type_ignoring_top_level_qualifiers_p, at cp/typeck.c:1407 with -fno-elide-constructors) PR c++/47199 * semantics.c (cxx_eval_call_expression): Call cxx_eval_constant_expression in trivial shortcut. From-SVN: r170356
2011-02-20re PR c++/46831 ([C++0x] Crash when it tries to do an invalid ICS with a ↵Jason Merrill2-0/+16
conversion function template) PR c++/46831 * call.c (convert_class_to_reference): Don't try to set up a second conv sequence for non-viable candidates. From-SVN: r170354
2011-02-20re PR c++/47703 ([C++0x] ICE: std::sort chokes on simple lambda function)Jason Merrill2-0/+19
PR c++/47703 * error.c (location_of): Handle non-tagged types. From-SVN: r170349
2011-02-20re PR c++/46472 ([C++0X] constexpr is not constexpr)Jason Merrill2-0/+18
PR c++/46472 * method.c (process_subob_fn): Instantiate constexpr templates. * optimize.c (maybe_clone_body): Propagate DECL_DECLARED_CONSTEXPR_P. From-SVN: r170348
2011-02-20Fixed ChangeLog dates of my last two commitsNicola Pero1-2/+2
From-SVN: r170344
2011-02-20Reverted usage of TARGET_64BIT for code generation for GNU Objective-C runtimeNicola Pero5-4/+33
From-SVN: r170343
2011-02-20Fixed Objective-C dotsyntax with a constant type right-hand sideNicola Pero3-0/+44
From-SVN: r170342
2011-02-20re PR c++/46394 ([C++0X] [4.6 Regression] no matching function with default ↵Dodji Seketeli2-0/+32
template parameter) PR c++/46394 gcc/cp/ PR c++/46394 * pt.c (tsubst_pack_expansion): do not use cp_tree_equal/same_type_p to detect an expansion of a parameter pack. gcc/testsuite/ PR c++/46394 * g++.dg/template/typedef38.C: New test. From-SVN: r170341
2011-02-20re PR fortran/46818 (ICE on pointer assignment (-fwhole-file))Paul Thomas3-0/+42
2011-02-20 Paul Thomas <pault@gcc.gnu.org> PR fortran/46818 * gfortran.dg/whole_file_30.f90 : New test. * gfortran.dg/whole_file_31.f90 : New test. From-SVN: r170338
2011-02-20re PR fortran/45077 (ICE with -fwhole-file in fold_convert_loc, at ↵Paul Thomas3-0/+46
fold-const.c:2021) 2011-02-20 Paul Thomas <pault@gcc.gnu.org> PR fortran/45077 PR fortran/44945 * trans-types.c (gfc_get_derived_type): Remove code that looks for decls in gsym and add call to gfc_get_module_backend_decl. * trans.h : Add prototype for gfc_get_module_backend_decl. * trans-decl.c (gfc_get_module_backend_decl): New function. (gfc_get_symbol_decl): Call it. 2011-02-20 Paul Thomas <pault@gcc.gnu.org> PR fortran/45077 PR fortran/44945 * gfortran.dg/whole_file_28.f90 : New test. * gfortran.dg/whole_file_29.f90 : New test. From-SVN: r170337
2011-02-20re PR c++/44118 (ICE: in instantiate_decl, at cp/pt.c:16657)Paolo Carlini2-0/+19
2011-02-20 Paolo Carlini <paolo.carlini@oracle.com> PR c++/44118 * g++.dg/template/crash105.C: New. From-SVN: r170336
2011-02-19re PR c++/47503 ([C++0x] ICE: in adjust_temp_type, at cp/semantics.c:5876 ↵Jason Merrill2-0/+18
with -fno-elide-constructors) PR c++/47503 * semantics.c (cxx_eval_call_expression): Shortcut trivial copy. From-SVN: r170330
2011-02-19re PR tree-optimization/46620 (32-bit structures containing bitfields are ↵Alexandre Oliva2-0/+81
not copied correctly on -O2 , x86 backend) PR tree-optimization/46620 * gcc.dg/pr46620.c: New. From-SVN: r170325
2011-02-19re PR c/47809 (ICE in gimplify_expr, at gimplify.c:7291)Jakub Jelinek2-0/+18
PR c/47809 * c-common.c (c_fully_fold_internal): Handle VIEW_CONVERT_EXPR. * gcc.target/i386/pr47809.c: New test. From-SVN: r170323
2011-02-192011-02-19 Jerry DeLisle <jvdelisle@gcc.gnu.org>Jerry DeLisle3-0/+38
Tobias Burnus <burnus@net-b.de> * lib/target-supports.exp (check_effective_target_fortran_large_real): New check for large reals. * gfortran.dg/nan_7.f90: New test. Co-Authored-By: Tobias Burnus <burnus@net-b.de> From-SVN: r170320
2011-02-19re PR libfortran/47567 (Wrong output for small absolute values with F editing)Jerry DeLisle2-8/+35
2011-02-19 Jerry DeLisle <jvdelisle@gcc.gnu.org> PR libgfortran/47567 * gfortran.dg/fmt_f0_1.f90: Update test. Fix previous log entry. From-SVN: r170319
2011-02-19re PR fortran/47348 (wrong string length with array constructor)Paul Thomas3-1/+40
2011-02-19 Paul Thomas <pault@gcc.gnu.org> PR fortran/47348 * trans-array.c (get_array_ctor_all_strlen): Move up in file. (get_array_ctor_var_strlen): Add block dummy and add call to get_array_ctor_all_strlen instead of giving up on substrings. Call gcc_unreachable for default case. (get_array_ctor_strlen): Add extra argument to in call to get_array_ctor_var_strlen. 2011-02-19 Paul Thomas <pault@gcc.gnu.org> PR fortran/47348 * gfortran.dg/array_constructor_36.f90 : New test. * gfortran.dg/bounds_check_10.f90 : Change dg-output message to allow for comparison between different elements of the array constructor at different levels of optimization. From-SVN: r170317
2011-02-19Require int128 instead of lp64 in int128 tests.H.J. Lu3-2/+7
2011-02-19 H.J. Lu <hongjiu.lu@intel.com> * gcc.target/i386/pr31167.c: Require int128 instead of lp64. * gcc.target/i386/pr32280-1.c: Likewise. From-SVN: r170313
2011-02-19re PR target/47800 (i?86 peephole related ICE)Jakub Jelinek2-0/+20
PR target/47800 * config/i386/i386.md (peephole2 for shift and plus): Use operands[1] original mode in the first insn. * gcc.target/i386/pr47800.c: New test. From-SVN: r170311
2011-02-19Remove old mechanism for passing varargs argument to varargs function.Ian Lance Taylor2-9/+29
From-SVN: r170304
2011-02-19xfail forward ObjC test on 64-bit Apple runtimeIain Sandoe2-0/+15
From-SVN: r170297
2011-02-18re PR fortran/47789 ([F03] Structure constructor of type extending DT with ↵Janus Weil2-0/+23
no components) 2011-02-18 Janus Weil <janus@gcc.gnu.org> PR fortran/47789 * primary.c (gfc_match_structure_constructor): Handle empty parent types. 2011-02-18 Janus Weil <janus@gcc.gnu.org> PR fortran/47789 * gfortran.dg/derived_constructor_comps_4.f90: New. From-SVN: r170291
2011-02-182011-02-18 Tobias BurnusTobias Burnus2-0/+78
PR fortran/47775 * trans-expr.c (arrayfunc_assign_needs_temporary): Use esym to check whether the specific procedure returns an allocatable or pointer. 2011-02-18 Tobias Burnus PR fortran/47775 * gfortran.dg/func_result_6.f90: New. From-SVN: r170289
2011-02-18re PR fortran/45586 (ICE non-trivial conversion at assignment)Michael Matz3-0/+124
PR fortran/45586 * gfortran.h (struct gfc_component): Add norestrict_decl member. * trans.h (struct lang_type): Add nonrestricted_type member. * trans-expr.c (gfc_conv_component_ref): Search fields with correct parent type. * trans-types.c (mirror_fields, gfc_nonrestricted_type): New. (gfc_sym_type): Use it. testsuite/ PR fortran/45586 * gfortran.dg/lto/pr45586_0.f90: New test. * gfortran.dg/typebound_proc_20.f90: Ditto. * gfortran.dg/typebound_proc_21.f90: Ditto. From-SVN: r170284
2011-02-18re PR c++/47795 (internal compiler error: tree check: expected record_type ↵Paolo Carlini1-16/+21
or union_type or qual_union_type, have error_mark in finish_non_static_data_member, at cp/semantics.c:1513) /cp 2011-02-18 Paolo Carlini <paolo.carlini@oracle.com> PR c++/47795 * semantics.c (finish_non_static_data_member): Early return if object is error_mark_node. /testsuite 2011-02-18 Paolo Carlini <paolo.carlini@oracle.com> PR c++/47795 * g++.dg/cpp0x/lambda/lambda-ice3.C: New. From-SVN: r170276
2011-02-18re PR c++/47795 (internal compiler error: tree check: expected record_type ↵Paolo Carlini1-0/+23
or union_type or qual_union_type, have error_mark in finish_non_static_data_member, at cp/semantics.c:1513) /cp 2011-02-18 Paolo Carlini <paolo.carlini@oracle.com> PR c++/47795 * semantics.c (finish_non_static_data_member): Early return if object is error_mark_node. /testsuite 2011-02-18 Paolo Carlini <paolo.carlini@oracle.com> PR c++/47795 * g++.dg/cpp0x/lambda/lambda-ice3.C: New. From-SVN: r170275
2011-02-18re PR fortran/47750 (testsuite/gfortran.dg: dg-warning and dg-error should ↵Tobias Burnus34-55/+110
be distinguished) 2011-02-15 Tobias Burnus <burnus@net-b.de> PR fortran/47750 * lib/gfortran.exp (gfortran_init): Set gcc_error_prefix and gcc_warning_prefix. * lib/gfortran-dg.exp (gfortran-dg-test): Update regexp for normalizing the error/warning output. * gfortran.dg/Wall.f90: Update dg-error/warning. * gfortran.dg/argument_checking_15.f90: Update dg-error/warning. * gfortran.dg/argument_checking_3.f90: Update dg-error/warning. * gfortran.dg/argument_checking_6.f90: Update dg-error/warning. * gfortran.dg/bounds_temporaries_1.f90: Update dg-error/warning. * gfortran.dg/class_30.f90: Update dg-error/warning. * gfortran.dg/continuation_1.f90: Update dg-error/warning. * gfortran.dg/continuation_9.f90: Update dg-error/warning. * gfortran.dg/do_check_5.f90: Update dg-error/warning. * gfortran.dg/entry_17.f90: Update dg-error/warning. * gfortran.dg/entry_19.f90: Update dg-error/warning. * gfortran.dg/fmt_error.f90: Update dg-error/warning. * gfortran.dg/fmt_read_2.f90: Update dg-error/warning. * gfortran.dg/g77/12632.f: Update dg-error/warning. * gfortran.dg/g77/970625-2.f: Update dg-error/warning. * gfortran.dg/g77/980615-0.f: Update dg-error/warning. * gfortran.dg/generic_actual_arg.f90: Update dg-error/warning. * gfortran.dg/global_references_1.f90: Update dg-error/warning. * gfortran.dg/goto_8.f90: Update dg-error/warning. * gfortran.dg/initialization_1.f90: Update dg-error/warning. * gfortran.dg/io_constraints_1.f90: Update dg-error/warning. * gfortran.dg/io_constraints_2.f90: Update dg-error/warning. * gfortran.dg/io_constraints_3.f90: Update dg-error/warning. * gfortran.dg/iostat_3.f90: Update dg-error/warning. * gfortran.dg/public_private_module.f90: Update * dg-error/warning. * gfortran.dg/volatile3.f90: Update dg-error/warning. * gfortran.dg/warning-directive-2.F90: Update dg-error/warning. * gfortran.dg/warnings_are_errors_1.f: Update dg-error/warning. * gfortran.dg/whole_file_1.f90: Update dg-error/warning. * gfortran.dg/whole_file_2.f90: Update dg-error/warning. * gfortran.dg/whole_file_3.f90: Update dg-error/warning. From-SVN: r170273
2011-02-18re PR fortran/47768 (ICE: printing a derived-type variable with proc-pointer ↵Janus Weil2-0/+20
components) 2011-02-18 Janus Weil <janus@gcc.gnu.org> PR fortran/47768 * resolve.c (resolve_transfer): Reject variables with procedure pointer components. 2011-02-18 Janus Weil <janus@gcc.gnu.org> PR fortran/47768 * gfortran.dg/proc_ptr_comp_30.f90: New. From-SVN: r170271
2011-02-18re PR debug/47780 (-fcompare-debug failure with -O -fgcse -fgcse-las ↵Jakub Jelinek2-0/+19
-fstack-protector-all) PR debug/47780 * cfgexpand.c (expand_debug_expr) <case SSA_NAME>: Call copy_rtx to avoid invalid rtx sharing. * gcc.target/i386/pr47780.c: New test. From-SVN: r170270
2011-02-18re PR fortran/47767 ([OOP] SELECT TYPE fails to execute correct TYPE IS block)Janus Weil2-0/+41
2011-02-18 Janus Weil <janus@gcc.gnu.org> PR fortran/47767 * gfortran.h (gfc_check_access): Removed prototype. (gfc_check_symbol_access): Added prototype. * module.c (gfc_check_access): Renamed to 'check_access', made static. (gfc_check_symbol_access): New function, basically a shortcut for 'check_access'. (write_dt_extensions,write_symbol0,write_generic,write_symtree): Use 'gfc_check_symbol_access'. (write_operator,write_module): Renamed 'gfc_check_access'. * resolve.c (resolve_fl_procedure,resolve_fl_derived, resolve_fl_namelist,resolve_symbol,resolve_fntype): Use 'gfc_check_symbol_access'. 2011-02-18 Janus Weil <janus@gcc.gnu.org> PR fortran/47767 * gfortran.dg/class_40.f03: New. From-SVN: r170269
2011-02-18re PR c++/47208 ([C++0x] ICE: in decl_constant_var_p, at cp/decl2.c:3563 ↵Dodji Seketeli2-0/+10
with missing #include <initializer_list>) PR c++/47208 gcc/cp/ PR c++/47208 * pt.c (do_auto_deduction): Do not mention error_mark_node in diagnostics. * semantics.c (finish_id_expression): Do not pass erroneous decl to decl_constant_var_p. gcc/testsuite/ PR c++/47208 * g++.dg/cpp0x/auto21.C: New test. From-SVN: r170268
2011-02-18Added support for the 64-bit Apple Objective-C runtimeIain Sandoe48-107/+291
From-SVN: r170260
2011-02-17re PR c++/47783 (Warning 'set but not used' [-Wunused-but-set-parameter] ↵Jakub Jelinek2-0/+29
incorrectly issued for update through reference wrapper) PR c++/47783 * cvt.c (convert_from_reference): Call mark_exp_read. * g++.dg/warn/Wunused-parm-4.C: New test. From-SVN: r170255
2011-02-17re PR debug/47106 (-fcompare-debug failure (length) with -fpartial-inlining ↵Alexandre Oliva2-0/+44
-flto -fconserve-stack) PR debug/47106 PR debug/47402 * cfgexpand.c (account_used_vars_for_block): Remove. (estimated_stack_frame_size): Use referenced vars. * tree-inline.c (remap_decl): Only mark VAR_DECLs as referenced that were referenced in the original function. Test src_fn rather than cfun. Drop redundant get_var_ann. (setup_one_parameter): Drop redundant get_var_ann. (declare_return_variable): Likewise. (copy_decl_for_dup_finish): Mark VAR_DECLs referenced in src_fn. (copy_arguments_for_versioning): Drop redundant get_var_ann. * ipa-inline.c (compute_inline_parameters): Do not compute disregard_inline_limits here. are not available. (compute_inlinable_for_current, pass_inlinable): New. (pass_inline_parameters): Require PROP_referenced_vars. * cgraphunit.c (cgraph_process_new_functions): Don't run compute_inline_parameters explicitly unless function is in SSA form. (cgraph_analyze_function): Set .disregard_inline_limits. * tree-sra.c (convert_callers): Compute inliner parameters only for functions already in SSA form. * g++.dg/debug/pr47106.C: New. Co-Authored-By: Jan Hubicka <jh@suse.cz> From-SVN: r170249
2011-02-17re PR target/43653 (ICE at reload1.c:1188 with -O1 -ftree-vectorize and ↵Uros Bizjak2-0/+19
empty struct) PR target/43653 * config/i386/i386.c (ix86_secondary_reload): Handle SSE input reload with PLUS RTX. testsuite/ChangeLog: PR target/43653 * gcc.target/i386/pr43653.c: New test. From-SVN: r170241
2011-02-17re PR c++/47172 ([C++0x] cannot call member function without object)Dodji Seketeli2-0/+28
Fix PR c++/47172 gcc/cp/ PR c++/47172 * pt.c (finish_call_expr): Consider a call expression that has a dependent "this" pointer as being dependent. Add comments. (dependent_type_p, type_dependent_expression_p): Update comments. gcc/testsuite/ * g++.dg/template/inherit6.C: New test. From-SVN: r170240
2011-02-16re PR fortran/47745 ([OOP] Segfault with CLASS(*) and derived type dummy ↵Janus Weil2-0/+18
arguments) 2011-02-16 Janus Weil <janus@gcc.gnu.org> PR fortran/47745 * class.c (gfc_build_class_symbol): Set 'class_ok' attribute. * decl.c (build_sym,attr_decl1): Move setting of 'class_ok' into 'gfc_build_class_symbol'. (gfc_match_decl_type_spec): Reject unlimited polymorphism. * interface.c (matching_typebound_op): Check for 'class_ok' attribute. * match.c (select_type_set_tmp): Move setting of 'class_ok' into 'gfc_build_class_symbol'. * primary.c (gfc_variable_attr): Check for 'class_ok' attribute. 2011-02-16 Janus Weil <janus@gcc.gnu.org> PR fortran/47745 * gfortran.dg/class_39.f03: New. From-SVN: r170223
2011-02-16re PR c++/47326 ([C++0x] ICE in tsubst_copy (triggered by dependency of ↵Dodji Seketeli2-0/+27
return type on parameter pack size)) PR c++/47326 gcc/cp/ PR c++/47326 * pt.c (tsubst_copy)<case SIZEOF_EXPR>: Ensure that even pack expansion arguments are not evaluated. gcc/testsuite/ PR c++/47326 * g++.dg/cpp0x/variadic106.C: New test. From-SVN: r170222
2011-02-16re PR libfortran/47757 (Unintentionally? not exported _gfortran_* symbols in ↵Jakub Jelinek4-0/+73
libgfortran.so.3) PR libfortran/47757 * gfortran.map (GFORTRAN_1.4): Export _gfortran_{m,s}i{all,any,parity}_i{1,2,4,8,16} and _gfortran_{cshift0,eoshift{0,2}}_16_char4. * gfortran.dg/pr47757-1.f90: New test. * gfortran.dg/pr47757-2.f90: New test. * gfortran.dg/pr47757-3.f90: New test. From-SVN: r170215
2011-02-16re PR c++/47704 ([C++0x] Java-related error message when trying to ↵Jakub Jelinek2-0/+15
instantiate a strongly typed enum with new) PR c++/47704 * cp-tree.h (ENUM_FIXED_UNDERLYING_TYPE_P): Use TYPE_LANG_FLAG_5 instead of TYPE_LANG_FLAG_3. * pt.c (lookup_template_class): Copy over ENUM_FIXED_UNDERLYING_TYPE_P. * g++.dg/cpp0x/enum8.C: New test. From-SVN: r170209
2011-02-15re PR c++/46807 (internal compiler error: in synthesized_method_walk)Jason Merrill3-0/+51
PR c++/46807 * method.c (synthesized_method_walk): Always exit early for trivial fn in C++98 mode. From-SVN: r170207
2011-02-15Revert cant_combine_insn_p change.H.J. Lu2-16/+5
gcc/ 2011-02-15 H.J. Lu <hongjiu.lu@intel.com> PR middle-end/47725 * combine.c (cant_combine_insn_p): Revert the last change. gcc/testsuite/ 2011-02-15 H.J. Lu <hongjiu.lu@intel.com> PR middle-end/47725 * gcc.dg/torture/pr47725.c: Removed. From-SVN: r170197
2011-02-15Fix PR 47755Michael Meissner2-0/+22
From-SVN: r170189
2011-02-15Check zero/sign extended hard registers.H.J. Lu2-0/+21
gcc/ 2011-02-15 H.J. Lu <hongjiu.lu@intel.com> PR middle-end/47725 * combine.c (cant_combine_insn_p): Check zero/sign extended hard registers. gcc/testsuite/ 2011-02-15 H.J. Lu <hongjiu.lu@intel.com> PR middle-end/47725 * gcc.dg/torture/pr47725.c: New. From-SVN: r170179
2011-02-15re PR middle-end/47743 (PRE ICE in fold_convert_loc)Richard Guenther2-0/+27
2011-02-15 Richard Guenther <rguenther@suse.de> PR tree-optimization/47743 * tree-ssa-pre.c (phi_translate_1): If we didn't get a value-number for a non-type-compatible VN lookup bail out. * gcc.dg/torture/pr47743.c: New testcase. From-SVN: r170173
2011-02-15re PR middle-end/47581 (Unnecessary adjustments to stack pointer)Jakub Jelinek2-0/+15
PR middle-end/47581 * config/i386/i386.c (ix86_compute_frame_size): Don't align offset if frame size is 0 in a leaf function. * gcc.target/i386/pr47581.c: New test. From-SVN: r170170