Skip to content

Commit 1a94c7d

Browse files
author
xleroy
committed
Tolerance in parsing of 'section' pragma
git-svn-id: https://yquem.inria.fr/compcert/svn/compcert/trunk@2623 fca1b0fc-160b-0410-b1d3-a4f43f01ea2e
1 parent 5804501 commit 1a94c7d

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

cfrontend/CPragmas.ml

+3
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,9 @@ let process_pragma name =
6767
| ["section"; classname; istring; ustring; addrmode; accmode] ->
6868
process_section_pragma classname istring ustring addrmode accmode;
6969
true
70+
| ["section"; classname; istring; ustring; accmode] ->
71+
process_section_pragma classname istring ustring "" accmode;
72+
true
7073
| "section" :: _ ->
7174
C2C.error "ill-formed `section' pragma"; true
7275
| "use_section" :: classname :: identlist ->

0 commit comments

Comments
 (0)