* Backport of r244010 to gcc-6-branch
@ 2017-06-20 2:54 Jack Howarth
2017-06-20 7:45 ` Richard Biener
0 siblings, 1 reply; 2+ messages in thread
From: Jack Howarth @ 2017-06-20 2:54 UTC (permalink / raw)
To: GCC Patches, Mike Stump, Iain Sandoe, Jeff Law
[-- Attachment #1: Type: text/plain, Size: 219 bytes --]
The following change from gcc-7-branch and trunk needs to be backported
to gcc-6-branch to allow the Xcode 9 clang compiler to bootstrap it. Tested
on 10.12 with Xcode 9 beta. Okay for gcc-6-branch?
Jack
[-- Attachment #2: r244010-gcc_6_branch-backport.patch --]
[-- Type: application/octet-stream, Size: 942 bytes --]
2017-06-19 Jack Howarth <howarth.at.gcc@gmail.com>
Backport from mainline
2017-01-02 Jeff Law <law@redhat.com>
* config/darwin-driver.c (darwin_driver_init): Const-correctness
fixes for first_period and second_period variables.
Index: gcc/config/darwin-driver.c
===================================================================
--- gcc/config/darwin-driver.c (revision 249390)
+++ gcc/config/darwin-driver.c (working copy)
@@ -299,10 +299,10 @@ darwin_driver_init (unsigned int *decode
if (vers_string != NULL)
{
char *asm_major = NULL;
- char *first_period = strchr(vers_string, '.');
+ const char *first_period = strchr(vers_string, '.');
if (first_period != NULL)
{
- char *second_period = strchr(first_period+1, '.');
+ const char *second_period = strchr(first_period+1, '.');
if (second_period != NULL)
asm_major = xstrndup (vers_string, second_period-vers_string);
else
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: Backport of r244010 to gcc-6-branch
2017-06-20 2:54 Backport of r244010 to gcc-6-branch Jack Howarth
@ 2017-06-20 7:45 ` Richard Biener
0 siblings, 0 replies; 2+ messages in thread
From: Richard Biener @ 2017-06-20 7:45 UTC (permalink / raw)
To: Jack Howarth; +Cc: GCC Patches, Mike Stump, Iain Sandoe, Jeff Law
On Tue, Jun 20, 2017 at 4:54 AM, Jack Howarth <howarth.at.gcc@gmail.com> wrote:
> The following change from gcc-7-branch and trunk needs to be backported
> to gcc-6-branch to allow the Xcode 9 clang compiler to bootstrap it. Tested
> on 10.12 with Xcode 9 beta. Okay for gcc-6-branch?
Ok.
> Jack
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2017-06-20 7:45 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-06-20 2:54 Backport of r244010 to gcc-6-branch Jack Howarth
2017-06-20 7:45 ` Richard Biener
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).