Re: Clarifying attribute-const

2015-10-01 Thread Geert Bosch
> On Oct 1, 2015, at 11:34 AM, Alexander Monakov wrote: > > Can you expand on the "etc." a bit, i.e., may the compiler ... > > - move a call to a "const" function above a conditional branch, >causing a conditional throw to happen unconditionally? No, calls may only be omitted, not moved.

Minimal linker script for cortex M3 and M4 using gcc for c language applications

2015-10-01 Thread Sergio
Hi list!, I'm working in a project using gcc to develop applications using c language for embedded systems based on ARM Cortex M3 and M4. I have found some linker script used by commercial tools like lpcxpresso (from NXP) or Code Composer Studio (from TI) and others frecuently used for other develo

Re: Clarifying attribute-const

2015-10-01 Thread Eric Botcazou
> Can you expand on the "etc." a bit, i.e., may the compiler ... > > - move a call to a "const" function above a conditional branch, > causing a conditional throw to happen unconditionally? > > - move a call to a "const" function below a conditional branch, > causing an unconditional

Re: Debugger support for __float128 type?

2015-10-01 Thread Joseph Myers
On Thu, 1 Oct 2015, Ulrich Weigand wrote: > The _DecimalN types are already supported by DWARF using a base type with > encoding DW_ATE_decimal_float and the appropriate DW_AT_byte_size. Which doesn't actually say whether the DPD or BID encoding is used, but as long as each architecture uses onl

Re: Debugger support for __float128 type?

2015-10-01 Thread Ulrich Weigand
Joseph Myers wrote: > On Wed, 30 Sep 2015, Ulrich Weigand wrote: > > > - Extend the official DWARF standard in some way > > I think you should do this. > > Note that TS 18661-4 will be coming out very soon, and includes (optional) > types > > * _FloatN, where N is 16, 32, 64 or >= 128 and a mu

Re: How to assign proper static_pass_number and recalculate other ones?

2015-10-01 Thread Jeff Law
On 10/01/2015 02:47 AM, Konstantin Vladimirov wrote: Hi, I am creating my own RTL pass inside private backend (GCC 5.2.0) and I want to register it via register_pass call from override_options hook, to not interfere with platform-independent GCC code. register_pass (new my_cool_rtl_pass (g,

Re: Clarifying attribute-const

2015-10-01 Thread Alexander Monakov
On Fri, 25 Sep 2015, Eric Botcazou wrote: > > First, a belated follow-up to https://gcc.gnu.org/PR66512 . The bug is > > asking why attribute-const appears to have a weaker effect in C++, compared > > to C. The answer in that bug is that GCC assumes that attribute-const > > function can terminate

Re: Debugger support for __float128 type?

2015-10-01 Thread Gabriel Paubert
On Thu, Oct 01, 2015 at 12:42:05AM +0200, Mark Kettenis wrote: > > Date: Wed, 30 Sep 2015 19:33:44 +0200 (CEST) > > From: "Ulrich Weigand" > > > > Hello, > > > > I've been looking into supporting __float128 in the debugger, since we're > > now introducing this type on PowerPC. Initially, I simp

How to assign proper static_pass_number and recalculate other ones?

2015-10-01 Thread Konstantin Vladimirov
Hi, I am creating my own RTL pass inside private backend (GCC 5.2.0) and I want to register it via register_pass call from override_options hook, to not interfere with platform-independent GCC code. register_pass (new my_cool_rtl_pass (g, "my_cool_pass"), PASS_POS_INSERT_AFTER,