[PATCH] Fix "-mno-global-merge" option for clang

Steven Wu stevenwu at apple.com
Fri Jul 25 16:47:08 PDT 2014


This patch fixes the problem in clang after llvm changes the option for global-merge in r210639. When using “-mno-global-merge”, clang will return following error currently:
clang: Unknown command line argument '-global-merge=false'.  Try: 'clang -help'
clang: Did you mean '-enable-global-merge=false’?
This patch should fix this problem.

I try to add a test case but it is not very obvious because there are no current examples for backend options. I add two tests in mno-global-merge.c to make sure it actually runs. If anyone has better idea how to handle this, please let me know.

I don’t have permission to commit the patch. Please help me to commit after review. 

Thanks

Steven
-------------- next part --------------
A non-text attachment was scrubbed...
Name: global_merge.patch
Type: application/octet-stream
Size: 1106 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20140725/2c214451/attachment.obj>
-------------- next part --------------




More information about the cfe-commits mailing list