aboutsummaryrefslogtreecommitdiff
path: root/gcc/config.gcc
AgeCommit message (Collapse)AuthorFilesLines
2005-06-06Add bfin-uclinux configuration.Jie Zhang1-2/+7
From-SVN: r100656
2005-06-01configure.ac: Add --enable-secureplt.Alan Modra1-0/+6
* configure.ac: Add --enable-secureplt. (HAVE_AS_REL16): Test for R_PPC_REL16 relocs. * config.in: Regenerate. * configure: Regenerate. * config.gcc (powerpc64-*-linux*, powerpc-*-linux*): Add rs6000/secureplt.h to tm_file when enable_secureplt. * doc/invoke.texi (msecure-plt, mbss-plt): Document. * doc/install.texi: Document --enable-targets and --enable-secureplt. Correct xrefs to "Using the GNU Compiler Collection (GCC)". * config/rs6000/secureplt.h: New file. * config/rs6000/sysv4.h (TARGET_SECURE_PLT): Define. (SUBTARGET_OVERRIDE_OPTIONS): Error if -msecure-plt given without assembler support. (CC1_SECURE_PLT_DEFAULT_SPEC): Define. (CC1_SPEC): Delete duplicate mno-sdata. Invoke cc1_secure_plt_default. (SUBTARGET_EXTRA_SPECS): Add cc1_secure_plt_default. * config/rs6000/sysv4.opt (msecure-plt, bss-plt): Add options. * config/rs6000/rs6000.h (TARGET_SECURE_PLT): Define. * config/rs6000/rs6000.c (rs6000_emit_load_toc_table): Handle TARGET_SECURE_PLT got register load sequence. (rs6000_emit_prologue): Call rs6000_emit_load_toc_table when TARGET_SECURE_PLT. (rs6000_elf_declare_function_name): Don't emit toc address offset word when TARGET_SECURE_PLT. * config/rs6000/rs6000.md (elf_high, elf_low): Move past load_toc_*. (load_toc_v4_PIC_1) Enable for TARGET_SECURE_PLT. (load_toc_v4_PIC_3b, load_toc_v4_PIC_3c): New insns. (call, call_value): Mark pic_offset_table_rtx used for sysv pic and TARGET_SECURE_PLT. (call_nonlocal_sysv, call_value_nonlocal_sysv, sibcall_nonlocal_sysv, sibcall_value_nonlocal_sysv): Add 32768 offset when TARGET_SECURE_PLT and -fPIC. * config/rs6000/tramp.asm (trampoline_initial): Use "bcl 20,31". (__trampoline_setup): Likewise. Init r30 before plt call. From-SVN: r100415
2005-05-18config.gcc (powerpc-*-linux*): Include linux64.opt when including linux64.h.Richard Henderson1-0/+1
* config.gcc (powerpc-*-linux*): Include linux64.opt when including linux64.h. From-SVN: r99943
2005-05-18config.gcc (sh*-*-*): Define SUPPORT_* macros to 1.Richard Sandiford1-2/+2
* config.gcc (sh*-*-*): Define SUPPORT_* macros to 1. * config/sh/sh.h: Update mask names throughout. (target_flags, ISIZE_BIT, DALIGN_BIT, SH1_BIT, SH2_BIT, SH3_BIT) (SH_E_BIT, HARD_SH4_BIT, FPU_SINGLE_BIT, SH4_BIT, SH4A_BIT, FMOVD_BIT) (SH5_BIT, SPACE_BIT, BIGTABLE_BIT, RELAX_BIT, USERMODE_BIT) (HITACHI_BIT, NOMACSAVE_BIT, PREFERGOT_BIT, PADSTRUCT_BIT) (LITTLE_ENDIAN_BIT, IEEE_BIT, SAVE_ALL_TR_BIT, HARD_SH2A_BIT) (HARD_SH2A_DOUBLE_BIT, INDEXED_ADDRESS_BIT, PT_FIXED_BIT) (INVALID_SYMBOLS_BIT, ADJUST_UNROLL_BIT, TARGET_DUMPISIZE) (TARGET_ALIGN_DOUBLE, TARGET_SH1, TARGET_SH2, TARGET_SH3) (TARGET_HARD_SH4, TARGET_FPU_SINGLE, TARGET_SH5, TARGET_FMOVD) (TARGET_IEEE, TARGET_SMALLCODE, TARGET_BIGTABLE, TARGET_RELAX) (TARGET_HITACHI, TARGET_NOMACSAVE, TARGET_PADSTRUCT) (TARGET_LITTLE_ENDIAN, TARGET_USERMODE, TARGET_PREFERGOT) (TARGET_SAVE_ALL_TARGET_REGS, TARGET_ALLOW_INDEXED_ADDRESS) (TARGET_PT_FIXED, TARGET_INVALID_SYMBOLS, TARGET_ADJUST_UNROLL) (TARGET_SWITCH_SH1, TARGET_SWITCH_SH2, TARGET_SWITCH_SH2E) (TARGET_SWITCH_SH2A, TARGET_SWITCH_SH2A_SINGLE_ONLY) (TARGET_SWITCH_SH2A_SINGLE, TARGET_SWITCH_SH2A_NOFPU) (TARGET_SWITCH_SH3, TARGET_SWITCH_SH3E, TARGET_SWITCH_SH4_SINGLE_ONLY) (TARGET_SWITCH_SH4_SINGLE, TARGET_SWITCH_SH4_NOFPU, TARGET_SWITCH_SH4) (TARGET_SWITCH_SH4A, TARGET_SWITCH_SH4A_SINGLE_ONLY) (TARGET_SWITCH_SH4A_SINGLE, TARGET_SWITCH_SH4A_NOFPU) (TARGET_SWITCH_SH4AL, TARGET_SWITCH_SH5_64MEDIA) (TARGET_SWITCH_SH5_64MEDIA_NOFPU, TARGET_SWITCHES_SH5_32MEDIA) (TARGET_SWITCHES_SH5_32MEDIA_NOFPU, TARGET_SWITCH_SH5_32_ANY_EXTRA) (TARGET_SWITCH_SH5_MEDIA_ANY_EXTRA, TARGET_SWITCHES) (SUBTARGET_SWITCHES): Delete. (TARGET_SH2E, TARGET_SH2A, TARGET_SH2A_SINGLE, TARGET_SH2A_DOUBLE) (TARGET_SH3E, TARGET_CACHE32, TARGET_SUPERSCALAR, TARGET_HARVARD) (TARGET_FPU_DOUBLE, TARGET_SH4A_ARCH, TARGET_SHMEDIA32) (TARGET_SHMEDIA64): Redefine using other TARGET_* macros. (TARGET_SH4): Undefine options.h definition and check MASK_SH1 as well. (SUPPORT_SH1, SUPPORT_SH2E, SUPPORT_SH4, SUPPORT_SH4_SINGLE) (SUPPORT_SH2A, SUPPORT_SH2A_SINGLE): Make numeric. (SUPPORT_SH2): Define to 1 if SUPPORT_SH1. (SUPPORT_SH3): Likewise SUPPORT_SH2. (SUPPORT_SH4_NOFPU): Likewise SUPPORT_SH3. (SUPPORT_SH4A_NOFPU, SUPPORT_SH4AL, SUPPORT_SH2A_NOFPU): Likewise SUPPORT_SH4_NOFPU. (SUPPORT_SH3E): Likewise SUPPORT_SH2E. (SUPPORT_SH4_SINGLE_ONLY, SUPPORT_SH4A_SINGLE_ONLY) (SUPPORT_SH2A_SINGLE_ONLY): Likewise SUPPORT_SH3E. (SUPPORT_SH4A): Likewise SUPPORT_SH4. (SUPPORT_SH4A_SINGLE): Likewise SUPPORT_SH4_SINGLE. (SUPPORT_SH5_32MEDIA): Likewise SUPPORT_SH5_COMPACT. (SUPPORT_SH5_32MEDIA_NOFPU): Likewise SUPPORT_SH5_COMPACT_NOFPU. (SUPPORT_ANY_SH5_32MEDIA, SUPPORT_ANY_SH5_64MEDIA) (SUPPORT_ANY_SH5): New macros. (TARGET_NONE): Replace with... (MASK_ARCH): ...this new macro. * config/sh/elf.h: Update mask names * config/sh/linux.h: Likewise. * config/sh/little.h: Likewise. * config/sh/netbsd-elf.h: Likewise. * config/sh/symbian-pre.h: Likewise. * config/sh/sh.c (sh_handle_option): New function. (TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION): Override defaults. (calc_live_regs): Use MASK_FPU_SINGLE instead of FPU_SINGLE_BIT. (sh_target_switches, target_switches): Delete. (sh_pch_valid_p): Check for specific differences in the target_flags settings. (sh_init_cumulative_args): Use MASK_HITACHI instead of HITACHI_BIT. * config/sh/sh.opt: New file. From-SVN: r99916
2005-05-07config.gcc ({powerpc,rs6000}-ibm-aix*): Remove rs6000/aix.opt from ↵David Edelsohn1-4/+4
extra_options. * config.gcc ({powerpc,rs6000}-ibm-aix*): Remove rs6000/aix.opt from extra_options. * config.in (HAVE_AS_POPCNTB): New. * configure.ac (HAVE_AS_MFCRF): Add .machine "pwr5" to AIX test. (HAVE_AS_POPCNTB): New. * configure: Regenerated. * config/rs6000/aix.h (TARGET_XL_COMPAT): Delete. * config/rs6000/rs6000.c (rs6000_override_options, power5): Add MASK_POPCNTB. Uncomment rs6000_sched_restricted_insns_priority and rs6000_sched_costly_dep. * config/rs6000/rs6000.h (TARGET_POPCNTB): New. (TARGET_XL_COMPAT): Delete. * config/rs6000/rs6000.md (UNSPEC_POPCNTB): New. (popcount<mode>2): New. (popcntb<mode>2): New. * config/rs6000/rs6000.opt (mpopcntb): New. From-SVN: r99356
2005-05-05config.gcc: Add .opt magic for the rs6000 ports.Aldy Hernandez1-0/+31
2005-05-05 Aldy Hernandez <aldyh@redhat.com> * config.gcc: Add .opt magic for the rs6000 ports. * doc/invoke.texi: Document -mabi= option properly. Document -misel and -mno-sel. Document -mspe and -mno-spe. Document -mvrsave and -mno-vrsave. Document deprecation of -mspe= and -misel=. * config/rs6000/aix.h: Remove XL_COMPAT stuff. Remove SUBTARGET_SWITCHES and SUBSUBTARGET_SWITCHES. Define TARGET_XL_COMPAT. * config/rs6000/aix.opt: New. * config/rs6000/aix41.opt: New. * config/rs6000/aix64.opt: New. * config/rs6000/darwin.opt: New. * config/rs6000/linux64.opt: New. * config/rs6000/rs6000.opt: New. * config/rs6000/sysv4.opt: New. * config/rs6000/sysv4.h: Delete definitions of MASK_* and associated TARGET_*. Remove SUBTARGET_OPTIONS, SUBTARGET_SWITCHES. Define TARGET_USES_SYSV4_OPT. * config/rs6000/aix41.h: Remove SUBSUBTARGET_SWITCHES. * config/rs6000/aix43.h: Remove SUBSUBTARGET_SWITCHES. Define TARGET_USES_AIX64_OPT. * config/rs6000/aix51.h: Same. * config/rs6000/aix52.h: Same. * config/rs6000/darwin.h: Remove SUBTARGET_SWITCHES. Use TARGET_ALTIVEC_VRSAVE instead of rs6000_altivec_vrsave. * config/rs6000/linux64.h: Use rs6000_explicit_options. Remove EXTRA_SUBTARGET_SWITCHES. * config/rs6000/rs6000.c: Remove definitions of rs6000_sched_restricted_insns_priority, rs6000_long_double_size_string, rs6000_altivec_vrsave, rs6000_altivec_vrsave_string, rs6000_isel, rs6000_spe, rs6000_float_gprs_string, rs6000_isel_string, rs6000_spe_string, rs6000_abi_string, rs6000_warn_altivec_long, rs6000_longcall, rs6000_alignment_string. Define rs6000_explicit_options. (rs6000_parse_abi_options): Remove. (rs6000_parse_alignment_option): Remove. (rs6000_parse_float_gprs_option): Remove. (rs6000_handle_option): New. Define TARGET_HANDLE_OPTION. Define TARGET_DEFAULT_TARGET_FLAGS. (rs6000_override_options): Revamp to use new .opt machinery. * config/rs6000/rs6000.h: Remove old MASK_* and TARGET_* in favor of new .opt machinery. Remove target_flags. Redefine TARGET_MFCRF and TARGET_POWERPC64. Remove TARGET_SWITCHES, SUBTARGET_SWITCHES, TARGET_OPTIONS, SUBTARGET_OPTIONS, rs6000_float_gprs_string, rs6000_isel_string, rs6000_spe_string, rs6000_altivec_vrsave_string, rs6000_altivec_vrsave, rs6000_longcall_switch, rs6000_default_long_calls, rs6000_sched_costly_dep_str, rs6000_sched_costly_dep, rs6000_warn_altivec_long, rs6000_warn_altivec_long_switch, and TARGET_ALTIVEC_VRSAVE. From-SVN: r99284
2005-05-05config.gcc (hppa1.1-*-rtems*): Remove.Ralf Corsepius1-6/+0
2005-05-05 Ralf Corsepius <ralf.corsepius@rtems.org> * config.gcc (hppa1.1-*-rtems*): Remove. * config/pa/rtems.h: Remove. From-SVN: r99282
2005-05-05config.gcc (arm*-wince-pe*, [...]): Add arm/pe.opt to $extra_options.Richard Sandiford1-0/+3
* config.gcc (arm*-wince-pe*, arm-*-pe*, strongarm-*-pe): Add arm/pe.opt to $extra_options. * config/arm/arm.h (target_flags, target_fpu_name, target_fpe_name) (target_float_abi_name, target_float_switch, target_abi_name) (ARM_FLAG_APCS_FRAME, ARM_FLAG_POKE, ARM_FLAG_FPE, ARM_FLAG_APCS_STACK) (ARM_FLAG_APCS_FLOAT, ARM_FLAG_APCS_REENT, ARM_FLAG_BIG_END) (ARM_FLAG_INTERWORK, ARM_FLAG_LITTLE_WORDS, ARM_FLAG_NO_SCHED_PRO) (ARM_FLAG_ABORT_NORETURN, ARM_FLAG_SINGLE_PIC_BASE) (ARM_FLAG_LONG_CALLS, ARM_FLAG_THUMB, THUMB_FLAG_BACKTRACE) (THUMB_FLAG_LEAF_BACKTRACE, THUMB_FLAG_CALLEE_SUPER_INTERWORKING) (THUMB_FLAG_CALLER_SUPER_INTERWORKING, CIRRUS_FIX_INVALID_INSNS) (TARGET_APCS_FRAME, TARGET_POKE_FUNCTION_NAME, TARGET_FPE) (TARGET_APCS_STACK, TARGET_APCS_FLOAT, TARGET_APCS_REENT) (TARGET_BIG_END, TARGET_INTERWORK, TARGET_LITTLE_WORDS) (TARGET_NO_SCHED_PRO, TARGET_ABORT_NORETURN, TARGET_SINGLE_PIC_BASE) (TARGET_LONG_CALLS, TARGET_THUMB, TARGET_CALLER_INTERWORKING) (TARGET_CIRRUS_FIX_INVALID_INSNS, SUBTARGET_SWITCHES, TARGET_SWITCHES) (TARGET_OPTIONS, arm_cpu_select, arm_select, structure_size_string) (arm_pic_register_string): Delete. (TARGET_BACKTRACE): Redefine using TARGET_TPCS_LEAF_FRAME and TARGET_TPCS_FRAME. (TARGET_DEFAULT, CONDITIONAL_REGISTER_USAGE): Update mask names. * config/arm/coff.h (TARGET_DEFAULT): Likewise. * config/arm/elf.h (TARGET_DEFAULT): Likewise. * config/arm/netbsd-elf.h (TARGET_DEFAULT): Likewise. * config/arm/netbsd.h (TARGET_DEFAULT): Likewise. * config/arm/semi.h (TARGET_DEFAULT): Likewise. * config/arm/uclinux-elf.h (TARGET_DEFAULT): Likewise. * config/arm/wince-pe.h (TARGET_DEFAULT): Likewise. * config/arm/pe.h (TARGET_DEFAULT): Likewise. (TARGET_FLAG_NOP_FUN, TARGET_NOP_FUN_DLLIMPORT): Delete. (SUBTARGET_SWITCHES): Delete. * config/arm/arm.c (target_float_switch): Delete. (arm_cpu_select): Moved from config/arm/arm.h. (target_fpu_name, target_fpe_name, target_float_abi_name) (target_abi_name, structure_size_string, arm_pic_register_string) (arm_select): Make static. (TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION): Override defaults. (arm_handle_option): New function. (arm_override_options): Update target_flags checks for new mask names. Remove target_float_switch code. (arm_expand_prologue, thumb_expand_prologue): Check !TARGET_SCHED_PROLOG instead of TARGET_NO_SCHED_PRO. * config/arm/arm.opt, config/arm/pe.opt: New files. From-SVN: r99265
2005-04-28* config.gcc: Obsolete c4x-* and tic4x-*.Kazu Hirata1-0/+2
From-SVN: r98908
2005-04-25config.gcc (avr-*-*): Remove redundant "case".Ralf Corsepius1-3/+0
2005-04-25 Ralf Corsepius <ralf.corsepius@rtems.org> * config.gcc (avr-*-*): Remove redundant "case". From-SVN: r98699
2005-04-24config.gcc (h8300-*-rtems*): Add h8300-rtemscoff.Ralf Corsepius1-1/+5
2005-04-24 Ralf Corsepius <ralf.corsepius@rtems.org> * config.gcc (h8300-*-rtems*): Add h8300-rtemscoff. Switch h8300-*-rtems* to ELF. From-SVN: r98644
2005-04-23config.gcc: Specify .opt files.Hans-Peter Nilsson1-0/+3
* config.gcc <cris-*>: Specify .opt files. * config/cris/cris.opt, config/cris/elf.opt, config/cris/aout.opt, config/cris/linux.opt: New files. * config/cris/aout.h (CRIS_SUBTARGET_SWITCHES) (CRIS_SUBTARGET_LONG_OPTIONS): Don't define. (TARGET_ELF): Override to 0. (CRIS_SUBTARGET_HANDLE_OPTION): Override to handle -melinux and -melinux-stacksize=N. * config/cris/cris.c: (cris_handle_option): New function. (TARGET_DEFAULT_TARGET_FLAGS): Override. (TARGET_HANDLE_OPTION): Override to cris_handle_option. (cris_override_options): Use MASK_*, not TARGET_MASK_*. * config/cris/cris.h (TARGET_MASK_SVINTO, TARGET_SVINTO, (TARGET_MASK_CCINIT, TARGET_CCINIT, TARGET_MASK_PDEBUG) (TARGET_PDEBUG, TARGET_MASK_SIDE_EFFECT_PREFIXES) (TARGET_SIDE_EFFECT_PREFIXES, TARGET_MASK_EXPAND_MUL) (TARGET_EXPAND_MUL, TARGET_MASK_STACK_ALIGN, TARGET_STACK_ALIGN) (TARGET_MASK_CONST_ALIGN, TARGET_CONST_ALIGN) (TARGET_MASK_DATA_ALIGN, TARGET_DATA_ALIGN) (TARGET_MASK_PROLOGUE_EPILOGUE, TARGET_PROLOGUE_EPILOGUE) (TARGET_MASK_ETRAX4_ADD, TARGET_ETRAX4_ADD) (TARGET_MASK_ALIGN_BY_32, TARGET_ALIGN_BY_32, TARGET_MASK_ELF) (TARGET_ELF, TARGET_MASK_LINUX, TARGET_LINUX) (TARGET_MASK_AVOID_GOTPLT, TARGET_AVOID_GOTPLT) (TARGET_MASK_MUL_BUG, TARGET_MUL_BUG, TARGET_SWITCHES) (CRIS_SUBTARGET_SWITCHES, TARGET_OPTIONS) (CRIS_SUBTARGET_LONG_OPTIONS): Don't define. (TARGET_LINUX): Define 0. (TARGET_DEFAULT): Use MASK_*, not TARGET_MASK_*. (CRIS_SUBTARGET_DEFAULT): Define to 0, not TARGET_MASK_ELF. (CRIS_SUBTARGET_DEFAULT): New empty default macro. * config/cris/linux.h (CRIS_SUBTARGET_SWITCHES): Don't define. (TARGET_LINUX): Override to 1. (CRIS_SUBTARGET_DEFAULT): Use MASK_*, not TARGET_MASK_*. From-SVN: r98611
2005-04-23config.gcc (hppa[12]*-*-hpux10*): Add pa/pa-hpux.opt to $extra_options.Richard Sandiford1-3/+12
* config.gcc (hppa[12]*-*-hpux10*): Add pa/pa-hpux.opt to $extra_options. Also add pa/pa-hpux1010.opt for hpux10.[1-9]*. (hppa*64*-*-hpux11*): Add pa/pa-hpux1010.h to $tm_file. Add pa/pa-hpux.opt, pa/pa-hpux1010.opt and pa/pa64-hpux.opt to $extra_options. Also add pa/pa-hpux1111.opt for hpux11.[1-9]*. (hppa[12]*-*-hpux11*): Add pa/pa-hpux1010.h to $tm_file. Add pa/pa-hpux.opt to $extra_options. Also add pa/pa-hpux1111.opt for hpux11.[1-9]*. * config/pa/pa.h (architecture_type, rtx_def, pa_arch_string, pa_arch) (pa_fixed_range_string, pa_cpu_string, pa_unix_string, target_flags) (MASK_PA_11, MASK_DISABLE_FPREGS, TARGET_DISABLE_FPREGS) (MASK_NO_SPACE_REGS, TARGET_NO_SPACE_REGS, MASK_JUMP_IN_DELAY) (TARGET_JUMP_IN_DELAY, MASK_DISABLE_INDEXING, TARGET_DISABLE_INDEXING) (MASK_PORTABLE_RUNTIME, TARGET_PORTABLE_RUNTIME, MASK_GAS, TARGET_GAS) (MASK_SOFT_FLOAT, TARGET_SOFT_FLOAT, MASK_LONG_LOAD_STORE) (TARGET_LONG_LOAD_STORE, MASK_FAST_INDIRECT_CALLS) (TARGET_FAST_INDIRECT_CALLS, MASK_BIG_SWITCH, TARGET_BIG_SWITCH) (MASK_PA_20, MASK_SIO, TARGET_SIO, MASK_GNU_LD, TARGET_GNU_LD) (MASK_LONG_CALLS, TARGET_LONG_CALLS, TARGET_PA_11, TARGET_PA_20) (TARGET_SWITCHES, SUBTARGET_SWITCHES, TARGET_OPTIONS) (SUBTARGET_OPTIONS): Delete. (TARGET_PA_10): Redefine in terms of TARGET_PA_11 and TARGET_PA_20. (TARGET_SCHED_DEFAULT): Define to a PROCESSOR_* enum (PROCESSOR_8000) instead of a string. * config/pa/pa.c (pa_arch, pa_arch_string, pa_fixed_range_string) (pa_cpu_string, pa_unix_string): Delete. (pa_cpu): Initialize to TARGET_SCHED_DEFAULT. (flag_pa_unix): Initialize based on TARGET_HPUX_11_11 and TARGET_HPUX_10_10. (TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION): Override defaults. (pa_handle_option): New function. (override_options): Remove handling of -march=, -mfixed-range=, -mschedule= and -munix=. * config/pa/pa-hpux.h (SUBTARGET_SWITCHES): Delete. * config/pa/pa-hpux1010.h (SUBTARGET_OPTIONS): Delete. * config/pa/pa-hpux10.h (SUBTARGET_OPTIONS): Delete. * config/pa/pa-hpux1111.h (SUBTARGET_OPTIONS): Delete. * config/pa/pa-hpux11.h (SUBTARGET_OPTIONS): Delete. * config/pa/pa64-hpux.h (SUBTARGET_SWITCHES): Delete. * config/pa/pa64-start.h (TARGET_PA_11, TARGET_PA_20): #undef before redefining. * config/pa/pa.opt: New file. * config/pa/pa-hpux.opt: New file. * config/pa/pa-hpux1010.opt: New file. * config/pa/pa-hpux1111.opt: New file. * config/pa/pa64-hpux.opt: New file. From-SVN: r98605
2005-04-21config.gcc (*-*-darwin*): Add darwin.opt to $extra_options.Richard Sandiford1-0/+8
* config.gcc (*-*-darwin*): Add darwin.opt to $extra_options. (i[34567]86-pc-msdosdjgpp*): Likewise i386/djgpp.opt. (i[34567]86-*-lynxos*, powerpc-*-lynxos*): Likewise lynx.opt. (i[34567]86-*-sco3.2v5*): Likewise i386/sco5.opt. (i[34567]86-*-pe, i[34567]86-*-cygwin*, i[34567]86-*-mingw32*) (i[34567]86-*-uwin*): Likewise i386/cygming.opt. * config/darwin.h (darwin_one_byte_bool, darwin_fix_and_continue) (darwin_fix_and_continue_switch, SUBTARGET_OPTIONS): Delete. * config/darwin.c (darwin_one_byte_bool, darwin_fix_and_continue) (darwin_fix_and_continue_switch): Delete. * config/lynx.h (SUBTARGET_OS_LYNX_SWITCHES): Delete. (SUBTARGET_SWITCHES): Delete. * config/i386/i386.h (target_flags, MASK_80387, MASK_RTD) (MASK_ALIGN_DOUBLE, MASK_SVR3_SHLIB, MASK_IEEE_FP, MASK_FLOAT_RETURNS) (MASK_NO_FANCY_MATH_387, MASK_OMIT_LEAF_FRAME_POINTER) (MASK_STACK_PROBE, MASK_NO_ALIGN_STROPS, MASK_INLINE_ALL_STROPS) (MASK_NO_PUSH_ARGS, MASK_ACCUMULATE_OUTGOING_ARGS, MASK_MMX) (MASK_SSE, MASK_SSE2, MASK_SSE3, MASK_3DNOW, MASK_3DNOW_A) (MASK_128BIT_LONG_DOUBLE, MASK_64BIT, MASK_MS_BITFIELD_LAYOUT) (MASK_TLS_DIRECT_SEG_REFS, MASK_NO_RED_ZONE, TARGET_80387) (TARGET_RTD, TARGET_ALIGN_DOUBLE, TARGET_PUSH_ARGS) (TARGET_ACCUMULATE_OUTGOING_ARGS, TARGET_SVR3_SHLIB, TARGET_IEEE_FP) (TARGET_128BIT_LONG_DOUBLE, TARGET_NO_FANCY_MATH_387) (TARGET_USE_FANCY_MATH_387, TARGET_OMIT_LEAF_FRAME_POINTER) (TARGET_DEBUG_ADDR, TARGET_DEBUG_ARG): Delete. (TARGET_FLOAT_RETURNS_IN_80387): Make an alias of TARGET_FLOAT_RETURNS. (TARGET_64BIT): Undef before redefining. (TARGET_TLS_DIRECT_SEG_REFS, TARGET_STACK_PROBE) (TARGET_ALIGN_STRINGOPS, TARGET_INLINE_ALL_STRINGOPS, TARGET_SSE) (TARGET_SSE2, TARGET_SSE3, TARGET_MMX, TARGET_3DNOW, TARGET_3DNOW_A) (TARGET_RED_ZONE, TARGET_USE_MS_BITFIELD_LAYOUT, TARGET_SWITCHES) (TARGET_OPTIONS, SUBTARGET_SWITCHES, SUBTARGET_OPTIONS) (ix86_fpmath_string, ix86_tls_dialect_string, ix86_cmodel_string) (ix86_asm_string, ix86_regparm, ix86_regparm_string) (ix86_preferred_stack_boundary_string, ix86_branch_cost_string) (ix86_debug_arg_string, ix86_debug_addr_string) (ix86_align_loops_string, ix86_align_jumps_string) (ix86_align_funcs_string): Delete. * config/i386/cygming.h (MASK_NOP_FUN_DLLIMPORT) (TARGET_NOP_FUN_DLLIMPORT, SUBTARGET_SWITCHES): Delete. * config/i386/djgpp.h (MASK_BNU210, SUBTARGET_SWITCHES): Delete. (SUBTARGET_OVERRIDE_OPTIONS): Check TARGET_BNU210. * config/i386/lynx.h (SUBTARGET_SWITCHES): Delete. * config/i386/sco5.h (MASK_COFF, TARGET_ELF) (SUBTARGET_SWITCHES): Delete. * config/i386/i386.c (ix86_debug_arg_string): Delete. (ix86_debug_addr_string): Delete. (ix86_cmodel_string, ix86_asm_string, ix86_tls_dialect_string) (ix86_fpmath_string, ix86_regparm_string, ix86_regparm) (ix86_align_loops_string, ix86_align_jumps_string) (ix86_preferred_stack_boundary_string, ix86_branch_cost_string) (ix86_align_funcs_string): Make static. (TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION): Override defaults. (ix86_handle_option): New function. (TARGET_USE_MS_BITFIELD_LAYOUT): Delete. (ix86_ms_bitfield_layout_p): Check TARGET_MS_BITFIELD_LAYOUT. * config/rs6000/darwin.h (SUBTARGET_OVERRIDE_OPTIONS): Remove handling of darwin_fix_and_continue_switch. (darwin_one_byte_bool): Delete. * config/rs6000/lynx.h (EXTRA_SUBTARGET_SWITCHES): Delete. * config/rs6000/rs6000.c (rs6000_override_options): Update assignment to darwin_one_byte_bool. * config/darwin.opt, config/lynx.opt, config/i386/cygming.opt, * config/i386/djgpp.opt, config/i386/i386.opt, * config/i386/sco5.opt: New files. From-SVN: r98495
2005-04-18config.gcc (m68hc12): Use the m68hc11.opt file for target specific options.Nick Clifton1-0/+3
* config.gcc (m68hc12): Use the m68hc11.opt file for target specific options. (v850e, v850e1): Use the v850.opt file for target specific options. From-SVN: r98313
2005-04-14config.gcc: Set cpu_type for s390.Andreas Krebbel1-0/+1
2005-04-14 Andreas Krebbel <krebbel1@de.ibm.com> * config.gcc: Set cpu_type for s390. From-SVN: r98140
2005-04-13optc-gen.awk: Handle stand-alone Mask records.Eric Botcazou1-2/+9
* optc-gen.awk: Handle stand-alone Mask records. * opth-gen.awk: Likewise. * doc/options.texi (Option file format): Document them. * config.gcc (sparc-*-netbsdelf*, sparc-*-linux*, sparc64-*-freebsd*, sparc64-*-linux*, sparc64-*-netbsd*): Add long-double-switch.opt. (sparc64-*-openbsd*, sparc64-*-elf*): Add little-endian.opt. * config/sparc/sparc.h (MASK_FPU, MASK_UNALIGNED_DOUBLES, MASK_V8, MASK_SPARCLITE, MASK_SPARCLET, MASK_V9, MASK_DEPRECATED_V8_INSNS, MASK_IMPURE_TEXT, MASK_APP_REGS, MASK_HARD_QUAD, MASK_LITTLE_ENDIAN, MASK_PTR64, MASK_64BIT, MASK_STACK_BIAS, MASK_FPU_SET, MASK_VIS, MASK_V8PLUS, MASK_FASTER_STRUCTS, MASK_LONG_DOUBLE_128): Delete. (TARGET_FPU, TARGET_UNALIGNED_DOUBLES, TARGET_V8, TARGET_SPARCLITE, TARGET_SPARCLET, TARGET_V9, TARGET_DEPRECATED_V8_INSNS, TARGET_IMPURE_TEXT, TARGET_APP_REGS, MASK_HARD_QUAD, TARGET_LITTLE_ENDIAN, TARGET_PTR64, TARGET_64BIT, MASK_STACK_BIAS, TARGET_FPU_SET, TARGET_VIS, TARGET_V8PLUS, TARGET_FASTER_STRUCTS, TARGET_LONG_DOUBLE_128): Likewise. (TARGET_SWITCHES, SUBTARGET_SWITCHES): Likewise. (TARGET_OPTIONS, SUBTARGET_OPTIONS): Likewise. * config/sparc/freebsd.h (SUBTARGET_SWITCHES): Likewise. * config/sparc/linux.h (SUBTARGET_SWITCHES): Likewise. * config/sparc/linux64.h (SUBTARGET_SWITCHES): Likewise. * config/sparc/netbsd-elf.h (SUBTARGET_SWITCHES): Likewise. * config/sparc/sp64-elf.h (SUBTARGET_SWITCHES): Likewise. * config/sparc/sparc.c (fpu_option_set): New global. (sparc_handle_option): New function. (sparc_override_options): Test fpu_option_set. (TARGET_DEFAULT_TARGET_FLAGS): Set to TARGET_DEFAULT. (TARGET_HANDLE_OPTION): Set to sparc_handle_option. * config/sparc/sparc.opt: New file. * config/sparc/little-endian.opt: Likewise. * config/sparc/long-double-switch.opt: Likewise. From-SVN: r98078
2005-04-12config.gcc (m68k-*-linux*): Add m68k/ieee.opt to $extra_options.Richard Sandiford1-0/+1
* config.gcc (m68k-*-linux*): Add m68k/ieee.opt to $extra_options. * config/m68k/m68k.h (target_flags, MASK_68020, TARGET_68020) (MASK_68030, TARGET_68030, MASK_68040, TARGET_68040, MASK_68040_ONLY) (TARGET_68040_ONLY, MASK_68060, TARGET_68060, MASK_5200, TARGET_5200) (MASK_CFV3, TARGET_CFV3, MASK_CFV4, TARGET_CFV4, MASK_528x) (TARGET_528x, MASK_CF_HWDIV, TARGET_CF_HWDIV, MASK_68881, TARGET_68881) (MASK_BITFIELD, TARGET_BITFIELD, MASK_SHORT, TARGET_SHORT) (MASK_ALIGN_INT, TARGET_ALIGN_INT, MASK_PCREL, TARGET_PCREL) (MASK_NO_STRICT_ALIGNMENT, TARGET_STRICT_ALIGNMENT, MASK_RTD) (TARGET_RTD, MASK_SEP_DATA, TARGET_SEP_DATA, MASK_ID_SHARED_LIBRARY) (TARGET_ID_SHARED_LIBRARY, MASK_ALL_CF_BITS, TARGET_SWITCHES) (TARGET_OPTIONS, SUBTARGET_SWITCHES, SUBTARGET_OPTIONS): Delete. (MASK_COLDFIRE): Formatting fixes. (TARGET_COLDFIRE): Turn into a boolean value for consistency. * config/m68k/linux.h (SUBTARGET_SWITCHES): Delete. * config/m68k/m68k.c (m68k_library_id_string): Initialize to "_current_shared_library_a5_offset_". (TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION): Override defaults. (MASK_ALL_CPU_BITS): New macro. (m68k_handle_option): New function. (override_options): Remove handling of m68k_library_id_string. * config/m68k/m68k.opt: New file. * config/m68k/ieee.opt: New file. From-SVN: r98017
2005-04-05bfin-modes.def: New file.Bernd Schmidt1-0/+13
* config/bfin/bfin-modes.def: New file. * config/bfin/bfin-protos.h: New file. * config/bfin/bfin.c: New file. * config/bfin/bfin.h: New file. * config/bfin/bfin.md: New file. * config/bfin/bfin.opt: New file. * config/bfin/crti.s: New file. * config/bfin/crtn.s: New file. * config/bfin/elf.h: New file. * config/bfin/lib1funcs.asm: New file. * config/bfin/predicates.md: New file. * config/bfin/t-bfin: New file. * config/bfin/t-bfin-elf: New file. * doc/extend.texi (exception_handler, kspisusp, nesting, nmi_handler): Document new attributes. (interrupt, interrupt_handler, saveall): Update documentation for these attributes. * doc/install.texi (Specific): Add entry for the Blackfin. * doc/invoke.texi (Blackfin Options): New section. * doc/md.texi (Blackfin family): New section to document constraints. * config.gcc: Add bfin*-* and bfin*-elf configurations. From-SVN: r97622
2005-04-04re PR target/4198 ([sparclite-elf] does not build, needs tweaking for ↵Eric Botcazou1-23/+1
crtstuff.c changes) PR target/4198 PR target/12027 * config.gcc (Obsolete configurations): Remove sparclite-*-coff*, sparclite-*-elf* and sparc-*-openbsd*. (sparclite-*-coff*): Delete. (sparclite-*-elf*): Likewise. (sparc86x-*-elf*): Likewise. (target_cpu_default) <sparc*-*-*>: Remove sparc86x. * config/sparc/lite.h: Delete. * config/sparc/litecoff.h: Likewise. * config/sparc/liteelf.h: Likewise. * config/sparc/sp86x-elf.h: Likewise. * config/sparc/t-sparclite: Likewise. * config/sparc/t-sp86x: Likewise. From-SVN: r97555
2005-04-04config.gcc (xstormy16-*-elf): Set extra_options.Richard Sandiford1-0/+1
* config.gcc (xstormy16-*-elf): Set extra_options. * config/stormy16/stormy16.h (target_flags, TARGET_SWITCHES): Delete. * config/stormy16/stormy16.opt: New file. From-SVN: r97526
2005-03-31config.gcc: Obsolete i860-*-sysv4*, ip2k-*-elf, ns32k-*-netbsdelf*, and ↵Kazu Hirata1-0/+4
ns32k-*-netbsd*. * config.gcc: Obsolete i860-*-sysv4*, ip2k-*-elf, ns32k-*-netbsdelf*, and ns32k-*-netbsd*. From-SVN: r97308
2005-03-31config.gcc (cpu_is_64bit): Set for 64-bit powerpc cpus.Alan Modra1-7/+23
* config.gcc (cpu_is_64bit): Set for 64-bit powerpc cpus. (powerpc64-*-linux*): Use it. Rearrange tm_file assignment. (powerpc-*-linux*): Build a biarch compiler when --enable-targets is given with "powerpc64*" or "all", or when --with-cpu chooses a 64-bit cpu. From-SVN: r97290
2005-03-23config.gcc (alpha*-dec-osf[45]*): Remove target_cpu_default.Rainer Orth1-3/+3
* config.gcc (alpha*-dec-osf[45]*): Remove target_cpu_default. Define TARGET_SUPPORT_ARCH except on Tru64 UNIX V4.0A. From-SVN: r96927
2005-03-19config.gcc: Consistently use solaris2.1[0-9]* instead of solaris2.1[0-9].Joseph Myers1-3/+3
gcc: * config.gcc: Consistently use solaris2.1[0-9]* instead of solaris2.1[0-9]. libcpp: * configure.ac: Consistently use solaris2.1[0-9]* instead of solaris2.1[0-9]. * configure: Regenerate. From-SVN: r96743
2005-03-17config.gcc (ia64*-*-hpux*): Add extra_options.Richard Henderson1-0/+1
* config.gcc (ia64*-*-hpux*): Add extra_options. * config/ia64/hpux.h (SUBTARGET_SWITCHES): Remove. (TARGET_DEFAULT): Remove MASK_INLINE_FLOAT_DIV_THR. * config/ia64/ia64.c (ia64_fixed_range_string): Remove. (ia64_tls_size_string, ia64_tune_string): Remove. (ia64_tune): Init to PROCESSOR_ITANIUM2. (TARGET_DEFAULT_TARGET_FLAGS): New. (TARGET_HANDLE_OPTION): New. (ia64_override_options): Move options parsing ... (ia64_handle_option): ... here. New. * config/ia64/ia64.h (target_flags, MASK_BIG_ENDIAN, MASK_GNU_AS, MASK_GNU_LD, MASK_NO_PIC, MASK_VOL_ASM_STOP, MASK_ILP32, MASK_REG_NAMES, MASK_NO_SDATA, MASK_CONST_GP, MASK_AUTO_PIC, MASK_INLINE_FLOAT_DIV_LAT, MASK_INLINE_FLOAT_DIV_THR, MASK_INLINE_INT_DIV_LAT, MASK_INLINE_INT_DIV_THR, MASK_INLINE_SQRT_LAT, MASK_INLINE_SQRT_THR, MASK_DWARF2_ASM, MASK_EARLY_STOP_BITS, TARGET_BIG_ENDIAN, TARGET_GNU_AS, TARGET_GNU_LD, TARGET_NO_PIC, TARGET_VOL_ASM_STOP, TARGET_ILP32, TARGET_REG_NAMES, TARGET_NO_SDATA, TARGET_CONST_GP, TARGET_AUTO_PIC, TARGET_INLINE_FLOAT_DIV_LAT, TARGET_INLINE_FLOAT_DIV_THR, TARGET_INLINE_INT_DIV_LAT, TARGET_INLINE_INT_DIV_THR, TARGET_INLINE_FLOAT_DIV, TARGET_INLINE_INT_DIV, TARGET_INLINE_SQRT_LAT, TARGET_INLINE_SQRT_THR, TARGET_INLINE_SQRT, TARGET_DWARF2_ASM, TARGET_EARLY_STOP_BITS): Remove. (TARGET_ILP32): Default false. (TARGET_SWITCHES, SUBTARGET_SWITCHES, TARGET_OPTIONS): Remove. (enum ia64_inline_type): New. (TARGET_DEFAULT): Remove MASK_INLINE_FLOAT_DIV_THR. * config/ia64/ia64.md: Update for new definitions of TARGET_INLINE_INT_DIV, TARGET_INLINE_FLOAT_DIV, TARGET_INLINE_SQRT. * config/ia64/ia64.opt: New file. * config/ia64/ilp32.opt: New file. From-SVN: r96621
2005-03-14config.gcc (mips*-*-*): Rename MASK_SPLIT_ADDRS to MASK_SPLIT_ADDRESSES.Richard Sandiford1-1/+1
* config.gcc (mips*-*-*): Rename MASK_SPLIT_ADDRS to MASK_SPLIT_ADDRESSES. * config/mips/mips.h (target_flags, mips_fix_vr4130_string): Delete. (MASK_INT64, MASK_LONG64, MASK_SPLIT_ADDR, MASK_NO_FUSED_MADD) (MASK_EXPLICIT_RELOCS, MASK_MEMCPY, MASK_SOFT_FLOAT) (MASK_FLOAT64, MASK_ABICALLS, MASK_XGOT, MASK_LONG_CALLS) (MASK_64BIT, MASK_EMBEDDED_DATA, MASK_BIG_ENDIAN) (MASK_SINGLE_FLOAT, MASK_MAD, MASK_4300_MUL_FIX, MASK_MIPS16) (MASK_NO_CHECK_ZERO_DIV, MASK_BRANCHLIKELY) (MASK_UNINIT_CONST_IN_RODATA, MASK_FIX_R4000, MASK_FIX_R4400) (MASK_FIX_SB1, MASK_FIX_VR4120, MASK_VR4130_ALIGN) (MASK_FP_EXCEPTIONS, MASK_DIVIDE_BREAKS, MASK_PAIRED_SINGLE) (MASK_MIPS3D, MASK_SYM32, MASK_DEBUG, MASK_DEBUG_D) (MASK_MIPS_TFILE, TARGET_INT64, TARGET_LONG64, TARGET_FLOAT64) (TARGET_64BIT, TARGET_SPLIT_ADDRESSES, TARGET_DEBUG_MODE) (TARGET_DEBUG_D_MODE, TARGET_MEMCPY, TARGET_ABICALLS) (TARGET_XGOT, TARGET_SOFT_FLOAT, TARGET_HARD_FLOAT) (TARGET_LONG_CALLS, TARGET_EMBEDDED_DATA) (TARGET_UNINIT_CONST_IN_RODATA, TARGET_BIG_ENDIAN) (TARGET_SINGLE_FLOAT, TARGET_DOUBLE_FLOAT, TARGET_MAD) (TARGET_FUSED_MADD, TARGET_4300_MUL_FIX, TARGET_CHECK_ZERO_DIV) (TARGET_DIVIDE_TRAPS, TARGET_BRANCHLIKELY, TARGET_FIX_SB1) (TARGET_FIX_R4000, TARGET_FIX_R4400, TARGET_FIX_VR4120) (TARGET_FIX_VR4130, TARGET_VR4130_ALIGN, TARGET_FP_EXCEPTIONS) (TARGET_PAIRED_SINGLE_FLOAT, TARGET_MIPS3D, TARGET_SYM32) (TARGET_EXPLICIT_RELOCS): Delete. (TARGET_SWITCHES, SUBTARGET_TARGET_SWITCHES): Delete. (TARGET_OPTIONS): Remove entry for -mfix-vr4130. * config/mips/mips.c (TARGET_DEFAULT_TARGET_FLAGS): Define. (override_options): Set MASK_LONG64 if -mint64 is given and no -mlongXX option is. Complain about -mint64 -mlong32. (override_options, CMP_BUILTINS, mips_bdesc, sb1_desc): Rename MASK_PAIRED_SINGLE to MASK_PAIRED_SINGLE_FLOAT. * config/mips/mips.opt: New file. From-SVN: r96452
2005-03-14config.gcc (extra_options): New variable for listing option files.Richard Sandiford1-0/+7
* config.gcc (extra_options): New variable for listing option files. Add ${cpu_type}/${cpu_type}.opt to it if that file exists. * configure.ac (extra_opt_files): New AC_SUBST variable. (tm_file_list, tm_include_list): Include options.h first. * configure: Regenerate. * Makefile.in (extra_opt_files, ALL_OPT_FILES): New variables. (s-options): Use $(ALL_OPT_FILES) instead of $(lang_opt_files) (s-options-h): New rule. (options.h): Depend on it. (TEXI_GCCINT_FILES): Add options.texi. * hooks.h (hook_bool_size_t_constcharptr_int_true): Declare. * hooks.c (hook_bool_size_t_constcharptr_int_true): New function. * target.h (gcc_target): Add default_target_flags and handle_option. * target-def.h (TARGET_DEFAULT_TARGET_FLAGS) (TARGET_HANDLE_OPTION): New macros. (TARGET_INITIALIZER): Include them. * opt-functions.awk (opt_args, nth_arg): New functions. (switch_flags): Handle the "Target" flag. (var_args): Delete. (var_name): Use opt_args and nth_arg. (var_set, var_ref): Likewise. Handle "Mask" and "InverseMask". * opth-gen.awk: Declare target_flags. Declare MASK_* and TARGET_* macros for the "Mask" and "InverseMask" options. * opts.h (cl_var_cond): New enum. (cl_option): Replace the "has_set_value" and "set_value" fields with "var_cond" and "var_value". (CL_TARGET): New macro. (option_enabled, print_filtered_help): Declare. (decode_options): Move definition. * opts.c (handle_option): Search for the original option before removing any "no-" prefix. Handle CL_TARGET. Adjust for the new var_cond and var_value fields. Use targetm.handle_option to handle target options. (decode_options): Set target_flags to targetm.default_target_flags. (print_filtered_help): Make global. Handle CL_TARGET. (option_enabled): New function. * toplev.c (target_switches): Guard with #ifdef TARGET_SWITCHES. (display_target_options, set_target_switch, print_switch_values) (default_pch_valid_p): Guard uses of target_switches with #ifdef TARGET_SWITCHES. Also... (display_target_options): Display the CL_TARGET entries in cl_options. (set_target_option): Don't complain about the "" option when TARGET_SWITCHES is undefined. (print_switch_values): Use option_enabled. (default_pch_valid_p): Check cl_options[] when looking for something that has changed the value of target_flags. * c.opt: Remove documentation from top of file. * doc/gccint.texi: Add an "Options" chapter. Include options.texi. * doc/sourecebuild.texi: Refer to the new options documentation instead of c.opt. Document machine-specific .opt files. * doc/tm.texi (target_flags): Say that this variable is declared by options.h. (TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION): Document. (TARGET_SWITCHES, TARGET_OPTIONS): Refer to the option files as an alternative. * doc/options.texi: New file. From-SVN: r96448
2005-03-14config.gcc: Remove excess indentation.Alan Modra1-57/+57
* config.gcc: Remove excess indentation. (powerpc*-*-*, rs6000-*-*): Accept --with-cpu/tune power5 and 8548. From-SVN: r96405
2005-03-11* config.gcc (hppa*64*-*-hpux11*): Use pa/t-hpux-shlib.Joseph Myers1-1/+1
From-SVN: r96280
2005-03-05config.gcc (hppa*64*-*-hpux11*): Use pa/pa-hpux1111.h for *-*-hpux11.[1-9]*, ↵Joseph Myers1-1/+1
not just for *-*-hpux11.11. * config.gcc (hppa*64*-*-hpux11*): Use pa/pa-hpux1111.h for *-*-hpux11.[1-9]*, not just for *-*-hpux11.11. From-SVN: r95918
2005-03-01linux.h (MD_EXEC_PREFIX, [...]): Don't undefine here.Kaz Kojima1-1/+1
* config/sh/linux.h (MD_EXEC_PREFIX, MD_STARTFILE_PREFIX): Don't undefine here. (HANDLE_PRAGMA_PACK_PUSH_POP): Delete. (NO_IMPLICIT_EXTERN_C, CPLUSPLUS_CPP_SPEC): Likewise. (TARGET_OS_CPP_BUILTINS): Use LINUX_TARGET_OS_CPP_BUILTINS. (LIB_SPEC, LINK_EH_SPEC, STARTFILE_SPEC, ENDFILE_SPEC, LINK_GCC_C_SEQUENCE_SPEC, USE_LD_AS_NEEDED, TARGET_C99_FUNCTIONS): Delete. * config.gcc (sh*-*-linux*): Use config/linux.h. From-SVN: r95726
2005-02-16config.gcc (powerpc-*-darwin*): Use fragment for Darwin 8 or later.Stan Shebs1-0/+5
* config.gcc (powerpc-*-darwin*): Use fragment for Darwin 8 or later. * config/rs6000/t-darwin8: New, for 64-bit multilib. From-SVN: r95118
2005-02-06config.gcc (*-*-darwin*): Separate darwin7 and darwin8 configs.Geoffrey Keating1-1/+3
* config.gcc (*-*-darwin*): Separate darwin7 and darwin8 configs. * config/darwin8.h: New. * config/darwin7.h: Update comment. From-SVN: r94669
2005-02-01config.gcc (powerpc64-*-linux*): Default to -m64 also for specific 64-bit CPUs.Segher Boessenkool1-1/+2
2005-02-01 Segher Boessenkool <segher@kernel.crashing.org> * config.gcc (powerpc64-*-linux*): Default to -m64 also for specific 64-bit CPUs. From-SVN: r94545
2005-01-31Thx to Eric Botcazou, Andrew Pinski and Mark Kettenis for this one.Marc Espie1-2/+1
Turns out OpenBSD was mistakenly including an embedded system fragment, and thus outputting stabs debug by default. Once the only needed definition is saved from that file, we happily compile with default dwarf2. The rest of the toolchain is happy, and any recent gdb works very well with that... This obviously improves the stability of the compiler, since dwarf2 output is so much more well-tested than stabs on elf platforms... 2005-01-31 Marc Espie <espie@openbsd.org> * config.gcc: Don't include embedded systems fragment, switches default debugging format to ELF. * config/i386/openbsdelf.h: Add DBX_REGISTER_NUMBER since we no longer pick it up there. From-SVN: r94488
2005-01-27config.gcc (Obsolete configurations): Remove 'dummy'...Eric Botcazou1-1/+5
* config.gcc (Obsolete configurations): Remove 'dummy', add sparclite-*-coff*, sparclite-*-elf*, sparc86x-*-elf* and sparc-*-openbsd*. From-SVN: r94313
2005-01-24re PR bootstrap/19364 (embedded sparc does not bootstrap)Eric Botcazou1-5/+5
PR bootstrap/19364 * config.gcc (sparc-*-elf*): Remove sol2.h, sparc/sol2.h and sparc/elf.h, add sparc/sp-elf.h. (sparc-*-rtems*): Likewise. (sparclite-*-elf*): Remove sol2.h, sparc/sol2.h, sparc/elf.h and tm-dwarf2.h, add sparc/sp-elf.h. (sparc86x-*-elf): Likewise. (sparc64-*-elf*): Remove sol2.h, sparc/sol2.h and tm-dwarf2.h. * config/sparc/liteelf.h (TARGET_SUB_OS_CPP_BUILTINS): Rename into TARGET_OS_CPP_BUILTINS. * config/sparc/sp86x-elf (TARGET_SUB_OS_CPP_BUILTINS): Likewise. * config/sparc/rtemself.h (TARGET_SUB_OS_CPP_BUILTINS): Likewise. Undefine it. * config/sparc/openbsd64.h (NO_IMPLICIT_EXTERN_C): Undefine. * config/sparc/sp64-elf.h (NO_IMPLICIT_EXTERN_C): New macro. (SWITCH_TAKES_ARG): Likewise. (LOCAL_LABEL_PREFIX): Likewise. (ASM_GENERATE_INTERNAL_LABEL): Likewise. (TARGET_N_FORMAT_TYPES): Delete. (TARGET_FORMAT_TYPES): Likewise. (ASM_DECLARE_FUNCTION_SIZE): Likewise. * config/sparc/elf.h: Delete. * config/sparc/sp-elf.h: New file. From-SVN: r94185
2005-01-21config.gcc (sparc-*-netbsdelf*): Include dbxelf.hEric Botcazou1-5/+5
* config.gcc (sparc-*-netbsdelf*): Include dbxelf.h (sparc64-*-openbsd*): Likewise. (sparclite-*-elf*): Include tm-dwarf2.h. (sparc86x-*-elf*): Likewise. (sparc64-*-elf*): Likewise. * config/sparc/linux64.h (DWARF2_DEBUGGING_INFO): Delete. (DBX_DEBUGGING_INFO): Likewise. * config/sparc/liteelf.h (DWARF2_DEBUGGING_INFO): Likewise. (PREFERRED_DEBUGGING_TYPE): Likewise. * config/sparc/netbsd-elf.h (PREFERRED_DEBUGGING_TYPE): Likewise. * config/sparc/sp64-elf.h (DBX_DEBUGGING_INFO): Likewise. (PREFERRED_DEBUGGING_TYPE): Likewise. * config/sparc/sp86x-elf.h (DWARF2_DEBUGGING_INFO 1): Likewise. (PREFERRED_DEBUGGING_TYPE): Likewise. * config/sparc/sparc.h (DBX_DEBUGGING_INFO): Likewise. From-SVN: r94011
2005-01-19re PR target/19529 (sh-rtems multilibs broken)Ralf Corsepius1-2/+2
2005-01-19 Ralf Corsepius <ralf.corsepius@rtems.org> PR target/19529 * config/sh/t-rtems: New. * config.gcc (sh-*-rtems*): Reflect having added config/sh/t-rtems. From-SVN: r93921
2005-01-18basic-block.h, [...]: Update copyright.Kazu Hirata1-1/+1
* basic-block.h, c-common.c, c-cppbuiltin.c, c-lang.c, c-tree.h, cfgbuild.c, cgraph.c, cgraph.h, collect2.c, combine.c, config.gcc, coverage.h, cse.c, cselib.c, defaults.h, df.c, dwarf2asm.c, dwarf2out.c, explow.c, expr.c, flow.c, fold-const.c, gcse.c, ggc-page.c, gimple-low.c, gimplify.c, ifcvt.c, langhooks-def.h, lcm.c, optabs.h, output.h, postreload-gcse.c, postreload.c, recog.c, resource.c, rtl.def, rtlanal.c, sched-deps.c, sched-rgn.c, targhooks.h, toplev.c, tree-data-ref.c, tree-eh.c, tree-flow.h, tree-loop-linear.c, tree-mudflap.h, tree-nrv.c, tree-optimize.c, tree-outof-ssa.c, tree-pass.h, tree-scalar-evolution.c, tree-ssa-copy.c, tree-ssa-dce.c, tree-ssa-dse.c, tree-ssa-loop-ivopts.c, tree-ssa-operands.c, tree-ssa-pre.c, tree-ssa.c, tree-vectorizer.c, tree.def, unwind-dw2-fde-darwin.c, var-tracking.c: Update copyright. From-SVN: r93827
2005-01-17config.gcc (mips64*-*-linux*): Set the default abi to n32.Richard Sandiford1-9/+1
* config.gcc (mips64*-*-linux*): Set the default abi to n32. Remove redundant target_cpu_default and extra_parts lines. Use the default "from-abi" ISA. * config/mips/linux64.h (DRIVER_DEFAULT_ABI_SELF_SPEC): Delete. (SUBTARGET_EXTRA_SPECS): Delete. (DRIVER_SELF_SPECS): Remove architecture lines. Set the ABI directly. (SUBTARGET_ASM_SPEC): Remove -mabi=n32 and -mabi=64 mappings. * config/mips/t-linux64 (MULTILIB_DIRNAMES): Use "32" for -mabi=32 and "n32" for -mabi=n32. From-SVN: r93777
2005-01-15config.gcc (*-*-openbsd*): Set HAS_LIBC_R for OpenBSD <= 3.2.Marc Espie1-1/+12
2005-01-11 Marc Espie <espie@openbsd.org> * config.gcc (*-*-openbsd*): Set HAS_LIBC_R for OpenBSD <= 3.2. (i[34567]86-*-openbsd*): Switch to ELF for OpenBSD >= 3.4. * config/openbsd.h: Fix C++ includes for native configurations. Add proper OS_CPP_BUILTINS. Fix libspec for recent OpenBSD. Add trampoline support. * config/i386/openbsdelf.h: New. okay Richard Earnshaw, Zack Weinberg, further changes in a separate patch. From-SVN: r93694
2004-12-22config.gcc: Add dbxelf.h to NetWare's tm_file.Jan Beulich1-1/+1
gcc/ 2004-12-22 Jan Beulich <jbeulich@novell.com> * config.gcc: Add dbxelf.h to NetWare's tm_file. * config/i386/netware-crt0.c: Prototype __init_environment and __deinit_environment prior to their definition. (__init_environment): Correct invokation of constructor function. * config/i386/netware.h (TARGET_OS_CPP_BUILTINS): Use builtin_define_std rather than builtin_define on IAPX386. * config/i386/nwld.h: Disable stabs debugging info with the linker this file supports. * config/i386/t-nwld (SHLIB_LINK): Do not use a temporary file for the output. Add -posix to the options as that is the more compatible mode. * gthr-nks.h: Formatting. (__gthread_mutex_init_function): Kill the dubious use of NX_MUTEX_RECURSIVE as it is now clear that the traditional mutexes were not meant to be recursive. (__gthread_recursive_mutex_t, __GTHREAD_RECURSIVE_MUTEX_INIT_FUNCTION, __gthread_recursive_mutex_init_function, __gthread_recursive_mutex_lock, __gthread_recursive_mutex_trylock, __gthread_recursive_mutex_unlock): New. gcc/testsuite/ 2004-12-22 Jan Beulich <jbeulich@novell.com> * gcc.dg/20040813-1.c: Skip for *-*-netware*. From-SVN: r92488
2004-11-26Changes for k*bsd-gnu support.Robert Millan1-1/+5
* config/i386/linux.h: Define REG_NAME to allow overriding of register names in sc structure. * config/i386/linux-unwind.h: Refer to sc->REG_NAME(reg) instead of sc->reg. * config.gcc: Detect x86_64-k*bsd-gnu systems. From-SVN: r91350
2004-11-25config.gcc (avr-*-rtems*): Fix typo.Ralf Corsepius1-1/+1
2004-11-25 Ralf Corsepius <ralf.corsepius@rtems.org> * config.gcc (avr-*-rtems*): Fix typo. From-SVN: r91274
2004-11-24Oops - forgot to commit the change to config.gcc when checking in this patch:Nick Clifton1-2/+2
2004-11-22 Kazuhiro Inaoka <inaoka.kazuhiro@renesas.com> * config.gcc: Use t-slibgcc-elf to build libgcc_s.so on m32r*linux. * config/m32r/t-linux (SHLIB_MAPFILES): Override to use m32r/libgcc-glibc.ver. * config/m32r/libgcc-glibc.ver: Add New file. From-SVN: r91143
2004-11-23t-rtems: New.Ralf Corsepius1-1/+1
2004-11-23 Ralf Corsepius <ralf.corsepius@rtems.org> * config/c4x/t-rtems: New. * config.gcc: Reflect having added c4x/t-rtems. From-SVN: r91082
2004-11-23config.gcc (h8300-*-rtems*): Use h8300/t-rtems.Ralf Corsepius1-1/+1
2004-11-23 Ralf Corsepius <ralf.corsepius@rtems.org> * config.gcc (h8300-*-rtems*): Use h8300/t-rtems. From-SVN: r91079
2004-11-23t-rtems: New.Ralf Corsepius1-1/+1
2004-11-23 Ralf Corsepius <ralf.corsepius@rtems.org> * config/arm/t-rtems: New. * config.gcc: Reflect having added arm/t-rtems. From-SVN: r91076