This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH] PR bootstrap/65176: config.guess failed to guess machine with 64-bit kernel and 32-bit user space


On Mon, 23 Feb 2015, H.J. Lu wrote:

> Tested with 64-bit, 32-bit and x32 user-space environments under
> Linux/x86-64 kernel.  I am not sure if this will ever be accepted in
> upstream since the config.guess maintainer doesn't want to add a new
> use of set_cc_for_build to config.guess.  set_cc_for_build is used for
> Linux:

Well, we don't want any local changes to config.* in GCC / binutils-gdb / 
glibc - those files should remain as files that only get updated by 
verbatim copying from config.git.

In glibc, sysdeps/x86_64/preconfigure.ac already checks for x32.  I think 
it would be fine to combine sysdeps/i386/preconfigure and 
sysdeps/x86_64/preconfigure.ac into a single sysdeps/x86/preconfigure.ac 
that allows both i?86 and x86_64 triplets to be used for all three ABIs, 
determining the correct machine and base_machine settings based on how the 
compiler behaves.

-- 
Joseph S. Myers
joseph@codesourcery.com


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]