[Bug c++/93399] New: Annotate assembler option failure

jamesgua at ca dot ibm.com gcc-bugzilla@gcc.gnu.org
Thu Jan 23 11:49:00 GMT 2020


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93399

            Bug ID: 93399
           Summary: Annotate assembler option failure
           Product: gcc
           Version: unknown
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: jamesgua at ca dot ibm.com
  Target Milestone: ---

With g++ 8.3.1 version 
GNU C++14 (GCC) version 8.3.1 20190507 (Red Hat 8.3.1-4) (x86_64-redhat-linux)
        compiled by GNU C version 8.3.1 20190507 (Red Hat 8.3.1-4), GMP version
6.1.2, MPFR version 3.1.6-p2, MPC version 1.0.2, isl version isl-0.16.1-GMP
test case to reproduce:

#include <cstdio>
#include <iostream>
#include <cstring>

int main(int argc, char** argv) {
        char* substr = strstr(argv[0], "\n");
        char* another = strstr(argv[0], "\r\n");
        //printf("found sub string len %d\n", strlen(substr));
        //std::cout << "found sub string len " << strlen(substr) << "\n" <<
std::endl; 
        return 0;
}

failing cmd: 
g++ -fverbose-asm -dA -g -O3 -c test.cpp
it's working with older version, g++ 4.8.5, or we can bypass failure with cmd: 
g++ -fverbose-asm -g -O3 -c test.cpp


More information about the Gcc-bugs mailing list