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

            Bug ID: 89006
           Summary: [9 Regression] New note: non-delegitimized UNSPEC
                    UNSPEC_SET_GOT (14) found in variable location since
                    r267638
           Product: gcc
           Version: 9.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: debug
          Assignee: unassigned at gcc dot gnu.org
          Reporter: marxin at gcc dot gnu.org
  Target Milestone: ---

Following code snippet is newly diagnosed:

$ cat /tmp/ubsan_flags.ii
class a {
public:
  a(bool);
};
static void b(const char *p1) { new a(p1); }
void c() {
  b("");
  b("Used to provide fuzzing signal without blowing up logs.");
}

$ ./xgcc -B. /tmp/ubsan_flags.ii -c -O2 -g -fPIC -m32
/tmp/ubsan_flags.ii: In function ‘void c()’:
/tmp/ubsan_flags.ii:6:6: note: non-delegitimized UNSPEC UNSPEC_SET_GOT (14)
found in variable location
    6 | void c() {
      |      ^

Reply via email to