aboutsummaryrefslogtreecommitdiff
path: root/gcc
AgeCommit message (Collapse)AuthorFilesLines
2002-08-01c-common.c (cb_register_builtins): If C++, define __EXCEPTIONS, __DEPRECATED ↵Neil Booth4-20/+22
and __GXX_ABI_VERSION as appropriate. * c-common.c (cb_register_builtins): If C++, define __EXCEPTIONS, __DEPRECATED and __GXX_ABI_VERSION as appropriate. * gcc.c (cpp_unique_options): Remove __GXX_ABI_VERSION. cp: * lang-specs.h: Simplify in accordance with new code in c-common.c. From-SVN: r55924
2002-08-01c-common.c: Define all C/ObjC/C++ warning and flag variables.Neil Booth12-780/+762
* c-common.c: Define all C/ObjC/C++ warning and flag variables. * c-common.h: Declare all C/ObjC/C++ warning and flag variables. * c-decl.c: Move all warning and flag variables to c-common.c. * c-format.c: Move all warning variables to c-common.c. * c-tree.h: Move all warning and flag declarations to c-common.h. * objc/objc-act.c: Move all warning variables to c-common.c. (flag_warn_protocol): Rename warn_protocol. cp: * cp-tree.h: Move all warning and flag declarations to c-common.h. * decl.c: Move all warning and flag variables to c-common.c. * decl2.c: Move all warning and flag variables to c-common.c. * lex.c (flag_digraphs): Remove. (warn_traditional): Now in c-common.c. From-SVN: r55923
2002-08-01call.c (build_field_call): Do not look up the field by name.Mark Mitchell20-702/+1032
* call.c (build_field_call): Do not look up the field by name. (build_method_call): Simplify. (struct z_candidate): Add access_path and conversion_path. Remove basetype_path. (convert_class_to_reference): Adjust use of add_function_candidate. (add_candidate): Add conversion_path argument. (add_function_candidate): Use it. (add_conv_dndidate): Likewise. (build_builtin_candidate): Likewise. (add_template_candidate_real): Add conversion_path argument. (add_template_conv_candidate): Likewise. (add_template_candidate): Likewise. (build_user_type_conversion_1): Use it. (build_new_function_call): Remove name lookup code. Adjust use of add_template_candidate and add_function_candidate. (build_new_op): Likewise. (convert_like_real): Use build_special_member_call. (build_over_call): Use cand->conversion_path. (build_special_member_call): New method. (build_new_method_call): Remove name lookup code. * cp-tree.def (OFFSET_REF): Update documentation. (TEMPLATE_ID_EXPR): Likewise. * cp-tree.h (BASELINK_ACCESS_BINFO): New macro. (BASELINK_OPTYPE): Likewise. (build_new_method_call): Adjust prototype. (build_special_member_call): New method. (build_baselink): New method. (build_offset_ref_call_from_tree): Likewise. (build_call_from_tree): Likewise. (finish_qualified_call_expr): Remove. (finish_call_expr): Adjust prototype. (build_x_function_call): Remove. * cvt.c (ocp_convert): Use build_special_member_call. * decl2.c (reparse_absdcl_as_expr): Use finish_call_expr. (build_expr_from_tree): Adjust handling for TEMPLATE_ID_EXPR and CALL_EXPR. (build_offset_ref_call_from_tree): New function. (build_call_from_tree): Likewise. * init.c (expand_cleanup): Use build_special_member_call. (expand_default_init): Likewise. (build_member_call): Use finish_call_expr. (build_new_1): Use build_special_member_call. (push_base_cleanups): Likewise. * method.c (do_build_assign_ref): Likewise. * parse.y (template_id): Do not pass a COMPONENT_REF to lookup_template_function. (primary): Use parse_finish_call_epxr, not finish_call_expr. (parse_finish_call_expr): New function. * pt.c (lookup_template_function): Add assertions. * search.c (lookup_base): Allow T to be a binfo. (build_baselink): New function. (lookup_member): Use it. * semantics.c (finish_call_expr): Do not do name lookup. (finish_object_call_expr): Remove #if 0'd code. (finish_qualified_call_expr): Remove. * typeck.c (build_x_function_call): Remove. (build_static_case): Use build_special_member_call. * typeck2.c (build_functional_cast): Likewise. * g++.dg/inherit/operator1.C: New test. * g++.dg/lookup/disamb1.C: Fix typo in comment. * g++.dg/other/error1.C: Change expected error message. * g++.dg/template/conv4.C: Likewise. From-SVN: r55920
2002-08-01* pa-linux.h (GLOBAL_ASM_OP): Fix typo.John David Anglin2-1/+5
From-SVN: r55919
2002-07-31stormy16.h (BSS_SECTION_ASM_OP): Add missing .section prefix.Graham Stott1-0/+5
* config/stormy16/stormy16.h (BSS_SECTION_ASM_OP): Add missing .section prefix. From-SVN: r55918
2002-07-31stormy16.h (BSS_SECTION_ASM_OP): Add missing .section prefix.Graham Stott1-1/+1
* config/stormy16/stormy16.h (BSS_SECTION_ASM_OP): Add missing .section prefix. From-SVN: r55917
2002-07-31config.gcc (i[34567]86-*-darwin*): New configuration.Stan Shebs10-22/+347
* config.gcc (i[34567]86-*-darwin*): New configuration. * config/darwin.h (TARGET_ENCODE_SECTION_INFO): Undefine before defining. (TARGET_ENCODE_SECTION_INFO): Ditto. (ASM_PREFERRED_EH_DATA_FORMAT): Ditto. * config/darwin.c (machopic_indirect_data_reference): Remove setting of RTX_UNCHANGING_P. (machopic_legitimize_pic_address): Move RTX_UNCHANGING_P up so as * config/i386/t-darwin: New file. * config/i386/darwin.h: New file. * config/i386/i386.h (TARGET_MACHO): Add default definition. * config/i386/i386.md (tablejump): Add TARGET_MACHO case. * config/i386/i386.c (output_set_got): For Mach-O, output Mach-O label and not the GOT add. (constant_address_p): For Mach-O, seeing a CONST is enough. (legitimate_pic_address_disp_p): Add a Mach-O case. (legitimate_address_p): Also test machopic_operand_p if Mach-O. (legitimize_pic_address): Use generic Mach-O code to legitimize. (output_pic_addr_const): Suppress @PLT if Mach-O, and parens if outputting a difference. (ix86_output_addr_diff_elt): Add Mach-O case. (ix86_expand_move): Similarly. (ix86_expand_call): Similarly. (current_machopic_label_num): New global. (machopic_output_stub): New function. (ix86_value_regno): New function. (ix86_function_value): Use it instead of VALUE_REGNO. (ix86_libcall_value): Ditto. * config/i386/unix.h (VALUE_REGNO): Remove. From-SVN: r55916
2002-07-31rs6000.c (rs6000_hash_constant): Fix hash for LABEL_REF's.Graham Stott1-1/+1
* config/rs6000/rs6000.c (rs6000_hash_constant): Fix hash for LABEL_REF's. From-SVN: r55915
2002-07-31rs6000.c (rs6000_hash_constant): Fix hash for LABEL_REF's.Graham Stott1-0/+5
* config/rs6000/rs6000.c(rs6000_hash_constant): Fix hash for LABEL_REF's. From-SVN: r55914
2002-07-31rs6000.c (spe_init_builtins, [...]): Replace ANSI with K&R function def.Graham Stott1-0/+6
* config/rs6000/rs6000.c (spe_init_builtins, altivec_init_builtins, rs6000_common_init_builtins): Replace ANSI with K&R function def. From-SVN: r55913
2002-07-31rs6000.c (spe_init_builtins, [...]): Replace ANSI with K&R function def.Graham Stott1-3/+3
* config/rs6000/rs6000.c (spe_init_builtins, altivec_init_builtins, rs6000_common_init_builtins): Replace ANSI with K&R function def. From-SVN: r55912
2002-07-31rs6000.c (validate_condition_mode): Test flag_finite_math_only for CCFPmode.David Edelsohn2-1/+7
* rs6000.c (validate_condition_mode): Test flag_finite_math_only for CCFPmode. From-SVN: r55904
2002-07-31crtn.asm: Don't use __mips16 to determine the return-address offset.Richard Sandiford2-22/+18
* config/mips/crtn.asm: Don't use __mips16 to determine the return-address offset. Define RA to a suitable temporary register for the return address. From-SVN: r55903
2002-07-31mips.md (eh_set_lr_si, [...]): Change constraints to 'd'.Richard Sandiford2-4/+9
* config/mips/mips.md (eh_set_lr_si, eh_set_lr_di): Change constraints to 'd'. From-SVN: r55902
2002-07-31Daily bump.GCC Administrator3-3/+3
From-SVN: r55900
2002-07-30elf.h (STARTFILE_SPEC): Define differently if default ABI is MEABI.Chris Demetriou3-2/+11
2002-07-30 Chris Demetriou <cgd@broadcom.com> * config/mips/elf.h (STARTFILE_SPEC): Define differently if default ABI is MEABI. (Undoes incorrect change in Eric Christopher's patch on 2002-07-29.) * config/mips/elf64.h (STARTFILE_SPEC): Likewise. From-SVN: r55894
2002-07-31* alpha.h, arc.h, arm/aout.h, avr.h, cris.h, d30v.h, dsp16xx.h,Kaveh R. Ghazi34-235/+74
fr30.h, h8300.h, i370.h, i386/sco5.h, i386/unix.h, i960.h, ia64.h, ip2k.h, m32r.h, mcore.h, mips.h, mn10200.h, mn10300.h, ns32k.h, openbsd.h, pa/pa-linux.h, pdp11.h, romp.h, rs6000/sysv4.h, s390/linux.h, sh.h, sparc.h, stormy16.h, v850.h, vax.h, xtensa.h: (ASM_GLOBALIZE_LABEL): Delete. (GLOBAL_ASM_OP): Define. From-SVN: r55892
2002-07-31m68hc11.h, [...] (ASM_GLOBALIZE_LABEL): Delete.Kaveh R. Ghazi6-24/+23
* m68hc11.h, m68k.h, m88k.h (ASM_GLOBALIZE_LABEL): Delete. * defaults.h (ASM_GLOBALIZE_LABEL): Provide a default. * doc/tm.texi (ASM_GLOBALIZE_LABEL): Update docs. From-SVN: r55891
2002-07-31extend.texi (Hints implementation): Document that GCC mostly ignores `register'.Geoffrey Keating2-0/+26
* doc/extend.texi (Hints implementation): Document that GCC mostly ignores `register'. From-SVN: r55890
2002-07-30New target macro DECLARE_LIBRARY_RENAMESBernd Schmidt4-1/+19
From-SVN: r55889
2002-07-30flags.h: Declare flag_finite_math_only.Toon Moene9-7/+66
2002-07-30 Toon Moene <toon@moene.indiv.nluug.nl> * flags.h: Declare flag_finite_math_only. Use it in definition of HONOR_NANS and HONOR_INFINITIES. * c-common.c (cb_register_builtins): Emit __FINITE_MATH_ONLY__ when flag_finite_math_only is set. * combine.c (simplify_if_then_else): If flag_finite_math_only is set, a == b has a definite value. * toplev.c: Initialize flag_finite_math_only. (set_flags_fast_math): Set it on -ffast-math. (flag_fast_math_set_p): Test it. doc: * invoke.texi: Document -ffinite-math-only. f: * com.c (ffe_init_options): Set flag_finite_math_only. * invoke.texi: Document -fno-finite-math-only. From-SVN: r55887
2002-07-30ifcvt.c (noce_get_alt_condition): Use reg_overlap_mentioned_p.Richard Henderson2-6/+13
* ifcvt.c (noce_get_alt_condition): Use reg_overlap_mentioned_p. (noce_process_if_block): Likewise. From-SVN: r55886
2002-07-30Recognize return insns even if the return appears in a parallel.Bernd Schmidt2-2/+5
From-SVN: r55885
2002-07-30Fix null pointer crash and a merge errorBernd Schmidt2-11/+8
From-SVN: r55884
2002-07-30rs6000.c (rs6000_expand_unop_builtin): Check icode not CODE_FOR_nothing.David Edelsohn2-55/+69
2002-07-30 David Edelsohn <edelsohn@gnu.org> Zack Weinberg <zack@codesourcery.com> * rs6000.c (rs6000_expand_unop_builtin): Check icode not CODE_FOR_nothing. Change switch to if. (rs6000_expand_binop_builtin): Same. (rs6000_expand_builtin): Expand builtin if target support enabled. (rs6000_init_builtins): Init builtin if target support enabled. (rs6000_common_init_builtins): Check icode not CODE_FOR_nothing. Co-Authored-By: Zack Weinberg <zack@codesourcery.com> From-SVN: r55882
2002-07-30gcc.c (cpp_unique_options): Define __GXX_ABI_VERSION, bump it to 101.Franz Sirl4-4/+9
gcc/ * gcc.c (cpp_unique_options): Define __GXX_ABI_VERSION, bump it to 101. gcc/cp/ * lang-specs.h: Remove __GXX_ABI_VERSION, moved to gcc.c. From-SVN: r55880
2002-07-30* config/mips/mips.h (SUBTARGET_ASM_DEBUGGING_SPEC): Fix typo.Richard Sandiford2-1/+5
From-SVN: r55879
2002-07-30sh.md (cond_delay_slot): New attribute.J"orn Rennecke3-2/+33
* sh.md (cond_delay_slot): New attribute. (cbranch delay): Use it for anulled-true case. (stuff_delay_slot): New pattern. * sh.c (print_operand, case '.'): Don't print .s / /s fore zero-length delay slot insn. (gen_far_branch): Emit stuff_delay_slot pattern. From-SVN: r55878
2002-07-30* unroll.c (copy_loop_body): Don't copy NOTE_INSN_LOOP_CONT.J"orn Rennecke2-6/+10
From-SVN: r55877
2002-07-30fold-const.c: Fix comment typos.Kazu Hirata4-3/+9
* fold-const.c: Fix comment typos. * gcse.c: Likewise. * reload1.c: Likewise. From-SVN: r55876
2002-07-30rs6000.md: Disallow CCEQ compare with crnor/crnot for TARGET_SPE.Aldy Hernandez2-1/+6
2002-07-29 Aldy Hernandez <aldyh@redhat.com> * config/rs6000/rs6000.md: Disallow CCEQ compare with crnor/crnot for TARGET_SPE. From-SVN: r55875
2002-07-30c-pretty-print.h (pp_c_statement): Declare.Gabriel Dos Reis3-7/+261
* c-pretty-print.h (pp_c_statement): Declare. * c-pretty-print.c (pp_c_postfix_expression): #if 0 support for SRCLOC. (pp_c_statement): Define. From-SVN: r55874
2002-07-30alpha.h, [...] (ASM_OUTPUT_LABEL): Delete definition.Kaveh R. Ghazi38-262/+25
* alpha.h, arc.h, arm/aout.h, avr.h, c4x.h, cris.h, d30v.h, darwin.h, dsp16xx.h, fr30.h, h8300.h, i370.h, i386.h, i960.h, ip2k.h, m32r.h, m68hc11.h, m68k.h, m88k.h, mcore.h, mips.h, mn10200.h, mn10300.h, ns32k.h, pa/pa-linux.h, pdp11.h, romp.h, rs6000/sysv4.h, s390/linux.h, sh.h, sparc.h, stormy16.h, v850.h, vax.h, xtensa.h (ASM_OUTPUT_LABEL): Delete definition. * defaults.h (ASM_OUTPUT_LABEL): Provide a default. * doc/tm.texi (ASM_OUTPUT_LABEL): Update docs. From-SVN: r55872
2002-07-30* cp-tree.h (VF_DERIVED_VALUE): Restore from previous deletion.Gabriel Dos Reis2-0/+6
From-SVN: r55871
2002-07-30Daily bump.GCC Administrator3-3/+3
From-SVN: r55870
2002-07-30c-pretty-print.c (pp_c_primary_expression): Handle STMT_EXPR.Gabriel Dos Reis2-1/+38
* c-pretty-print.c (pp_c_primary_expression): Handle STMT_EXPR. (pp_c_postfix_expression): Handle ARROW_EXPR, FFS_EXPR, COMPOUND_LITERAL_EXPR, VA_ARG_EXPR. (pp_c_expression): Update. From-SVN: r55864
2002-07-30cp-tree.h (CLASSTYPE_VFIELDS, VF_*, BV_*): Add more documentation.Nathan Sidwell2-12/+22
* cp-tree.h (CLASSTYPE_VFIELDS, VF_*, BV_*): Add more documentation. From-SVN: r55863
2002-07-30adadecode.c (ada_demangle): Use xstrdup in lieu of xmalloc/strcpy.Kaveh R. Ghazi13-97/+49
ada: * adadecode.c (ada_demangle): Use xstrdup in lieu of xmalloc/strcpy. * misc.c (gnat_decode_option): Likewise. gcc: * alpha/vms-cc.c (preprocess_args, main): Use xstrdup and/or concat in lieu of xmalloc/strcpy/memcpy/sprintf. * alpha/vms-ld.c (main): Likewise. * dsp16xx.c (double_reg_to_memory): Likewise. * mcore.c (mcore_expand_prolog): Likewise. * cppfiles.c (read_name_map): Likewise. * gensupport.c (process_rtx, identify_predicable_attribute, alter_test_for_insn): Likewise. * vmsdbgout.c (write_rtnbeg, vmsdbgout_init): Likewise. f: * com.c (read_name_map): Use concat in lieu of xmalloc/strcpy. From-SVN: r55861
2002-07-30builtins.c (expand_builtin): Change the default behavior to only issue an ↵Roger Sayle2-15/+11
error if... * builtins.c (expand_builtin): Change the default behavior to only issue an error if the builtin function doesn't have a fallback library call. Remove several cases handled by the new default. From-SVN: r55860
2002-07-30real.c (ieee_24, [...]): Define only if the floating point format of the ↵John David Anglin2-0/+11
target is IEEE. * real.c (ieee_24, ieee_53, ieee_64, ieee_113): Define only if the floating point format of the target is IEEE. * (dec_f, dec_d, dec_g, dec_h): Define only if the floating point format of the target is DEC. From-SVN: r55859
2002-07-29unroll.c (verify_addresses): Remove.Richard Henderson2-132/+7
* unroll.c (verify_addresses): Remove. (find_splittable_givs): Never split DEST_ADDR givs. From-SVN: r55858
2002-07-29gty.texi (GGC Roots): Clarify that the list of syntaxes is exhaustive.Geoffrey Keating3-8/+62
* doc/gty.texi (GGC Roots): Clarify that the list of syntaxes is exhaustive. (Files): Improve documentation on generated source files. * doc/extend.texi (Translation implementation): Document what diagnostics look like. (Identifiers implementation): Document that there's normally no limit on identifier names. (Integers implementation): Document two's complement. (Hints implementation): Document that GCC honours 'inline', mostly. (Preprocessing directives implementation): Document that GCC requires the current time. From-SVN: r55857
2002-07-29c-pretty-print.h (struct c_pretty_print_info): Add new member.Gabriel Dos Reis3-6/+162
2002-07-30 Gabriel Dos Reis <gdr@nerim.net> * c-pretty-print.h (struct c_pretty_print_info): Add new member. (pp_initializer): New macro. (pp_c_initializer): Declare. * c-pretty-print.c (pp_c_primary_expression): HAndle TARGET_EXPR. (pp_c_initializer): Define. (pp_c_initializer_list): New function. (pp_c_postfix_expression): Handle ABS_EXPR, COMPLEX_CST, VECTOR_CST, CONSTRUCTOR. (pp_c_unary_expression): Handle CONJ_EXPR, REALPART_EXPR, IMAGPART_EXPR. (pp_c_cast_expression): Handle FLOAT_EXPR. (pp_c_assignment_expression): Handle INIT_EXPR. (pp_c_expression): Update. From-SVN: r55856
2002-07-29objc-act.c (objc_init): Return immediately if filename is NULL.Neil Booth2-0/+7
* objc/objc-act.c (objc_init): Return immediately if filename is NULL. From-SVN: r55853
2002-07-29elf.h: Remove ecoff.h and gofast includes.Eric Christopher21-370/+121
2002-07-29 Eric Christopher <echristo@redhat.com> * config/mips/elf.h: Remove ecoff.h and gofast includes. (DWARF2_DEBUGGING_INFO, DBX_DEBUGGING_INFO): Define unconditionally. (SDB_DEBUGGING_INFO): Undefine. (PREFERRED_DEBUGGING_TYPE): Set to DWARF2_DEBUG. (PUT_SDB_SIZE): Remove. (SUBTARGET_ASM_DEBUGGING_SPEC): Redefine. (STARTFILE_SPEC): Add isa3264 define. * config/mips/elf64.h: Ditto. Move TARGET_MEM_FUNCTIONS from here... * config/mips/ecoff.h: Remove. and here... * config/mips/iris3.h: and here... * config/mips/sni-svr4.h: and here... * config/mips/mips.h: To here. Remove OBJECT_FORMAT_ROSE ifdefs. Add assembler -mmdebug options for non-dwarf debugging. * config/mips/r3900.h: Remove debug info defines. * config/mips/isa32-linux.h: Remove, move functionality to config.gcc. * config/mips/isa3264.h: Ditto. * config/mips/t-isa3264: Fix up for file removal and gofast configure change. * config/mips/t-elf: Ditto. * config/mips/t-ecoff: Ditto. * config/mips/t-r3900: Ditto. * config/mips/t-iris5-6: Ditto. * config/mips/t-isa3264: Ditto. * config/mips/t-linux: Remove. * config/mips/t-netbsd: Remove. * config/mips/t-mips: New file. * config/mips/t-gofast: Ditto. * config/mips/netbsd.h: Remove unnecessary undefines. * config/mips/linux.h: Remove #include of mips.h. * config.gcc: Add mips.h include for elf targets. Remove tm_file for ecoff. Add gofast configure option for mips. From-SVN: r55852
2002-07-29configure.in (mips*-*-*): Add a test to see if MIPS libgloss linker scripts ↵Chris Demetriou7-2/+93
use STARTUP directives... 2002-07-29 Chris Demetriou <cgd@broadcom.com> * configure.in (mips*-*-*): Add a test to see if MIPS libgloss linker scripts use STARTUP directives consistently. * configure: Regenerate. * config.in: Regenerate. * config/mips/elf.h (STARTFILE_SPEC): Define conditionally, based on whether HAVE_MIPS_LIBGLOSS_STARTUP_DIRECTIVES is defined. * config/mips/elf64.h (STARTFILE_SPEC): Likewise. * config/mips/isa3264.h (STARTFILE_SPEC): Do not redefine if HAVE_MIPS_LIBGLOSS_STARTUP_DIRECTIVES is set; the result will be the same. From-SVN: r55851
2002-07-29* config/rs6000/rs6000.md ("cpu"): Add ppc8540 to attribute.Aldy Hernandez2-1/+5
From-SVN: r55850
2002-07-29rs6000.h (RTX_COSTS): Add MULT case for 8540.Aldy Hernandez2-0/+5
2002-07-29 Aldy Hernandez <aldyh@redhat.com> * config/rs6000/rs6000.h (RTX_COSTS): Add MULT case for 8540. From-SVN: r55849
2002-07-29rs6000.md: Move altivec patterns from here...Aldy Hernandez3-1880/+1905
2002-07-29 Aldy Hernandez <aldy@quesejoda.com> * config/rs6000/rs6000.md: Move altivec patterns from here... * config/rs6000/altivec.md: ...to here. From-SVN: r55848
2002-07-29spe.md ("spe_evmra"): Change to unspec.Aldy Hernandez2-1/+6
2002-07-29 Aldy Hernandez <aldyh@redhat.com> * config/rs6000/spe.md ("spe_evmra"): Change to unspec. From-SVN: r55847