This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: Get target libraries to obtain thread information from GCC
- To: gcc-patches at gcc dot gnu dot org
- Subject: Re: Get target libraries to obtain thread information from GCC
- From: Alexandre Oliva <aoliva at redhat dot com>
- Date: 25 Apr 2001 17:30:40 -0300
- Cc: libstdc++ at gcc dot gnu dot org, java at gcc dot gnu dot org
- Organization: GCC Team, Red Hat
- References: <orzod6fk0z.fsf@guarana.lsd.ic.unicamp.br>
On Apr 24, 2001, Alexandre Oliva <aoliva@redhat.com> wrote:
> This patch cleans up the thread-model recognition code in all target
> libraries such that it obtains the thread information out of GCC,
> instead of having (and failing) to duplicate the logic used in
> gcc/configure.in.
> Index: gcc/ChangeLog
> from Alexandre Oliva <aoliva@redhat.com>
> * configure.in (configargs.h): Define thread_model.
> * configure: Rebuilt.
> * gcc.c (main): Print it with -v.
I've got approval for libstdc++ and Java, and I don't need approval
for configure.in changes, but I need it for gcc.c. Could someone
please review it? TIA,
> Index: gcc/gcc.c
> ===================================================================
> RCS file: /cvs/gcc/egcs/gcc/gcc.c,v
> retrieving revision 1.219
> diff -u -p -r1.219 gcc.c
> --- gcc/gcc.c 2001/04/19 20:28:05 1.219
> +++ gcc/gcc.c 2001/04/24 13:57:02
> @@ -5792,6 +5792,8 @@ main (argc, argv)
> notice ("Configured with: %s\n", configuration_arguments);
> + notice ("Thread model: %s\n", thread_model);
> +
> /* compiler_version is truncated at the first space when initialized
> from version string, so truncate version_string at the first space
> before comparing. */
--
Alexandre Oliva Enjoy Guarana', see http://www.ic.unicamp.br/~oliva/
Red Hat GCC Developer aoliva@{cygnus.com, redhat.com}
CS PhD student at IC-Unicamp oliva@{lsd.ic.unicamp.br, gnu.org}
Free Software Evangelist *Please* write to mailing lists, not to me