Re: strcpy and strcat seem to lead to a stack overflow

2022-02-23 Thread lego12239--- via Gcc
On Tue, Feb 22, 2022 at 10:01:47PM +0100, Emile Michel Hobo via Gcc wrote: > Dear developers: > > I find it counterintuitive that if I repeatedly reset a variable by using > strcpy with an empty string "" to that variable and then us strcat to add > characters to that variable that that seems to

Re: strcpy and strcat seem to lead to a stack overflow

2022-02-23 Thread Jonathan Wakely via Gcc
On Tue, 22 Feb 2022 at 21:02, Emile Michel Hobo wrote: > I hope you can fix this. There is nothing to fix, strcpy and strcat work exactly as required by the C standard, and that isn't going to change. In any case, it's off-topic on this mailing list because those functions are defined in the C st

[RISCV] RISC-V GNU Toolchain Biweekly Sync-up call (Jan 27, 2022)

2022-02-23 Thread jiawei
Hi all, There is an agenda for tomorrow's meeting. If you have topics to discuss or share, please let me know and I can add them to the agenda. Agenda: - Intrinsics common availability and naming rules discuss - RISC-V subextension related implement progress - Scalar Crypto exte

qual_union_type help

2022-02-23 Thread Philip Herron
Hi everyone I am seeking some help on using the QUAL_UNION_TYPE it seems ideally placed to be used for enums in Rust. My initial implementation was achieved by simply using a union such as: union my_enum { variant_a { enum discriminant; ...data } ; variant_b { enum discriminant; ...data} ; }

Re: Benchmark recommendations needed

2022-02-23 Thread andras
On 2022-02-22 16:59, Patrick McGehearty wrote: I studied Dhrystone about 30 years ago and found it had a number of flaws back then. For example, most of the loops in the code are only executed 1-3 times, which minimizes the value of hoisting values out of inner loops. Read the Dhrystone wikipedia

Re: qual_union_type help

2022-02-23 Thread Eric Botcazou via Gcc
> This makes sense this we can't gimplify a placeholder expression. So > this seems that when i make a constructor for the QUAL_UNION_TYPE i > must iterate the fields and replace the placeholder_expr to have a > reference to the discriminant via another COMPONENT_REF. Though does > this mean for th

Re: qual_union_type help

2022-02-23 Thread Philip Herron
Hi Eric, That makes sense during construction we also know what the value of the discriminant is. What does the Ada front-end replace the placeholder_exprs with? Can it simply be the value of the discriminant at constructor? I haven't tried that. Thanks --Phil On Wed, 23 Feb 2022 at 17:33, Eric

Nagios

2022-02-23 Thread Melissa Anderson via Gcc
Hi, Would you be interested in acquiring a list of companies that are currently using Nagios? We can also provide you with competitor's customers such as: Dynatrace, checkmk, Zabbix, Datadog, Microsoft System Center, AppDynamics, LogicMonitor, LogRocket and Splunk. Once you confirm the target

Re: qual_union_type help

2022-02-23 Thread Eric Botcazou via Gcc
> That makes sense during construction we also know what the value of > the discriminant is. What does the Ada front-end replace the > placeholder_exprs with? Can it simply be the value of the discriminant > at constructor? I haven't tried that. Ultimately all PLACEHOLDER_EXPRs need to be replaced