<html>
  <head>

    <meta http-equiv="content-type" content="text/html; charset=UTF-8">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    Hi,<br>
    <br>
    I'm working with thud branch and have run into a bug in gcc. I would
    like help how to proceed with this.<br>
    <br>
    Compiling the following C code gives Segmentation fault in gcc:<br>
    <br>
    <pre>#include &lt;stdio.h&gt;
#include &lt;string.h&gt;
#include &lt;stdint.h&gt;</pre>
    <pre>int main(void)
{
    const int32_t BUFFER_MAX_LENGTH = 4096*1024;
    char buffer[BUFFER_MAX_LENGTH];

    if (strncmp(&amp;buffer[8], "ABC", 3) == 0)
        return 1;

    return 0;
}</pre>
    <br>
    Error:<br>
    <br>
    <pre>| during RTL pass: expand
| /work/yocto/metrum-r3/build/tmp/work/armv7at2hf-neon-poky-linux-gnueabi/compiler-test/1.0-r0/work/git/tmp/strncmp.c: In function 'main':
| /work/yocto/metrum-r3/build/tmp/work/armv7at2hf-neon-poky-linux-gnueabi/compiler-test/1.0-r0/work/git/tmp/strncmp.c:16:6: internal compiler error: Segmentation fault
|   if (strncmp(&amp;buffer[8], "ABC", 3) == 0)
|       ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
| Please submit a full bug report,
| with preprocessed source if appropriate.</pre>
    <br>
    I would like this fixed in thud branch and took a quick look in gcc
    repo for solutions. I had no luck finding anything useful. Anyone
    seeing this before? Anyone having suggestion how to proceed? Shall I
    create a bugzilla in Yocto?<br>
    <br>
    Thanks,<br>
    /Peter<br>
  </body>
</html>