Re: How to format code in GCC style?

2024-05-01 Thread Marc via Gcc
Hanke Zhang via Gcc writes: > Hi Filip, > > Thanks for your reply. But I'm not so familiar with VIM actually. Thus > when I try the options listed there, nothing happened. (VSCODE is the > IDE I'm using for development.) > > And I notice that there is a `vimrc` in the `contrib` directory, I >

Re: Patches submission policy change

2024-04-05 Thread Marc via Gcc
Mark Wielaard writes: Hello Mark! > gcc-patches, binutils and gdb-patches all have only one moderator > (Jeff, Ian and Thiago). It would probably be good if there were > more. > > Any volunteers? It shouldn't be more than 1 to 3 emails a week > (sadly most of them spam). If still needed, I

Re: Building a GCC backend for the STM8

2024-01-28 Thread Marc via Gcc
Sophie 'Tyalie' Friedrich via Gcc writes: > Hello dear people, > > I want to try building a GCC compiler backend for the STM8 micro-controller > target in order to make this wonderful architecture more accessible. > > But as I'm fairly new in this area of building compiler backends for GCC, I

Re: [PATCH v3] mklog: handle Signed-off-by, minor cleanup

2023-09-04 Thread Marc via Gcc-patches
Richard Sandiford writes: >> +# this regex matches the first line of the "end" in the initial commit >> message >> +FIRST_LINE_OF_END_RE = re.compile('(?i)^(signed-off-by:|co-authored-by:|#) >> ') > > Personally I think it would be safer to drop the final space in the regexp. > > OK with

[Bug jit/105296] New: libgccjit crashes when creating a struct constructor for an aligned struct type

2022-04-16 Thread marc--- via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105296 Bug ID: 105296 Summary: libgccjit crashes when creating a struct constructor for an aligned struct type Product: gcc Version: 12.0 Status: UNCONFIRMED

[Bug jit/105279] Using libgccjit produces a null pointer access in GCC's tree-optimization code

2022-04-15 Thread marc--- via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105279 --- Comment #1 from Marc Nieper-Wißkirchen --- The internal compiler error also seems to go away if I remove the pointer subtraction around line 1833 in reproducer.c. Maybe this is the real problem because I am not subtracting pointers the way

[Bug jit/105286] New: Struct initializers do not work with function pointers

2022-04-15 Thread marc--- via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105286 Bug ID: 105286 Summary: Struct initializers do not work with function pointers Product: gcc Version: 12.0 Status: UNCONFIRMED Severity: normal Priority: P3

[Bug jit/105279] New: Using libgccjit produces a null pointer access in GCC's tree-optimization code

2022-04-14 Thread marc--- via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105279 Bug ID: 105279 Summary: Using libgccjit produces a null pointer access in GCC's tree-optimization code Product: gcc Version: 12.0 Status: UNCONFIRMED

Re: Buildbot failure in Wildebeest Builder on whole buildset

2022-02-17 Thread Marc via Gcc-rust
build...@builder.wildebeest.org writes: > Build Reason: > Blamelist: Philip Herron g++ -fno-PIE -c -DIN_GCC_FRONTEND -g -O2 -DIN_GCC -fno-exceptions -fno-rtti -fasynchronous-unwind-tables -W -Wall -Wno-narrowing -Wwrite-strings -Wcast-qual -Wmissing-format-attribute

[Bug tree-optimization/89479] __restrict on a pointer ignored when disambiguating against a call

2022-02-16 Thread marc--- via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=89479 --- Comment #11 from Marc Nieper-Wißkirchen --- (In reply to Richard Biener from comment #1 of bug 94416) > I think there's a duplicate somewhere. We currently cannot encode "restrict" > into the "accesses" implied by a call. > > Note there's

[Bug tree-optimization/104574] New: GCC misses basic optimization for restricted pointers

2022-02-16 Thread marc--- via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104574 Bug ID: 104574 Summary: GCC misses basic optimization for restricted pointers Product: gcc Version: 12.0 Status: UNCONFIRMED Severity: normal Priority: P3

Re: Buildbot failure in Wildebeest Builder on whole buildset

2022-01-24 Thread Marc via Gcc-rust
Mark Wielaard writes: > Sorry, I don't immediately know what is happening. > I assume some merge took place and the buildbot doesn't know what are > good/bad commits and just tries to do builds for everything in the > merge. I have shutdown the buildbot till I have time to figure out what > is

[Bug tree-optimization/86465] [9/10/11/12 Regression] C++17 triggers: ‘’ may be used uninitialized in this function

2022-01-12 Thread marc--- via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=86465 Marc Nieper-Wißkirchen changed: What|Removed |Added CC||m...@nieper-wisskirchen.de ---

[Bug tree-optimization/103989] New: [12 regression] std::optional and bogus -Wmaybe-unitialized at -Og

2022-01-12 Thread marc--- via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103989 Bug ID: 103989 Summary: [12 regression] std::optional and bogus -Wmaybe-unitialized at -Og Product: gcc Version: 12.0 Status: UNCONFIRMED Severity: normal

[Bug tree-optimization/86465] [9/10/11/12 Regression] C++17 triggers: ‘’ may be used uninitialized in this function

2022-01-12 Thread marc--- via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=86465 --- Comment #17 from Marc Nieper-Wißkirchen --- Does a viable workaround exist that doesn't amount to disabling the warning option altogether? In my case, the actual warning is triggered inside the standard library, which is used by my code

[Bug analyzer/103546] New: Analyzer reports null dereference in flex scanners

2021-12-03 Thread marc--- via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103546 Bug ID: 103546 Summary: Analyzer reports null dereference in flex scanners Product: gcc Version: 11.2.0 Status: UNCONFIRMED Severity: normal Priority: P3

Re: UTF-8 BOM handling

2021-07-06 Thread Marc via Gcc-rust
Mark Wielaard writes: > Hi, > > A rust source file can start with a UTF-8 BOM sequence (EF BB > BF). This simply indicates that the file is encoded as UTF-8 (all rust > input is interpreted as asequence of Unicode code points encoded in > UTF-8) so can be skipped before starting real lexing. > >

Re: shebang handling

2021-07-04 Thread Marc via Gcc-rust
Mark Wielaard writes: > [PATCH 1/2] Handle shebang line, plus any whitespace and comment > [PATCH 2/2] Remove has_shebang flag from AST and HIR Crate classes Pushed to githup: https://github.com/Rust-GCC/gccrs/pull/546 Marc -- Gcc-rust mailing list Gcc-rust@gcc.gnu.org

Re: [PATCH 2/2] Remove unused have_more_segments from TypeCheckExpr::resolve_root_path

2021-06-30 Thread Marc via Gcc-rust
Mark Wielaard writes: > It isn't necessary to know whether there are more segments while > iteration through the expression segements. Both patches in GH: https://github.com/Rust-GCC/gccrs/pull/537/commits Fixed a small typo in the commit message while creating the PR :) Marc -- Gcc-rust

Re: [PATCH] Suppress warning in rust-ast-lower-type.h ASTLowerGenericParam.visit.

2021-06-29 Thread Marc via Gcc-rust
Mark Wielaard writes: > On Tue, Jun 29, 2021 at 12:47:07AM +0200, Mark Wielaard wrote: >> On Tue, Jun 29, 2021 at 12:06:56AM +0200, Marc wrote: >> > Hi, >> > >> > > Translating the AST LifetimeType to the HIR LifetimeType causes a >> > > warning: >> > > warning: ‘ltt’ may be used uninitialized

Re: [PATCH] Suppress warning in rust-ast-lower-type.h ASTLowerGenericParam.visit.

2021-06-28 Thread Marc via Gcc-rust
Hi, > Translating the AST LifetimeType to the HIR LifetimeType causes a warning: > warning: ‘ltt’ may be used uninitialized Was wondering why this is needed as the switch case covers all enum variants, how can ltt be uninitialized ? I have the same fix locally but was thinking something else was

Re: [PATCH] Fix inner attribute parsing

2021-06-27 Thread Marc via Gcc-rust
Mark Wielaard writes: > parse_inner_attribute tried to skip the right square token twice. This caused > odd error > messages in case there were multiple inner attributes. This bug masked > another bug in > parse_attr_input where when the (optional) attr input was an assignment to a > literal

[Bug ipa/97364] New: Clarify/improve documentation for __attribute__ ((pure))

2020-10-10 Thread marc--- via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97364 Bug ID: 97364 Summary: Clarify/improve documentation for __attribute__ ((pure)) Product: gcc Version: unknown Status: UNCONFIRMED Severity: normal