Attached is an updated version of gcc-default-ssp.diff that enables
-fstack-protector-strong by default for gcc-4.9. In addition to enabling
the default, it fixes the following testsuite failures:

-FAIL: gcc.dg/fstack-protector-strong.c scan-assembler-times stack_chk_fail 10
-FAIL: g++.dg/fstack-protector-strong.C -std=gnu++98  scan-assembler-times 
stack_chk_fail 2
-FAIL: g++.dg/fstack-protector-strong.C -std=gnu++11  scan-assembler-times 
stack_chk_fail 2
-FAIL: g++.dg/fstack-protector-strong.C -std=gnu++1y  scan-assembler-times 
stack_chk_fail 2

I did need to update one of the tests that was generating an additional
test failure; I'll attach that patch in just a second.

I've added tests to lp:qa-regression-testing to verify that -fstack-
protector-strong works and is the default option for utopic's compiler.

** Patch added: "gcc-default-ssp.diff"
   
https://bugs.launchpad.net/ubuntu/+source/gcc-4.9/+bug/1317307/+attachment/4111584/+files/gcc-default-ssp.diff

** Changed in: gcc-4.9 (Ubuntu)
     Assignee: Steve Beattie (sbeattie) => (unassigned)

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1317307

Title:
  Make -fstack-protector-strong the default in gcc 4.9

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/gcc-4.9/+bug/1317307/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to