Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 76527 Details for
Bug 74457
[3.4/ICE] gcc bombs in sweep_string_variable with ssp
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Avoid sweep string variable ICE; issue a warning when it occurs
gcc-3.4.4-sweepregwarn.patch (text/plain), 1.19 KB, created by
Kevin F. Quinn (RETIRED)
on 2006-01-08 06:59:28 UTC
(
hide
)
Description:
Avoid sweep string variable ICE; issue a warning when it occurs
Filename:
MIME Type:
Creator:
Kevin F. Quinn (RETIRED)
Created:
2006-01-08 06:59:28 UTC
Size:
1.19 KB
patch
obsolete
> This is a quick hack to avoid the ICEs reported for many > C++ applications. It trivially avoids the ICE by skipping > the sweep of string variables that sweep_string_variable > doesn't understand. If those variables _should_ have been > swept, then overflows on these variables may corrupt other > scalar data; however if this works it's better than switching > off SSP completely. > Kevin F. Quinn <kevquinn@gentoo.org> 21 Dec 2005 > >--- gcc/protector.c.orig 2005-12-21 07:52:40.000000000 +0100 >+++ gcc/protector.c 2005-12-21 07:55:36.000000000 +0100 >@@ -1145,6 +1145,13 @@ > > switch (GET_CODE (sweep_var)) > { >+ case REG: >+ warning ("sweep string type RET (%d) ignored - rtl:\n", >+ GET_CODE(sweep_var)); >+ print_rtl(stderr, sweep_var); >+ fputs("\n",stderr); >+ return; >+ break; > case MEM: > if (GET_CODE (XEXP (sweep_var, 0)) == ADDRESSOF > && GET_CODE (XEXP (XEXP (sweep_var, 0), 0)) == REG) >@@ -1155,6 +1162,10 @@ > sweep_offset = INTVAL (sweep_var); > break; > default: >+ warning ("sweep string type %d unexpected - rtl:\n", >+ GET_CODE(sweep_var)); >+ print_rtl(stderr, sweep_var); >+ fputs("\n",stderr); > abort (); > } >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 74457
:
65975
|
71237
|
74471
| 76527 |
78347
|
79129
|
81777