Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 30159 Details for
Bug 49174
locale_facets.h is incompatible with -fno-for-scope in gcc-3.4.0
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Patch to fix behaviour of GCC 3.4.0 when used with -fno-for-scope
gcc-3.4.0-fno-for-scope.patch (text/plain), 1.57 KB, created by
Robert Moss (RETIRED)
on 2004-04-27 09:00:11 UTC
(
hide
)
Description:
Patch to fix behaviour of GCC 3.4.0 when used with -fno-for-scope
Filename:
MIME Type:
Creator:
Robert Moss (RETIRED)
Created:
2004-04-27 09:00:11 UTC
Size:
1.57 KB
patch
obsolete
>diff -prN libstdc++-v3-orig/include/bits/locale_facets.h libstdc++-v3/include/bits/locale_facets.h >*** libstdc++-v3-orig/include/bits/locale_facets.h 2004-03-24 21:11:32.000000000 +0000 >--- libstdc++-v3/include/bits/locale_facets.h 2004-04-23 15:45:34.000000000 +0100 >*************** namespace std >*** 1161,1168 **** > > _M_widen_ok = 1; > // Set _M_widen_ok to 2 if memcpy can't be used. >! for (size_t __i = 0; __i < sizeof(_M_widen); ++__i) >! if (__tmp[__i] != _M_widen[__i]) > { > _M_widen_ok = 2; > break; >--- 1161,1168 ---- > > _M_widen_ok = 1; > // Set _M_widen_ok to 2 if memcpy can't be used. >! for (size_t __j = 0; __j < sizeof(_M_widen); ++__j) >! if (__tmp[__j] != _M_widen[__j]) > { > _M_widen_ok = 2; > break; >*************** namespace std >*** 1182,1192 **** > // Check if any default values were created. Do this by > // renarrowing with a different default value and comparing. > bool __consecutive = true; >! for (size_t __i = 0; __i < sizeof(_M_narrow); ++__i) >! if (!_M_narrow[__i]) > { > char __c; >! do_narrow(__tmp + __i, __tmp + __i + 1, 1, &__c); > if (__c == 1) > { > __consecutive = false; >--- 1182,1192 ---- > // Check if any default values were created. Do this by > // renarrowing with a different default value and comparing. > bool __consecutive = true; >! for (size_t __j = 0; __j < sizeof(_M_narrow); ++__j) >! if (!_M_narrow[__j]) > { > char __c; >! do_narrow(__tmp + __j, __tmp + __j + 1, 1, &__c); > if (__c == 1) > { > __consecutive = false;
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 49174
: 30159