aboutsummaryrefslogtreecommitdiff
path: root/gcc/config/alpha
AgeCommit message (Collapse)AuthorFilesLines
2002-09-27extend.texi (tls_model): Document.Jakub Jelinek1-16/+1
* doc/extend.texi (tls_model): Document. * varasm.c (decl_tls_model): New. * c-common.c (handle_tls_model_attribute): New. (c_common_attribute_table): Add tls_model. * config/alpha/alpha.c (alpha_encode_section_info): Use decl_tls_model. * flags.h (enum tls_model, flag_tls_default): Move... * tree.h (enum tls_model, flag_tls_default): ...here. (decl_tls_model): New prototype. * config/ia64/ia64.c (ia64_encode_section_info): Likewise. * config/i386/i386.c (ix86_encode_section_info): Likewise. * config/i386/i386.md (tls_global_dynamic, tls_local_dynamic_base): Allow !flag_pic. From-SVN: r57588
2002-09-24elfos.h: Follow spelling conventions.Kazu Hirata1-1/+1
* config/elfos.h: Follow spelling conventions. * config/alpha/alpha.h: Likewise. * config/arc/arc.h: Likewise. * config/arm/arm.md: Likewise. * config/avr/avr.h: Likewise. * config/cris/cris.md: Likewise. * config/d30v/d30v.h: Likewise. * config/frv/frv.c: Likewise. * config/frv/frv.h: Likewise. * config/h8300/h8300.c: Likewise. * config/h8300/h8300.h: Likewise. * config/h8300/h8300.md: Likewise. * config/i386/cygwin.h: Likewise. * config/i386/i386.h: Likewise. * config/i386/sysv3.h: Likewise. * config/i960/i960.h: Likewise. * config/ia64/ia64.h: Likewise. * config/ia64/ia64.md: Likewise. * config/ip2k/ip2k.h: Likewise. * config/m32r/m32r.h: Likewise. * config/m68k/m68k.h: Likewise. * config/m88k/m88k.h: Likewise. * config/mcore/mcore.c: Likewise. * config/mcore/mcore.h: Likewise. * config/mcore/mcore.md: Likewise. * config/mips/mips.h: Likewise. * config/mmix/mmix.h: Likewise. * config/mmix/mmix.md: Likewise. * config/ns32k/netbsd.h: Likewise. * config/ns32k/ns32k.h: Likewise. * config/ns32k/ns32k.md: Likewise. * config/pa/pa.h: Likewise. * config/romp/romp.h: Likewise. * config/rs6000/rs6000.h: Likewise. * config/rs6000/rs6000.md: Likewise. * config/sparc/sparc.h: Likewise. * config/stormy16/stormy-abi: Likewise. * config/stormy16/stormy16.h: Likewise. * config/vax/vax.h: Likewise. From-SVN: r57468
2002-09-21real.c (struct real_format): Move to real.h.Richard Henderson3-1/+17
* real.c (struct real_format): Move to real.h. (real_format_for_mode): Rename from fmt_for_mode; update all users; initialize with ieee defaults. (real_to_target_fmt, real_from_target_fmt): New. (ieee_single_format, ieee_double_format, ieee_extended_motorola_format, ieee_extended_intel_96_format, ieee_extended_intel_128_format, ieee_quad_format, i370_single_format, i370_double_format, c4x_single_format, c4x_extended_format): Rename from s/_format//. (ieee_quad_format): Fix emin. (format_for_size, init_real_once): Remove. * real.h (struct real_format): Move from real.c. (real_format_for_mode): Declare. (real_to_target_fmt, real_from_target_fmt): Declare. (ieee_single_format, ieee_double_format, ieee_extended_motorola_format, ieee_extended_intel_96_format, ieee_extended_intel_128_format, ieee_quad_format, vax_f_format, vax_d_format, vax_g_format, i370_single_format, i370_double_format, c4x_single_format, c4x_extended_format): Declare. * toplev.c (do_compile): Don't call init_real_once. * defaults.h (INTEL_EXTENDED_IEEE_FORMAT): Remove. * doc/tm.texi (INTEL_EXTENDED_IEEE_FORMAT): Remove. * config/alpha/alpha.h (TARGET_FLOAT_FORMAT): Define. * config/alpha/osf5.h (LONG_DOUBLE_TYPE_SIZE): 64, if vax mode. * config/alpha/alpha.c (override_options): Set real_format_for_mode for VAX, if enabled. * config/c4x/c4x.c (c4x_override_options): Set real_format_for_mode for C4X. * config/i370/i370.h (OVERRIDE_OPTIONS): New. * config/i370/i370.c (override_options): New. * config/i370/i370-protos.h: Update. * config/i386/i386.c (override_options): Set real_format_for_mode for Intel 80-bit extended. * config/i386/i386.h (INTEL_EXTENDED_IEEE_FORMAT): Remove. * config/i960/i960.h (LONG_DOUBLE_TYPE_SIZE): Mind -mlong-double-64. (OVERRIDE_OPTIONS): Move code... * config/i960/i960.c (i960_initialize): ... here. Set real_format_for_mode for Intel 80-bit extended. * config/ia64/ia64.c (ia64_override_options): Set real_format_for_mode for Intel 80-bit extended, if enabled. * config/m68k/m68k.c (override_options): Set real_format_for_mode for Motorola 96-bit extended. * config/vax/vax.h (OVERRIDE_OPTIONS): New. * config/vax/vax.c (override_options): New. * config/vax/vax-protos.h: Update. From-SVN: r57388
2002-09-17alpha.c: Follow spelling conventions.Kazu Hirata3-8/+8
* config/alpha/alpha.c: Follow spelling conventions. * config/alpha/alpha.h: Likewise. * config/alpha/alpha.md: Likewise. * config/arc/arc.h: Likewise. * config/arm/arm.c: Likewise. * config/arm/arm.h: Likewise. * config/arm/arm.md: Likewise. * config/arm/pe.c: Likewise. * config/arm/unknown-elf.h: Likewise. * config/avr/avr.c: Likewise. * config/avr/avr.h: Likewise. * config/c4x/c4x.c: Likewise. * config/cris/cris.c: Likewise. * config/cris/cris.h: Likewise. From-SVN: r57266
2002-09-16real.c, real.h: Rewrite from scratch.Richard Henderson2-82/+0
gcc/ * real.c, real.h: Rewrite from scratch. * Makefile.in (simplify-rtx.o): Depend on TREE_H. (paranoia): New target. * builtins.c (fold_builtin_inf): Use new real.h interface. * c-common.c (builtin_define_with_hex_fp_value): Likewise. * c-lex.c (interpret_float): Likewise. * emit-rtl.c (gen_lowpart_common): Likewise. * optabs.c (expand_float): Use real_2expN. * config/ia64/ia64.md (divsi3, udivsi3): Likewise. * defaults.h (INTEL_EXTENDED_IEEE_FORMAT): New. (FLOAT_WORDS_BIG_ENDIAN): New. * cse.c (find_comparison_args): Don't pass FLOAT_STORE_FLAG_VALUE directly to REAL_VALUE_NEGATIVE. * loop.c (canonicalize_condition): Likewise. * simplify-rtx.c: Include tree.h. (simplify_unary_operation): Don't handle FIX and UNSIGNED_FIX with floating-point result modes. * toplev.c (backend_init): Call init_real_once. * fold-const.c (force_fit_type): Don't call CHECK_FLOAT_VALUE. * tree.c (build_real): Likewise. * config/alpha/alpha.c, config/vax/vax.c (float_strings, float_values, inited_float_values, check_float_value): Remove. * config/alpha/alpha.h, config/m68hc11/m68hc11.h, config/m88k/m88k.h, config/vax/vax.h (CHECK_FLOAT_VALUE): Remove. * doc/tm.texi (CHECK_FLOAT_VALUE): Remove. gcc/f/ * target.c (ffetarget_real1): Don't pass FFETARGET_ATOF_ directly to ffetarget_make_real1. (ffetarget_real2): Similarly. * target.h (ffetarget_cvt_r1_to_rv_, ffetarget_cvt_rv_to_r2_, ffetarget_cvt_r2_to_rv_): Use new real.h interface and simplify. gcc/java/ * jcf-parse.c (get_constant): Runtime check for IEEE format; use new real.h interface. * jcf-write.c (find_constant_index): Use new real.h interface. * lex.c (IS_ZERO): Use REAL_VALUES_EQUAL. contrib/ * paranoia.cc: New file. From-SVN: r57198
2002-09-13alpha.md (attr type): Add callpal.Richard Henderson5-6/+18
* config/alpha/alpha.md (attr type): Add callpal. (imb, trap, load_tp, set_tp): Use it. * config/alpha/ev4.md (ev4_callpal): New. * config/alpha/ev5.md (ev5_callpal): New. * config/alpha/ev6.md (ev6_ibr): Handle callpal. * config/alpha/alpha.c (alphaev4_insn_pipe): Handle TYPE_CALLPAL. (alphaev5_insn_pipe): Likewise. From-SVN: r57113
2002-09-08re PR target/7374 (__builtin_fabsl broken on alpha)Scott Snyder1-1/+1
2002-09-07 Scott Snyder <snyder@fnal.gov> PR target/7374 * config/alpha/alpha.md (abstf2): Fix typo: 'neg' for 'abs'. From-SVN: r56936
2002-08-30alpha.h (TARGET_CPU_CPP_BUILTINS): Move language- related defines to...Jason Thorpe2-14/+29
* config/alpha/alpha.h (TARGET_CPU_CPP_BUILTINS): Move language- related defines to... (SUBTARGET_LANGUAGE_CPP_BUILTINS): ...here. * config/alpha/netbsd.h (SUBTARGET_LANGUAGE_CPP_BUILTINS): Redefine as a no-op. From-SVN: r56684
2002-08-29chorus.h: Consistently define *_DEBUGGING_INFO with the value 1.Jason Thorpe3-7/+7
* config/chorus.h: Consistently define *_DEBUGGING_INFO with the value 1. Do not undef before defining. * config/darwin.h: Likewise. * config/dbx.h: Likewise. * config/dbxcoff.h: Likewise. * config/dbxelf.h: Likewise. * config/elfos.h: Likewise. * config/interix.h: Likewise. * config/lynx-ng.h: Likewise. * config/lynx.h: Likewise. * config/netware.h: Likewise. * config/psos.h: Likewise. * config/svr3.h: Likewise. * config/alpha/alpha.h: Likewise. * config/alpha/elf.h: Likewise. * config/alpha/vms.h: Likewise. * config/arc/arc.h: Likewise. * config/arm/aout.h: Likewise. * config/arm/coff.h: Likewise. * config/c4x/c4x.h: Likewise. * config/h8300/h8300.h: Likewise. * config/i386/cygwin.h: Likewise. * config/i386/djgpp.h: Likewise. * config/i386/gas.h: Likewise. * config/i386/gstabs.h: Likewise. * config/i386/i386-coff.h: Likewise. * config/i386/i386-interix.h: Likewise. * config/i386/sco5.h: Likewise. * config/i386/svr3dbx.h: Likewise. * config/i386/sysv3.h: Likewise. * config/i386/win32.h: Likewise. * config/i386/x86-64.h: Likewise. * config/i960/i960.h: Likewise. * config/ia64/ia64.h: Likewise. * config/ip2k/ip2k.h: Likewise. * config/m32r/m32r.h: Likewise. * config/m68k/3b1.h: Likewise. * config/m68k/3b1g.h: Likewise. * config/m68k/ccur-GAS.h: Likewise. * config/m68k/coff.h: Likewise. * config/m68k/hp2bsd.h: Likewise. * config/m68k/hp310g.h: Likewise. * config/m68k/hp320g.h: Likewise. * config/m68k/hp3bsd.h: Likewise. * config/m68k/hp3bsd44.h: Likewise. * config/m68k/linux-aout.h: Likewise. * config/m68k/m68k-aout.h: Likewise. * config/m68k/mot3300.h: Likewise. * config/m68k/netbsd.h: Likewise. * config/m68k/openbsd.h: Likewise. * config/m68k/pbb.h: Likewise. * config/m68k/plexus.h: Likewise. * config/m68k/sun2.h: Likewise. * config/m68k/sun3.h: Likewise. * config/m68k/tower-as.h: Likewise. * config/m68k/vxm68k.h: Likewise. * config/m88k/aout-dbx.h: Likewise. * config/m88k/m88k-aout.h: Likewise. * config/mcore/mcore-elf.h: Likewise. * config/mcore/mcore-pe.h: Likewise. * config/mips/elf.h: Likewise. * config/mips/elf64.h: Likewise. * config/mips/iris5gas.h: Likewise. * config/mips/iris6.h: Likewise. * config/mips/mips.h: Likewise. * config/mips/sni-gas.h: Likewise. * config/mmix/mmix.h: Likewise. * config/ns32k/netbsd.h: Likewise. * config/pa/pa64-hpux.h: Likewise. * config/romp/romp.h: Likewise. * config/rs6000/sysv4.h: Likewise. * config/rs6000/xcoff.h: Likewise. * config/sh/coff.h: Likewise. * config/sh/elf.h: Likewise. * config/sparc/linux64.h: Likewise. * config/sparc/liteelf.h: Likewise. * config/sparc/netbsd.h: Likewise. * config/sparc/openbsd.h: Likewise. * config/sparc/pbd.h: Likewise. * config/sparc/sp64-elf.h: Likewise. * config/sparc/sp86x-elf.h: Likewise. * config/sparc/sparc.h: Likewise. * config/vax/vax.h: Likewise. * config/vax/vaxv.h: Likewise. From-SVN: r56667
2002-08-21tree.c (finish_vector_type): Fix a typo in a comment.Stan Shebs5-5/+5
* tree.c (finish_vector_type): Fix a typo in a comment. * Makefile.in: Fix "the the" stutters in comments. * genautomata.c: Ditto. * ifcvt.c: Ditto. * regrename.c: Ditto. * config/alpha/alpha.c: Ditto. * config/alpha/vms-crt0-64.c: Ditto. * config/alpha/vms-crt0.c: Ditto. * config/alpha/vms-psxcrt0-64.c: Ditto. * config/alpha/vms-psxcrt0.c: Ditto. * config/d30v/d30v.h: Ditto. * config/fr30/fr30.h: Ditto. * config/rs6000/rs6000.c: Ditto. * config/stormy16/stormy16.h: Ditto. * doc/md.texi: Ditto. From-SVN: r56496
2002-08-21alpha.c (TARGET_ASM_GLOBALIZE_LABEL): Define for unicosmk.Kaveh R. Ghazi4-9/+5
* alpha.c (TARGET_ASM_GLOBALIZE_LABEL): Define for unicosmk. * alpha/elf.h (ASM_OUTPUT_EXTERNAL_LIBCALL, ASM_OUTPUT_ALIGNED_BSS): Use target hook. * alpha/osf.h (ASM_OUTPUT_WEAK_ALIAS): Likewise. * alpha/unicosmk.h (ASM_GLOBALIZE_LABEL): Delete. * arm/aof.h (ASM_GLOBALIZE_LABEL): Likewise. (GLOBAL_ASM_OP): Define. * arm.c (aof_globalize_label): New function. (TARGET_ASM_GLOBALIZE_LABEL): Define for AOF. * arm/unknown-elf.h (ASM_OUTPUT_ALIGNED_BSS): Use target hook. * c4x.c (c4x_globalize_label): New function. (TARGET_ASM_GLOBALIZE_LABEL): Define for c4x. * c4x.h (ASM_GLOBALIZE_LABEL): Delete. (GLOBAL_ASM_OP): Define. * cris/aout.h (ASM_OUTPUT_EXTERNAL_LIBCALL): Use target hook. * darwin-protos.h (darwin_globalize_label): Declare. * darwin.c (darwin_globalize_label): New function. * darwin.h (ASM_DECLARE_CLASS_REFERENCE): Use target hook. (ASM_GLOBALIZE_LABEL): Delete. (GLOBAL_ASM_OP, TARGET_ASM_GLOBALIZE_LABEL): Define. * dsp16xx.c (asm_output_common): Use target hook. * elfos.h (ASM_OUTPUT_EXTERNAL_LIBCALL): Likewise. * frv.h (ASM_GLOBALIZE_LABEL): Delete. (GLOBAL_ASM_OP): Define. * i370.c (i370_globalize_label): New function. (TARGET_ASM_GLOBALIZE_LABEL): Define for i370. * i370.h (ASM_GLOBALIZE_LABEL): Delete. * i386.c (ix86_asm_file_end): Use target hook. * i386/sco5.h (ASM_GLOBALIZE_LABEL): Don't undef. (ASM_OUTPUT_EXTERNAL_LIBCALL): Use target hook. * ia64.c (ia64_asm_output_external): Likewise. * ia64/sysv4.h: Update comment. * m32r.h (ASM_OUTPUT_ALIGNED_BSS): Use target hook. * mips/elf.h (ASM_OUTPUT_ALIGNED_BSS): Likewise. * mips/iris5.h (ASM_OUTPUT_WEAK_ALIAS): Use target hook. * mips/linux.h (ASM_OUTPUT_ALIGNED_BSS): Likewise. * mips.h (ASM_OUTPUT_ALIGNED_DECL_COMMON): Use target hook. * mmix-protos.h (mmix_asm_globalize_label): Delete. * mmix.c (mmix_asm_globalize_label): Likewise. * mmix.h (ASM_GLOBALIZE_LABEL): Likewise. (GLOBAL_ASM_OP): Define. * ns32k.c (ns32k_globalize_label): New function. * ns32k.h (TARGET_ASM_GLOBALIZE_LABEL): Define for ns32k. (ASM_GLOBALIZE_LABEL): Delete. * pa/pa-linux.h (ASM_GLOBALIZE_LABEL): Don't undef. (TARGET_ASM_GLOBALIZE_LABEL): Undefine. * pa.c (pa_globalize_label): New function. * pa.h (ASM_GLOBALIZE_LABEL): Delete. (TARGET_ASM_GLOBALIZE_LABEL): Define for pa. * rs6000/darwin.h (ASM_GLOBALIZE_LABEL): Delete. (GLOBAL_ASM_OP): Define. (TARGET_ASM_GLOBALIZE_LABEL): Undef. * rs6000/sysv4.h (ASM_OUTPUT_ALIGNED_BSS): Use target hook. * rs6000/xcoff.h (ASM_GLOBALIZE_LABEL): Delete. (GLOBAL_ASM_OP): Define. * v850.c (v850_output_aligned_bss): Use target hook. * vax.c (vms_globalize_label): New function. (TARGET_ASM_GLOBALIZE_LABEL): Define for vms. * vax/vms.h (ASM_GLOBALIZE_LABEL): Delete. (GLOBAL_ASM_OP): Define. * defaults.h (ASM_GLOBALIZE_LABEL): Delete. * doc/tm.texi: Update docs. * dwarf2out.c (default_eh_frame_section, output_die_symbol): Use target hook. * final.c (output_alternate_entry_point): Likewise. * hooks.c (hook_FILEptr_constcharptr_void): New function. * hooks.h (hook_FILEptr_constcharptr_void): Declare. * output.h (assemble_global): Delete. (default_globalize_label): Declare. * system.h (ASM_GLOBALIZE_LABEL): Poison. * target-def.h (TARGET_ASM_GLOBALIZE_LABEL): Define. (TARGET_ASM_OUT): Add TARGET_ASM_GLOBALIZE_LABEL. * target.h (gcc_target): Add globalize_label member. * varasm.c (asm_output_bss, asm_output_aligned_bss, globalize_decl): Use target hook. (assemble_global): Delete. (default_globalize_label): New function. From-SVN: r56478
2002-08-15alpha-protos.h: Update.Douglas B Rupp4-81/+307
* config/alpha/alpha-protos.h: Update. * config/alpha/alpha.c: (LINKAGE_SYMBOL_REF_P): New macro. (alpha_legitimate_address_p): Test LINKAGE_SYMBOL_REF_P. (alpha_linkage_symbol_p): New static function. (print_operand_address): Print linkage operand. (alpha_funcs_num, alpha_funcs_tree, alpha_links_tree): New static variables. (reloc_kind): New enum. (struct alpha_funcs): New struct. (struct alpha_links): Add reloc_kind field. Rename links_kind field. (alpha_need_linkage): Rewrite. (alpha_use_linkage): New global function. (alpha_write_linkage): Rewrite and make static. (alpha_write_one_linkage): Rewrite (alpha_start_function): Remove procedure descriptor output. (alpha_end_function): Write linkages at end of each function. * config/alpha/alpha.md (call_vms, call_value_vms): Rewrite. (call_vms_1, call_value_vms_1): Rewrite. * config/alpha/vms.h (ASM_FILE_END): Remove. From-SVN: r56338
2002-08-14calls.c: Include target.h.Richard Henderson2-13/+8
* calls.c: Include target.h. * Makefile.in (calls.o): Update. * config/alpha/alpha.c (alpha_end_function): Use targetm.binds_local_p. * config/alpha/alpha.h (FUNCTION_OK_FOR_SIBCALL): Likewise. From-SVN: r56335
2002-08-11alpha.h (TARGET_CPU_CPP_BUILTINS): Replace reference to clk_objective_c with ↵Ziemowit Laski1-1/+1
flag_objc. 2002-08-10 Ziemowit Laski <zlaski@apple.com> * config/alpha/alpha.h (TARGET_CPU_CPP_BUILTINS): Replace reference to clk_objective_c with flag_objc. * config/i386/i386-interix.h (TARGET_OS_CPP_BUILTINS): Likewise. * config/mips/mips.h (TARGET_CPU_CPP_BUILTINS): Likewise. From-SVN: r56189
2002-08-04Index: ChangeLogGeoffrey Keating1-2/+2
2002-08-04 Geoffrey Keating <geoffk@redhat.com> * Makefile.in (sdbout.o): Doesn't need $(OBSTACK_H). * collect2.h (permanent_obstack): Delete declaration. * collect2.c (permanent_obstack): Delete definition. (main): Don't initialise permanent_obstack. Use xstrdup instead. * expr.c: Don't include obstack.h. (permanent_obstack): Delete declaration. * function.c: Don't include obstack.h. (permanent_obstack): Delete declaration. * integrate.c: Don't include obstack.h. (function_maybepermanent_obstack): Delete declaration. * print-tree.c (debug_tree): Use x*alloc not permalloc. * sdbout.c (gen_fake_label): Use x*alloc not permalloc. * tlink.c (pfgets): Use xstrdup not permanent_obstack. * toplev.c (lang_independent_init): Rename init_obstacks to init_ttree. * tree.h: Rename init_obstacks to init_ttree. Remove declarations of permalloc, expralloc, perm_calloc. * tree.c (permanent_obstack): Delete definition. (init_ttree): Rename from init_obstacks. (permalloc): Delete. (perm_calloc): Delete. (dump_tree_statistics): Don't print information about permanent_obstack. * varasm.c (assemble_start_function): Use xstrdup instead of permalloc/strcpy. (assemble_variable): Likewise. * config/alpha/alpha.c (unicosmk_need_dex): Use xmalloc instead of permalloc. (unicosmk_add_extern): Likewise. * config/c4x/c4x.c (c4x_external_ref): Likewise. (c4x_global_label): Likewise. * config/frv/frv.c (frv_encode_section_info): Likewise. * config/i386/winnt.c (i386_pe_record_external_function): Likewise. (i386_pe_record_exported_symbol): Likewise. * config/mips/mips.c (mips_output_external): Likewise. (mips_output_external_libcall): Likewise. * config/pa/pa.c: (permanent_obstack): Delete declaration. (output_call): Use ggc_strdup instead of allocating on permanent_obstack. * config/romp/romp.c: Include ggc.h. (get_symref): Don't declare permanent_obstack, use ggc_strdup intead of permanent_obstack. * config/rs6000/aix31.h (ASM_OUTPUT_EXTERNAL): Use concat instead of permalloc. * config/rs6000/rs6000.c (rs6000_gen_section_name): Use xmalloc instead of permalloc * config/rs6000/xcoff.h (ASM_OUTPUT_EXTERNAL): Use concat instead of permalloc. * config/vax/vax.c (vms_check_external): Use xmalloc instead of permalloc. Index: cp/ChangeLog 2002-08-04 Geoffrey Keating <geoffk@redhat.com> * cvt.c (ocp_convert): Delete obsolete code. * parse.y (permanent_obstack): Delete declaration. * pt.c (permanent_obstack): Delete declaration. * repo.c (permanent_obstack): Delete declaration. (open_repo_file): Use xmalloc instead of permanent_obstack. (init_repo): Use xstrdup instead of permanent_obstack. Index: java/ChangeLog 2002-08-04 Geoffrey Keating <geoffk@redhat.com> * class.c: (permanent_obstack): Delete declaration. * constants.c: (permanent_obstack): Delete declaration. * except.c: (permanent_obstack): Delete declaration. * expr.c: (permanent_obstack): Delete declaration. * jcf-parse.c: (permanent_obstack): Delete declaration. (saveable_obstack): Delete declaration. * parse.h: (permanent_obstack): Delete declaration. * typeck.c: (permanent_obstack): Delete declaration. From-SVN: r56035
2002-07-31* alpha.h, arc.h, arm/aout.h, avr.h, cris.h, d30v.h, dsp16xx.h,Kaveh R. Ghazi1-5/+2
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-30alpha.h, [...] (ASM_OUTPUT_LABEL): Delete definition.Kaveh R. Ghazi1-6/+0
* 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-30adadecode.c (ada_demangle): Use xstrdup in lieu of xmalloc/strcpy.Kaveh R. Ghazi2-18/+5
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-28freebsd.h (TARGET_OS_CPP_BUILTINS): Add missing backslash.Kaveh R. Ghazi1-1/+1
* alpha/freebsd.h (TARGET_OS_CPP_BUILTINS): Add missing backslash. From-SVN: r55816
2002-07-25defaults.h (ASM_OUTPUT_TYPE_DIRECTIVE, [...]): New default definitions of ↵Zack Weinberg1-25/+5
new macros. * defaults.h (ASM_OUTPUT_TYPE_DIRECTIVE, ASM_OUTPUT_SIZE_DIRECTIVE, ASM_OUTPUT_MEASURED_SIZE): New default definitions of new macros. * doc/tm.texi: Document them. Also document SIZE_ASM_OP, TYPE_ASM_OP, and TYPE_OPERAND_FMT. * config/elfos.h, config/netbsd-aout.h, config/openbsd.h, config/alpha/elf.h, config/arm/elf.h, config/avr/avr.h, config/cris/aout.h, config/i386/freebsd-aout.h, config/i386/sco5.h, config/ia64/ia64.c, config/ip2k/ip2k.h, config/m68k/m68kelf.h, config/m68k/m68kv4.h, config/m88k/m88k.h, config/mcore/mcore-elf.h, config/mips/elf.h, config/mips/elf64.h, config/mips/iris6.h, config/mips/linux.h, config/pa/pa-linux.h, config/pa/pa64-hpux.h, config/rs6000/sysv4.h, config/xtensa/elf.h, config/xtensa/linux.h: Use the new macros. Where possible, remove redundant definitions of SIZE_ASM_OP, TYPE_ASM_OP, and TYPE_OPERAND_FMT. From-SVN: r55735
2002-07-23dwarf2out.c (SECTION_ASM_OP, [...]): Remove.Neil Booth1-12/+0
* dwarf2out.c (SECTION_ASM_OP, ASM_OUTPUT_DEFINE_LABEL_DIFFERENCE_SYMBOL): Remove. * system.h (SECTION_ASM_OP): Poison. * tree.c (FILE_FUNCTION_PREFIX_LEN): Remove. * config/alpha/alpha-interix.h, config/mips/linux.h (ASM_OUTPUT_DEFINE_LABEL_DIFFERENCE_SYMBOL): Remove. * config/mmix/mmix-protos.h, config/mmix/mmix.c (mmix_asm_output_define_label_difference_symbol): Remove. * config/mmix/mmix.h (ASM_OUTPUT_DEFINE_LABEL_DIFFERENCE_SYMBOL): Remove. cp: * cp-tree.h (FILE_FUNCTION_PREFIX_LEN): Remove. From-SVN: r55690
2002-07-17cpplib.c (do_sccs): Handle #sccs on all systems.Neil Booth1-3/+0
* cpplib.c (do_sccs): Handle #sccs on all systems. * system.h (SCCS_DIRECTIVE): Poison. * config/darwin.h, config/freebsd.h, config/netbsd.h, config/ptx4.h, config/svr3.h, config/svr4.h, config/alpha/elf.h, config/arm/linux-elf.h, config/c4x/c4x.h, config/d30v/d30v.h, config/i370/i370.h, config/i386/gas.h, config/i386/sco5.h, config/i960/i960.h, config/m68hc11/m68hc11.h, config/m68k/3b1.h, config/m68k/3b1g.h, config/m68k/crds.h, config/m68k/mot3300.h, config/m68k/pbb.h, config/m88k/m88k.h, config/mips/mips.h, config/sparc/pbd.h, config/stormy16/stormy16.h, config/vax/vaxv.h: Remove all references to SCCS_DIRECTIVE. * doc/cpp.texi, doc/tm.texi: Update. From-SVN: r55542
2002-07-16builtins.c (std_expand_builtin_va_start): Remove unused first argument.Zack Weinberg3-6/+5
* builtins.c (std_expand_builtin_va_start): Remove unused first argument. (expand_builtin_va_start): Call EXPAND_BUILTIN_VA_START and std_expand_builtin_va_start with just two arguments. * expr.h: Update prototypes. * alpha-protos.h, alpha.h, alpha.c, arc-protos.h, arc.h, arc.c, d30v-protos.h, d30v.h, d30v.c, i386-protos.h, i386.h, i386.c, i960-protos.h, i960.h, i960.c, m88k-protos.h, m88k.h, m88k.c, mips-protos.h, mips.h, mips.c, mn10300-protos.h, mn10300.h, mn10300.c, pa-protos.h, pa.h, pa.c, rs6000-protos.h, rs6000.h, rs6000.c, s390-protos.h, s390.h, s390.c, sh-protos.h, sh.h, sh.c, sparc-protos.h, sparc.h, sparc.c, stormy16-protos.h, stormy16.h, stormy16.c, xtensa-protos.h, xtensa.h, xtensa.c: Remove unused first argument from all implementations of EXPAND_BUILTIN_VA_START and all uses of std_expand_builtin_va_start. From-SVN: r55495
2002-07-16varargs.h: Replace with stub which issues #error.Zack Weinberg2-36/+6
* ginclude/varargs.h: Replace with stub which issues #error. * ginclude/stdarg.h: __builtin_stdarg_start is renamed __builtin_va_start. * builtins.def (BUILT_IN_VARARGS_START): Delete. (BUILT_IN_VA_START): New. * builtins.c (expand_builtin_va_start): Eliminate first argument and code to implement pre-ISO varargs. (std_expand_builtin_va_start): Ignore first argument; it is always 1. (expand_builtin): Handle BUILT_IN_VA_START and BUILT_IN_STDARG_START identically. Delete BUILT_IN_VARARGS_START case. * function.c (assign_parms): Delete hide_last_arg and all its uses. (mark_varargs): Delete function. * function.h (struct function): Delete 'varargs' bit. (current_function_varargs): Delete macro. * tree.h: Don't declare mark_varargs. * c-decl.c (c_function_varargs, c_mark_varargs): Delete. (c_expand_body): Don't call mark_varargs. * c-objc-common.c: Handle BUILT_IN_VA_START and BUILT_IN_STDARG_START identically. Delete BUILT_IN_VARARGS_START case. * c-tree.h: Don't declare c_mark_varargs. * c-parse.in: Remove grammar rules for '&...' (which has been commented out since before 2.7.2) and for '...' in K+R argument declarations. * builtins.c, function.c, integrate.c, sibcall.c, config/alpha/unicosmk.h, config/arc/arc.c, config/arc/arc.h, config/avr/avr.c, config/cris/cris.c, config/fr30/fr30.c, config/i960/i960.c, config/i960/i960.md, config/m32r/m32r.c, config/m32r/m32r.h, config/m88k/m88k.c, config/m88k/m88k.h, config/mips/mips.c, config/mmix/mmix.c, config/mmix/mmix.h, config/mn10300/mn10300.c, config/pa/som.h, config/s390/s390.c, config/sh/sh.c, config/sh/sh.h, config/sparc/sparc.h, config/stormy16/stormy16.c: Delete all references to current_function_varargs, and code predicated on that flag. * config/alpha/alpha.c (alpha_va_start), config/arc/arc.c (arc_va_start), config/i386/i386.c (ix86_va_start), config/mips/mips.c (mips_va_start), config/mn10300/mn10300.c (mn10300_va_start), config/rs6000/rs6000.c (rs6000_va_start), config/s390/s390.c (s390_va_start), config/sh/sh.c (sh_va_start), Ignore first argument; it is always 1. * config/c4x/c4x-protos.h, config/c4x/c4x.c: Delete c4x_va_start. * config/ia64/ia64-protos.h, config/ia64/ia64.c: Delete ia64_va_start. * config/m68hc11/m68hc11-protos.h, config/m68hc11/m68hc11.c: Delete m68hc11_va_start. * config/c4x/c4x.h, config/ia64/ia64.h, config/m68hc11/m68hc11.h: No need to define EXPAND_BUILTIN_VA_START. * doc/invoke.texi, doc/sourcebuild.texi, doc/tm.texi, doc/trouble.texi: Remove references to GCC-provided <varargs.h>. testsuite: * c-torture/execute/991216-3.c, c-torture/execute/strct-varg-1.c, c-torture/execute/va-arg-7.c, c-torture/execute/va-arg-8.c, c-torture/execute/va-arg-15.c, c-torture/execute/va-arg-16.c, c-torture/execute/va-arg-17.c, c-torture/execute/va-arg-19.c: Convert to use <stdarg.h>. * c-torture/execute/va-arg-3.c, c-torture/execute/va-arg-3.x: Delete. * gcc.dg/va-arg-2.c: New. * lib/gcc.exp, lib/objc.exp: Remove code to set -DNO_VARARGS. From-SVN: r55472
2002-07-01tree.h: Modify builtin_function interface to take an extra argument ATTRS...Roger Sayle1-5/+10
* tree.h: Modify builtin_function interface to take an extra argument ATTRS, which is a tree representing an attribute list. * c-decl.c (builtin_function): Accept additional parameter. * objc/objc-act.c (builtin_function): Likewise. * f/com.c (builtin_function): Likewise. * java/decl.c (builtin_function): Likewise. * ada/utils.c (builtin_function): Likewise. * cp/decl.c (builtin_function): Likewise. (builtin_function_1): Likewise. * c-common.c (c_common_nodes_and_builtins): Pass an additional NULL_TREE argument to builtin_function. (builtin_function_2): Likewise. * cp/call.c (build_java_interface_fn_ref): Likewise. * objc/objc-act.c (synth_module_prologue): Likewise. * java/decl.c (java_init_decl_processing): Likewise. * f/com.c (ffe_com_init_0): Likewise. * config/alpha/alpha.c (alpha_init_builtins): Pass an additional NULL_TREE argument builtin_function. * config/arm/arm.c (def_builtin): Likewise. * config/c4x/c4x.c (c4x_init_builtins): Likewise. * config/i386/i386.c (def_builtin): Likewise. * config/ia64/ia64.c (def_builtin): Likewise. * config/rs6000/rs6000.c (def_builtin): Likewise. From-SVN: r55161
2002-06-30i386.c (ix86_init_mmx_sse_builtins): Use build_function_type_list instead of ↵Aldy Hernandez1-13/+6
build_function_type. 2002-06-29 Aldy Hernandez <aldyh@redhat.com> * config/i386/i386.c (ix86_init_mmx_sse_builtins): Use build_function_type_list instead of build_function_type. * config/ia64/ia64.c (ia64_init_builtins): Same. * config/alpha/alpha.c (alpha_init_builtins): Same. * config/rs6000/rs6000.c (altivec_init_builtins): Same. * config/arm/arm.c (arm_init_builtins): Same. * tree.h: Add build_function_type_list prototype. * tree.c (build_function_type_list): New. From-SVN: r55109
2002-06-25alpha.h (TARGET_CPU_CPP_BUILTINS): Remove leading underscore from __IEEE_FP ↵Rainer Orth1-2/+2
and __IEEE_FP_INEXACT. * config/alpha/alpha.h (TARGET_CPU_CPP_BUILTINS): Remove leading underscore from __IEEE_FP and __IEEE_FP_INEXACT. From-SVN: r54998
2002-06-14* config/alpha/alpha.md (builtin_zapnot): Fix op2 mode.Richard Henderson1-1/+1
From-SVN: r54625
2002-06-11c-common.c (builtin_define_type_max): New.Richard Henderson1-2/+0
* c-common.c (builtin_define_type_max): New. (cb_register_builtins): Define __SCHAR_MAX__, __SHRT_MAX__, __INT_MAX__, __LONG_MAX__, __LONG_LONG_MAX__, __CHAR_BIT__. From Joseph S. Myers: * glimits.h: Rewrite to expect the double underscore definitions from the compiler. * config/alpha/unicosmk.h, config/avr/avr.h, config/h8300/h8300.h, config/i386/linux64.h, config/ia64/aix.h, config/ia64/hpux.h, config/ia64/ia64.h, config/m68hc11/m68hc11.h, config/m68hc11/m68hc12.h, config/mips/mips.h, config/mmix/mmix.h, config/mn10200/mn10200.h, config/pa/pa.h, config/rs6000/aix43.h, config/rs6000/aix51.h, config/rs6000/linux64.h, config/s390/linux.h, config/sh/sh.h, config/stormy16/stormy16.h: Don't define any of __SHRT_MAX__, __INT_MAX__, __LONG_MAX__, or __LONG_LONG_MAX__. From-SVN: r54544
2002-06-11alpha.c (ALPHA_BUILTIN_THREAD_POINTER): New.Richard Henderson1-10/+36
* config/alpha/alpha.c (ALPHA_BUILTIN_THREAD_POINTER): New. (ALPHA_BUILTIN_SET_THREAD_POINTER): New. (code_for_builtns): Update. (alpha_init_builtins): Add __builtin_thread_pointer and __builtin_set_thread_pointer. (alpha_expand_builtin): Handle void builtins. * doc/extend.texi (Alpha Built-in Functions): Update. From-SVN: r54543
2002-06-11Delete SEQUENCE rtl usage outside of reorg and ssa passes.David S. Miller2-13/+27
2002-06-05 David S. Miller <davem@redhat.com> Delete SEQUENCE rtl usage outside of reorg and ssa passes. * rtl.h (gen_sequence, emit_insns, emit_insns_before, emit_insns_before_scope, emit_insns_after, emit_insns_after_scope): Delete declaration. * ada/misc.c (insert_code_for): Use emit_insn* instead of emit_insns_foo. * config/alpha/alpha.c (alpha_set_memflags_1): Abort on SEQUENCE. (alpha_set_memflags): Fix comment. (set_frame_related_p): Use get_insns instead of gen_sequence. * config/alpha/alpha.md (setjmp receiver splitter): Avoid emitting no insns. * config/arm/arm.c (arm_finalize_pic): Use get_insns instead of gen_sequence. (arm_gen_load_multiple, arm_gen_store_multiple): Likewise. * config/fr30/fr30.c (fr30_move_double): Likewise. * config/i386/i386.c (ix86_expand_int_movcc, ix86_expand_movstr): Likewise. * config/ia64/ia64.c (spill_restore_mem): Likewise. * config/ia64/ia64.md (conditional move spliiter): Avoid emitting no insns. * config/m32r/m32r.c (gen_split_move_double): Use get_insns instead of gen_sequence. * config/mips/mips.c (embedded_pic_fnaddr_reg): Likewise. (mips_expand_prologue, mips16_gp_pseudo_reg): Likewise. * config/sh/sh.c (sh_need_epilogue): Likewise. * config/sparc/sparc.md (current_function_calls_alloca, flat): New attributes. (setjmp pattern and split): Use them to avoid splitter which emits no RTL. * genattrtab.c (main): Emit include of function.h * config/stormy16/stormy16.c (xstormy16_split_cbranch): Use get_insns instead of gen_sequence. * config/cris/cris.c (cris_split_movdx): Likewise. * emit-rtl.c (emit_insns*): Kill. (try_split): Expect insn list instead of SEQUENCE. (make_jump_insn_raw, make_call_insn_raw): Fix comments. (emit_*insn*): Reimplement to work with INSN lists and PATTERNs. Make them abort if a SEQUENCE is given and RTL checking is enabled. (emit_*_scope): Don't forget to set scope on final insn. (gen_sequence): Move from here... * ssa.c (gen_sequence): To here as private function. * builtins.c (expand_builtin_apply_args): Use emit_insn_foo, fix comments. (expand_builtin_return, expand_builtin_mathfn): Likewise. (expand_builtin_strlen): Use get_insns instead of gen_sequence. (expand_builtin_saveregs): Use emit_insn_foo, fix comments. (expand_builtin_expect_jump): Use get_insns and fix comments. * calls.c (try_to_integrate): Use emit_insn_foo. (expand_call, emit_library_call_value_1): Likewise. * expr.c (emit_queue): Handle insn lists instead of SEQUENCE. (emit_move_insn_1): Use get_insns instead of gen_sequence. (expand_expr): Use emit_insn_foo. * cfgrtl.c (commit_one_edge_insertion): Use emit_insn_foo. * except.c (build_post_landing_pads): Likewise. * flow.c (attempt_auto_inc): Likewise. * stmt.c (expand_fixup, fixup_gotos, expand_nl_handler_label, expand_nl_goto_receivers, expand_decl_cleanup): Likewise. * function.c (fixup_var_refs_insn): Use get_insns instead of gen_sequence. (fixup_var_refs_1): Likewise and expect insn list from gen_foo. (fixup_memory_subreg): Use get_insns instead of gen_sequence. (fixup_stack_1, purge_addressof_1, expand_main_function, get_arg_pointer_save_area): Likewise. (optimize_bit_field, instantiate_virtual_regs_1, assign_parms, expand_function_end): Use emit_insn_foo. (record_insns, keep_stack_depressed): Work with insn list instead of SEQUENCE, fix comments. * ifcvt.c (noce_emit_store_flag, noce_try_store_flag, noce_try_store_flag_constants, noce_try_store_flag_inc, noce_try_store_flag_mask, noce_emit_cmove, noce_try_cmove_arith, noce_try_minmax, noce_try_abs): Use emit_insn_foo. (noce_process_if_block): Use get_insns instead of gen_sequence. * optabs.c (add_equal_note): Work with insn list, fix comments. (expand_binop): Expect insn list from GEN_FCN(), use emit_insn_foo. (expand_unop, expand_complex_abs, expand_unop_insn, expand_no_conflict_block): Likewise. (gen_move_insn): Use get_insns instead of gen_sequence. (gen_cond_trap): Likewise. * integrate.c (copy_rtx_and_substitute): Likewise. (emit_initial_value_sets): Use emit_insn_foo. * reload1.c (emit_output_reload_insns, emit_reload_insns): Likewise. (fixup_abnormal_edges): Avoid losing REG_NOTES more intelligently now that RTL generators give insn lists. * sibcall.c (replace_call_placeholder): Use emit_insn_foo. * doloop.c (doloop_modify, doloop_modify_runtime): Use get_insns instead of gen_sequence. (doloop_optimize): Work with insn lists instead of SEQUENCE rtl. * explow.c (emit_stack_save, emit_stack_restore): Use get_insns instead of gen_sequence. * loop.c (move_movables, emit_prefetch_instructions, gen_add_mult, check_dbra_loop, gen_load_of_final_value): Likewise. (loop_regs_update): Work with insn list instead of SEQUENCE rtl. (product_cheap_p): Likewise, and add commentary about RTL wastage here. * lcm.c (optimize_mode_switching): Use get_insns instead of gen_sequence. * profile.c (gen_edge_profiler): Likewise. * regmove.c (copy_src_to_dest): Likewise. * reg-stack.c (compensate_edge): Likewise and fix comment. * gcse.c (process_insert_insn): Likewise. (insert_insn_end_bb): Work with insn list instead of SEQUENCE rtl. * jump.c (delete_prior_computation): Update comment. * genemit.c (gen_expand, gen_split, main): Use get_insns instead of gen_sequence, update comments to match. * recog.c (peephole2_optimize): Work with insn lists instead of SEQUENCE rtl. * sched-vis.c (print_pattern): Abort on SEQUENCE. * unroll.c (unroll_loop, find_splittable_givs, final_giv_value): Use get_insns instead of gen_sequence. (copy_loop_body): Likewise and don't emit dummy NOTE. * genrecog.c: Don't mention SEQUENCE rtl in comments. * combine.c (try_combine): Expect insn lists from split generator. * reorg.c (relax_delay_slots): Emit SEQUENCE into insn list by hand. From-SVN: r54497
2002-06-10alpha.md (builtin_zap): Fix thinkos expanding mask.Richard Henderson1-4/+4
* config/alpha/alpha.md (builtin_zap): Fix thinkos expanding mask. (builtin_zapnot): Likewise. From-SVN: r54454
2002-06-10ev5.md: Don't combine shift and mvi insns in one reservation.Richard Henderson1-3/+8
* config/alpha/ev5.md: Don't combine shift and mvi insns in one reservation. From-SVN: r54453
2002-06-10Fix typo in comment.Richard Henderson1-2/+2
From-SVN: r54450
2002-06-08netbsd.h (SUBTARGET_EXTRA_SPECS): Add netbsd_link_spec and netbsd_entry_point.Jason Thorpe1-18/+10
* config/alpha/netbsd.h (SUBTARGET_EXTRA_SPECS): Add netbsd_link_spec and netbsd_entry_point. (LINK_SPEC): Use %(netbsd_link_spec). (NETBSD_ENTRY_POINT): Define. From-SVN: r54361
2002-06-05*** empty log message ***Neil Booth1-0/+1
From-SVN: r54287
2002-06-04alpha.c (mode_mask_operand): Simplify without ifdefs.Richard Henderson2-92/+458
* config/alpha/alpha.c (mode_mask_operand): Simplify without ifdefs. (print_operand) ['U']: Likewise. (alpha_expand_unaligned_store): Correct constants for 32-bit cross. (alpha_expand_unaligned_store_words): Likewise. (alpha_expand_builtin_vector_binop): Fix typo. (enum alpha_builtin, code_for_builtin): Add remaining ext, ins, msk, umulh, and cix insns. (one_arg_builtins): Add cix builtins. (two_arg_builtins): Add ext, ins, msk, umulh builtins. (alpha_expand_builtin): Fix typo in arity. * config/alpha/alpha.md (UNSPEC_CTLZ, UNSPEC_CTPOP): New. (builtin_extbl, builtin_extwl, builtin_extll, builtin_extwh, builtin_extlh, builtin_insbl, builtin_inswl, builtin_insll, builtin_insql, builtin_inswh, builtin_inslh, builtin_insqh, builtin_mskbl, builtin_mskwl, builtin_mskll, builtin_mskql, builtin_mskwh, builtin_msklh, builtin_mskqh, builtin_cttz, builtin_ctlz, builtin_ctpop): New. * doc/extend.texi (Alpha Built-in Functions): Update. * gcc.dg/alpha-base-1.c: Add ext/ins/msk/umulh cases. * gcc.dg/alpha-max-1.c, gcc.dg/alpha-max-2.c: Use -mcpu=ev67. * gcc.dg/alpha-cix-1.c, gcc.dg/alpha-cix-2.c: New. From-SVN: r54267
2002-06-04Merge from pch-branch up to tag pch-commit-20020603.Geoffrey Keating1-57/+14
From-SVN: r54232
2002-06-03alpha.c (reg_or_const_int_operand): New.Richard Henderson4-7/+910
* config/alpha/alpha.c (reg_or_const_int_operand): New. (some_operand, input_operand): Accept CONST_VECTOR. (alpha_extra_constraint): Add 'W'. (alpha_expand_zap_mask): New. (alpha_expand_builtin_vector_binop): New. (enum alpha_builtin): New. (zero_arg_builtins, one_arg_builtins, two_arg_builtins): New. (alpha_init_builtins, alpha_expand_builtin): New. (TARGET_INIT_BUILTINS, TARGET_EXPAND_BUILTIN): New. * config/alpha/alpha.h (VECTOR_MODE_SUPPORTED_P): New. (PREDICATE_CODES): Update. * config/alpha/alpha-protos.h: Update. * config/alpha/alpha.md (UNSPEC_CMPBGE, UNSPEC_ZAP, UNSPEC_AMASK, UNSPEC_IMPLVER, UNSPEC_PERR, UNSPECV_RPCC): New. (movv8qi, movv8qi_fix, movv8qi_nofix): New. (movv4hi, movv4hi_fix, movv4hi_nofix): New. (movv2si, movv2si_fix, movv2si_nofix): New. (uminv8qi3, sminv8qi3, uminv4hi3, sminv4hi3): New. (umaxv8qi3, smaxv8qi3, umaxv4hi3, smaxv4hi3): New. (builtin_cmpbge, builtin_extql, builtin_extqh, builtin_zap, builtin_zap_1, builtin_zapnot, builtin_zapnot_1, builtin_amask, builtin_implver, builtin_rpcc, builtin_minub8, builtin_minsb8, builtin_minuw4, builtin_minsw4, builtin_maxub8, builtin_maxsb8, builtin_maxuw4, builtin_maxsw4, builtin_perr, builtin_pklb, pklb, builtin_pkwb, pkwb, builtin_unpkbl, unpkbl, builtin_unpkbw, unpkbw): New. * doc/extend.texi (Alpha Built-in Functions): New. * gcc.dg/alpha-base-1.c, gcc.dg/alpha-base-2.c: New. * gcc.dg/alpha-max-1.c, gcc.dg/alpha-max-2.c: New. From-SVN: r54229
2002-06-03* config/alpha/alpha-protos.h: Eliminate unneeded ifdefs.Richard Henderson1-35/+22
From-SVN: r54227
2002-06-03alpha.c (reg_or_0_operand): Use CONST0_RTX.Richard Henderson4-161/+149
* config/alpha/alpha.c (reg_or_0_operand): Use CONST0_RTX. (const0_operand): New. (reg_or_fp0_operand, fp0_operand): Remove. * config/alpha/alpha.h (PREDICATE_CODES): Update. * config/alpha/alpha-protos.h: Update. * config/alpha/alpha.md: Replace all uses of reg_or_fp0_operand and fp0_operand with reg_or_0_operand and const0_operand. From-SVN: r54226
2002-06-02* config/alpha/alpha.h [ASM_OUTPUT_LABELREF]: Fix typo.Roger Sayle1-1/+1
From-SVN: r54170
2002-05-31configure.in (HAVE_AS_TLS): Add alpha tests.Richard Henderson5-77/+759
* configure.in (HAVE_AS_TLS): Add alpha tests. * configure: Rebuild. * config/alpha/alpha.c (TARGET_AS_TLS): New. (alpha_tls_size, alpha_tls_size_string): New. (overide_options): Set it. Always install machine_status hooks. (input_operand): Accept got tls predicates. (local_symbol_p): Merge into ... (local_symbolic_operand): ... here. Reject tls symbols. (global_symbolic_operand): Likewise. (tls_symbolic_operand_1, dtp16_symbolic_operand): New. (dtp32_symbolic_operand, gotdtp_symbolic_operand): New. (tp16_symbolic_operand, tp32_symbolic_operand): New. (gottp_symbolic_operand, tls_symbolic_operand_type): New. (alpha_encode_section_info): Handle TLS symbols. (alpha_strip_name_encoding): Likewise. (alpha_legitimate_address_p): Likewise. (alpha_legitimize_address): Likewise. (alpha_expand_mov): Early exit to avoid nop moves. (struct machine_function): Move from unicosmk.h. Add some_ld_name. (alpha_init_machine_status, alpha_mark_machine_status, alpha_free_machine_status): Always define. (get_some_local_dynamic_name, get_some_local_dynamic_name_1): New. (print_operand, print_operand_address): Add TLS relocs. * config/alpha/alpha.h (HAVE_AS_TLS): Default 0. (MASK_TLS_KERNEL, TARGET_TLS_KERNEL): New. (TARGET_SWITCHES): Add -mtls-kernel. (alpha_tls_size, alpha_tls_size_string): New. (TARGET_OPTIONS): Add -mtls-size=. (reg_class, REG_CLASS_NAMES, REG_CLASS_CONTENTS, REGNO_REG_CLASS, REG_CLASS_FROM_LETTER): Add R0_REG. (ASM_OUTPUT_LABELREF): Skip %. (PRINT_OPERAND_PUNCT_VALID_P): Add &. (PREDICATE_CODES): Update. * config/alpha/alpha.md (UNSPEC_TLSGD_CALL, UNSPEC_TLSLDM_CALL, UNSPEC_TLSGD, UNSPEC_TLSLDM, UNSPEC_DTPREL, UNSPEC_TPREL, UNSPEC_TP, UNSPECV_SET_TP): New. (adddi_er_lo16_dtp, adddi_er_hi32_dtp, adddi_er_lo32_dtp, adddi_er_lo16_tp, adddi_er_hi32_tp, adddi_er_lo32_tp, load_tp, set_tp, movdi_er_tlsgd, movdi_er_tlsldm, movdi_er_gotdtp, movdi_er_gottp, call_value_osf_tlsgd, call_value_osf_tlsldm): New. (call_value_osf_2_er): Accept anything as op4. * config/alpha/alpha-protos.h: Update. * config/alpha/unicosmk.h (struct machine_function): Move to alpha.c. From-SVN: r54125
2002-05-29netbsd.h (TARGET_OS_CPP_BUILTINS): Use NETBSD_OS_CPP_BUILTINS_ELF and ↵Jason Thorpe1-8/+11
NETBSD_OS_CPP_BUILTINS_LP64. * config/alpha/netbsd.h (TARGET_OS_CPP_BUILTINS): Use NETBSD_OS_CPP_BUILTINS_ELF and NETBSD_OS_CPP_BUILTINS_LP64. (CPP_SUBTARGET_SPEC): Define. (SUBTARGET_EXTRA_SPECS): Define. (CPP_SPEC): Remove. From-SVN: r54005
2002-05-28alpha.c (alpha_in_small_data_p): Return false for STRING_CST.Richard Henderson1-0/+4
* config/alpha/alpha.c (alpha_in_small_data_p): Return false for STRING_CST. From-SVN: r53952
2002-05-25config.gcc: Remove all stanzas for previously obsoleted systems.Zack Weinberg2-65/+0
* config.gcc: Remove all stanzas for previously obsoleted systems. Where necessary, add explicit error stanzas to prevent removed systems from being misidentified as something else. Begin a fresh obsoletions list, with the systems that were reprieved last round. * doc/install.texi: Remove all mention of dead targets. * fixinc/mkfixinc.sh: Likewise. * config/arm/arm.h: Bit 31 of target_flags is no longer reserved. * config/1750a/1750a-protos.h, config/1750a/1750a.c, config/1750a/1750a.h, config/1750a/1750a.md, config/1750a/ms1750.inc, config/a29k/a29k-protos.h, config/a29k/a29k.c, config/a29k/a29k.h, config/a29k/a29k.md, config/a29k/rtems.h, config/a29k/t-a29kbare, config/a29k/t-vx29k, config/a29k/unix.h, config/a29k/vx29k.h, config/alpha/osf12.h, config/alpha/osf2or3.h, config/arm/arm-wince-pe.h, config/arm/arm.h, config/arm/riscix.h, config/arm/riscix1-1.h, config/arm/rix-gas.h, config/arm/t-riscix, config/clipper/clipper-protos.h, config/clipper/clipper.c, config/clipper/clipper.h, config/clipper/clipper.md, config/clipper/clix.h, config/convex/convex-protos.h, config/convex/convex.c, config/convex/convex.h, config/convex/convex.md, config/convex/fixinc.convex, config/convex/proto.h, config/elxsi/elxsi-protos.h, config/elxsi/elxsi.c, config/elxsi/elxsi.h, config/elxsi/elxsi.md, config/i386/386bsd.h, config/i386/aix386.h, config/i386/aix386ng.h, config/i386/bsd386.h, config/i386/dgux.h, config/i386/djgpp-rtems.h, config/i386/isc.h, config/i386/iscdbx.h, config/i386/linux-oldld.h, config/i386/next.h, config/i386/osf1-ci.asm, config/i386/osf1-cn.asm, config/i386/osf1elf.h, config/i386/osf1elfgdb.h, config/i386/osfelf.h, config/i386/osfrose.h, config/i386/rtems.h, config/i386/seq-gas.h, config/i386/seq-sysv3.h, config/i386/seq2-sysv3.h, config/i386/sequent.h, config/i386/sun.h, config/i386/sun386.h, config/i386/t-dgux, config/i386/t-next, config/i386/t-osf, config/i386/t-osf1elf, config/i860/bsd-gas.h, config/i860/bsd.h, config/i860/fx2800.h, config/i860/i860-protos.h, config/i860/i860.c, config/i860/i860.h, config/i860/i860.md, config/i860/mach.h, config/i860/paragon.h, config/i860/sysv3.h, config/i860/sysv4.h, config/i860/t-fx2800, config/i860/varargs.asm, config/m68k/a-ux.h, config/m68k/altos3068.h, config/m68k/apollo68.h, config/m68k/aux-crt1.c, config/m68k/aux-crt2.asm, config/m68k/aux-crtn.asm, config/m68k/aux-exit.c, config/m68k/aux-low.gld, config/m68k/aux-mcount.c, config/m68k/auxas.h, config/m68k/auxgas.h, config/m68k/auxgld.h, config/m68k/auxld.h, config/m68k/ctix.h, config/m68k/dpx2.h, config/m68k/dpx2.ifile, config/m68k/dpx2cdbx.h, config/m68k/dpx2g.h, config/m68k/isi-nfp.h, config/m68k/isi.h, config/m68k/lynx-ng.h, config/m68k/lynx.h, config/m68k/math-3300.h, config/m68k/news.h, config/m68k/news3.h, config/m68k/news3gas.h, config/m68k/newsgas.h, config/m68k/next.h, config/m68k/next21.h, config/m68k/rtems.h, config/m68k/t-aux, config/m68k/t-lynx, config/m68k/t-next, config/m68k/x-next, config/m88k/dgux.h, config/m88k/dgux.ld, config/m88k/dguxbcs.h, config/m88k/dolph.h, config/m88k/dolphin.ld, config/m88k/luna.h, config/m88k/m88k-coff.h, config/m88k/sysv3.h, config/m88k/t-bug, config/m88k/t-dgux, config/m88k/t-dgux-gas, config/m88k/t-dguxbcs, config/m88k/t-dolph, config/m88k/t-m88k-gas, config/m88k/t-tekXD88, config/m88k/tekXD88.h, config/m88k/tekXD88.ld, config/mips/bsd-4.h, config/mips/bsd-5.h, config/mips/dec-bsd.h, config/mips/dec-osf1.h, config/mips/elflorion.h, config/mips/iris4loser.h, config/mips/mips-5.h, config/mips/news4.h, config/mips/news5.h, config/mips/nws3250v4.h, config/mips/osfrose.h, config/mips/svr3-4.h, config/mips/svr3-5.h, config/mips/svr4-4.h, config/mips/svr4-5.h, config/mips/svr4-t.h, config/mips/t-bsd, config/mips/t-bsd-gas, config/mips/t-svr3, config/mips/t-svr3-gas, config/mips/t-svr4, config/mips/t-svr4-gas, config/mips/t-ultrix, config/mips/ultrix.h, config/nextstep-protos.h, config/nextstep.c, config/nextstep.h, config/nextstep21.h, config/ns32k/encore.h, config/ns32k/merlin.h, config/ns32k/pc532-mach.h, config/ns32k/pc532-min.h, config/ns32k/pc532.h, config/ns32k/sequent.h, config/ns32k/tek6000.h, config/ns32k/tek6100.h, config/ns32k/tek6200.h, config/pj/lib1funcs.S, config/pj/linux.h, config/pj/pj-protos.h, config/pj/pj.c, config/pj/pj.h, config/pj/pj.md, config/pj/pjl.h, config/pj/t-pj, config/sparc/rtems.h, config/we32k/we32k-protos.h, config/we32k/we32k.c, config/we32k/we32k.h, config/we32k/we32k.md: Delete file. From-SVN: r53862
2002-05-24varasm.c (asm_output_bss): Always output one byte.Richard Henderson1-1/+1
* varasm.c (asm_output_bss): Always output one byte. * config/alpha/elf.h (ASM_OUTPUT_ALIGNED_LOCAL): Likewise. From-SVN: r53847
2002-05-23mingw32.h (OUTPUT_QUOTED_STRING): Properly output quoted strings.Gabriel Dos Reis1-3/+2
* config/i386/mingw32.h (OUTPUT_QUOTED_STRING): Properly output quoted strings. * dwarf2out.c (lookup_filename): Properly quote filename in .file directive in assembly file. * config/m68k/dpx2.h (ASM_OUTPUT_SOURCE_FILENAME): Likewise. * config/m88k/m88k.h (ASM_OUTPUT_SOURCE_FILENAME): Likewise. * config/pj/pj.h (ASM_FILE_START): Likewise. * config/rs6000/xcoff.h (ASM_FILE_START): Likewise. * config/avr/avr.c (asm_file_end): Likewise. * toplev.c (output_quoted_string): Handle possibly signed plain char. * toplev.h (output_clean_symbol_name): Declare * toplev.c (output_clean_symbol_name): Define. * config/alpha/alpha.c (unicosmk_output_module_name): Use it. * config/1750a/1750a.h (ASM_FILE_START): Likewise. Co-Authored-By: Zack Weinberg <zack@codesourcery.com> From-SVN: r53817
2002-05-19c-common.c (preprocessing_asm): New macro.Neil Booth6-43/+44
* c-common.c (preprocessing_asm): New macro. * c-lex.h (builtin_define, builtin_assert): Use pfile. doc: * tm.texi: Update. config/alpha: * alpha.h (CPLUSPLUS_CPP_SPEC): Remove. (CPP_SPEC): Simplify. (TARGET_CPU_CPP_BUILTINS): Update. * freebsd.h (TARGET_OS_CPP_BUILTINS): New. (CPP_SPEC): Simplify. * linux.h (CPLUSPLUS_CPP_SPEC): Remove. (TARGET_OS_CPP_BUILTINS): Update. * osf.h (CPP_XFLOAT_SPEC): Kill. (TARGET_OS_CPP_BUILTINS): Update. (CPP_SUBTARGET_SPEC, SUBTARGET_EXTRA_SPECS): Simplify. * osf5.h (CPP_XFLOAT_SPEC): Kill. * vms.h (CPP_SUBTARGET_SPEC): Kill. (TARGET_OS_CPP_BUILTINS): Update. From-SVN: r53641
2002-05-19target-def.h (TARGET_BINDS_LOCAL_P): New.Richard Henderson1-38/+14
* target-def.h (TARGET_BINDS_LOCAL_P): New. * target.h (struct gcc_target): Move boolean fields to the end. Add binds_local_p. * varasm.c (default_binds_local_p): New. * output.h: Declare it. * config/alpha/alpha.c (alpha_encode_section_info): Use the new hook. * config/cris/cris.c (cris_encode_section_info): Likewise. * config/i386/i386.c (i386_encode_section_info): Likewise. * config/ia64/ia64.c (ia64_encode_section_info): Likewise. * config/sh/sh.c (sh_encode_section_info): Likewise. * doc/tm.texi (TARGET_IN_SMALL_DATA_P): New. (TARGET_BINDS_LOCAL_P): New. From-SVN: r53620