@@ -0,0 +1,25 @@
1+From 5972cd58bde3bc8bacfe994e5b127c411241f255 Mon Sep 17 00:00:00 2001
2+From: law <law@138bc75d-0d04-0410-961f-82ee72b054a4>
3+Date: Tue, 3 Jan 2017 05:36:40 +0000
4+Subject: [PATCH] * config/darwin-driver.c (darwin_driver_init):
5+ Const-correctness fixes for first_period and second_period variables.
6+
7+git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@244010 138bc75d-0d04-0410-961f-82ee72b054a4
8+---
9+diff --git a/gcc/config/darwin-driver.c b/gcc/config/darwin-driver.c
10+index 0c4f0cd..e3ed79d 100644
11+--- a/gcc/config/darwin-driver.c
12++++ b/gcc/config/darwin-driver.c
13+@@ -299,10 +299,10 @@ darwin_driver_init (unsigned int *decoded_options_count,
14+ if (vers_string != NULL)
15+ {
16+ char *asm_major = NULL;
17+- char *first_period = strchr(vers_string, '.');
18++ const char *first_period = strchr(vers_string, '.');
19+ if (first_period != NULL)
20+ {
21+- char *second_period = strchr(first_period+1, '.');
22++ const char *second_period = strchr(first_period+1, '.');
23+ if (second_period != NULL)
24+ asm_major = xstrndup (vers_string, second_period-vers_string);
25+ else