This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: mknumeric_limits
- To: Gabriel Dos Reis <gdr at codesourcery dot com>
- Subject: Re: mknumeric_limits
- From: Andreas Schwab <schwab at suse dot de>
- Date: 20 Feb 2001 10:54:11 +0100
- Cc: law at redhat dot com, Benjamin Kosnik <bkoz at redhat dot com>,Phil Edwards <pedwards at disaster dot jaj dot com>, gcc at gcc dot gnu dot org
- References: <27418.982619737@slagheap.cygnus.com><fl7l2mx73n.fsf@sel.cmla.ens-cachan.fr>
Gabriel Dos Reis <gdr@codesourcery.com> writes:
|> Jeffrey A Law <law@redhat.com> writes:
|>
|> | In message <Pine.SOL.3.91.1010219120108.15655A@taarna.cygnus.com>you write:
|> | >
|> | >
|> | > Sometimes we have to use g++ instead of gcc because of __cplusplus
|> | > defines in headers. That's the case for the acinclude.m4 bits.
|> | But I don't think that using gcc for just the link step would affect
|> | that.
|>
|> Aha, are you suuggesting:
|>
|> 1) Use g++ to compile to gen-num-limits.o
|> 2) Use gcc to tranform gen-num-limits.o into an executable
You don't need to use g++ if the source for gen-num-limits.o has a
recognizable C++ extension, or -xc++ is used. gcc automatically sets up
C++ compilation in these cases.
Andreas.
--
Andreas Schwab "And now for something
SuSE Labs completely different."
Andreas.Schwab@suse.de
SuSE GmbH, Schanzäckerstr. 10, D-90443 Nürnberg