Bug ID: 81734
           Summary: [7/8 Regression] reference to inline function not
                    emitted with -Os
           Product: gcc
           Version: 7.1.1
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: middle-end
          Assignee: unassigned at gcc dot
          Reporter: doko at gcc dot
  Target Milestone: ---

[forwarded from]

seen with the gcc-7-branch 

$ cat test4.c
int a;

inline void

void test(void)

int main() {return 0;}

$ gcc-6 -O2 -Wall test4.c
$ gcc-6 -Os -Wall test4.c
$ gcc-7 -O2 -Wall test4.c
$ gcc-7 -Os -Wall test4.c
/tmp/ccRQcwvp.o: In function `test':
test4.c:(.text+0x1): undefined reference to `builddircommand'
collect2: error: ld returned 1 exit status

Reply via email to