Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 73559 Details for
Bug 113541
New GCC 4.1.0_beta20051123-r1 (pre-release) (unofficial snapshot)- new ebuild + cool fixes and customizations
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
gcc-fake-version.patch
gcc-fake-version.patch (text/plain), 1.42 KB, created by
Alexey Maximov
on 2005-11-25 02:23:29 UTC
(
hide
)
Description:
gcc-fake-version.patch
Filename:
MIME Type:
Creator:
Alexey Maximov
Created:
2005-11-25 02:23:29 UTC
Size:
1.42 KB
patch
obsolete
>--- gcc-4.1-20051113/gcc/gcc.c.orig 2005-11-06 04:14:27.000000000 +0600 >+++ gcc-4.1-20051113/gcc/gcc.c 2005-11-14 05:13:56.000000000 +0600 >@@ -3409,7 +3409,11 @@ > } > else if (! strcmp (argv[i], "-dumpversion")) > { >- printf ("%s\n", spec_version); >+ char *s = getenv ("GCC_VERSION"); >+ if (s) >+ printf ("%s\n", s); >+ else >+ printf ("%s\n", spec_version); > exit (0); > } > else if (! strcmp (argv[i], "-dumpmachine")) >@@ -6026,6 +6030,9 @@ > const char *p; > struct user_specs *uptr; > >+ char *tmp_version_string = getenv ("GCC_VERSION_STRING"); >+ if (tmp_version_string) version_string = tmp_version_string; >+ > p = argv[0] + strlen (argv[0]); > while (p != argv[0] && !IS_DIR_SEPARATOR (p[-1])) > --p; >--- gcc-4.1-20051113/gcc/version.c.orig >+++ gcc-4.1-20051113/gcc/version.c >@@ -22,4 +22,4 @@ const char bug_report_url[] = "<URL:http > /* The complete version string, assembled from several pieces. > BASEVER, DATESTAMP, and DEVPHASE are defined by the Makefile. */ > >-const char version_string[] = BASEVER DATESTAMP DEVPHASE VERSUFFIX; >+char *version_string = BASEVER DATESTAMP DEVPHASE VERSUFFIX; >--- gcc-4.1-20051113/gcc/version.h.orig >+++ gcc-4.1-20051113/gcc/version.h >@@ -1,5 +1,5 @@ > #ifndef GCC_VERSION_H > #define GCC_VERSION_H >-extern const char version_string[]; >+extern char *version_string; > extern const char bug_report_url[]; > #endif /* ! GCC_VERSION_H */
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 113541
:
73558
| 73559 |
73560
|
73561
|
73562