This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re: Unable to use caret diagnostics
On Tue, Mar 5, 2013 at 11:47 AM, Daniel B Mosesson
<dmosess1@binghamton.edu> wrote:
> So how can I get the newer version from sources (i.e. what is the svn link)?
Frankly I don't know how you got these older sources.
To get the current sources see http://gcc.gnu.org/svn.html .
Ian
> On Tue, Mar 5, 2013 at 2:34 PM, Ian Lance Taylor <iant@google.com> wrote:
>> On Tue, Mar 5, 2013 at 11:06 AM, Daniel B Mosesson
>> <dmosess1@binghamton.edu> wrote:
>>
>>> daniel@daniel-Virtual-Machine:~/programming$ gcc gcc-test1.c
>>> -fsyntax-only -fdiagnostics-show-caret
>>> gcc: error: unrecognized command line option '-fdiagnostics-show-caret'
>>> daniel@daniel-Virtual-Machine:~/programming$ gcc --version
>>> gcc (Ubuntu/Linaro 20120314-0ubuntu2) 4.8.0 20120314 (experimental)
>>> [trunk revision 185382]
>>> Copyright (C) 2012 Free Software Foundation, Inc.
>>> This is free software; see the source for copying conditions. There is NO
>>> warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
>>
>> You are running sources from 20120314, nearly a year ago. The caret
>> diagnostic code was added in April 2012. So it will be in 4.8 but
>> it's not in the version you are testing.
>>
>> Sorry I didn't notice that in your original message.
>>
>> Ian