diff options
author | varobert <varobert@fca1b0fc-160b-0410-b1d3-a4f43f01ea2e> | 2012-04-04 11:59:39 +0000 |
---|---|---|
committer | varobert <varobert@fca1b0fc-160b-0410-b1d3-a4f43f01ea2e> | 2012-04-04 11:59:39 +0000 |
commit | caf14050d5fe108dc65e9c8d8df84633e84f79c8 (patch) | |
tree | 42cbc5f8f5934efcaedc13de2b2ce03c4c1799ba /checklink/Check.ml | |
parent | 9f9b003697ac901008affd7008c428109d1afc5e (diff) | |
download | compcert-caf14050d5fe108dc65e9c8d8df84633e84f79c8.tar.gz compcert-caf14050d5fe108dc65e9c8d8df84633e84f79c8.zip |
Better error messages for data symbols
git-svn-id: https://yquem.inria.fr/compcert/svn/compcert/trunk@1869 fca1b0fc-160b-0410-b1d3-a4f43f01ea2e
Diffstat (limited to 'checklink/Check.ml')
-rw-r--r-- | checklink/Check.ml | 15 |
1 files changed, 6 insertions, 9 deletions
diff --git a/checklink/Check.ml b/checklink/Check.ml index dfefbfbe..33914f22 100644 --- a/checklink/Check.ml +++ b/checklink/Check.ml @@ -2612,22 +2612,19 @@ let check_data (pv: (ident * unit globvar) list) (sfw: s_framework) match successes with | [] -> sfw - >>> sf_ef ^%= add_log (ERROR( + >>> sf_ef ^%= + add_log (ERROR( "No matching data segment among candidates [" ^ (string_of_list (fun ndx -> sfw.ef.elf.e_symtab.(ndx).st_name) ", " ident_ndxes ) ^ - "]\nErrors:\n" ^ + "], Errors: [" ^ string_of_list - (fun x -> - match x with - | OK(_) -> "" - | ERR(s) -> s ^ "\n" - ) - "" - results + (function OK(_) -> "" | ERR(s) -> s) + ", " + (List.filter (function ERR(_) -> true | _ -> false) results) )) | [sfw] -> sfw | fws -> |