New user self-registration is disabled due to spam. For an account please email bugs-admin@lists.llvm.org with your e-mail address and full name.

Bug 9673 - "--param ssp-buffer-size=1" unused argument during compilation
Summary: "--param ssp-buffer-size=1" unused argument during compilation
Status: RESOLVED FIXED
Alias: None
Product: clang
Classification: Unclassified
Component: -New Bugs (show other bugs)
Version: 2.9
Hardware: Macintosh MacOS X
: P enhancement
Assignee: Unassigned Clang Bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-04-10 21:13 PDT by Sebastian Hahn
Modified: 2013-03-07 16:18 PST (History)
7 users (show)

See Also:
Fixed By Commit(s):


Attachments
clang patch (4.22 KB, patch)
2012-08-20 17:26 PDT, Chad Rosier
Details
llvm patch (2.27 KB, patch)
2012-08-20 17:26 PDT, Chad Rosier
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Sebastian Hahn 2011-04-10 21:13:22 PDT
gcc supports the "--param ssp-buffer-size=1" argument, but it seems that clang doesn't recognize it (yet). Are there plans to add this functionality, or is there something preventing it from being added?
Comment 1 Sylvestre Ledru 2012-07-25 06:52:11 PDT
It would be nice to see this bug implemented. It causes almost 100 failures in the rebuild of Debian with clang :
http://clang.debian.net/status.php?version=3.1&key=UNUSED_ARG
Comment 2 Duncan Sands 2012-07-26 11:02:21 PDT
This seems to correspond to LLVM's -stack-protector-buffer-size, so it's just
a matter of wiring it up.
Comment 3 Chad Rosier 2012-08-20 17:26:37 PDT
Created attachment 9081 [details]
clang patch
Comment 4 Chad Rosier 2012-08-20 17:26:56 PDT
Created attachment 9082 [details]
llvm patch
Comment 5 Chad Rosier 2012-08-20 17:27:20 PDT
Attached patches.  Still need llvm codegen test case. (Offers welcome :)
Comment 6 Duncan Sands 2012-08-21 02:12:13 PDT
The LLVM patch looks good to me.
Comment 7 Chad Rosier 2012-08-21 11:17:04 PDT
This should be resolved with r162284/162285.
Comment 8 Sylvestre Ledru 2012-08-21 11:19:14 PDT
Thanks Chad!
Comment 9 Anders Kaseorg 2013-03-07 16:18:49 PST
Can we also make clang accept and ignore this argument when linking but not compiling (bug 15327)?