aboutsummaryrefslogtreecommitdiff
path: root/gcc
AgeCommit message (Collapse)AuthorFilesLines
2000-08-1820000818-1.c: New test.Manfred Hollstein2-0/+64
2000-08-18 Manfred Hollstein <manfredh@redhat.com> * gcc.c-torture/execute/20000818-1.c: New test. From-SVN: r35788
2000-08-18* gcc.dg/format-va-1.c: New test.Joseph Myers2-0/+17
From-SVN: r35786
2000-08-18decl.c (member_function_or_else): Use cp_error ...Nathan Sidwell3-11/+18
* decl.c (member_function_or_else): Use cp_error ... %T. (grokdeclarator): Likewise. (start_method): Likewise. * friend.c (make_friend_class): Use cp_pedwarn ... %T. From-SVN: r35784
2000-08-18From Emmanuel Marty <emarty@suntech.fr>Emmanuel Marty2-0/+6
* arm/lib1funcs.asm (_umodsi3 THUMB VARIANT): Restore deleted return insn. From-SVN: r35781
2000-08-18* g++.old-deja/g++.other/typedef8.C: New test.Nathan Sidwell2-0/+30
From-SVN: r35780
2000-08-18decl2.c (grokfield): Set CLASSTYPE_GOT_SEMICOLON on class TYPE_DECLs.Nathan Sidwell2-0/+8
* decl2.c (grokfield): Set CLASSTYPE_GOT_SEMICOLON on class TYPE_DECLs. From-SVN: r35779
2000-08-1813478.C: Mark candidate.Nathan Sidwell7-4/+88
* g++.old-deja/g++.benjamin/13478.C: Mark candidate. * g++.old-deja/g++.mike/net36.C: Mark candidate. * g++.old-deja/g++.robertl/eb131.C: Mark candidate. * g++.old-deja/g++.oliva/overload1.C: Remove XFAIL. * g++.old-deja/g++.other/ptrmem7.C: New test. * g++.old-deja/g++.pt/ptrmem10.C: New test. From-SVN: r35778
2000-08-18cp-tree.h (PTRMEM_OK_P): New macro.Nathan Sidwell6-82/+105
* cp-tree.h (PTRMEM_OK_P): New macro. (itf_ptrmem_ok): New enumeration value. * class.c (resolve_address_of_overloaded_function): Add PTRMEM argument. Diagnose implicit pointer to member. (instantiate_type): Don't diagnose implicit pointer to member here. Pass itf_ptrmem_ok if ok. Adjust calls to resolve_address_of_overloaded_function. * init.c (build_offset_ref): Set PTRMEM_OK_P. (resolve_offset_ref): Don't diagnose implicit pointer to member here. * semantics.c (finish_parenthesized_expr): Clear OFFSET_REFs here. * typeck.c (build_x_unary_op): Calculate PTRMEM_OK_P. (build_unary_op): Deal with single non-static member in microsoft-land. From-SVN: r35777
2000-08-18* g++.old-deja/g++.pt/typename27.C: New test.Nathan Sidwell2-0/+25
From-SVN: r35776
2000-08-18* decl2.c (arg_assoc_type): Cope with TYPENAME_TYPE.Nathan Sidwell2-0/+6
From-SVN: r35775
2000-08-18cp-tree.h (enum_name_string): Remove prototype.Nathan Sidwell4-156/+51
* cp-tree.h (enum_name_string): Remove prototype. (report_case_error): Remove prototype. * cp/typeck2.c (enum_name_string): Remove. (report_case_error): Remove. * error.c (dump_expr): Deal with enum values directly. Correctly negate integer constant. From-SVN: r35774
2000-08-18Daily bump.Jeff Law2-2/+2
From-SVN: r35773
2000-08-17ia64.c (spill_restore_mem): Handle emitting the first insn in a sequence.Richard Henderson2-2/+13
* config/ia64/ia64.c (spill_restore_mem): Handle emitting the first insn in a sequence. From-SVN: r35772
2000-08-18alias.c (true_dependence, [...]): A read involving a label_ref or the ↵John Wehle3-5/+32
constant pool doesn't create a dependency. * alias.c (true_dependence, write_dependence_p): A read involving a label_ref or the constant pool doesn't create a dependency. * rtl.h (unchanging): Improve documentation. From-SVN: r35771
2000-08-17* cse.c (insert_regs): Remove unused `regno'.Rodney Brown2-2/+4
From-SVN: r35770
2000-08-17decl.c (finit_leg_identifier_node): New global.Alexandre Petit-Bianco4-5/+30
2000-08-15 Alexandre Petit-Bianco <apbianco@cygnus.com> * decl.c (finit_leg_identifier_node): New global. (init_decl_processing): Use `finit$' to initialize finit_identifier_node. Use `$finit$' to initialize finit_leg_identifier_node. * expr.c (expand_java_field_op): Use ID_FINIT_P. * java-tree.h (finit_identifier_node): Changed attached comment. (finit_leg_identifier_node): New declaration. (ID_FINIT_P): Take finit_identifier_node and finit_leg_identifier_node into account. This is a backward compatibility hack. (http://gcc.gnu.org/ml/gcc-patches/2000-08/msg00664.html See also the matching Java run-time patch: http://sources.redhat.com/ml/java-discuss/2000-08/msg00031.html) From-SVN: r35768
2000-08-17cppinit.c (merge_include_chains): Use remove_dup_dir, remove_dup_dirs.Neil Booth2-89/+76
* (cppinit.c) merge_include_chains: Use remove_dup_dir, remove_dup_dirs. If qtail == brack, remove brack not qtail. (remove_dup_dir, remove_dup_dirs): New functions. From-SVN: r35766
2000-08-17cppinit.c (cpp_cleanup): Free include dir chains.Neil Booth4-9/+30
* cppinit.c (cpp_cleanup): Free include dir chains. * cpplib.c (do_undef): Let _cpp_free_definition make the node void. (do_unassert): Free the assert with _cpp_free_definition. * cppmacro.c (_cpp_free_definition): Free memory allocated for assertions. Make the node a T_VOID node. From-SVN: r35765
2000-08-17cppinit.c (path_include, [...]): Remove 2nd parameter (struct cpp_pending *).Neil Booth2-40/+33
* cppinit.c (path_include, append_include_chain): Remove 2nd parameter (struct cpp_pending *). (path_include, initialize_standard_includes, cpp_handle_option): Update callers appropriately. (cpp_handle_option): Use pend. From-SVN: r35764
2000-08-17cppinit.c (sort_options): Remove, put functionality in cpp_init.Neil Booth4-25/+27
* cppinit.c (sort_options): Remove, put functionality in cpp_init. (cpp_init): New. (initialize_builtins): Free memory. (cpp_start_read): Move init_IStable to cpp_init. * cpplib.h (cpp_init): New prototype. * cppmain.c (main): Call cpp_init. From-SVN: r35763
2000-08-17rtlanal.c (rtx_unstable_p): Use CONSTANT_P.John Wehle2-5/+30
* rtlanal.c (rtx_unstable_p): Use CONSTANT_P. (rtx_unstable_p, rtx_varies_p): Process vectors. From-SVN: r35762
2000-08-17cxxabi.h (__cxa_vec_new2, [...]): Declare.Nathan Sidwell3-7/+135
* inc/cxxabi.h (__cxa_vec_new2, __cxa_vec_new3): Declare. (__cxa_vec_delete2, __cxa_vec_delete3): Declare. * vec.cc (__cxa_vec_new2, __cxa_vec_new3): Implement. (__cxa_vec_delete2, __cxa_vec_delete3): Implement. (__cxa_vec_new): Use __cxa_vec_new2. (__cxa_vec_delete): Use __cxa_vec_delete2. From-SVN: r35761
2000-08-17vec.cc (__cxa_vec_new): Set "C" linkage.Nathan Sidwell3-10/+23
* vec.cc (__cxa_vec_new): Set "C" linkage. (__cxa_vec_ctor): Likewise. (__cxa_vec_cctor): Likewise. (__cxa_vec_dtor): Likewise. (__cxa_vec_delete): Likewise. * inc/cxxabi.h (__cxa_vec_new): Set "C" linkage. (__cxa_vec_ctor): Likewise. (__cxa_vec_cctor): Likewise. (__cxa_vec_dtor): Likewise. (__cxa_vec_delete): Likewise. From-SVN: r35760
2000-08-17cvt.c (cp_convert_to_pointer): Pass itf_complain, not itf_no_attributes.Nathan Sidwell2-1/+4
* cvt.c (cp_convert_to_pointer): Pass itf_complain, not itf_no_attributes. From-SVN: r35759
2000-08-17class.c (instantiate_type): Reinstate local variable deleted in previous change.Nathan Sidwell2-1/+7
* class.c (instantiate_type): Reinstate local variable deleted in previous change. From-SVN: r35758
2000-08-17cp-tree.h (instantiate_type_flags): New enumeration.Nathan Sidwell7-26/+48
* cp-tree.h (instantiate_type_flags): New enumeration. (instantiate_type): Change parameter. * class.c (instantiate_type): Adjust prototype. Adjust. * call.c (standard_conversion): Adjust instantiate_type call. (reference_binding): Likewise. (build_op_delete_call): Likewise. (convert_like_real): Likewise. * cvt.c (cp_convert_to_pointer): Likewise. (convert_to_reference): Likewise. * pt.c (convert_nontype_argument): Likewise. * typeck.c (build_binary_op): Likewise. (build_ptrmemfunc): Likewise. (convert_for_assignment): Likewise. From-SVN: r35757
2000-08-17fix the fibs in previous entryNathan Sidwell1-2/+3
From-SVN: r35756
2000-08-17cp-tree.h (CPTR_AGGR_TAG): New global tree node.Nathan Sidwell6-11/+47
* cp-tree.h (CPTR_AGGR_TAG): New global tree node. (current_aggr): Define. * decl.c (grokdeclarator): Make sure a friend class is an elaborated type specifier. * parse.y (current_aggr): Remove static definition. (cp_parse_init): Adjust. (structsp): Clear and restore current_aggr. (component_decl_list): Clear current_aggr. * error.c (dump_type, case TYPENAME_TYPE): Don't emit the aggregate tag on the typename's context. * pt.c (tsubst_friend_class): Return NULL, if parms becomes NULL. (instantiate_class_template): Ignore NULL friend types. From-SVN: r35755
2000-08-17crash44.C: Remove XFAIL.Nathan Sidwell5-5/+40
* g++.old-deja/g++.pt/crash44.C: Remove XFAIL. Add ERROR. * g++.old-deja/g++.pt/friend38.C: Remove XFAIL. Add extra test. * g++.old-deja/g++.pt/friend45.C: New test. * g++.old-deja/g++.other/friend8.C: New test. From-SVN: r35754
2000-08-17Daily bump.Jeff Law2-2/+2
From-SVN: r35753
2000-08-16lib1funcs.asm (GLOBAL): Define.Niibe Yutaka2-139/+148
* config/sh/lib1funcs.asm (GLOBAL): Define. Use for all references to GLOBAL symbols. Use LOCAL where appropriate. From-SVN: r35752
2000-08-16configure.in (*-ibm-aix4.[12]*): Delete test for gnu ld.Kaveh R. Ghazi3-105/+98
* configure.in (*-ibm-aix4.[12]*): Delete test for gnu ld. Always use t-aix41 when host == target. From-SVN: r35747
2000-08-16reload.c (push_secondary_reload): Revert last change.Richard Henderson2-24/+47
* reload.c (push_secondary_reload): Revert last change. If we use a reload_in/out pattern, make the when the same as the primary reload. (find_reloads): Likewise. From-SVN: r35746
2000-08-16configure.in (libstdcxx-v3): Fix test.Manfred Hollstein3-252/+246
2000-08-16 Manfred Hollstein <manfredh@redhat.com> * configure.in (libstdcxx-v3): Fix test. * configure: Regenerate. From-SVN: r35745
2000-08-16calls.c (calls_function_1, [...]): Only test TYPE_RETURNS_STACK_DEPRESSED ↵Richard Kenner3-4/+14
for FUNCTION_TYPE. * calls.c (calls_function_1, expand_call): Only test TYPE_RETURNS_STACK_DEPRESSED for FUNCTION_TYPE. * function.c (thread_prologue_and_epilogue_insns): Likewise. From-SVN: r35743
2000-08-16combine.c (simplify_shift_const): Revert previous two changes.Richard Henderson2-15/+18
* combine.c (simplify_shift_const): Revert previous two changes. If SHIFT_COUNT_TRUNCATED, crop the shift count before the main loop. From-SVN: r35742
2000-08-16Daily bump.Jeff Law2-2/+2
From-SVN: r35741
2000-08-15New test.Richard Henderson2-0/+74
From-SVN: r35740
2000-08-15combine.c (simplify_shift_const): Bound shift count when combining shifts.Richard Henderson2-0/+10
* combine.c (simplify_shift_const): Bound shift count when combining shifts. From-SVN: r35739
2000-08-15calls.c (ECF_SP_DEPRESSED): New macro.Richard Kenner1-13/+32
* calls.c (ECF_SP_DEPRESSED): New macro. (calls_function_1): Treat calling sp-depressed function as alloca. (emit_call_1): Don't adjust SP if calling sp-depressed function. (expand_call): Set ECF_SP_DEPRESSED if TYPE_RETURNS_STACK_DEPRESSED. If sp-depressed, ensure block saves and restores SP. * fold-const.c (extract_muldiv): Only check TYPE_IS_SIZETYPE for INTEGER_TYPE. * function.c (keep_stack_depressed): New function. (thread_prologue_and_epilogue_insns): Call it. * print-tree.c (print_node): Use HOST_WIDE_INT_PRINT_UNSIGNED to print DECL_OFFSET_ALIGN. Print no-force-blk and transparent-union flags properly. * stmt.c (expand_goto_internal): Don't restore stack if last block and function returns with sp depressed. (fixup_gotos): Likewise. (save_stack_pointer): New function, from code in expand_decl. (expand_decl): Call new function. * tree.h (TYPE_IS_SIZETYPE): Call INTEGER_TYPE_CHECK. (TYPE_RETURNS_STACK_DEPRESSED): New macro. (save_stack_pointer): New declaration. From-SVN: r35735
2000-08-15calls.c (ECF_SP_DEPRESSED): New macro.Richard Kenner6-24/+170
* calls.c (ECF_SP_DEPRESSED): New macro. (calls_function_1): Treat calling sp-depressed function as alloca. (emit_call_1): Don't adjust SP if calling sp-depressed function. (expand_call): Set ECF_SP_DEPRESSED if TYPE_RETURNS_STACK_DEPRESSED. If sp-depressed, ensure block saves and restores SP. * fold-const.c (extract_muldiv): Only check TYPE_IS_SIZETYPE for INTEGER_TYPE. * function.c (keep_stack_depressed): New function. (thread_prologue_and_epilogue_insns): Call it. * print-tree.c (print_node): Use HOST_WIDE_INT_PRINT_UNSIGNED to print DECL_OFFSET_ALIGN. Print no-force-blk and transparent-union flags properly. * stmt.c (expand_goto_internal): Don't restore stack if last block and function returns with sp depressed. (fixup_gotos): Likewise. (save_stack_pointer): New function, from code in expand_decl. (expand_decl): Call new function. * tree.h (TYPE_IS_SIZETYPE): Call INTEGER_TYPE_CHECK. (TYPE_RETURNS_STACK_DEPRESSED): New macro. (save_stack_pointer): New declaration. From-SVN: r35734
2000-08-15jcf-write.c (generate_bytecode_conditional): Re-installed lost Jan 6 2000 patch.Alexandre Petit-Bianco3-4/+16
2000-08-14 Alexandre Petit-Bianco <apbianco@cygnus.com> * jcf-write.c (generate_bytecode_conditional): Re-installed lost Jan 6 2000 patch. (generate_bytecode_insns): Check `nargs' before emitting it. * verify.c (merge_type_state): Fixed typo. * ChangeLog: Fixed typo in some jcf-write.c entries mentioning generate_bytecode_{conditional,insns}. (http://gcc.gnu.org/ml/gcc-patches/2000-08/msg00617.html) From-SVN: r35733
2000-08-15diagnostic.c (fatal_function): New variable.Richard Kenner1-0/+7
* diagnostic.c (fatal_function): New variable. (set_fatal_function): New function. (fatal): Call it. * diagnostic.h (set_fatal_function): New declaration. From-SVN: r35732
2000-08-15diagnostic.c (fatal_function): New variable.Richard Kenner2-4/+51
* diagnostic.c (fatal_function): New variable. (set_fatal_function): New function. (fatal): Call it. * diagnostic.h (set_fatal_function): New declaration. From-SVN: r35731
2000-08-15elf.h (DWARF2_DEBUGGING_INFO): Defined.William Cohen2-1/+15
* config/sh/elf.h (DWARF2_DEBUGGING_INFO): Defined. (PREFERRED_DEBUGGING_TYPE): Set to dwarf2 info. (DWARF2_ASM_LINE_DEBUG_INFO): Defined. From-SVN: r35730
2000-08-15Minor whitespace fixesRichard Kenner1-9/+11
From-SVN: r35729
2000-08-15c90-array-lval-2.c, [...]: New tests.Joseph Myers7-0/+142
* gcc.dg/c90-array-lval-2.c, gcc.dg/c90-const-expr-2.c, gcc.dg/c99-array-lval-2.c, gcc.dg/c99-const-expr-2.c, gcc.dg/c99-func-3.c, gcc.dg/c99-func-4.c: New tests. From-SVN: r35728
2000-08-15* flow.c (mark_used_reg): Set reg_cond_reg appropriately.Richard Henderson2-5/+12
From-SVN: r35727
2000-08-15tm.texi (LOCAL_REGNO): Document.Jeff Law1-0/+8
* tm.texi (LOCAL_REGNO): Document. * flow.c (LOCAL_REGNO, EPILOGUE_USES): Provide default. (mark_regs_live_at_end): Don't mark LOCAL_REGNO registers. * reload1.c (reload): Likewise when considering nonlocal labels. * config/ia64/ia64.h (LOCAL_REGNO): New. * config/sparc/sparc.h (LOCAL_REGNO): New. Last real change... From-SVN: r35722
2000-08-15tm.texi (FUNCTION_ARG_PARTIAL_NREGS): Fix a typo.Jeff Law1-1/+1
* tm.texi (FUNCTION_ARG_PARTIAL_NREGS): Fix a typo. One more... From-SVN: r35720