This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: nvptx-tools and nvptx-newlib (was: The nvptx port [10/11+] Target files)
- From: Jakub Jelinek <jakub at redhat dot com>
- To: Thomas Schwinge <thomas at codesourcery dot com>
- Cc: GCC Patches <gcc-patches at gcc dot gnu dot org>, Bernd Schmidt <bernds at codesourcery dot com>
- Date: Wed, 4 Feb 2015 10:43:14 +0100
- Subject: Re: nvptx-tools and nvptx-newlib (was: The nvptx port [10/11+] Target files)
- Authentication-results: sourceware.org; auth=none
- References: <54451994 dot 9070209 at codesourcery dot com> <54451D57 dot 5050803 at codesourcery dot com> <5447F0E1 dot 7080906 at redhat dot com> <544FAE8B dot 5010906 at codesourcery dot com> <545179C6 dot 4030406 at redhat dot com> <5460E5AD dot 6060502 at codesourcery dot com> <87vbl2w69s dot fsf at kepler dot schwinge dot homeip dot net> <87egq8mir1 dot fsf at schwinge dot name>
- Reply-to: Jakub Jelinek <jakub at redhat dot com>
On Mon, Feb 02, 2015 at 04:32:34PM +0100, Thomas Schwinge wrote:
> Hi!
>
> On Tue, 23 Dec 2014 19:49:35 +0100, I wrote:
> > On Mon, 10 Nov 2014 17:19:57 +0100, Bernd Schmidt <bernds@codesourcery.com> wrote:
> > > The scripts (11/11) I've put up on github, along with a hacked up
> > > newlib. These are at [...]
>
> > > They are likely to migrate to MentorEmbedded from bernds, but that had
> > > some permissions problems last week.
> >
> > That has recently been done:
> > <https://github.com/MentorEmbedded/nvptx-tools> and
> > <https://github.com/MentorEmbedded/nvptx-newlib> are now available.
> >
> > (I'm aware that we still are to write up how to actually build and test
> > all this.)
>
> I just updated
> <https://gcc.gnu.org/wiki/Offloading?action=diff&rev2=26&rev1=25>.
Can you please update the gmane URLs to corresponding
https://gcc.gnu.org/ml/gcc-patches/ URLs? We have our own mailing list
archives, no need to use third party ones.
>
> OK to check in the following to trunk?
> --- gcc/config/nvptx/nvptx.opt
> +++ gcc/config/nvptx/nvptx.opt
> @@ -17,13 +17,13 @@
> ; along with GCC; see the file COPYING3. If not see
> ; <http://www.gnu.org/licenses/>.
>
> -m64
> -Target Report RejectNegative Mask(ABI64)
> -Generate code for a 64 bit ABI
> -
> m32
> Target Report RejectNegative InverseMask(ABI64)
> -Generate code for a 32 bit ABI
> +Generate code for a 32-bit ABI
> +
> +m64
> +Target Report RejectNegative Mask(ABI64)
> +Generate code for a 64-bit ABI
I'd expect you want also Negative(m64) on the m32 option and
Negative(m32) on the m64 option.
> +@table @gcctabopt
> +
> +@item -m32
> +@itemx -m64
> +@opindex m32
> +@opindex m64
> +Generate code for 32-bit or 64-bit ABI.
I guess you should mention which one of those is the default (if it isn't
configure time configurable).
What about multilibs, is newlib built for both -m32 and -m64, or just the
default option?
Jakub