diff options
Diffstat (limited to 'gcc/c-parser.c')
-rw-r--r-- | gcc/c-parser.c | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/gcc/c-parser.c b/gcc/c-parser.c index 91a9d29..522f2d2 100644 --- a/gcc/c-parser.c +++ b/gcc/c-parser.c @@ -56,6 +56,7 @@ Software Foundation, 51 Franklin Street, Fifth Floor, Boston, MA #include "c-common.h" #include "vec.h" #include "target.h" +#include "cgraph.h" /* Miscellaneous data and functions needed for the parser. */ @@ -1387,12 +1388,8 @@ static void c_parser_asm_definition (c_parser *parser) { tree asm_str = c_parser_simple_asm_expr (parser); - /* ??? This only works sensibly in the presence of - -fno-unit-at-a-time; file-scope asms really need to be passed to - cgraph which needs to preserve the order of functions and - file-scope asms. */ if (asm_str) - assemble_asm (asm_str); + cgraph_add_asm_node (asm_str); c_parser_skip_until_found (parser, CPP_SEMICOLON, "expected %<;%>"); } |