Re: GCC libatomic ABI specification draft

2016-12-02 Thread Gabriel Paubert
On Thu, Dec 01, 2016 at 11:13:37AM -0800, Bin Fan at Work wrote: > Hi Szabolcs, > > > On Nov 29, 2016, at 3:11 AM, Szabolcs Nagy wrote: > > > > On 17/11/16 20:12, Bin Fan wrote: > >> > >> Although this ABI specification specifies that 16-byte properly aligned > >> atomics are inlineable on pla

Re: [PING][RFC] Assertions as optimization hints

2016-12-02 Thread Vincent Lefevre
On 2016-11-28 18:49:55 +, Yuri Gribov wrote: > On Mon, Nov 28, 2016 at 4:03 PM, Vincent Lefevre > wrote: > > Concerning the "per-project decision", I'm not sure that's a good > > idea: as soon as one includes a header file, __ASSUME_ASSERTS__ > > could potentially break code. > > Sorry, not

compile template question

2016-12-02 Thread chenzero
Hello, I have following code, in gcc 4.8.4, the code can NOT compile, because of an error: error: need ‘typename’ before ‘std::map::iterator’ because ‘std::map’ is a dependent scope however, I can compile the same code in other C++ compiler(borland c++), whether there are some differences be

Re: compile template question

2016-12-02 Thread Nathan Sidwell
On 12/02/2016 07:12 AM, chenzero wrote: Hello, I have following code, in gcc 4.8.4, the code can NOT compile, because of an error: error: need ‘typename’ before ‘std::map::iterator’ because ‘std::map’ is a dependent scope however, I can compile the same code in other C++ compiler(borland c++),

Re: compile template question

2016-12-02 Thread Jonathan Wakely
N.B. This has already been answered on gcc-help, where it belongs. Sorry for not updating this list to say so. I've also now added this topic to the isocpp.org FAQ: https://isocpp.org/wiki/faq/templates#dependent-name-lookup-types On 2 December 2016 at 12:12, chenzero wrote: > Hello, > > I have f

arm.c bug in handling of TARGET_ASM_INIT_SECTIONS

2016-12-02 Thread Jeff Law
Trying to build arm-netbsdelf: g++ -fno-PIE -c -g -O2 -DIN_GCC -DCROSS_DIRECTORY_STRUCTURE -fno-exceptions -fno-rtti -fasynchronous-unwind-tables -W -Wall -Wno-narrowing -Wwrite-strings -Wcast-qual -Wmissing-format-attribute -Woverloaded-virtual -pedantic -Wno-long-long -Wno-variadic-macro