Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 161228 Details for
Bug 232601
[PATCH] sys-fs/e2fsprogs-1.40 fails to compile on x86_64 and textrel on x86 in tst_uuid Hardened gcc4
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
gcc-spec-env.patch
gcc-spec-env.patch (text/plain), 1.44 KB, created by
Ranjit Singh
on 2008-07-23 22:47:55 UTC
(
hide
)
Description:
gcc-spec-env.patch
Filename:
MIME Type:
Creator:
Ranjit Singh
Created:
2008-07-23 22:47:55 UTC
Size:
1.44 KB
patch
obsolete
> Add support for external spec file via the GCC_SPECS env var. This > allows us to easily control pie/ssp defaults with gcc-config profiles. > > Original patch by Rob Holland. Extended to support multiple > entries separated by ':' by Kevin F. Quinn > >--- gcc-4/gcc/gcc.c >+++ gcc-4/gcc/gcc.c >@@ -6482,6 +6482,32 @@ > > /* Process any user specified specs in the order given on the command > line. */ >+#if !(defined (__MSDOS__) || defined (OS2) || defined (VMS) || defined (WIN32)) >+ /* Add specs listed in GCC_SPECS. Note; in the process of separating >+ * each spec listed, the string is overwritten at token boundaries >+ * (':') with '\0', an effect of strtok_r(). >+ */ >+ GET_ENVIRONMENT (specs_file, "GCC_SPECS"); >+ if (specs_file && (strlen(specs_file) > 0)) >+ { >+ char *spec, *saveptr; >+ for (spec=strtok_r(specs_file,":",&saveptr); >+ spec!=NULL; >+ spec=strtok_r(NULL,":",&saveptr)) >+ { >+ struct user_specs *user = (struct user_specs *) >+ xmalloc (sizeof (struct user_specs)); >+ >+ user->next = (struct user_specs *) 0; >+ user->filename = spec; >+ if (user_specs_tail) >+ user_specs_tail->next = user; >+ else >+ user_specs_head = user; >+ user_specs_tail = user; >+ } >+ } >+#endif > for (uptr = user_specs_head; uptr; uptr = uptr->next) > { > char *filename = find_a_file (&startfile_prefixes, uptr->filename,
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 232601
:
161045
| 161228 |
161261
|
165429
|
165538
|
165539
|
165541
|
165543