Re: [MRISC32] Not getting scaled index addressing in loops

2022-05-28 Thread m
I'm sorry about the messed up code formatting (I blame the WYSIWYG). I 
hope the message gets through anyway (have a look at the Compiler 
Explorer link - https://godbolt.org/z/drzfjsxf7 - it has all the code).


/Marcus


Re: Passing c blocks to pre processor

2022-05-28 Thread Jonathan Wakely via Gcc
On Sat, 28 May 2022, 06:49 Yair Lenga via Gcc,  wrote:

> Hi,
>
> I am trying to define macros that will accept code blocks. This will be
> used to create high level structures (like iterations, etc.). Ideally, I
> would like to do something like (this is simplified example, actual code
> much more application specific):
>
> Foreach(var, low, high, block)
>
> While should translate to:
> For (int var=low ; var < high ; var ++) block
>
> The challnge is the gcc pre processor does not accept blocks. It assume a
> comma terminate a block. For example:
> Foreach(foo, 1, 30, { int z=5, y=3, …}) will invoke the macro with 5
> arguments: (1) foo (2) 1, (3) 30, (4) { int z=5}, (5) y=3,
>
> Is there a way to tell CPP that an argument that start with ‘{‘ should
> extend until the matching ‘}’ ? Similar to the way ‘(‘ in macro arguments
> will extend till matching ‘)’.
>


This question seems off-topic on this mailing list, as it's not about GCC
development. It would be more suited to the gcc-help list.

I don't think you can do that. You need to use __VA_ARGS__ to accept
arbitrary code containing commas. You could look at how the
Boost.Preprocessor library works.


OMP_PLACES

2022-05-28 Thread Mohamed Atef via Gcc
Hello,
  if I want to dump elements of gomp_places_list
in a string

gomp_affinity_print_place (gomp_places_list[i]);
what does this function do ?
I read its body, it has only one line
(void) p;
should I call it before sprintf (temp_buffer, );


[no subject]

2022-05-28 Thread Randi Amon via Gcc
randiam...@gmail.com


gcc-12-20220528 is now available

2022-05-28 Thread GCC Administrator via Gcc
Snapshot gcc-12-20220528 is now available on
  https://gcc.gnu.org/pub/gcc/snapshots/12-20220528/
and on various mirrors, see http://gcc.gnu.org/mirrors.html for details.

This snapshot has been generated from the GCC 12 git branch
with the following options: git://gcc.gnu.org/git/gcc.git branch 
releases/gcc-12 revision c2476f7b22ea74ca8ebbec1c6a00ac5173d26599

You'll find:

 gcc-12-20220528.tar.xz   Complete GCC

  SHA256=aaca18bcfe0847aeae34c02c0e63ffa6a1304bb535fe3f3a2a283a39cb00599c
  SHA1=326f1e601c671fdc4d4a663f1ce18960f5fc775d

Diffs from 12-20220521 are available in the diffs/ subdirectory.

When a particular snapshot is ready for public consumption the LATEST-12
link is updated and a message is sent to the gcc list.  Please do not use
a snapshot before it has been announced that way.