[COMMITTED 102/145] gccrs: Add support for AST to HIR inline asm translation

2025-03-17 Thread arthur . cohen
From: jjasmine gcc/rust/ChangeLog: * ast/rust-expr.h: Add support for AST to HIR inline asm translation * hir/rust-ast-lower-base.cc (ASTLoweringBase::visit): Likewise. * hir/rust-ast-lower-base.h: Likewise. * hir/rust-ast-lower-expr.cc (ASTLoweringExpr

[PATCH] tree-optimization/115494 - PRE PHI translation and ranges

2025-01-16 Thread Richard Biener
e the precondition that used SSA defs fed to vn_valueize are valid to use (including their associated ranges). The following makes sure to replace those with new representatives always, not only when the dependent expression translation changed it. The fix was originally discovered by Michael

Re: [PATCH v3 0/5] c++/modules: Implement P1815 "Translation-unit-local entities"

2024-12-19 Thread Nathaniel Shead
pl)) @@ -13162,28 +13408,36 @@ depset::hash::make_dependency (tree decl, entity_kind ek) dep->cluster = index - from->entity_lwm; dep->section = from->remap; dep->set_flag_bit (); + + if (!from->is_header ()) +

Re: [PATCH v3 0/5] c++/modules: Implement P1815 "Translation-unit-local entities"

2024-12-19 Thread Jason Merrill
On 12/18/24 9:17 AM, Nathaniel Shead wrote: On Tue, Dec 17, 2024 at 03:58:38PM -0500, Jason Merrill wrote: On 11/27/24 3:53 AM, Nathaniel Shead wrote: Gentle ping for this series: https://gcc.gnu.org/pipermail/gcc-patches/2024-October/665108.html Most of the patches no longer applied cleanly t

Re: [PATCH v3 0/5] c++/modules: Implement P1815 "Translation-unit-local entities"

2024-12-18 Thread Nathaniel Shead
On Tue, Dec 17, 2024 at 03:58:38PM -0500, Jason Merrill wrote: > On 11/27/24 3:53 AM, Nathaniel Shead wrote: > > Gentle ping for this series: > > https://gcc.gnu.org/pipermail/gcc-patches/2024-October/665108.html > > > > Most of the patches no longer applied cleanly to trunk since the last > > tim

Re: [PATCH v3 0/5] c++/modules: Implement P1815 "Translation-unit-local entities"

2024-12-17 Thread Jason Merrill
On 11/27/24 3:53 AM, Nathaniel Shead wrote: Gentle ping for this series: https://gcc.gnu.org/pipermail/gcc-patches/2024-October/665108.html Most of the patches no longer applied cleanly to trunk since the last time I pinged this so I'm attaching newly rebased patches. One slight adjustment I've

Re: [PATCH] c: fix incorrect TBAA for tagged types across translation units [PR117490]

2024-11-18 Thread Joseph Myers
On Sat, 16 Nov 2024, Martin Uecker wrote: > c: fix incorrect TBAA for tagged types across translation units [PR117490] > > Two different declarations of tagged types in the same translation unit > are incompatible in C before C23 and without tag also in C23. Stil

[PATCH] c: fix incorrect TBAA for tagged types across translation units [PR117490]

2024-11-16 Thread Martin Uecker
. With this change, this issue now also affects tagless types. I still hope this can be resolved in time for GCC 15. Bootstrapped and regression tested on x86_64. c: fix incorrect TBAA for tagged types across translation units [PR117490] Two different declarations of tagged types in

Re: [PATCH v3 0/5] c++/modules: Implement P1815 "Translation-unit-local entities"

2024-10-31 Thread Nathaniel Shead
cument -Wignored-exposures. > +* doc/invoke.texi: Document -Wtemplate-names-tu-local. > > gcc/testsuite/ChangeLog: > > @@ Commit message > * g++.dg/modules/internal-6.C: New test. > * g++.dg/modu

[PATCH v3 0/5] c++/modules: Implement P1815 "Translation-unit-local entities"

2024-10-11 Thread Nathaniel Shead
+ - Wignored-qualifiers - C C++ Var(warn_ignored_qualifiers) Warning EnabledBy(Wextra) - Warn whenever type qualifiers are ignored. + Wterminate + C++ ObjC++ Warning Var(warn_terminate) Init(1) + Warn if a throw expression will always result in a call to terminate(). ## gcc/

[PATCH v2 0/6] c++/modules: Implement P1815 "Translation-unit-local entities"

2024-09-26 Thread Nathaniel Shead
This patch series implements most of the changes made by P1815. It also cleans up a few bugs found along the way that impacted tests I wrote. The whole patch series was bootstrapped on x86_64-pc-linux-gnu and aarch64-unknown-linux-gnu with no regressions. Changes since v1: - Merged in already a

[PATCH 00/10] c++/modules: Implement P1815 "Translation-unit-local entities"

2024-09-23 Thread Nathaniel Shead
This patch series implements most of the changes made by P1815. It also cleans up a few bugs found along the way that impacted tests I wrote. The whole patch series was bootstrapped on x86_64-pc-linux-gnu with no regressions. Nathaniel Shead (10): libstdc++: Remove unnecessary 'static' from __

Re: [PATCH 2/2] c++/modules: Fix include translation for already-seen headers [PR99243]

2024-08-26 Thread Jason Merrill
sertion if we then come across this header as an #include and attempt to translate it into a module. We still need to do this translation so that libcpp learns that this is a header unit, but we shouldn't error just because we've already seen it as an import. Instead this patch mere

Re: [PATCH 1/2] c++/modules: Clean up include translation [PR110980]

2024-08-26 Thread Jason Merrill
On 8/22/24 7:49 AM, Nathaniel Shead wrote: Bootstrapped and regtested on x86_64-pc-linux-gnu, OK for trunk? OK. -- >8 -- Currently the handling of include translation is confusing to read, using a tri-state integer without much clarity on what different states mean. This patch cleans t

[PATCH 2/2] c++/modules: Fix include translation for already-seen headers [PR99243]

2024-08-22 Thread Nathaniel Shead
#include and attempt to translate it into a module. We still need to do this translation so that libcpp learns that this is a header unit, but we shouldn't error just because we've already seen it as an import. Instead this patch merely checks and errors to handle the case of a broken mapp

[PATCH 1/2] c++/modules: Clean up include translation [PR110980]

2024-08-22 Thread Nathaniel Shead
Bootstrapped and regtested on x86_64-pc-linux-gnu, OK for trunk? -- >8 -- Currently the handling of include translation is confusing to read, using a tri-state integer without much clarity on what different states mean. This patch cleans this up to use explicit enumerators indicating

[PATCH v9 10/10] Mark expand musttail error messages for translation

2024-07-08 Thread Andi Kleen
The musttail error messages are reported to the user, so must be translated. gcc/ChangeLog: PR83324 * calls.cc (initialize_argument_information): Mark messages for translation. (can_implement_as_sibling_call_p): Dito. (expand_call): Dito. --- gcc/calls.cc

Re: [PATCH v8 12/12] Mark expand musttail error messages for translation

2024-07-05 Thread Richard Biener
On Sat, Jun 22, 2024 at 8:58 PM Andi Kleen wrote: > > The musttail error messages are reported to the user, so must be > translated. OK. > gcc/ChangeLog: > > * calls.cc (initialize_argument_information): Mark messages > for translation. > (can_imp

[PATCH v8 12/12] Mark expand musttail error messages for translation

2024-06-22 Thread Andi Kleen
The musttail error messages are reported to the user, so must be translated. gcc/ChangeLog: * calls.cc (initialize_argument_information): Mark messages for translation. (can_implement_as_sibling_call_p): Dito. (expand_call): Dito. --- gcc/calls.cc | 56

[pushed] c++: -include and header unit translation

2024-06-07 Thread Jason Merrill
Tested x86_64-pc-linux-gnu, applying to trunk. -- 8< -- Within a source file, #include is translated to import if a suitable header unit is available, but this wasn't working with -include. This turned out to be because we suppressed the translation before the beginning of the m

[PATCH 3/4] Add 'c-c++-common/initpri1-split.c': 'c-c++-common/initpri1.c' split into separate translation units

2024-06-04 Thread Thomas Schwinge
gcc/testsuite/ * c-c++-common/initpri1.c: Split into... * c-c++-common/initpri1_part_c1.c: ... this, and... * c-c++-common/initpri1_part_c2.c: ... this, and... * c-c++-common/initpri1_part_c3.c: ... this, and... * c-c++-common/initpri1_part_cd4.c: ...

Re: [PATCH] .gitattributes: disable crlf translation

2024-05-24 Thread Peter0x44
ertions(+) diff --git a/.gitattributes b/.gitattributes index e75bfc595bf..1e116987c98 100644 --- a/.gitattributes +++ b/.gitattributes @@ -8,3 +8,6 @@ ChangeLog whitespace=indent-with-non-tab,space-before-tab,trailing-space # Use together with git config diff.md.xfuncname '^\(define.*$'

Re: [PATCH] .gitattributes: disable crlf translation

2024-05-23 Thread Richard Biener
> --- a/.gitattributes > +++ b/.gitattributes > @@ -8,3 +8,6 @@ ChangeLog > whitespace=indent-with-non-tab,space-before-tab,trailing-space > # Use together with git config diff.md.xfuncname '^\(define.*$' > # which is run by contrib/gcc-git-customization.sh too. > *.md diff=md > + > +# Disable lf -> crlf translation on windows. > +* -crlf > -- > 2.39.2 >

[PATCH] .gitattributes: disable crlf translation

2024-05-22 Thread Peter Damianov
,3 +8,6 @@ ChangeLog whitespace=indent-with-non-tab,space-before-tab,trailing-space # Use together with git config diff.md.xfuncname '^\(define.*$' # which is run by contrib/gcc-git-customization.sh too. *.md diff=md + +# Disable lf -> crlf translation on windows. +* -crlf -- 2.39.2

[PATCH] tree-optimization/106922 - PRE and virtual operand translation

2022-09-15 Thread Richard Biener via Gcc-patches
PRE implicitely keeps virtual operands at the blocks incoming version but the explicit updating point during PHI translation fails to trigger when there are no PHIs at all in a block. Later lazy updating then fails because of a too lose block check. A similar issues plagues reference

[pushed] Darwin: Address a translation comment [PR104552].

2022-03-08 Thread Iain Sandoe via Gcc-patches
This amends an error message to correct punctuation and a little better wording. bootstrapped on x86_64-darwin18, pushed to master, thanks, Iain Signed-off-by: Iain Sandoe PR translation/104552 gcc/ChangeLog: * config/host-darwin.cc (darwin_gt_pch_get_address): Amend

RE: [PATCH][ARM] translation: reuse string and use switch for codes

2022-03-07 Thread Kyrylo Tkachov via Gcc-patches
> -Original Message- > From: Gcc-patches bounces+kyrylo.tkachov=arm@gcc.gnu.org> On Behalf Of Martin Liška > Sent: Monday, March 7, 2022 10:22 AM > To: Christophe Lyon ; gcc-patches@gcc.gnu.org > Subject: Re: [PATCH][ARM] translation: reuse string and use switch f

Re: [PATCH][ARM] translation: reuse string and use switch for codes

2022-03-07 Thread Martin Liška
On 3/7/22 11:18, Christophe Lyon via Gcc-patches wrote: Hi! On 3/7/22 11:09, Martin Liška wrote: Hi. The patch simplifies translation strings. Patch can bootstrap on x86_64-linux-gnu and survives regression tests. This is an arm-only patch, it's not clear if you built a cross-compile

Re: [PATCH][ARM] translation: reuse string and use switch for codes

2022-03-07 Thread Christophe Lyon via Gcc-patches
Hi! On 3/7/22 11:09, Martin Liška wrote: Hi. The patch simplifies translation strings. Patch can bootstrap on x86_64-linux-gnu and survives regression tests. This is an arm-only patch, it's not clear if you built a cross-compiler for arm, and that these regression tests passed? Rea

Re: [PATCH][ARM] translation: reuse string and use switch for codes

2022-03-07 Thread Martin Liška
:56:43 +0100 Subject: [PATCH] translation: reuse string and use switch for codes gcc/ChangeLog: * config/arm/arm-builtins.cc (arm_expand_builtin): Reuse error message. --- gcc/config/arm/arm-builtins.cc | 127 - 1 file changed, 77 insertions(+), 50 deletions

Re: [PATCH][ARM] translation: reuse string and use switch for codes

2022-03-07 Thread Martin Liška
+0100 Subject: [PATCH] translation: reuse string and use switch for codes gcc/ChangeLog: * config/arm/arm-builtins.cc (arm_expand_builtin): Reuse error message. --- gcc/config/arm/arm-builtins.cc | 125 - 1 file changed, 75 insertions(+), 50 deletions(-) diff --git

Re: [PATCH][ARM] translation: reuse string and use switch for codes

2022-03-07 Thread Jakub Jelinek via Gcc-patches
On Mon, Mar 07, 2022 at 11:09:26AM +0100, Martin Liška wrote: > gcc/ChangeLog: > > * config/arm/arm-builtins.cc (arm_expand_builtin): Reuse error > message. Will defer review to ARM maintainers, just wanted to mention some of the lines are way too long (before or after). > --- a/gcc/

[PATCH][ARM] translation: reuse string and use switch for codes

2022-03-07 Thread Martin Liška
Hi. The patch simplifies translation strings. Patch can bootstrap on x86_64-linux-gnu and survives regression tests. Ready to be installed? Thanks, Martin gcc/ChangeLog: * config/arm/arm-builtins.cc (arm_expand_builtin): Reuse error message. --- gcc/config/arm/arm

[committed] preprocessor: Extract messages from cpp_*_at calls for translation

2022-02-11 Thread Joseph Myers
The logic in libcpp/Makefile.in listing diagnostic functions in a call to xgettext was missing cpp_warning_at, cpp_pedwarning_at and cpp_error_at, so resulting in some messages not being extracted for translation; add those functions to those for which messages are extracted. Tested with "

Re: [PATCH] gfortran: Improve translation of POPPAR intrinsic

2021-11-21 Thread Bernhard Reutner-Fischer via Gcc-patches
On Sun, 21 Nov 2021 19:59:35 +0100 Harald Anlauf wrote: > Let's have a look at the tree-dump of the existing testcase: > > integer(kind=4) runtime_poppar (integer(kind=16) & restrict i) > { >integer(kind=4) res; > >{ > uint128_t D.4221; > > D.4221 = (uint128_t) *i; > res

Re: [PATCH] gfortran: Improve translation of POPPAR intrinsic

2021-11-21 Thread Harald Anlauf via Gcc-patches
Let's have a look at the tree-dump of the existing testcase: integer(kind=4) runtime_poppar (integer(kind=16) & restrict i) { integer(kind=4) res; { uint128_t D.4221; D.4221 = (uint128_t) *i; res = __builtin_parityll ((unsigned long) D.4221 ^ (unsigned long) (D.4221 >> 64)); }

Re: [PATCH] gfortran: Improve translation of POPPAR intrinsic

2021-11-20 Thread Bernhard Reutner-Fischer via Gcc-patches
Roger pinged this on gcc-patches some time ago fwiw. [The commit-hooks will likely fix or ignore s/bext/next/ in his mail-addr] On Sun, 14 Jun 2020 23:39:32 +0100 "Roger Sayle" wrote: > > > The following patch to gfortran's trans-instrinsic.c tweaks the generic that > is produced > > for po

[Ada] Minor cleanup in translation of calls to subprograms

2021-11-10 Thread Pierre-Marie de Rodat via Gcc-patches
This gets rid of the DECL_STUBBED_P macro and adjusts Call_to_gnu. Tested on x86_64-pc-linux-gnu, committed on trunk gcc/ada/ * gcc-interface/ada-tree.h (DECL_STUBBED_P): Delete. * gcc-interface/decl.c (gnat_to_gnu_entity): Do not set it. * gcc-interface/trans.c (Call_to_

[Ada] Fix missing minus sign in literal translation

2021-07-05 Thread Pierre-Marie de Rodat
When translating literals to big reals, the compiler would forget about the minus sign and turn a negative number into a positive one. Tested on x86_64-pc-linux-gnu, committed on trunk gcc/ada/ * sem_res.adb (Resolve): Insert minus sign if needed.diff --git a/gcc/ada/sem_res.adb b/gcc/ad

[pushed] Darwin : Address a translation comment.

2021-03-23 Thread Iain Sandoe
Hi I modified the diagnostic message to avoid a build-time warning omitting a colon intentionally; since that has produced a translation comment, this adds the colon back. tested with a build of host-darwin (produces no build-time diagnostic). pushed to master, thanks Iain Add a '

c++: directives-only preprocessing and include translation [PR 99050]

2021-02-16 Thread Nathan Sidwell
We make sure files end in \n by placing one at the limit of the buffer (just past the end of what is read). We need to do the same for buffers generated via include-translation. Fortunately they have space. libcpp/ * files.c (_cpp_stack_file): Make buffers end in unread \n

translation

2021-01-11 Thread suzy__zhang@outlook via Gcc-patches
Hi, I hope you are doing well! This is Suzy, an account manager from an ISO 9001:2008 Translation Company. I happened to browse your website today, so I thought that maybe you’d like to work with native Asian linguists for your projects, and that's exactly why I'm reaching

preprocessor: Add support for header unit translation

2020-11-18 Thread Nathan Sidwell
This adds preprocessor support for header units. Every #include directive needs to go through the include-translation hook to determine if it is to be treated as 'import $file;'. This is that code. when include translation occurs, the hook creates a buffer containing the transl

[PATCH] Drop topological sort for PRE phi-translation

2020-11-11 Thread Richard Biener
n-ids provide a closer approximation of a topological sort since those are assigned during AVAIL_OUT computation which is done in a dominator walk. Now - phi-translation is not even depending on topological sorting but it essentially does a DFS walk, phi-translating expressions it depends on and relyi

[PATCH] Use a per-edge PRE PHI translation cache

2020-11-09 Thread Richard Biener
This changes the phi translation cache to be per edge which pushes it off the profiling radar. For larger testcases the combined hashtable causes a load of cache misses and making it per edge allows to shrink the entry further. Bootstrapped and tested on x86_64-unknown-linux-gnu, pushed. 2020

[PATCH] rework PRE PHI translation cache

2020-11-06 Thread Richard Biener
the expression. */ - basic_block pred; + /* The expression ID. */ + unsigned e; - /* The value that resulted from the translation. */ - pre_expr v; + /* The predecessor block index along which we translated the expression. */ + int pred; - /* The hashcode for the expression, pred pair.

Re: Fortran : Fortran translation issues PR52279

2020-07-03 Thread David Edelsohn via Gcc-patches
Mark, A full bootstrap is successful with the translation markers restored and declaring hint as "const char *". const char *hint = _(" [see %<-fno-allow-invalid-boz%>]"); I assume that the translation system works correctly for that style. Do you want to apply the

Re: Fortran : Fortran translation issues PR52279

2020-07-02 Thread David Edelsohn via Gcc-patches
20:07, David Edelsohn wrote: > > >>>> This patch breaks bootstrap. > > >>> Apologies. I didn't see this when I built the compiler the with > > >>> bootstrap on x86_64. I'll endevour to get it fixed as soon as possible. > > > Mark, > > &g

Re: Fortran : Fortran translation issues PR52279

2020-07-02 Thread David Edelsohn via Gcc-patches
ndevour to get it fixed as soon as possible. > > Mark, > > > > Your change did nothing because I previously had removed the > > translation markers to restore bootstrap. You were not sufficiently > > observant to check the ChangeLog or notice that the line alread

Re: Fortran : Fortran translation issues PR52279

2020-07-02 Thread Mark Eggleston
David Edelsohn wrote: This patch breaks bootstrap. Apologies. I didn't see this when I built the compiler the with bootstrap on x86_64. I'll endevour to get it fixed as soon as possible. Mark, Your change did nothing because I previously had removed the translation markers to restore

Re: Fortran : Fortran translation issues PR52279

2020-07-02 Thread Mark Eggleston
strap. Apologies. I didn't see this when I built the compiler the with bootstrap on x86_64. I'll endevour to get it fixed as soon as possible. Mark, Your change did nothing because I previously had removed the translation markers to restore bootstrap. You were not sufficiently observa

Re: Fortran : Fortran translation issues PR52279

2020-07-02 Thread David Edelsohn via Gcc-patches
> > > Apologies. I didn't see this when I built the compiler the with > > bootstrap on x86_64. I'll endevour to get it fixed as soon as possible. Mark, Your change did nothing because I previously had removed the translation markers to restore bootstrap. You were not

Re: Fortran : Fortran translation issues PR52279

2020-07-02 Thread David Edelsohn via Gcc-patches
I already had removed your change. I hope that you did not re-break bootstrap. You should be re-producing the breakage and then confirming the fix, not randomly applying patches and asking others if you didn't break it again. That is not appropriate for GCC development. Thanks David On Thu, Ju

Re: Fortran : Fortran translation issues PR52279

2020-07-02 Thread Mark Eggleston
I've committed the change from array to pointer. Does this fix your builds? On 02/07/2020 08:18, Mark Eggleston wrote: On 01/07/2020 20:07, David Edelsohn wrote: This patch breaks bootstrap. Apologies. I didn't see this when I built the compiler the with bootstrap on x86_64. I'll endevour to

Re: Fortran : Fortran translation issues PR52279

2020-07-02 Thread Mark Eggleston
On 01/07/2020 20:07, David Edelsohn wrote: This patch breaks bootstrap. Apologies. I didn't see this when I built the compiler the with bootstrap on x86_64. I'll endevour to get it fixed as soon as possible. regards, Mark It is not portable to use _( ... ) to initialize an array. In file

Re: Fortran : Fortran translation issues PR52279

2020-07-01 Thread David Edelsohn via Gcc-patches
This patch breaks bootstrap. It is not portable to use _( ... ) to initialize an array. In file included from /nasfarm/edelsohn/src/src/gcc/fortran/gfortran.h:52, from /nasfarm/edelsohn/src/src/gcc/fortran/check.c:32: /nasfarm/edelsohn/src/src/gcc/fortran/check.c: In function 'bo

Re: Fortran : Fortran translation issues PR52279

2020-07-01 Thread Martin Sebor via Gcc-patches
On 6/30/20 6:59 AM, Mark Eggleston wrote: ping! On 25/06/2020 07:28, Mark Eggleston wrote: Patch to fix PR52279.  Marked strings that are indirectly used in error and warning messages so that they are marked for translation. OK to commit? Commit message: Fortran  : Fortran transla

Re: Fortran : Fortran translation issues PR52279

2020-06-30 Thread Thomas Koenig
Hi Mark, that one is OK for master. Thanks! Regards Thomas

Re: Fortran : Fortran translation issues PR52279

2020-06-30 Thread Mark Eggleston
ping! On 25/06/2020 07:28, Mark Eggleston wrote: Patch to fix PR52279.  Marked strings that are indirectly used in error and warning messages so that they are marked for translation. OK to commit? Commit message: Fortran  : Fortran translation issues PR52279 Mark strings for translation by

Fortran : Fortran translation issues PR52279

2020-06-24 Thread Mark Eggleston
Patch to fix PR52279.  Marked strings that are indirectly used in error and warning messages so that they are marked for translation. OK to commit? Commit message: Fortran  : Fortran translation issues PR52279 Mark strings for translation by enclosing in G_() and _(). 2020-06-24  Mark

[PATCH] gfortran: Improve translation of POPPAR intrinsic

2020-06-14 Thread Roger Sayle
The following patch to gfortran's trans-instrinsic.c tweaks the generic that is produced for popcnt on integer(kind=16). Currently, the double word popcnt is implemented as parityll(hipart(x))^parityll(lopart(x)), but with this patch this is now translated as parityll(hipart(x)^lopart(x)).

[committed] Darwin: Address translation comments (PR93694).

2020-03-21 Thread Iain Sandoe
This updates the options descriptions after feedback from a translator. tested on x86_64-darwin16, applied to master, thanks Iain gcc/ChangeLog: 2020-03-21 Iain Sandoe PR target/93694 * gcc/config/darwin.opt: Amend options descriptions. diff --git a/gcc/ChangeLog

Re: [PATCH] i18n: Fix translation of --help [PR93759]

2020-02-18 Thread Joseph Myers
On Tue, 18 Feb 2020, Jakub Jelinek wrote: > Hi! > > The first two hunks make sure we actually translate what has been marked > for translation, i.e. the cl_options[...].help strings, rather than those > strings ammended in various ways, like: > _("%s Same as %s."

[PATCH] i18n: Fix translation of --help [PR93759]

2020-02-17 Thread Jakub Jelinek
Hi! The first two hunks make sure we actually translate what has been marked for translation, i.e. the cl_options[...].help strings, rather than those strings ammended in various ways, like: _("%s Same as %s."), help, ... or "%s %s", help, _(use_diagnosed_msg) The exgettex

[committed] [PR translation/90162] Fix diagnostic to better follow guidelines

2020-01-23 Thread Jeff Law
Not a regression, but only affects a diagnostic on the H8 port. As pointed out in the BZ, we should not be emitting an exclamation point in the diagnostic and the capitalization was incorrect. Fixed by the attached patch which I've committed to the trunk. Jeff commit dfa075d00d396f554b4aca183c3c

Re: [PATCH PR92926]Fix wrong code caused by ctor node translation unit wide sharing

2020-01-14 Thread Bin.Cheng
> > > On Fri, Dec 13, 2019 at 11:26 AM bin.cheng > > > > wrote: > > > > > Hi, > > > > > > > > > > As reported in PR92926, constant ctor is shared translation unit wide > > > > because of constexpr_call_table, > > &g

Re: [PATCH PR92926]Fix wrong code caused by ctor node translation unit wide sharing

2020-01-14 Thread Jeff Law
> > > Hi, > > > > > > > > As reported in PR92926, constant ctor is shared translation unit wide > > > because of constexpr_call_table, > > > > however, during gimplify, the shared ctor could be modified. This > > > patch fixes the

Re: [PATCH PR92926]Fix wrong code caused by ctor node translation unit wide sharing

2020-01-09 Thread Jason Merrill
On 1/9/20 4:37 PM, Jakub Jelinek wrote: On Thu, Jan 09, 2020 at 04:27:09PM -0500, Jason Merrill wrote: Isn't the right spot to fix this somewhere in cp_gimplify_expr? I mean, the way gimplification works, we unshare_body first and then gimplify, which is destructive for the GENERIC it is gimplif

Re: [PATCH PR92926]Fix wrong code caused by ctor node translation unit wide sharing

2020-01-09 Thread Jakub Jelinek
On Thu, Jan 09, 2020 at 04:27:09PM -0500, Jason Merrill wrote: > > Isn't the right spot to fix this somewhere in cp_gimplify_expr? > > I mean, the way gimplification works, we unshare_body first and then > > gimplify, which is destructive for the GENERIC it is gimplifying. The > > reason why this

Re: [PATCH PR92926]Fix wrong code caused by ctor node translation unit wide sharing

2020-01-09 Thread Jason Merrill
On 1/9/20 3:59 AM, Jakub Jelinek wrote: On Thu, Jan 09, 2020 at 02:20:23PM +0800, Bin.Cheng wrote: On December 20, 2019 2:13:47 AM GMT+01:00, "Bin.Cheng" wrote: On Fri, Dec 13, 2019 at 11:26 AM bin.cheng wrote: Hi, As reported in PR92926, constant ctor is shared translation

Re: [PATCH PR92926]Fix wrong code caused by ctor node translation unit wide sharing

2020-01-09 Thread Jakub Jelinek
On Thu, Jan 09, 2020 at 02:20:23PM +0800, Bin.Cheng wrote: > > On December 20, 2019 2:13:47 AM GMT+01:00, "Bin.Cheng" > > wrote: > > >On Fri, Dec 13, 2019 at 11:26 AM bin.cheng > > > wrote: > > >> > > >> Hi, > > >>

Re: [PATCH PR92926]Fix wrong code caused by ctor node translation unit wide sharing

2020-01-08 Thread Bin.Cheng
On Fri, Dec 20, 2019 at 3:10 PM Richard Biener wrote: > > On December 20, 2019 2:13:47 AM GMT+01:00, "Bin.Cheng" > wrote: > >On Fri, Dec 13, 2019 at 11:26 AM bin.cheng > > wrote: > >> > >> Hi, > >> > >> As reported in P

Re: [PATCH PR92926]Fix wrong code caused by ctor node translation unit wide sharing

2019-12-19 Thread Richard Biener
On December 20, 2019 2:13:47 AM GMT+01:00, "Bin.Cheng" wrote: >On Fri, Dec 13, 2019 at 11:26 AM bin.cheng > wrote: >> >> Hi, >> >> As reported in PR92926, constant ctor is shared translation unit wide >because of constexpr_call_table, >> h

Re: [PATCH PR92926]Fix wrong code caused by ctor node translation unit wide sharing

2019-12-19 Thread Bin.Cheng
On Fri, Dec 13, 2019 at 11:26 AM bin.cheng wrote: > > Hi, > > As reported in PR92926, constant ctor is shared translation unit wide because > of constexpr_call_table, > however, during gimplify, the shared ctor could be modified. This patch > fixes the issue by

[PATCH 04/13] Use gomp_map_val for OpenACC host-to-device address translation

2019-12-17 Thread Julian Brown
This patch was previously approved here, but I have not committed it yet (without the other patches in this series): https://gcc.gnu.org/ml/gcc-patches/2019-10/msg01156.html Included for completeness. I will commit this alongside other patches if they are approved (or it could probably go in by

[PATCH PR92926]Fix wrong code caused by ctor node translation unit wide sharing

2019-12-12 Thread bin.cheng
Hi, As reported in PR92926, constant ctor is shared translation unit wide because of constexpr_call_table, however, during gimplify, the shared ctor could be modified. This patch fixes the issue by unsharing it before modification in gimplify. A test is reduced from cppcoro library and added

Translation Services with Minimal Expenses

2019-10-29 Thread Priya Sharma
Hello Ma’am/Sir, I represent a company which has *1**7**+* years of experience in providing *accurate Translation, Interpretation, App/Web Localization, and Content Moderation Services within fastest TAT.* Our team has expertise in all types of languages including national and international

Translation Services with Minimal Expenses

2019-10-24 Thread Priya Sharma
Hello Ma’am/Sir, I represent a company which has *1**7**+* years of experience in providing *accurate Translation, Interpretation, App/Web Localization, and Content Moderation Services within fastest TAT.* Our team has expertise in all types of languages including national and international

Re: [PATCH 2/4] Use gomp_map_val for OpenACC host-to-device address translation

2019-10-16 Thread Thomas Schwinge
Hi! On 2019-10-06T15:32:35-0700, Julian Brown wrote: > This patch uses gomp_map_val for OpenACC host-to-device address > translation instead of open-coding the device address calculation. (As has been discussed before.) (And then, also see <https://gcc.gnu.org/PR90596> "

[PATCH 2/4] Use gomp_map_val for OpenACC host-to-device address translation

2019-10-06 Thread Julian Brown
This patch uses gomp_map_val for OpenACC host-to-device address translation instead of open-coding the device address calculation. OK for trunk? Thanks, Julian ChangeLog libgomp/ * libgomp.h (gomp_map_val): Add prototype. * oacc-parallel.c (GOACC_parallel_keyed): Use

Re: build-failure for cris-elf with "[00/32] Support multiple ABIs in the same translation unit"

2019-10-01 Thread Hans-Peter Nilsson
> From: Richard Sandiford > Date: Tue, 1 Oct 2019 09:51:51 +0200 > Hans-Peter Nilsson writes: > > My autotester for cris-elf complains about a build-breaking > > commit in the revision range (working:breaking) 276299:276359 > Fixed as below. I also belatedly see a new definition of > HARD_REGN

Re: build-failure for cris-elf with "[00/32] Support multiple ABIs in the same translation unit"

2019-10-01 Thread Richard Sandiford
Hans-Peter Nilsson writes: >> From: Richard Sandiford >> Date: Wed, 11 Sep 2019 21:02:26 +0200 > >> This series of patches introduces some classes and helpers for handling >> multiple ABIs in the same translation unit. At the moment "ABI" maans >>

build-failure for cris-elf with "[00/32] Support multiple ABIs in the same translation unit"

2019-09-30 Thread Hans-Peter Nilsson
> From: Richard Sandiford > Date: Wed, 11 Sep 2019 21:02:26 +0200 > This series of patches introduces some classes and helpers for handling > multiple ABIs in the same translation unit. At the moment "ABI" maans > specifically the choice of call-clobbered registers

Re: [00/32] Support multiple ABIs in the same translation unit

2019-09-27 Thread Richard Sandiford
Dimitar Dimitrov writes: > On Wed, 11 Sep 2019, 22:02:26 EEST Richard Sandiford wrote: >> The reason for the PRU differences is that the port defines >> targetm.hard_regno_call_part_clobbered, but uses it to test whether >> a multi-register value contains a mixture of fully-clobbered and >> fully-

Re: [00/32] Support multiple ABIs in the same translation unit

2019-09-26 Thread Dimitar Dimitrov
On Wed, 11 Sep 2019, 22:02:26 EEST Richard Sandiford wrote: > The reason for the PRU differences is that the port defines > targetm.hard_regno_call_part_clobbered, but uses it to test whether > a multi-register value contains a mixture of fully-clobbered and > fully-preserved registers. AFAICT the

Re: [00/32] Support multiple ABIs in the same translation unit

2019-09-12 Thread Steven Bosscher
On Wednesday, September 11, 2019, Richard Sandiford < richard.sandif...@arm.com> wrote:. > > > Sorry for the long write-up. > > Richard > *thanks* for the long write-up! Ciao! Steven

[00/32] Support multiple ABIs in the same translation unit

2019-09-11 Thread Richard Sandiford
This series of patches introduces some classes and helpers for handling multiple ABIs in the same translation unit. At the moment "ABI" maans specifically the choice of call-clobbered registers, but I'm hoping the structures could be used for other ABI properties in future. The ma

Re: [PATCH] Wrap a string with _ for translation (PR translation/90274).

2019-04-29 Thread Jeff Law
On 4/29/19 5:06 AM, Martin Liška wrote: > Hi. > > Simple patch to address a missing translation of a string. > > Patch can bootstrap on x86_64-linux-gnu and survives regression tests. > > Ready to be installed? > Thanks, > Martin > > gcc/ChangeLog: > > 2

[PATCH] Wrap a string with _ for translation (PR translation/90274).

2019-04-29 Thread Martin Liška
Hi. Simple patch to address a missing translation of a string. Patch can bootstrap on x86_64-linux-gnu and survives regression tests. Ready to be installed? Thanks, Martin gcc/ChangeLog: 2019-04-29 Martin Liska PR translation/90274 * opts.c (print_filtered_help): Wrap

Re: [PATCH] PR translation/90118 Missing space between words

2019-04-19 Thread Martin Sebor
On 4/19/19 3:38 AM, Jakub Jelinek wrote: On Fri, Apr 19, 2019 at 11:28:41AM +0200, Christophe Lyon wrote: --- a/contrib/check-internal-format-escaping.py +++ b/contrib/check-internal-format-escaping.py @@ -58,6 +58,10 @@ for i, l in enumerate(lines): print('%s: %s' % (o

Re: [PATCH] PR translation/90118 Missing space between words

2019-04-19 Thread Christophe Lyon
On Fri, 19 Apr 2019 at 11:57, Richard Sandiford wrote: > > Christophe Lyon writes: > > On Fri, 19 Apr 2019 at 11:23, Richard Sandiford > > wrote: > >> > >> Christophe Lyon writes: > >> > On Thu, 18 Apr 2019 at 18:25, Richard Sandiford > >> > wrote: > >> >> > >> >> Christophe Lyon writes: > >>

Re: [PATCH] PR translation/90118 Missing space between words

2019-04-19 Thread Richard Sandiford
Christophe Lyon writes: > On Fri, 19 Apr 2019 at 11:23, Richard Sandiford > wrote: >> >> Christophe Lyon writes: >> > On Thu, 18 Apr 2019 at 18:25, Richard Sandiford >> > wrote: >> >> >> >> Christophe Lyon writes: >> >> > Hi, >> >> > >> >> > This patch adds the missing space before '%<' in >>

Re: [PATCH] PR translation/90118 Missing space between words

2019-04-19 Thread Jakub Jelinek
On Fri, Apr 19, 2019 at 11:28:41AM +0200, Christophe Lyon wrote: > > >> > --- a/contrib/check-internal-format-escaping.py > > >> > +++ b/contrib/check-internal-format-escaping.py > > >> > @@ -58,6 +58,10 @@ for i, l in enumerate(lines): > > >> > print('%s: %s' % (origin, te

Re: [PATCH] PR translation/90118 Missing space between words

2019-04-19 Thread Christophe Lyon
On Fri, 19 Apr 2019 at 11:23, Richard Sandiford wrote: > > Christophe Lyon writes: > > On Thu, 18 Apr 2019 at 18:25, Richard Sandiford > > wrote: > >> > >> Christophe Lyon writes: > >> > Hi, > >> > > >> > This patch adds the missing space before '%<' in > >> > config/aarch64/aarch64.c and gcc/c

Re: [PATCH] PR translation/90118 Missing space between words

2019-04-19 Thread Richard Sandiford
Christophe Lyon writes: > On Thu, 18 Apr 2019 at 18:25, Richard Sandiford > wrote: >> >> Christophe Lyon writes: >> > Hi, >> > >> > This patch adds the missing space before '%<' in >> > config/aarch64/aarch64.c and gcc/cp/call.c. It also updates the >> > check-internal-format-escaping.py checker

Re: [PATCH] PR translation/90118 Missing space between words

2019-04-19 Thread Christophe Lyon
On Thu, 18 Apr 2019 at 18:25, Richard Sandiford wrote: > > Christophe Lyon writes: > > Hi, > > > > This patch adds the missing space before '%<' in > > config/aarch64/aarch64.c and gcc/cp/call.c. It also updates the > > check-internal-format-escaping.py checker to warn about such cases. > > > > O

Re: [PATCH] PR translation/90118 Missing space between words

2019-04-18 Thread Richard Sandiford
Christophe Lyon writes: > Hi, > > This patch adds the missing space before '%<' in > config/aarch64/aarch64.c and gcc/cp/call.c. It also updates the > check-internal-format-escaping.py checker to warn about such cases. > > OK? > > Christophe > > diff --git a/contrib/check-internal-format-escaping.

[PATCH] PR translation/90118 Missing space between words

2019-04-18 Thread Christophe Lyon
%T)%> ", msg, fn, candidate->convs[0]->type, candidate->convs[1]->type); else - inform (cloc, "%s%<%D(%T)%> ", msg, fn, + inform (cloc, "%s %<%D(%T)%> ", msg, fn, candidate->convs[0]-

Re: [PATCH] i18n fix for gimple-ssa-sprintf.c (PR translation/79183)

2019-04-18 Thread Richard Biener
tml_node/Plural-forms.html#Plural-forms > for more details. > > Bootstrapped/regtested on x86_64-linux and i686-linux, plus generated > gcc.pot and eyeballed the changes. Ok for trunk? OK. Richard. > 2019-04-18 Jakub Jelinek > > PR translation/79183 > * gim

[PATCH] i18n fix for gimple-ssa-sprintf.c (PR translation/79183)

2019-04-17 Thread Jakub Jelinek
ed on x86_64-linux and i686-linux, plus generated gcc.pot and eyeballed the changes. Ok for trunk? 2019-04-18 Jakub Jelinek PR translation/79183 * gimple-ssa-sprintf.c (format_directive): Use inform_n instead of inform where appropriate. --- gcc/gimple-ssa-sprintf.c.jj

  1   2   3   >