This is the mail archive of the
java-patches@gcc.gnu.org
mailing list for the Java project.
Re: Patch: normalize x86 os.arch for non-Windows platforms
On Mon, 2005-02-14 at 12:19 -0700, Tom Tromey wrote:
> >>>>> "Anthony" == Anthony Green <green@redhat.com> writes:
>
> Anthony> 2005-02-13 Anthony Green <green@redhat.com>
> Anthony> * java/lang/natRuntime.cc (insertSystemProperties): Normalize x86
> Anthony> architecture names to "i386" for compatibility reasons. Win32
> Anthony> still uses "x86".
>
> Anthony> + // is handled in win32.cc).
> Anthony> + if (u.machine[0] == 'i'
> Anthony> + && u.machine[2] == '8'
> Anthony> + && u.machine[3] == '6'
> Anthony> + && u.machine[4] == 0)
>
> Could you add '&& u.machine[1] != 0' in there?
> Maybe this is overly pedantic.
>
> Otherwise this is ok, thanks.
Oops, I nearly forgot about this. Committed along with your suggested
change.
Thanks!
AG