[PATCH v2 1/4] rust: Use FLOAT_TYPE_P instead of manual checking

2025-03-19 Thread Andrew Pinski
gcc/rust/ChangeLog: * rust-gcc.cc (is_floating_point): Use FLOAT_TYPE_P instead of manually checking the type. Signed-off-by: Andrew Pinski --- gcc/rust/rust-gcc.cc | 8 ---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/gcc/rust/rust-gcc.cc b/gcc/rust

[COMMITTED 1/2] gccrs: polonius: Vendor Rust dependencies

2025-03-18 Thread arthur . cohen
From: Arthur Cohen Resent to cut out the patch's content, as it did not pass the ML filters. This fixes PR #119333 by allowing our borrow-checker interface to be built offline. This was already done for our components in libgrust/, but had never been done for the borrow-checker. https://gcc.gn

[PATCH 1/4] rust: Use REAL_TYPE_P instead of manual checking

2025-03-17 Thread Andrew Pinski
gcc/rust/ChangeLog: * rust-gcc.cc (is_floating_point): Use REAL_TYPE_P instead of manually checking the type. Signed-off-by: Andrew Pinski --- gcc/rust/rust-gcc.cc | 8 ---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/gcc/rust/rust-gcc.cc b/gcc/rust/rust-g

[PATCHSET] Update Rust frontend 17/03/2024 1/4

2025-03-17 Thread arthur . cohen
Hi everyone, This patchset is the first of four similarly-sized patchsets aimed at updating upstream with our most recent changes to the Rust frontend. We plan on upstreaming small patchsets every week up to the release of 15.1. This first set's main change is the addition of the polonius borrow

Canceled event: gccrs Community call February @ Mon 10 Feb 2025 11am - 12pm (GMT+1) (gcc-rust@gcc.gnu.org)

2025-02-04 Thread Arthur Cohen
uary\n\n-::~:~::~:~:~:~:~:~:~ :~:~:~:~:~:~:~:~:~:~:~:~:~:~:~:~:~:~:~:~:~:~:~:~:~:~:~:~:~::~:~::-\nJoin wi th Google Meet: https://meet.google.com/ruy-izzz-npa\nOr dial: (FR) +33 1 8 7 40 41 82 PIN: 440662258#\nMore phone numbers: https://tel.meet/ruy-izzz-n pa?pin=4533806367417&hs=7\n\nLearn more about Meet at: https://support.goog le.com/a/users/answer/9282720\

Invitation: gccrs Community call February @ Mon 10 Feb 2025 11am - 12pm (GMT+1) (gcc-rust@gcc.gnu.org)

2025-02-03 Thread Arthur Cohen
=-1SU END:DAYLIGHT BEGIN:STANDARD TZOFFSETFROM:+0200 TZOFFSETTO:+0100 TZNAME:GMT+1 DTSTART:19701025T03 RRULE:FREQ=YEARLY;BYMONTH=10;BYDAY=-1SU END:STANDARD END:VTIMEZONE BEGIN:VEVENT DTSTART;TZID=Europe/Paris:20250210T11 DTEND;TZID=Europe/Paris:20250210T12 DTSTAMP:20250203T192700Z ORGANIZER

1

2025-01-26 Thread Anton Igoshin
Отправлено с iPhone

[PATCH 1/3] gccrs: Remove redundant macro definition

2024-12-02 Thread Owen Avery
From: zhanghe9702 gcc/rust/ChangeLog: * backend/rust-tree.h: removing the CLASSTYPE_VBASECLASSES macro which is duplicated three times. Signed-off-by: Zhang He --- gcc/rust/backend/rust-tree.h | 12 1 file changed, 12 deletions(-) diff --git a/gcc/rust/backend

Invitation: gccrs Community Call December @ Mon 9 Dec 2024 11am - 11:30am (GMT+1) (gcc-rust@gcc.gnu.org)

2024-12-02 Thread Arthur Cohen
=-1SU END:DAYLIGHT BEGIN:STANDARD TZOFFSETFROM:+0200 TZOFFSETTO:+0100 TZNAME:GMT+1 DTSTART:19701025T03 RRULE:FREQ=YEARLY;BYMONTH=10;BYDAY=-1SU END:STANDARD END:VTIMEZONE BEGIN:VEVENT DTSTART;TZID=Europe/Paris:20241209T11 DTEND;TZID=Europe/Paris:20241209T113000 DTSTAMP:20241202T082531Z ORGANIZER

Invitation: gccrs Community Call @ Tue 12 Nov 2024 11am - 11:30am (GMT+1) (gcc-rust@gcc.gnu.org)

2024-11-04 Thread Arthur Cohen
=-1SU END:DAYLIGHT BEGIN:STANDARD TZOFFSETFROM:+0200 TZOFFSETTO:+0100 TZNAME:GMT+1 DTSTART:19701025T03 RRULE:FREQ=YEARLY;BYMONTH=10;BYDAY=-1SU END:STANDARD END:VTIMEZONE BEGIN:VEVENT DTSTART;TZID=Europe/Paris:20241112T11 DTEND;TZID=Europe/Paris:20241112T113000 DTSTAMP:20241104T103830Z ORGANIZER

[COMMITTED 1/2] borrowck: Avoid overloading issues on 32bit architectures

2024-08-12 Thread Arthur Cohen
/checks/errors/borrowck/rust-bir-fact-collector.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gcc/rust/checks/errors/borrowck/rust-bir-fact-collector.h b/gcc/rust/checks/errors/borrowck/rust-bir-fact-collector.h index bb8fedaf3db..6601c981779 100644 --- a/gcc/rust/checks

[PATCH 14.2 1/3] gccrs: Add base documentation for using the Rust frontend.

2024-06-14 Thread Arthur Cohen
g language +@end direntry +@end format + +@insertcopying +@end ifinfo + +@titlepage +@title The GNU Rust Compiler +@versionsubtitle +@author The gccrs team + +@page +@vskip 0pt plus 1filll +Published by the Free Software Foundation @* +51 Franklin Street, Fifth Floor@* +Boston, MA 02110-1301, US

PING^1 [PATCH 05/52] rust: Replace uses of {FLOAT,{,LONG_}DOUBLE}_TYPE_SIZE

2024-06-12 Thread Kewen.Lin
Hi, Gentle ping: https://gcc.gnu.org/pipermail/gcc-patches/2024-June/653339.html BR, Kewen on 2024/6/3 11:00, Kewen Lin wrote: > Joseph pointed out "floating types should have their mode, > not a poorly defined precision value" in the discussion[1], > as he and Richi sugg

Updated invitation: gccrs weekly @ Mon 18 Mar 2024 11am - 11:30am (GMT+1) (gcc-rust@gcc.gnu.org)

2024-03-05 Thread Arthur Cohen
-::~:~::~:~:~ :~:~:~:~:~:~:~:~:~:~:~:~:~:~:~:~:~:~:~:~:~:~:~:~:~:~:~:~:~:~:~:~:~::~:~::-\ nJoin with Google Meet: https://meet.google.com/jja-oiki-ish\nOr dial: (FR) +33 1 87 40 46 29 PIN: 776445926#\nMore phone numbers: https://tel.meet/jj a-oiki-ish?pin=6568688249318&hs=7\n\nLearn more about Meet at: https://supp ort.google.com/a/u

Invitation: gccrs weekly @ Mon 18 Mar 2024 11am - 11:15am (GMT+1) (gcc-rust@gcc.gnu.org)

2024-03-05 Thread Arthur Cohen
-::~:~::~:~:~ :~:~:~:~:~:~:~:~:~:~:~:~:~:~:~:~:~:~:~:~:~:~:~:~:~:~:~:~:~:~:~:~:~::~:~::-\ nJoin with Google Meet: https://meet.google.com/jja-oiki-ish\nOr dial: (FR) +33 1 87 40 46 29 PIN: 776445926#\nMore phone numbers: https://tel.meet/jj a-oiki-ish?pin=6568688249318&hs=7\n\nLearn more about Meet at: https://supp ort.google.com/a/u

[COMMITTED 1/9] gccrs: Fix typo in RegionConstraints instance

2024-02-21 Thread arthur . cohen
From: Arthur Cohen gcc/rust/ChangeLog: * typecheck/rust-hir-type-check-implitem.h: Fix typo in field (region_costraints -> region_constraints). --- gcc/rust/typecheck/rust-hir-type-check-implitem.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gcc/r

[PATCH 1/2] gccrs: fixup: Fix bootstrap build

2024-01-11 Thread Arthur Cohen
CXXFLAGS; \ + LIBCFLAGS="$(LIBCFLAGS)"; export LIBCFLAGS; \ + echo Configuring stage 1 in $(HOST_SUBDIR)/libgrust; \ + $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libgrust; \ + cd $(HOST_SUBDIR)/libgrust || exit 1; \ + case $(srcdir) in \ +

[COMMITTED 1/4] libgrust: Add ChangeLog file

2023-12-14 Thread Arthur Cohen
From: Pierre-Emmanuel Patry libgrust/ChangeLog: * ChangeLog: New file. Signed-off-by: Pierre-Emmanuel Patry --- libgrust/ChangeLog | 6 ++ 1 file changed, 6 insertions(+) create mode 100644 libgrust/ChangeLog diff --git a/libgrust/ChangeLog b/libgrust/ChangeLog new file mode

[PATCH v2 1/4] libgrust: Add entry for maintainers and stub changelog file.

2023-10-25 Thread Arthur Cohen
ChangeLog: * MAINTAINERS: Add maintainers for libgrust. contrib/ChangeLog: * gcc-changelog/git_commit.py: Add libgrust. * gcc_update: Add libgrust file dependencies Co-authored-by: Pierre-Emmanuel Patry --- MAINTAINERS | 1 + contrib/gcc

Updated invitation: gccrs community call @ lun. 16 oct. 2023 1pm - 1:30pm (CEST) (gcc-rust@gcc.gnu.org)

2023-10-16 Thread Arthur Cohen
DESCRIPTION:https://meet.jit.si/gccrs-community-call-october LAST-MODIFIED:20231016T083259Z LOCATION: SEQUENCE:1 STATUS:CONFIRMED SUMMARY:gccrs community call TRANSP:OPAQUE END:VEVENT END:VCALENDAR invite.ics Description: application/ics

Re: [PATCH 1/3] librust: Add libproc_macro and build system

2023-09-26 Thread Thomas Schwinge
Hi! On 2023-09-26T13:40:40+0200, Richard Biener wrote: > On Wed, Sep 20, 2023 at 2:04 PM Arthur Cohen > wrote: >> >> From: Pierre-Emmanuel Patry >> >> This patch series adds the build system changes to allow the Rust >> frontend to develop and distribute its own libraries. The first library >>

Re: [PATCH 1/3] librust: Add libproc_macro and build system

2023-09-26 Thread Richard Biener via Gcc-rust
On Wed, Sep 20, 2023 at 2:04 PM Arthur Cohen wrote: > > From: Pierre-Emmanuel Patry > > This patch series adds the build system changes to allow the Rust > frontend to develop and distribute its own libraries. The first library > we have been working on is the `proc_macro` library, comprised of a

[PATCH 1/3] librust: Add libproc_macro and build system

2023-09-20 Thread Arthur Cohen
From: Pierre-Emmanuel Patry This patch series adds the build system changes to allow the Rust frontend to develop and distribute its own libraries. The first library we have been working on is the `proc_macro` library, comprised of a C++ library as well as a user-facing Rust library. Follow up c

Re: [PATCH 1/2] diagnostics: add error_meta

2023-09-06 Thread Arthur Cohen
h_location *richloc, const diagnostic_metadata &metadata, +   const char *gmsgid, ...) +{ +  gcc_assert (richloc); + +  auto_diagnostic_group d; +  va_list ap; +  va_start (ap, gmsgid); +  diagnostic_impl (richloc, &metadata, -1, gmsgid, &ap, DK_ERROR); +  va_end (ap); +} +  /*

Re: [PATCH 1/2] diagnostics: add error_meta

2023-09-06 Thread David Malcolm via Gcc-rust
t; &metadata, > +   const char *gmsgid, ...) > +{ > +  gcc_assert (richloc); > + > +  auto_diagnostic_group d; > +  va_list ap; > +  va_start (ap, gmsgid); > +  diagnostic_impl (richloc, &metadata, -1, gmsgid, &ap, DK_ERROR); > +  va_end (ap); > +} &

[PATCH 1/2] diagnostics: add error_meta

2023-09-06 Thread Arthur Cohen
hloc, const diagnostic_metadata &metadata, + const char *gmsgid, ...) +{ + gcc_assert (richloc); + + auto_diagnostic_group d; + va_list ap; + va_start (ap, gmsgid); + diagnostic_impl (richloc, &metadata, -1, gmsgid, &ap, DK_ERROR); + va_end (ap); +} + /* "Sorry, not imp

[Bug rust/108113] Rust and --enable-link-serialization=1

2022-12-20 Thread dkm at gcc dot gnu.org via Gcc-rust
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108113 Marc Poulhiès changed: What|Removed |Added Resolution|--- |FIXED Status|ASSIGNED

[Bug rust/108113] Rust and --enable-link-serialization=1

2022-12-20 Thread cvs-commit at gcc dot gnu.org via Gcc-rust
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108113 --- Comment #6 from CVS Commits --- The master branch has been updated by Marc Poulhi?s : https://gcc.gnu.org/g:02c031088ac0bbf716aec52e027d615b7a5a572b commit r13-4804-g02c031088ac0bbf716aec52e027d615b7a5a572b Author: Marc Poulhiès Date: W

[Bug rust/108113] Rust and --enable-link-serialization=1

2022-12-19 Thread jakub at gcc dot gnu.org via Gcc-rust
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108113 --- Comment #5 from Jakub Jelinek --- Yeah. -- You are receiving this mail because: You are on the CC list for the bug. -- Gcc-rust mailing list Gcc-rust@gcc.gnu.org https://gcc.gnu.org/mailman/listinfo/gcc-rust

[Bug rust/108113] Rust and --enable-link-serialization=1

2022-12-19 Thread tschwinge at gcc dot gnu.org via Gcc-rust
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108113 Thomas Schwinge changed: What|Removed |Added CC||jakub at gcc dot gnu.org --- Comment

[Bug rust/108113] Rust and --enable-link-serialization=1

2022-12-19 Thread dkm at gcc dot gnu.org via Gcc-rust
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108113 --- Comment #3 from Marc Poulhiès --- I can yes, but wasn't really sure and didn't want to interfere with Arthur ongoing work at updating the gcc's master branch with all the pending changes from github. Should I submit the patch for formal app

[Bug rust/108113] Rust and --enable-link-serialization=1

2022-12-16 Thread tschwinge at gcc dot gnu.org via Gcc-rust
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108113 Thomas Schwinge changed: What|Removed |Added CC||tschwinge at gcc dot gnu.org --- Comm

[Bug rust/108113] Rust and --enable-link-serialization=1

2022-12-14 Thread dkm at gcc dot gnu.org via Gcc-rust
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108113 Marc Poulhiès changed: What|Removed |Added See Also||https://github.com/Rust-GCC

[Bug rust/108113] Rust and --enable-link-serialization=1

2022-12-14 Thread dkm at gcc dot gnu.org via Gcc-rust
Status|UNCONFIRMED |ASSIGNED Last reconfirmed||2022-12-14 Ever confirmed|0 |1 --- Comment #1 from Marc Poulhiès --- Thanks Jakub! I'll fix that, thanks for the detailed report -- You are receiving this mail be

[Bug rust/108113] New: Rust and --enable-link-serialization=1

2022-12-14 Thread jakub at gcc dot gnu.org via Gcc-rust
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108113 Bug ID: 108113 Summary: Rust and --enable-link-serialization=1 Product: gcc Version: 13.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: rust

Invitation: GCC Rust community call @ Fri 1 Jul 2022 10am - 10:30am (BST) (gcc-rust@gcc.gnu.org)

2022-06-27 Thread philip . herron
our monthly community call (on-time :-)).< span> \; - Date and Time 1st July 2022 at: \; \;Fri\, Jul 1 2022\, 0900 UTC&nb sp\; - Agenda: \;https://hackmd.io/L26Zcfs nT8q5YcadDSu1FQ">https://hackmd.io/L26ZcfsnT8q5YcadDSu1FQ&n bsp\;please feel free to add agenda items you

Invitation: GCC Rust community call @ Fri 1 Apr 2022 3pm - 3:30pm (BST) (gcc-rust@gcc.gnu.org)

2022-03-30 Thread philip . herron
amp;ctz=Europe%2FLondon&hl=en_GB&es=1.\n-::~:~::~:~:~:~:~:~: ~:~:~:~:~:~:~:~:~:~:~:~:~:~:~:~:~:~:~:~:~:~:~:~:~:~:~:~:~:~::~:~::- LAST-MODIFIED:20220330T101557Z LOCATION: SEQUENCE:0 STATUS:CONFIRMED SUMMARY:GCC Rust community call TRANSP:OPAQUE END:VEVENT END:VCALENDAR invite.ics Descripti

[PATCH 1/3] Parse optional visibility for enum item

2021-09-05 Thread Mark Wielaard
Syntactically enum items can have a visibility. The visibility has to be removed (through a cfg attribute or macro) before they get lowered. The semantic checking will be done when we implement lowering enum items. Make the AST EnumItem class a VisItem. This simplifies things a little for cloning

[PATCH 1/3] StructExprTuple doesn't really exist

2021-08-31 Thread Mark Wielaard
HIR StructExprTuple classes which are never used. --- gcc/rust/ast/rust-ast-full-decls.h| 1 - gcc/rust/ast/rust-ast-full-test.cc| 44 --- gcc/rust/ast/rust-ast-visitor.h | 1 - gcc/rust/ast/rust-expr.h | 69 - gcc

[PATCH 1/3] Use location when lowering TupleField

2021-08-28 Thread Mark Wielaard
--- gcc/rust/hir/rust-ast-lower-stmt.h | 6 ++ 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/gcc/rust/hir/rust-ast-lower-stmt.h b/gcc/rust/hir/rust-ast-lower-stmt.h index 1e72c8a2023..fdd5041d602 100644 --- a/gcc/rust/hir/rust-ast-lower-stmt.h +++ b/gcc/rust/hir/rust-ast

Re: [PATCH 1/2] Better union support in the parser

2021-07-23 Thread Philip Herron
token is also an identifier. In parse_union we shouldn't skip > the first identifier token, because it is already skipped when we call > expect_token. > --- > gcc/rust/parse/rust-parse-impl.h | 16 > 1 file changed, 8 insertions(+), 8 deletions(-) > > d

[PATCH 1/2] Better union support in the parser

2021-07-22 Thread Mark Wielaard
x27;t skip the first identifier token, because it is already skipped when we call expect_token. --- gcc/rust/parse/rust-parse-impl.h | 16 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/gcc/rust/parse/rust-parse-impl.h b/gcc/rust/parse/rust-parse-impl.h index bdf1e09a029

[PATCH 1/2] Handle UTF-8 BOM in lexer

2021-07-05 Thread Mark Wielaard
+ gcc/testsuite/rust/compile/torture/bom.rs | 1 + gcc/testsuite/rust/compile/torture/bom_comment.rs | 2 ++ gcc/testsuite/rust/compile/torture/bom_shebang.rs | 2 ++ .../rust/compile/torture/bom_whitespace.rs | 2 ++ 5 files changed, 20 insertions(+) create mode

[PATCH 1/2] Handle shebang line, plus any whitespace and comment skipping in lexer

2021-07-04 Thread Mark Wielaard
itespace and/or comments and the "#!" is seen as part of an inner attribute. --- gcc/rust/lex/rust-lex.cc | 79 ++- .../rust/compile/torture/not_shebang.rs | 3 + .../torture/not_shebang_block_comment.rs | 1 + .../compile/torture/not_sheba

[PATCH 1/2] Remove unused default_ty_param from TypeResolveGenericParam::visit

2021-06-29 Thread Mark Wielaard
The default_ty_param was set, but not used. We do need to call TypeCheckType::Resolve on the default param, but don't need the result. --- gcc/rust/typecheck/rust-hir-type-check-type.h | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/gcc/rust/typecheck/rust-hir