public inbox for gcc-bugs@sourceware.org help / color / mirror / Atom feed
* [Bug target/47766] New: [x32] -fstack-protector doesn't work @ 2011-02-16 13:50 hjl.tools at gmail dot com 2011-02-16 20:45 ` [Bug target/47766] " hjl at gcc dot gnu.org ` (4 more replies) 0 siblings, 5 replies; 6+ messages in thread From: hjl.tools at gmail dot com @ 2011-02-16 13:50 UTC (permalink / raw) To: gcc-bugs http://gcc.gnu.org/bugzilla/show_bug.cgi?id=47766 Summary: [x32] -fstack-protector doesn't work Product: gcc Version: 4.6.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: target AssignedTo: unassigned@gcc.gnu.org ReportedBy: hjl.tools@gmail.com [hjl@gnu-6 ilp32-22]$ cat x.c int parse_opt (int key) { struct { int arg[key]; } reqdata; return 0; } [hjl@gnu-6 ilp32-22]$ make x.s /export/build/gnu/gcc-x32/build-x86_64-linux/gcc/xgcc -B/export/build/gnu/gcc-x32/build-x86_64-linux/gcc/ -S -o x.s -mx32 -O2 -g -fstack-protector x.c x.c: In function \u2018parse_opt\u2019: x.c:9:1: error: unrecognizable insn: (insn 4 3 6 2 (parallel [ (set (mem/v/f/c/i:SI (plus:DI (reg/f:DI 54 virtual-stack-vars) (const_int -4 [0xfffffffffffffffc])) [2 D.2703+0 S4 A32]) (unspec:DI [ (const_int 40 [0x28]) ] UNSPEC_SP_TLS_SET)) (set (scratch:DI) (const_int 0 [0])) (clobber (reg:CC 17 flags)) ]) x.c:3 -1 (nil)) x.c:9:1: internal compiler error: in extract_insn, at recog.c:2109 Please submit a full bug report, with preprocessed source if appropriate. See <http://gcc.gnu.org/bugs.html> for instructions. make: *** [x.s] Error 1 [hjl@gnu-6 ilp32-22]$ ^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug target/47766] [x32] -fstack-protector doesn't work 2011-02-16 13:50 [Bug target/47766] New: [x32] -fstack-protector doesn't work hjl.tools at gmail dot com @ 2011-02-16 20:45 ` hjl at gcc dot gnu.org 2011-08-01 18:22 ` hjl at gcc dot gnu.org ` (3 subsequent siblings) 4 siblings, 0 replies; 6+ messages in thread From: hjl at gcc dot gnu.org @ 2011-02-16 20:45 UTC (permalink / raw) To: gcc-bugs http://gcc.gnu.org/bugzilla/show_bug.cgi?id=47766 --- Comment #1 from hjl at gcc dot gnu.org <hjl at gcc dot gnu.org> 2011-02-16 20:22:06 UTC --- Author: hjl Date: Wed Feb 16 20:22:03 2011 New Revision: 170219 URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=170219 Log: Add x32 support to stack protect and split. gcc/ 2011-02-16 H.J. Lu <hongjiu.lu@intel.com> PR target/47766 * config/i386/i386.md (PTR): New. (stack_protect_set: Check TARGET_LP64 instead of TARGET_64BIT. (stack_protect_test): Likewise. (stack_protect_set_<mode>): Replace ":P" with ":PTR". (stack_tls_protect_set_<mode>): Likewise. (stack_tls_protect_test_<mode>): Likewise. * config/i386/linux64.h (TARGET_THREAD_SSP_OFFSET): Support TARGET_X32. (TARGET_THREAD_SPLIT_STACK_OFFSET): Likewise. gcc/testsuite/ 2011-02-16 H.J. Lu <hongjiu.lu@intel.com> PR target/47766 * gcc.target/i386/pr47766.c: New. Added: branches/x32/gcc/testsuite/gcc.target/i386/pr47766.c Modified: branches/x32/gcc/ChangeLog.x32 branches/x32/gcc/config/i386/i386.md branches/x32/gcc/config/i386/linux64.h branches/x32/gcc/testsuite/ChangeLog.x32 ^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug target/47766] [x32] -fstack-protector doesn't work 2011-02-16 13:50 [Bug target/47766] New: [x32] -fstack-protector doesn't work hjl.tools at gmail dot com 2011-02-16 20:45 ` [Bug target/47766] " hjl at gcc dot gnu.org @ 2011-08-01 18:22 ` hjl at gcc dot gnu.org 2011-08-01 18:23 ` hjl.tools at gmail dot com ` (2 subsequent siblings) 4 siblings, 0 replies; 6+ messages in thread From: hjl at gcc dot gnu.org @ 2011-08-01 18:22 UTC (permalink / raw) To: gcc-bugs http://gcc.gnu.org/bugzilla/show_bug.cgi?id=47766 --- Comment #2 from hjl at gcc dot gnu.org <hjl at gcc dot gnu.org> 2011-08-01 18:21:10 UTC --- Author: hjl Date: Mon Aug 1 18:21:07 2011 New Revision: 177067 URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=177067 Log: Use ptr_mode for stack protector. 2011-08-01 H.J. Lu <hongjiu.lu@intel.com> PR target/47766 * config/i386/i386.md (PTR): New. (stack_protect_set: Check TARGET_LP64 instead of TARGET_64BIT. (stack_protect_test): Likewise. (stack_protect_set_<mode>): Replace ":P" with ":PTR". (stack_tls_protect_set_<mode>): Likewise. (stack_tls_protect_test_<mode>): Likewise. Modified: trunk/gcc/ChangeLog trunk/gcc/config/i386/i386.md ^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug target/47766] [x32] -fstack-protector doesn't work 2011-02-16 13:50 [Bug target/47766] New: [x32] -fstack-protector doesn't work hjl.tools at gmail dot com 2011-02-16 20:45 ` [Bug target/47766] " hjl at gcc dot gnu.org 2011-08-01 18:22 ` hjl at gcc dot gnu.org @ 2011-08-01 18:23 ` hjl.tools at gmail dot com 2011-08-02 9:02 ` uros at gcc dot gnu.org 2011-08-06 14:26 ` hjl at gcc dot gnu.org 4 siblings, 0 replies; 6+ messages in thread From: hjl.tools at gmail dot com @ 2011-08-01 18:23 UTC (permalink / raw) To: gcc-bugs http://gcc.gnu.org/bugzilla/show_bug.cgi?id=47766 H.J. Lu <hjl.tools at gmail dot com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |RESOLVED Resolution| |FIXED Target Milestone|--- |4.7.0 --- Comment #3 from H.J. Lu <hjl.tools at gmail dot com> 2011-08-01 18:22:56 UTC --- Fixed. ^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug target/47766] [x32] -fstack-protector doesn't work 2011-02-16 13:50 [Bug target/47766] New: [x32] -fstack-protector doesn't work hjl.tools at gmail dot com ` (2 preceding siblings ...) 2011-08-01 18:23 ` hjl.tools at gmail dot com @ 2011-08-02 9:02 ` uros at gcc dot gnu.org 2011-08-06 14:26 ` hjl at gcc dot gnu.org 4 siblings, 0 replies; 6+ messages in thread From: uros at gcc dot gnu.org @ 2011-08-02 9:02 UTC (permalink / raw) To: gcc-bugs http://gcc.gnu.org/bugzilla/show_bug.cgi?id=47766 --- Comment #4 from uros at gcc dot gnu.org 2011-08-02 09:01:41 UTC --- Author: uros Date: Tue Aug 2 09:01:37 2011 New Revision: 177096 URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=177096 Log: PR target/47766 * doc/md.texi (stack_protect_set): The pattern moves ptr_mode value. (stack_protect_test): The pattern compares ptr_mode value. Modified: trunk/gcc/ChangeLog trunk/gcc/doc/md.texi ^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug target/47766] [x32] -fstack-protector doesn't work 2011-02-16 13:50 [Bug target/47766] New: [x32] -fstack-protector doesn't work hjl.tools at gmail dot com ` (3 preceding siblings ...) 2011-08-02 9:02 ` uros at gcc dot gnu.org @ 2011-08-06 14:26 ` hjl at gcc dot gnu.org 4 siblings, 0 replies; 6+ messages in thread From: hjl at gcc dot gnu.org @ 2011-08-06 14:26 UTC (permalink / raw) To: gcc-bugs http://gcc.gnu.org/bugzilla/show_bug.cgi?id=47766 --- Comment #5 from hjl at gcc dot gnu.org <hjl at gcc dot gnu.org> 2011-08-06 14:26:01 UTC --- Author: hjl Date: Sat Aug 6 14:25:58 2011 New Revision: 177511 URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=177511 Log: Add testcases for PRs 47766/47715. 2011-08-06 H.J. Lu <hongjiu.lu@intel.com> PR target/47766 * gcc.dg/pr47766.c: New. PR target/47715 * gcc.dg/tls/pr47715-1.c: New. * gcc.dg/tls/pr47715-2.c: Likewise. * gcc.dg/tls/pr47715-3.c: Likewise. * gcc.dg/tls/pr47715-4.c: Likewise. Added: trunk/gcc/testsuite/gcc.dg/pr47766.c trunk/gcc/testsuite/gcc.dg/tls/pr47715-1.c trunk/gcc/testsuite/gcc.dg/tls/pr47715-2.c trunk/gcc/testsuite/gcc.dg/tls/pr47715-3.c trunk/gcc/testsuite/gcc.dg/tls/pr47715-4.c Modified: trunk/gcc/testsuite/ChangeLog ^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2011-08-06 14:26 UTC | newest] Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed) -- links below jump to the message on this page -- 2011-02-16 13:50 [Bug target/47766] New: [x32] -fstack-protector doesn't work hjl.tools at gmail dot com 2011-02-16 20:45 ` [Bug target/47766] " hjl at gcc dot gnu.org 2011-08-01 18:22 ` hjl at gcc dot gnu.org 2011-08-01 18:23 ` hjl.tools at gmail dot com 2011-08-02 9:02 ` uros at gcc dot gnu.org 2011-08-06 14:26 ` hjl at gcc dot gnu.org
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).