From 99b02bd388f2b84acf9c2c226bf2ac7703c03ba8 Mon Sep 17 00:00:00 2001 From: xleroy Date: Wed, 11 Jul 2012 08:22:38 +0000 Subject: Strip quotes from section names during #pragma parsing. Reinstall the quotes when printing asm. The idea is that .sdump files now contain unquoted section names, which is easier on cchecklink. git-svn-id: https://yquem.inria.fr/compcert/svn/compcert/trunk@1967 fca1b0fc-160b-0410-b1d3-a4f43f01ea2e --- cfrontend/CPragmas.ml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'cfrontend/CPragmas.ml') diff --git a/cfrontend/CPragmas.ml b/cfrontend/CPragmas.ml index 63bd3f9f..7bf80bba 100644 --- a/cfrontend/CPragmas.ml +++ b/cfrontend/CPragmas.ml @@ -61,8 +61,8 @@ let re_start_pragma_section = Str.regexp "section\\b" let re_pragma_section = Str.regexp( "section[ \t]+" ^ "\\([A-Za-z_][A-Za-z_0-9]*\\)[ \t]+" (* class_name *) -^ "\\(\"[^\"]*\"\\)?[ \t]*" (* istring *) -^ "\\(\"[^\"]*\"\\)?[ \t]*" (* ustring *) +^ "\"\\([^\"]*\\)\"?[ \t]*" (* istring *) +^ "\"\\([^\"]*\\)\"?[ \t]*" (* ustring *) ^ "\\([a-zA-Z-]+\\)?[ \t]*" (* addressing mode *) ^ "\\([RWXON]*\\)" (* access mode *) ) -- cgit