This is the mail archive of the gcc@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]

Re: mknumeric_limits


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


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