summaryrefslogtreecommitdiff
path: root/gcc/config.host
Commit message (Collapse)AuthorAgeFilesLines
* gcc/rth2007-03-301-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * config/i386/cygming.h (DWARF2_DEBUGGING_INFO): Enable by default for 64-bit. (PREFERRED_DEBUGGING_TYPE): Prefer dwarf2 for 64-bit. (TARGET_64BIT_MS_ABI): New. (DBX_REGISTER_NUMBER): Handle 64-bit. (SIZE_TYPE, PTRDIFF_TYPE): Use long long for 64-bit. (LONG_TYPE_SIZE): Force to 32. (REG_PARM_STACK_SPACE): New. (OUTGOING_REG_PARM_STACK_SPACE): New. (REGPARM_MAX, SSE_REGPARM_MAX): New. (HANDLE_PRAGMA_PUSH_POP_MACRO): New. (STACK_BOUNDARY): Use 128 for 64-bit. * config/i386/cygwin.asm: Use push/ret to preserve call stack. Add 64-bit implementation. * config/i386/gthr-win32.c (__gthr_win32_key_create): Mark dtor argument unused. * config/i386/i386.c (x86_64_ms_abi_int_parameter_registers): New. (override_options): Set ix86_cmodel for TARGET_64BIT_MS_ABI. Warn for -mregparm, -mrtd in 64-bit mode; force ix86_regparm for 64-bit; use TARGET_SUBTARGET64_DEFAULT. (ix86_handle_cconv_attribute): Don't warn when ignoring if TARGET_64BIT_MS_ABI. (ix86_function_arg_regno_p): Handle TARGET_64BIT_MS_ABI. (ix86_pass_by_reference): Likewise. (ix86_function_value_regno_p): Likewise. (ix86_build_builtin_va_list): Likewise. (ix86_va_start, ix86_gimplify_va_arg): Likewise. (function_arg_advance_ms_64): New. (function_arg_advance): Call it. (function_arg_ms_64): New. (function_arg): Call it. (function_value_ms_64): New. (ix86_function_value_1): Call it. (return_in_memory_ms_64): New. (ix86_return_in_memory): Call it. (setup_incoming_varargs_ms_64): New. (ix86_setup_incoming_varargs): Call it. (ix86_expand_prologue): Handle 64-bit stack probing. (legitimize_pic_address): Handle TARGET_64BIT_MS_ABI. (output_pic_addr_const): Likewise. (x86_this_parameter): Likewise. (x86_output_mi_thunk): Likewise. (x86_function_profiler): Likewise. (TARGET_STRICT_ARGUMENT_NAMING): New. * config/i386/i386.h (TARGET_SUBTARGET64_DEFAULT): New. (TARGET_64BIT_MS_ABI): New. (CONDITIONAL_REGISTER_USAGE): Handle TARGET_64BIT_MS_ABI. * config/i386/i386.md (allocate_stack_worker): Remove. (allocate_stack_worker_32): Rename from allocate_stack_worker_1; describe the clobber of eax without a match_scratch. (allocate_stack_worker_postreload): Remove. (allocate_stack_worker_64): Rename from allocate_stack_worker_rex64; describe the clobbers of rax, r10, r11 properly; use __chkstk symbol. (allocate_stack_worker_rex64_postreload): Remove. (allocate_stack): Handle 64-bit. * config/i386/i386elf (TARGET_SUBTARGET_DEFAULT): Remove. * config/i386/mingw32.h (TARGET_VERSION): Set correctly for 64-bit. (EXTRA_OS_CPP_BUILTINS): Handle 64-bit. (STANDARD_INCLUDE_DIR): Handle TARGET_64BIT_DEFAULT. (STANDARD_STARTFILE_PREFIX_1): Likewise. * config/i386/unix.h (TARGET_SUBTARGET64_DEFAULT): New. * config.build (x86_64-*-mingw*): New host. * config.host (x86_64-*-mingw*): New host. * config.gcc (x86_64-*-mingw*): New target. * gthr-win32.h (__gthread_key_create): Mark dtor unused. libgcc/ * config.host (x86_64-*-mingw*): New target. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@123372 138bc75d-0d04-0410-961f-82ee72b054a4
* 2006-12-05 H.J. Lu <hongjiu.lu@intel.com>hjl2006-12-051-3/+2
| | | | | | | * config.host: Remove extra blank line. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@119544 138bc75d-0d04-0410-961f-82ee72b054a4
* * config.host (i[34567]86-*-*, x86-64-*-*): Use driver-i386.o only ifbernds2006-12-051-2/+8
| | | | | | | | target is also an x86 variant. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@119543 138bc75d-0d04-0410-961f-82ee72b054a4
* 2006-11-09 Eric Christopher <echristo@apple.com>echristo2006-11-091-0/+4
| | | | | | | | | | | | | | | PR bootstrap/26892 PR bootstrap/27814 PR other/28994 * configure.ac: Match powerpc*-*-darwin* for powerpc darwin checks. * config.gcc (powerpc64-*-darwin*): New target. * config.host: Ditto. * config/rs6000/darwin64.h: New file. * config/rs6000/x-darwin64: Ditto. * config/rs6000/host-ppc64-darwin.c: Ditto. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@118633 138bc75d-0d04-0410-961f-82ee72b054a4
* 2006-11-06 Eric Christopher <echristo@apple.com>echristo2006-11-071-1/+1
| | | | | | | | | | * config.gcc: Add x86_64-darwin host support. * config.host: Ditto. * config/i386/darwin64.h: New file. * config/i386/t-darwin64: Ditto. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@118541 138bc75d-0d04-0410-961f-82ee72b054a4
* * config/i386/driver-i386.c: Always define host_detect_local_cpu.geoffk2006-09-221-5/+2
| | | | | | | | | | | * config/i386/i386.h: Define EXTRA_SPEC_FUNCTIONS on any i386 or x86_64 host. Define HAVE_LOCAL_CPU_DETECT. (CC1_CPU_SPEC): Make conditional on HAVE_LOCAL_CPU_DETECT rather than replicating condition above. * config.host (i[34567]86-*-*): Always use driver-i386.o. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@117159 138bc75d-0d04-0410-961f-82ee72b054a4
* PR target/27599matz2006-05-181-14/+14
| | | | | | | | * config.host: Make assignments to host_xmake_file cumulative. * config.host (*-darwin*): Test $host, not $target. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@113886 138bc75d-0d04-0410-961f-82ee72b054a4
* PR target/27599dannysmith2006-05-161-1/+1
| | | | | | | | * config.host (i[34567]86-*-mingw*): Append i386/x-mingw32 to host_xmake_file. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@113816 138bc75d-0d04-0410-961f-82ee72b054a4
* 2006-05-13 Richard Guenther <rguenther@suse.de>sayle2006-05-141-2/+2
| | | | | | | | | * config.host <i[34567]86-*-cygwin*>: Append i386/x-cygwin to host_xmake_file. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@113754 138bc75d-0d04-0410-961f-82ee72b054a4
* * config.host (<i[34567]86-*-*, x86_64-*-*>): Setmatz2006-05-091-1/+12
| | | | | | | | | | | | | | | | | | host_extra_gcc_objs and host_xmake_file. (<*-*-linux*>): Don't overwrite host_xmake_file. * gcc.c (static_spec_functions): Add EXTRA_SPEC_FUNCTIONS. * config/i386/i386.h (EXTRA_SPEC_FUNCTIONS): Define. (host_detect_local_cpu): Declare. (CC1_CPU_SPEC): Add -march=native and -mtune=native cases. * config/i386/i386.c (override_options): Handle -mtune=native as -mtune=generic. * config/i386/x-i386: New file. * config/i386/driver-i386.c: New file. * doc/invoke.texi (<i386 and x86-64 Options>): Describe cpu-type "native". git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@113655 138bc75d-0d04-0410-961f-82ee72b054a4
* * pa/x-ada-hpux10, pa/t-pa-hpux10, pa/t-pa-hpux11: New files.danglin2006-02-051-1/+4
| | | | | | | | | | | | | | | | | * config.gcc (hppa[12]*-*-hpux10*): Use pa/t-pa-hpux10 instead of pa/t-pa. * config.gcc (hppa[12]*-*-hpux11*): Use pa/t-pa-hpux11 instead of pa/t-pa. * config.host (hppa*-*-hpux10*): Use pa/x-ada-hpux10 instead of pa/x-ada. * pa/t-pa-hpux: Add lib2funcs.asm and quadlib.c rules. * pa/t-pa64: Delete quadlib.c rule. * pa/x-ada: Revert last change. * pa/t-pa: Revert last change. Delete quadlib.c rule. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@110615 138bc75d-0d04-0410-961f-82ee72b054a4
* PR driver/20425amodra2005-12-161-7/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * gcc.c (for_each_path): New function. (add_to_obstack, file_at_path): New functions. (struct file_at_path_info, struct add_to_obstack_info): New. (build_search_list): Rewrite using for_each_path. Constify struct path_prefix pointer. Add do_multi param. Adjust all callers. (find_a_file): Similarly, but just change existing param to bool. (putenv_from_prefixes): Add do_multi param, make "paths" const. (do_spec_path): Delete. (struct spec_path_info): New. (spec_path): New function. (do_spec_1): Use for_each_path for %D and %I. (find_file): Adjust for find_a_file changes. (main): Search multilibs for specs. Print multilib lib path for -print-search-dirs. Likewise add multilibs to LIBRARY_PATH_ENV. (read_specs): Search multilibs for %include and %include_noerr. (is_directory): Remove second string param. Change last param to a bool. Don't use concat. Remove SMALL_ARG_MAX test, always check path is a dir. Update all callers. * doc/hostconfig.texi (SMALL_ARG_MAX): Remove mention. * system.h (SMALL_ARG_MAX): Poison. * config.gcc: Don't define SMALL_ARG_MAX. * config.host: Likewise. * config.build: Likewise. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@108635 138bc75d-0d04-0410-961f-82ee72b054a4
* * config.host (hppa*-*-hpux*): Change out_host_hook_obj andsje2005-10-071-4/+6
| | | | | | | | | | | | | | host_xmake_file. (hppa*-*-linux*): Ditto. (ia64-*-hpux*): Add out_host_hook_obj and host_xmake_file. config/host-hpux.c: New. config/x-hpux: New. config/pa/x-hpux: Remove. config/pa/x-linux: Remove. config/pa/pa-host.c: Remove. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@105093 138bc75d-0d04-0410-961f-82ee72b054a4
* gcc/kazu2005-07-201-3/+0
| | | | | | | | | | | | | | | | | | * config.gcc: Remove support for sparc-*-openbsd*, i860-*-sysv4*, ip2k-*-elf, ns32k-*-netbsdelf*, ns32k-*-netbsd*. * config.host: Remove support for i860-*-sysv4* as a host. * config/i860/*, config/ip2k/*, config/ns32k/*, config/sparc/openbsd.h, config/sparc/t-openbsd: Remove. * doc/install.texi, doc/invoke.texi, doc/md.texi: Don't mention obsolete ports. testsuite/ * gcc.dg/20020312-2.c, gcc.dg/sibcall-3.c, gcc.dg/sibcall-4.c, gcc.dg/cpp/assert4.c: Don't mention obsolete ports. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@102189 138bc75d-0d04-0410-961f-82ee72b054a4
* Update FSF address.kcook2005-06-251-2/+2
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@101317 138bc75d-0d04-0410-961f-82ee72b054a4
* * config.host: Add a section for generic hosts, and a subsectiongeoffk2005-04-061-3/+15
| | | | | | | | | | | | | | | | | for Darwin. Add a case for x86-darwin. Update ppc-darwin case. * config/host-darwin.c: New, split out of config/rs6000/host-darwin.c. * config/host-darwin.h: New. * config/x-darwin: New. * config/i386/host-i386-darwin.c: New. * config/i386/x-darwin: New. * config/rs6000/host-darwin.c: Include host-darwin.h. (darwin_rs6000_gt_pch_get_address): Move to config/host-darwin.c. (darwin_rs6000_gt_pch_use_address): Likewise. * config/rs6000/x-darwin: Change name of .o built, update dependencies for changes to rs6000/host-darwin.c. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@97709 138bc75d-0d04-0410-961f-82ee72b054a4
* * config.host (i[34567]86-*-mingw32*): Don't setian2005-03-301-1/+0
| | | | | | | host_can_use_collect2 to no. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@97236 138bc75d-0d04-0410-961f-82ee72b054a4
* 2005-03-08 Earl Chew <earl_chew@agilent.com>billingd2005-03-071-0/+2
| | | | | | | | | | | | David Billinghurst <David.Billinghurst@riotinto.com> * config/i386/host-cygwin.c: New file to support precompiled headers on cygwin * config/i386/x-cygwin: Use host-cygwin.c on cygwin host * config.host: Use above files for cygwin host. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@96050 138bc75d-0d04-0410-961f-82ee72b054a4
* PR pch/14940danglin2004-11-301-1/+6
| | | | | | | | | * config/pa/pa-host.c, config/pa/x-hpux, config/pa/x-linux: New files. * config.host (hppa*-*-hpux*, hppa*-*-linux): Define out_host_hook_obj and host_xmake_file using new host configuration files. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@91509 138bc75d-0d04-0410-961f-82ee72b054a4
* 2004-08-30 Andrew Pinski <apinski@apple.com>pinskia2004-08-311-0/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | PR rtl-opt/13987 * config.host (use_long_long_for_widest_fast_int): New, default is off. (ia64-*-hpux*): Enable use_long_long_for_widest_fast_int. * configure.ac: If use_long_long_for_widest_fast_int, then define USE_LONG_LONG_FOR_WIDEST_FAST_INT. * configure: Regenerate. * config.in: Regenerate. * hwint.h (HOST_WIDEST_FAST_INT, HOST_BITS_PER_WIDEST_FAST_INT): New: widest integer type supported efficiently in hardware for the host. * sbitmap.h (SBITMAP_ELT_BITS): Define based on HOST_BITS_PER_WIDEST_FAST_INT. (SBITMAP_ELT_TYPE): Define based on HOST_WIDEST_FAST_INT. * hard-reg-set.h (HARD_REG_ELT_TYPE): Define based on HOST_WIDEST_FAST_INT instead of HOST_WIDE_INT. (HARD_REG_SET_LONGS): Likewise. (UHOST_BITS_PER_WIDE_INT): Likewise. Change the checks for the fast cases to be based on HOST_BITS_PER_WIDES_FAST_INT instead of HOST_BITS_PER_WIDE_INT. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@86816 138bc75d-0d04-0410-961f-82ee72b054a4
* * toplev.c (init_asm_output): Add explicit 'b' to mode whendannysmith2004-06-051-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | opening asm_out_file. * c-pch.c (c_common_write_pch): Remove unnecessary fflush before reading asm_out_file. Replace fflush after reading asm_out_file with fseek. * hosthooks-def.h (HOST_HOOKS_GT_PCH_ALLOC_GRANULARITY): Define default and add to HOST_HOOKS_INITIALIZER. * hosthooks.h (gt_pch_alloc_granularity): Declare hook function. * ggc-common.c (default_gt_pch_alloc_granularity): New function. (gt_pch_save): Use host_hooks.gt_pch_alloc_granularity to set mmi.offset padding. * config.gcc (i[34567]86-*-mingw32*): Set target_gtfiles to $(srcdir)/config/i386/winnt.c. (i[34567]86-*-pe | i[34567]86-*-cygwin*): Likewise. (i[34567]86-*-uwin*): Likewise. *i[34567]86-*-interix3*): Likewise. * config.host (i[34567]86-*-mingw32*): Set out_host_hook_obj. * config/i386/host-mingw32.c: New file. * config/i386/x-mingw32: Add rule for host-mingw32.o. * config/i386/winnt.c: (struct extern_list) Tag as GTY. (extern_head): Likewise. (struct export_list) Likewise. (export_head): Likewise. (i386_pe_record_external_function): Use ggc_alloc. (i386_pe_record_exported_symbol): Likewise. Include "gt-winnt.h" at end. * doc/hostconfig.texi: Document HOST_HOOKS_GT_PCH_ALLOC_GRANULARITY. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@82643 138bc75d-0d04-0410-961f-82ee72b054a4
* PR target/14548neroden2004-04-051-0/+9
| | | | | | | | | | | | | | | | | | | | * config.host: Set the shell variable host_can_use_collect2. Set it to yes by default, and to no for alpha*-dec-*vms*, i[34567]86-*-mingw32*, and powerpc-*-beos*. * configure.ac: Set and substitute the shell variable collect2. Give an error if use_collect2 is yes and host_can_use_collect2 is no. * Makefile.in (COLLECT2): Rename from USE_COLLECT2. Change all uses. Initialize to @collect2@. (STAGESTUFF): Remove $(USE_COLLECT2). * config/alpha/x-vms (USE_COLLECT2): Don't set. * config/i386/t-mingw32 (USE_COLLECT2): Likewise. * config/rs6000/t-beos (USE_COLLECT2): Likewise. * config/pa/t-pa64: Remove commented out USE_COLLECT2. * configure: Regenerate. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@80422 138bc75d-0d04-0410-961f-82ee72b054a4
* * c-pch.c (c_common_no_more_pch): Update for gt_pch_use_addressrth2004-03-111-0/+10
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | extra arguments. * config.host (*-*-solaris2*, *-*-linux*): Add out_host_hook_obj and host_xmake_file fragments. * ggc-common.c (gt_pch_save): Update for gt_pch_get_address change. (gt_pch_restore): Similarly for gt_pch_use_address. (default_gt_pch_get_address): New. (mmap_gt_pch_get_address): Split out of gt_pch_save. (default_gt_pch_use_address): Split out of gt_pch_restore. (mmap_gt_pch_use_address): Likewise. * hooks.c (hook_voidp_size_t_null): Remove. (hook_bool_voidp_size_t_false): Remove. * hooks.h: Likewise. * hosthooks-def.h (HOST_HOOKS_GT_PCH_GET_ADDRESS): Use one of the default_ or mmap_ definitions. (HOST_HOOKS_GT_PCH_USE_ADDRESS): Likewise. * hosthooks.h (struct host_hooks): Update gt_pch_get_address and gt_pch_use_address. * config/host-linux.c, config/host-solaris.c: New files. * config/x-linux, config/x-solaris: New files. * config/rs6000/host-darwin.c darwin_rs6000_gt_pch_get_address): Update for changed definition. (darwin_rs6000_gt_pch_use_address): Likewise. * doc/hostconfig.texi: Update docs. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@79295 138bc75d-0d04-0410-961f-82ee72b054a4
* * Makefile.in, configure.in, config.host, mkheaders.in: Replaceneroden2003-10-141-3/+3
| | | | | | | | | | | uses of ${target_alias} for directory names (and other places which won't like the empty string) with ${target_noncanonical}. Introduce call early in configure.in to _GCC_TOPLEV_NONCANONICAL_TARGET so it's available. * configure: Regenerate. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@72457 138bc75d-0d04-0410-961f-82ee72b054a4
* * configure.in: Fix grammatical error. Move UWIN host error to...neroden2003-10-131-1/+3
| | | | | | | | * config.host: Here. * configure: Regenerate. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@72435 138bc75d-0d04-0410-961f-82ee72b054a4
* * config/mips/xm-iris5.h: Remove, unnecessary.ro2003-10-011-6/+0
| | | | | | | | | | | | | * config.build (mips-sgi-irix5*): Remove. (mips-sgi-irix6*o32): Likewise. * config.gcc (mips-sgi-irix6*o32): Remove xm_file. (mips-sgi-irix5cross64): Likewise. (mips-sgi-irix5*): Likewise. * config.host (mips-sgi-irix5*): Remove. (mips-sgi-irix6*o32): Likewise. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@72003 138bc75d-0d04-0410-961f-82ee72b054a4
* * config.host: Removed superfluous newline.ro2003-09-231-2/+1
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@71701 138bc75d-0d04-0410-961f-82ee72b054a4
* * config.host: Allow unknown hosts (not targets). Allowneroden2003-09-231-461/+11
| | | | | | | | | | | ns32k-*-netbsdelf* as a host (not a target). Remove redundant empty clauses. Remove useless obsolete-configuration clause. Prune unsupported configuration list. Collapse identical clauses for closely related systems. Rewrite comment for unsupported hosts list. Reorganize a little. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@71686 138bc75d-0d04-0410-961f-82ee72b054a4
* * config/i386/xm-vsta.h: Remove xm-file believed useless.neroden2003-09-191-1/+0
| | | | | | | | * config.build (i386-vsta): Remove reference to it. * config.host (i386-vsta): Remove reference to it. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@71587 138bc75d-0d04-0410-961f-82ee72b054a4
* * config.host: New file.neroden2003-09-011-0/+611
* config.gcc: Remove some host-specific stuff and some logic needed only for repeated invocation. * configure.in: Use config.host. * configure: Regenerate. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@70975 138bc75d-0d04-0410-961f-82ee72b054a4