aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite
AgeCommit message (Collapse)AuthorFilesLines
2001-12-03* gcc.dg/20011130-1.c: New test.Jakub Jelinek2-0/+29
From-SVN: r47550
2001-12-03re PR c++/3381 (explicit template instantations fail with absolutely ↵Nathan Sidwell3-1/+22
qualified names) cp: PR g++/3381 * parse.y (named_complex_class_head_sans_basetype): Add new reduction. * Make-lang.in (parse.c): Adjust expected conflict count. testsuite: * g++.dg/other/scope1.C: New test. * g++.dg/template/explicit-instantiation.C: Remove XFAIL From-SVN: r47546
2001-12-03c-typeck.c (really_start_incremental_init, [...]): Avoid ↵Joseph Myers2-0/+17
constructor_max_index being other than an INTEGER_CST. * c-typeck.c (really_start_incremental_init, push_init_level): Avoid constructor_max_index being other than an INTEGER_CST. testsuite: * gcc.dg/vla-init-1.c: New test. From-SVN: r47539
2001-12-02In gcc/:Geoffrey Keating2-0/+267
* config/rs6000/rs6000.h (SLOW_UNALIGNED_ACCESS): Simplify. * config/rs6000/rs6000.c (rs6000_emit_move): Use adjust_address rather than simplify_subreg. Check for volatile-ness. Check that we're not splitting one slow operation into two slow operations. In gcc/testsuite/: * gcc.c-torture/compile/structs.c: New testcase from GDB. From-SVN: r47524
2001-12-02c-decl.c (duplicate_decls, [...]): Remove leading capital from diagnostics.Neil Booth7-8/+17
* c-decl.c (duplicate_decls, push_parm_decl): Remove leading capital from diagnostics. * c-lex.c (cb_file_change): Similarly. * c-parse.in : Similarly. * cfgrtl.c (verify_flow_info): Similarly. * collect2.c: Similarly. * cppfiles.c (find_include_file): Similarly. * cppinit.c (cpp_handle_option): Similarly. * cpplex.c (cpp_spell_token): Similarly. * cppmain.c (do_preprocessing): Similarly. * gcc.c (translate_options, process_command, do_spec1, main, pfatal_execute): Similarly. * genattr.c (main): Similarly. * genattrtab.c (check_attr_test, operate_exp, simplify_test_exp, write_test_expr, main): Similarly. * gencodes.c (main): Similarly. * genconfig.c (main): Similarly. * genconstants.c (main): Similarly. * genemit.c (main): Similarly. * genextract.c (main): Similarly. * genflags.c (main): Similarly. * genopinit.c (main): Similarly. * genoutput.c (process_template, main): Similarly. * genpeep.c (main): Similarly. * genrecog.c (main): Similarly. * gensupport.c (is_predicable, identify_predicable_attribute, alter_predicate_for_insn, init_md_reader_args, main): Similarly. * ggc-page.c (alloc_anon): Similarly. * mips-tfile.c (add_string, add_procedure, add_file, read_line, parse_begin, parse_bend, parse_def, parse_end, parse_file, parse_stabs_common, parse_stabs, write_varray, write_object, read_seek, copy_object, main, error): Similarly. * profile.c (compute_branch_probabilities): Similarly. * reg-stack.c (check_asm_stack_operands): Similarly. * reload.c (find_reloads): Similarly. * reload1.c (spill_failure, failed_reload): Similarly. * rtl-error.c (_fatal_insn_not_found): Similarly. * toplev.c (read_integral_parameter, crash_signal, decode_f_option, set_target_switch, parse_options_and_default_flags) : Similarly. * tradcif.y (parse_number, yylex): Similarly. * tradcpp.c (main, fancy_abort): Similarly. * tree.c (tree_check_failed): Similarly. * varray.c (varray_check_failed): Similarly. * xcoffout.c (xcoff_output_standard_types): Similarly. cp: * call.c (build_java_interface_fn_ref): Similarly. * except.c (is_admissible_throw_operand): Similarly. * init.c (build_java_class_ref): Similarly. * xref.c (open_xref_file): Similarly. objc: * objc-act.c (get_object_ref, lookup_and_install_protocols, build_objc_string_object, objc_declare_alias, build_ivar_chain, finish_message_expr, build_protocol_expr, is_public, start_class): Similarly. testsuite: * objc.dg/alias.m: Update. * objc.dg/class-1.m: Update. * objc.dg/const-str-1.m: Update. * objc.dg/fwd-proto-1.m: Update. * objc.dg/id-1.m: Update. * objc.dg/super-class-1.m: Update. From-SVN: r47518
2001-12-01rs6000.c (altivec_expand_builtin): add ALTIVEC_BUILTIN_LD_INTERNAL_4sf and ↵Daniel Berlin1-2/+2
ALTIVEC_BUILTIN_ST_INTERNAL_4sf... 2001-11-30 Daniel Berlin <dan@cgsoftware.com> * config/rs6000/rs6000.c (altivec_expand_builtin): add ALTIVEC_BUILTIN_LD_INTERNAL_4sf and ALTIVEC_BUILTIN_ST_INTERNAL_4sf, *_16qi,_8hi, rename existing V4SI ones to *_4si. (altivec_init_builtins): Ditto. (bdesc_2arg): Rename CODE_FOR_* to match changes in MD file. * config/rs6000/rs6000.md: Add attribute types vecsimple, veccomplex, vecfloat, and vecperm, for altivec instructions. Modify altivec patterns to use approriate attribute type. Modify altivec patterns to match RTL operations where approriate (IE no unspec where we can avoid it). Add vector unit scheduling for ppc7450. Rename patterns to what they are where approriate (altivec_vaddfp->addv4sf3, etc) * config/rs6000/rs6000.h (enum rs6000_builtins): Change VRS->VSR. Pass -mppc, and define _ARCH_PPC, if -mcpu=7450 is used. * config/rs6000/sysv4.h: Add -mcpu=7450. * testsuite/gcc.dg/altivec-1.c: Update test to take into account renamed _builtin_altivec_ld_interal function. From-SVN: r47502
2001-11-30re PR c++/3048 (Lookup problem (gcc 2.95 regression))Mark Mitchell1-0/+19
2001-11-29 Mark Mitchell <mark@codesourcery.com> PR c++/3048 * cp-tree.h (ovl_member): Remove. * decl2.c (merge_functions): Handle extern "C" functions specially. * tree.c (ovl_member): Remove. From-SVN: r47474
2001-11-29re PR c++/4842 (-Woverloaded-virtual does not work)Mark Mitchell1-0/+10
PR c++/4842 * class.c (get_basefndecls): Take an IDENTIFIER_NODE, not a FUNCTION_DECL, as input. (mark_overriders): Remove. (warn_hidden): Rework for the new ABI. From-SVN: r47458
2001-11-29re PR c++/3471 (gcc 3.01 reports error about a private copy constructor that ↵Mark Mitchell1-2/+2
shouldn't get called.) PR c++/3471 * call.c (convert_like_real): Do not build additional temporaries for rvalues of class type. From-SVN: r47455
2001-11-29re PR c++/3471 (gcc 3.01 reports error about a private copy constructor that ↵Mark Mitchell3-6/+29
shouldn't get called.) PR c++/3471 * call.c (convert_like_real): Do not build additional temporaries for rvalues of class type. From-SVN: r47451
2001-11-29memtemp100.C: Remove non-standard constructs.Mark Mitchell2-5/+10
* g++.old-deja/g++.pt/memtemp100.C: Remove non-standard constructs. From-SVN: r47448
2001-11-28* gcc.c-torture/execute/20011128-1.c: New test.Jeffrey A Law2-0/+9
From-SVN: r47431
2001-11-28* gcc.dg/20011127-1.c: New test.Hans-Peter Nilsson2-0/+34
From-SVN: r47394
2001-11-27New test.Richard Henderson1-0/+43
From-SVN: r47370
2001-11-26New test.Richard Henderson1-0/+19
From-SVN: r47368
2001-11-25c-format.c (FMT_FLAG_DOLLAR_GAP_POINTER_OK): New.Joseph Myers4-9/+57
* c-format.c (FMT_FLAG_DOLLAR_GAP_POINTER_OK): New. (format_types): Use it for scanf. (dollar_arguments_pointer_p): New. (init_dollar_format_checking): Store details of which arguments are pointers. (maybe_read_dollar_number): Reallocate dollar_arguments_pointer_p. (finish_dollar_format_checking): Take extra parameter pointer_gap_ok. Treat unused arguments differently if pointer_gap_ok and the unused arguments are pointers. (check_format_info_main): Pass extra argument to finish_dollar_format_checking. * doc/invoke.texi (-Wno-format-extra-args): Document behavior when unused arguments are present between used arguments with operand numbers. testsuite: * gcc.dg/format/strfmon-1.c: Update comments. Adjust examples from Austin Group draft 7. * gcc.dg/format/xopen-1.c: Update comments. Add tests for gaps in scanf format arguments. * gcc.dg/format/no-exargs-2.c: New test. From-SVN: r47327
2001-11-25* gcc.dg/cpp/fpreprocessed.c: New test.Neil Booth1-0/+10
From-SVN: r47325
2001-11-25re PR c++/3145 (virtual inheritance still creates wrong code)Nathan Sidwell2-0/+82
cp: PR g++/3145 * class.c (build_vbase_pointer): Remove. (build_vbase_path): Remove. (build_base_path): New function. * cp-tree.h (base_access, base_kind): New enumerations. (build_base_path): Declare. (convert_pointer_to_real): Remove. (convert_pointer_to): Remove. (lookup_base): Declare. (convert_pointer_to_vbase): Remove. * call.c (build_scoped_method_call): Use lookup_base & build_base_path instead of convert_pointer_to_real, get_base_distance & get_binfo. (build_over_call): Likewise. * cvt.c (cp_convert_to_pointer): Likewise. (convert_to_pointer_force): Likewise. (build_up_reference): Likewise. (convert_pointer_to_real): Remove. (convert_pointer_to): Remove. * init.c (dfs_initialize_vtbl_ptrs): Use build_base_path instead of convert_pointer_to_vbase & build_vbase_path. (emit_base_init): Use build_base_path instead of convert_pointer_to_real. (expand_virtual_init): Lose unrequired conversions. (resolve_offset_ref): Use lookup_base and build_base_path instead of convert_pointer_to. * rtti.c (build_dynamic_cast_1): Use lookup_base & build_base_path instead of get_base_distance & build_vbase_path. * search.c (get_vbase_1): Remove. (get_vbase): Remove. (convert_pointer_to_vbase): Remove. (lookup_base_recursive): New function. (lookup_base): New function. * typeck.c (require_complete_type): Use lookup_base & build_base_path instead of convert_pointer_to. (build_component_ref): Likewise. (build_x_function_call): Likewise. (get_member_function_from_ptrfunc): Likewise. (build_component_addr): Likewise. * typeck2.c (build_scoped_ref): Likewise. testsuite: * g++.dg/abi/vbase8-4.C: New test. From-SVN: r47316
2001-11-25* gcc.c-torture/execute/20011121-1.c: New test.Ian Lance Taylor2-0/+23
From-SVN: r47309
2001-11-23* gcc.c-torture/execute/ieee/20011123-1.c: New test.Jeffrey A Law2-0/+16
From-SVN: r47295
2001-11-23cpplex.c (cpp_interpret_charconst): Use HOST_WIDE_INT for sign extension.Andreas Jaeger2-6/+28
* cpplex.c (cpp_interpret_charconst): Use HOST_WIDE_INT for sign extension. * gcc.dg/cpp/charconst-2.c: New test. From-SVN: r47286
2001-11-23cppmacro.c (warn_of_redefinition): Warn regardless of -pedantic.Neil Booth2-4/+7
* cppmacro.c (warn_of_redefinition): Warn regardless of -pedantic. * gcc.dg/cpp/mi6.c, gcc.dg/cpp/redef2.c: Update. From-SVN: r47282
2001-11-23old-dejagnu.exp (old-dejagnu): Copy extra source files to the host if it is ↵Geoffrey Keating12-1/+50
remote. * lib/old-dejagnu.exp (old-dejagnu): Copy extra source files to the host if it is remote. Let tests specify extra headers they use. * g++.old-deja/g++.abi/vtable3a.C: This uses 'vtable3.h'. * g++.old-deja/g++.abi/vtable3b.C: This uses 'vtable3.h'. * g++.old-deja/g++.abi/vtable3c.C: This uses 'vtable3.h'. * g++.old-deja/g++.abi/vtable3d.C: This uses 'vtable3.h'. * g++.old-deja/g++.abi/vtable3e.C: This uses 'vtable3.h'. * g++.old-deja/g++.abi/vtable3f.C: This uses 'vtable3.h'. * g++.old-deja/g++.abi/vtable3g.C: This uses 'vtable3.h'. * g++.old-deja/g++.abi/vtable3h.C: This uses 'vtable3.h'. * g++.old-deja/g++.abi/vtable3i.C: This uses 'vtable3.h'. * g++.old-deja/g++.abi/vtable3j.C: This uses 'vtable3.h'. From-SVN: r47281
2001-11-22fix typo in previous deltaNick Clifton1-2/+1
From-SVN: r47275
2001-11-22Fix for little endian ARMsNick Clifton2-1/+33
From-SVN: r47266
2001-11-22re PR c++/3637 (Internal compiler error in finish_member_declaration)Mark Mitchell1-0/+40
PR c++/3637 * pt.c (lookup_template_class): Ensure that all specializations are registered on the list corresponding to the most general template. From-SVN: r47252
2001-11-21c-decl.c (c_expand_deferred_function): Only call c_expand_body if fndecl is ↵Jakub Jelinek3-0/+23
still DECL_INLINE and has DECL_RESULT. * c-decl.c (c_expand_deferred_function): Only call c_expand_body if fndecl is still DECL_INLINE and has DECL_RESULT. * gcc.c-torture/compile/20011119-1.c: New test. * gcc.c-torture/compile/20011119-2.c: New test. From-SVN: r47240
2001-11-20reload1.c (elimination_effects): Use function_invariant_p instead of ↵Brad Kaiser1-0/+80
CONSTANT_P when... * reload1.c (elimination_effects): Use function_invariant_p instead of CONSTANT_P when considering register equivalences. From-SVN: r47226
2001-11-20altivec-1.c: Fix typo.Aldy Hernandez2-1/+5
2001-11-17 Aldy Hernandez <aldyh@redhat.com> * gcc.dg/altivec-1.c: Fix typo. From-SVN: r47225
2001-11-20* gcc.dg/c90-intconst-1.c, gcc.dg/c99-intconst-1.c: New tests.Joseph Myers3-0/+1406
From-SVN: r47215
2001-11-20Treat XScale as ARMNick Clifton2-1/+6
From-SVN: r47214
2001-11-20re PR c++/3637 (Internal compiler error in finish_member_declaration)Mark Mitchell1-0/+47
PR c++/3637 * call.c (non_reference): Add documentation. (convert_class_to_reference): Do not strip reference types from conversion operators. (maybe_handle_ref_bind): Simplify. (compare_ics): Correct handling of references. From-SVN: r47209
2001-11-20re PR c++/4629 (non-constant `sizeof (void*)' cannot be used as template ↵Mark Mitchell1-0/+15
argument) * dump.c (dump_op): New function. (cp_dump_tree): Dump CLASSTYPE_TEMPLATE_SPECIALIZATION. Use dump_op. Dump DECL_MUTABLE, access and staticness for VAR_DECLs. DECL_PURE_VIRTUAL_P, DECL_VIRTUAL_P, PR4629 * semantics.c (finish_sizeof): Make sure that expression created while processing a template do not have a type. (finish_alignof): Likewise. * typeck.c (c_sizeof): Likewise. (expr_sizeof): Likewise. From-SVN: r47201
2001-11-20Index: f/ChangeLogGeoffrey Keating2-1/+2
* g77spec.c (lang_specific_driver) [ENABLE_SHARED_LIBGCC]: Add libgcc_s.so if libf2c is used. * Make-lang.in (g77spec.o): Use DRIVER_DEFINES. Index: testsuite/ChangeLog * lib/g77.exp: Don't specify --rpath-link. From-SVN: r47195
2001-11-20cpp.exp: For testing on a remote host, copy across all the headers.Geoffrey Keating6-4/+37
* gcc.dg/cpp/cpp.exp: For testing on a remote host, copy across all the headers. * gcc.dg/format/format.exp: For testing on a remote host, copy format.h. * gcc.c-torture/execute/20011008-3.c: Allow for small STACK_SIZE. * gcc.c-torture/execute/930406-1.c: Likewise. * gcc.c-torture/execute/comp-goto-1.c: Likewise. From-SVN: r47194
2001-11-20* gcc.c-dg/altivec.c: New.Aldy Hernandez2-0/+86
From-SVN: r47191
2001-11-19cppmacro.c (_cpp_backup_tokens): Revert previous check-in.Neil Booth1-0/+4
* cppmacro.c (_cpp_backup_tokens): Revert previous check-in. Don't fall off the base token run. * gcc.dg/cpp/fpreprocessed.c: New test case. From-SVN: r47182
2001-11-18c-decl.c (c_decode_option): Give deprecation warning for -traditional.Joseph Myers5-3/+10
* c-decl.c (c_decode_option): Give deprecation warning for -traditional. * doc/invoke.texi (-traditional): Note that this option is deprecated. testsuite: * gcc.dg/cpp/assert_trad1.c, gcc.dg/cpp/tr-paste.c, gcc.dg/cpp/tr-str.c: Use -traditional-cpp instead of -traditional. * gcc.dg/ext-glob.c: Expect -traditional deprecation warning. From-SVN: r47147
2001-11-18decl.c (create_array_type_for_decl): Check if NAME is NULL_TREE when ↵Kriang Lerdsuwanakij1-0/+10
displaying error message about missing array bounds. * decl.c (create_array_type_for_decl): Check if NAME is NULL_TREE when displaying error message about missing array bounds. From-SVN: r47136
2001-11-18mangle.c (write_expression): Handle CAST_EXPR, STATIC_CAST_EXPR, ↵Kriang Lerdsuwanakij2-0/+45
CONST_CAST_EXPR. * mangle.c (write_expression): Handle CAST_EXPR, STATIC_CAST_EXPR, CONST_CAST_EXPR. * operators.def: Add CAST_EXPR, STATIC_CAST_EXPR, CONST_CAST_EXPR. From-SVN: r47135
2001-11-18c-common.c (struct disabled_builtin, [...]): New.Joseph Myers2-0/+47
* c-common.c (struct disabled_builtin, disabled_builtins, disable_builtin_function, builtin_function_disabled_p): New. (builtin_function_2): Check for disabled built-in functions. * c-common.h (disable_builtin_function): Declare. * c-decl.c (c_decode_option): Handle -fno-builtin-FUNCTION. * doc/invoke.texi: Document -fno-builtin-FUNCTION. * doc/extend.texi: Mention -fno-builtin-FUNCTION. testsuite: * gcc.dg/no-builtin-1.c: New test. From-SVN: r47133
2001-11-16c-lang.c (finish_file): Don't emit static inline functions if they weren't ↵Jakub Jelinek2-0/+30
referenced. * c-lang.c (finish_file): Don't emit static inline functions if they weren't referenced. * gcc.c-torture/execute/20011115-1.c: New test. From-SVN: r47082
2001-11-15reduce arena size for small targetsJason Merrill1-1/+1
From-SVN: r47065
2001-11-15avoid includesJason Merrill1-2/+2
From-SVN: r47064
2001-11-15parse.y: Add ...Jason Merrill3-0/+35
* parse.y: Add ... IDENTIFIER SCOPE and ... PTYPENAME SCOPE expansions. * decl.c (make_typename_type): Handle getting a class template. * search.c (lookup_field_r): A class template is good enough for want_type. * call.c (convert_like_real): Only use cp_convert for the bad part. (standard_conversion): Also allow bad int->enum. * typeck.c (ptr_reasonably_similar): Also allow functions to interconvert. Pointers to same-size integers are reasonably similar. * cvt.c (convert_to_void): If we build a new COND_EXPR, always give it void type. From-SVN: r47060
2001-11-15cfgcleanup.c (try_optimize_cfg): If try_simplify_condjump optimized ↵Jakub Jelinek2-0/+43
conditional jump... * cfgcleanup.c (try_optimize_cfg): If try_simplify_condjump optimized conditional jump, request updating life into for the block containing it. Fix a typo which prevented life info update. Clear blocks bitmap before using it. * gcc.c-torture/compile/20011114-3.c: New test. From-SVN: r47050
2001-11-15ia64.c (ia64_adjust_cost): Handle SUBREGs.Jakub Jelinek2-0/+14
* config/ia64/ia64.c (ia64_adjust_cost): Handle SUBREGs. * gcc.c-torture/compile/20011114-2.c: New test. From-SVN: r47049
2001-11-15jump.c (squeeze_notes): Return true if no real insns were found.Jakub Jelinek2-0/+42
* jump.c (squeeze_notes): Return true if no real insns were found. * rtl.h (squeeze_notes): Adjust prototype. * cfgcleanup.c (merge_blocks_move_predecessor_nojumps): If squeeze_notes finds no real instructions, abort. (merge_blocks_move_successor_nojumps): Likewise. * loop.c (find_and_verify_loops): Likewise. * stmt.c (expand_end_case): Likewise. * ifcvt.c (dead_or_predicable): Return TRUE if squeeze_notes doesn't find any real instructions. * gcc.c-torture/compile/20011114-4.c: New test. From-SVN: r47048
2001-11-15re PR c++/3154 (Tree check: expected class 't', have 'd' (type_decl) in ↵Nathan Sidwell2-0/+32
is_aggr_type, at cp/init.c:1435) cp: PR g++/3154 * init.c (sort_base_init): Remove unreachable code. (expand_member_init): Adjust comment to reflect reality. Simplify and remove unreachable code. testsuite: * g++.dg/other/init1.C: New test. From-SVN: r47047
2001-11-15920923-1.c: stormy16 produces an extra error message.Geoffrey Keating3-1/+17
* gcc.dg/noncompile/920923-1.c: stormy16 produces an extra error message. * gcc.c-torture/execute/20011114-1.c: New testcase. From-SVN: r47038