bug or just an invalid commanline ?

Jonathan Wakely jwakely.gcc@gmail.com
Tue Mar 22 14:51:00 GMT 2016


On 22 March 2016 at 12:08, Mason wrote:
> On 20/03/2016 20:59, Jonathan Wakely wrote:
>
>> On 20 March 2016 at 18:54, Nicholas Mc Guire wrote:
>>
>>>  during some compiler testing to determin the impact of individual flags
>>>  on the layout of binaries I扉e been doing brute force iterations over
>>>  flags and stubled accross the following "internal compiler error"
>>>
>>>  This happens with:
>>>   * gcc (Debian 4.7.2-5) 4.7.2 on Debian 7.6
>>>   * gcc (Debian 4.9.2-10) 4.9.2 on Debian 8.1
>>>
>>> hofrat@debian:~/Diversity/testing$ cat hello.c
>>> #include <stdio.h>
>>>
>>> int main(int argc, char **argv) {
>>>         printf("hello, world\n");
>>>         return 0;
>>> }
>>> hofrat@debian:~/Diversity/testing$ gcc -fshort-double hello.c -c -o hello.o
>>> <built-in>:0:0: internal compiler error: in layout_type, at stor-layout.c:2121
>>> Please submit a full bug report,
>>> with preprocessed source if appropriate.
>>> See <file:///usr/share/doc/gcc-4.7/README.Bugs> for instructions.
>>> Preprocessed source stored into /tmp/ccbpCZZY.out file, please attach this to your bugreport.
>>>
>>>  checking http://gcc.gnu.org/bugs.html#known it did not seem that this
>>>  qualifies as one of the known FP Non-bugs.
>>
>> That page only lists some very frequently reported issues (and
>> non-issues). You need to search bugzilla to see if it's known.
>
> I tried searching for stor-layout.c:2121 in comments, but Bugzilla just
> hung for hours. Searching for stor-layout.c in the summary returns:
>
>   https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63882
>
>>>  Should this be reported or is this just an absurd commanline here ?
>>>  (all other single flags pass - some with legitimate warnings)
>>
>> All internal compiler errors are bugs, always. The compiler should
>> never crash on invalid input or invalid command lines, it should give
>> an error.
>
> Here's a shorter test case, which ICEs even on empty source.
>
> $ echo | gcc -x c -fshort-double -
> <built-in>:0:0: internal compiler error: in layout_type, at stor-layout.c:2136
> Please submit a full bug report,
> with preprocessed source if appropriate.
> See <file:///usr/share/doc/gcc-4.8/README.Bugs> for instructions.
>
> gcc version 4.8.4 (Ubuntu 4.8.4-2ubuntu1~14.04)
>
> Regards.
>

It's https://gcc.gnu.org/bugzilla/show_bug.cgi?id=60410



More information about the Gcc-help mailing list