This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [SH] PR 50457 - Add additional atomic models
- From: Gabriel Dos Reis <gdr at integrable-solutions dot net>
- To: Kaz Kojima <kkojima at rr dot iij4u dot or dot jp>
- Cc: oleg dot endo at t-online dot de, gcc-patches at gcc dot gnu dot org
- Date: Sun, 30 Sep 2012 19:50:18 -0500
- Subject: Re: [SH] PR 50457 - Add additional atomic models
- References: <1349023404.9306.63.camel@yam-132-YW-E178-FTW> <20121001.083816.425827555.kkojima@rr.iij4u.or.jp> <1349049696.9306.69.camel@yam-132-YW-E178-FTW> <20121001.092354.317950737.kkojima@rr.iij4u.or.jp>
On Sun, Sep 30, 2012 at 7:23 PM, Kaz Kojima <kkojima@rr.iij4u.or.jp> wrote:
> Oleg Endo <oleg.endo@t-online.de> wrote:
>> The existing .c files are compiled as C++ already. There was a
>> discussion not long go whether the .c files should be renamed to .cc or
>> not. If I remember correctly, the conclusion was that existing .c files
>> remain .c, while files newly added should be .cc. gcc/double-int.c
>> would probably one of the recent examples.
>
> Ah, I've missed that argument. Then can we use STL classes in .c now?
Yes.
The existing file extensions ".c" do not mean "C" only.
-- Gaby