[PATCH][LTO] Committed patch to fix a crash due to syntax error.

Doug Kwan (關振德) dougkwan@google.com
Thu Oct 9 08:51:00 GMT 2008


2008/10/9 Richard Guenther <richard.guenther@gmail.com>:

> Sure.  Just to clarify - the segfault is with the LTO frontend
> or with the C++ frontend and -flto?  (that is, is the input
> LTO data or a C++ program?)  If the former then I still think
> this is the wrong approach.

Crash is in the gimplifier.  This has nothing to do with LTO except
that it is found in LTO testing.  Input is a C++ source.

>> --bug.cc--
>> extern bool foo;
>> void func() { if (foo) { try { return; } catch () {} } }
>> -------
>> $ rm -rf bug.s
>> $ g++ -O2 -S bug.cc  /* this is normal, non LTO gcc. */
>> bug.cc: In function 'void func()':
>> bug.cc:2: error: expected type-specifier before ')' token
>
> So it doesn't crash?

Sorry, 4.0.3 is not a good example.  It does not crash since it is not
tuplified.  A not-so-recent copy of trunk, which has the tuples branch
merged crashes also.

> Richard.
>
>> $ cat bug.s
>>        .file   "bug.cc"
>>        .ident  "GCC: (GNU) 4.0.3 (Ubuntu 4.0.3-1ubuntu5)"
>>        .section        .note.GNU-stack,"",@progbits
>> $
>>
>>
>> 2008/10/9 Richard Guenther <richard.guenther@gmail.com>:
>>
>>>
>>> Does this mean -flto writes out translation units which contain
>>> errors?
>>>
>>
>



More information about the Gcc-patches mailing list