Skip to content

Commit

Permalink
IA-16: add preproc. assertion #system (msdos)'/#system (elks)'
Browse files Browse the repository at this point in the history
This fixes a regression for the test case gcc.dg/cpp/assert4.c .
  • Loading branch information
tkchia committed Jun 14, 2018
1 parent eb57e7e commit 3fe3537
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions gcc/config/ia16/ia16-c.c
Original file line number Diff line number Diff line change
Expand Up @@ -141,11 +141,13 @@ ia16_cpu_cpp_builtins (void)
{
cpp_define (parse_in, "__ELKS__");
cpp_define (parse_in, "__IA16_SYS_ELKS");
cpp_assert (parse_in, "system=elks");
}
else
{
cpp_define (parse_in, "__MSDOS__");
cpp_define (parse_in, "__IA16_SYS_MSDOS");
cpp_assert (parse_in, "system=msdos");
}
}

Expand Down

0 comments on commit 3fe3537

Please sign in to comment.