[RISC-V] built-in atomic function implementation involving RISC-V memory model

2023-02-21 Thread Xuezheng Xu via Gcc
Hi, As stated in the comments of riscv_print_operand (the latest version of gcc/config/riscv/riscv.cc), the RISCV-specific operand code 'A', which is used in the implementation of 'atomic_cas_value_strong' in sync.md, is the atomic operation suffix for memory model OP. However, only '.aq' is c

Re: [GSoC][Static Analyzer] Some questions and request for a small patch to work on

2023-02-21 Thread David Malcolm via Gcc
On Tue, 2023-02-21 at 22:26 +0100, Shengyu Huang via Gcc wrote: > Dear all, Hi Shengyu, and welcome. > > I want to work on the Static Analyzer project and just started to > read the documentation these days,  Excellent! I'm the author/maintainer of the analyzer, so I would mentor any such GSoC

[GSoC][Static Analyzer] Some questions and request for a small patch to work on

2023-02-21 Thread Shengyu Huang via Gcc
Dear all, I want to work on the Static Analyzer project and just started to read the documentation these days, but what’s mentioned in 27.1.6 in the internal document (https://gcc.gnu.org/onlinedocs/gccint/Analyzer-Internals.html#Analyzer-Internals) seems outdated or not detailed enough. For e

Re: [GSoC] Help needed for building on aarch64-apple-darwin22.1.0

2023-02-21 Thread Stuff Received
Greetings, Iaian. On 2023-02-20 12:42, Iain Sandoe wrote: Hi Shengyu, On 20 Feb 2023, at 17:31, Shengyu Huang via Gcc wrote: After following the instructions here (https://gcc.gnu.org/wiki/InstallingGCC) and here (https://gcc.gnu.org/install/index.html), the `make` step simply fails wit

A plugin for -ftime-trace like tracing in GCC

2023-02-21 Thread Roy Jacobson via Gcc
There were some discussions here about -ftime-trace. I've written a GCC plugin with similar functionality last year: https://github.com/royjacobson/externis. It works at least on GCC11 and GCC12. It was written by practically reverse engineering the GCC AST and can only make use of the GCC plugin c