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]
Other format: [Raw text]

Re: Switching to C++ by default in 4.8


On Fri, Apr 6, 2012 at 2:11 AM, David Edelsohn <dje.gcc@gmail.com> wrote:
> On Thu, Apr 5, 2012 at 4:35 PM, Gabriel Dos Reis
> <gdr@integrable-solutions.net> wrote:
>
>>> xlc -fno-exceptions -fno-rtti conftest.c
>>>
>>> fails. ?I don't think -fno-rtti -fno-exceptions does what GCC expects.
>>
>> Thanks for these data. ?I think -fno-rtti and -fno-exceptions don't make
>> much sense at the linker level so we should leave them out, and use
>> them only when "compiling", e.g. with "-c".
>
> It is used when compiling, e.g. gcov.c, but when compiling and linking
> directly from source without an intermediate object file.

These flags should be only used for stage2+ or when compiling with GCC.
Did you try to bootstrap with xlc or did you use --disable-bootstrap?  gcov.c
is supposed to be compiled with the built GCC C++ compiler.

Richard.

> - David


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