[PATCH v2 1/1] stackleak: Register the 'stackleak_cleanup' pass before the '*free_cfg' pass

2018-12-06 Thread Alexander Popov
up' pass before the '*free_cfg' pass. It's the moment when the stack frame size is already final, function prologues and epilogues are generated, and the machine-dependent code transformations are not done. [1] https://www.openwall.com/lists/kernel-hardening/2018/11/23/2 Report

Re: Is it a bug allowing to copy GIMPLE_ASM with labels?

2018-12-28 Thread Alexander Monakov
code? This is invalid code, GCC documentation is clear that the compiler may duplicate inline asm statements (passes other than tracer can do that too, loop unswitching just to give one example). We don't provide a way to write an asm that wouldn't be duplicated. Alexander

Re: Idea: extend gcc to save C from the hell of intel vector instructions

2019-02-20 Thread Alexander Monakov
and the 'gcc' command actually invokes Clang/LLVM. Clang does not implement this builtin (there's __builtin_shufflevector with a different interface — see Clang documentation for details). Alexander

Re: GCC turns &~ into | due to undefined bit-shift without warning

2019-03-21 Thread Alexander Monakov
gt; > program? > > I assume i is signed int. Even then GCC may not do this unless it knows > the loop is entered (start < limit). Additionally, the compiler needs to prove that 'foo' always returns normally (i.e. cannot invoke exit/longjmp or such). Alexander

RFC: Deprecate libstdc++ Policy-Based Data Structures

2019-07-09 Thread Alexander Kulkov
Hi there! I hope, this message will go to where it's expected to go, since I'm not really familiar with e-mail threads. I was the one who brought https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81806 issue about sub-optimal implementation of split function in pbds. The reason why I did so is clearly

Re: RFC: Deprecate libstdc++ Policy-Based Data Structures

2019-07-09 Thread Alexander Kulkov
I hoped it would attach to https://gcc.gnu.org/ml/libstdc++/2019-05/msg00107.html but it didn't happen :( ср, 10 июл. 2019 г. в 01:39, Alexander Kulkov : > Hi there! I hope, this message will go to where it's expected to go, since > I'm not really familiar with e-mail threa

Re: [RFC] Disabling ICF for interrupt functions

2019-07-19 Thread Alexander Monakov
see that it may not emit a call to this function), then teaching ICF to check that when deciding to fold by creating a wrapper. (would it be possible to tell ICF that addresses of interrupt functions are not significant so it can fold them by creating aliases?) Alexander

Re: [RFC] Disabling ICF for interrupt functions

2019-07-22 Thread Alexander Monakov
say explicitly, but that was meant more as a remark to IPA maintainers: currently in GCC "address taken" implies "address significant", so "address not significant" would have to be a new attribute, or a new decl bit (maybe preferable for languages where function addresses are not significant by default). Alexander

Re: RFC: Deprecate libstdc++ Policy-Based Data Structures

2019-07-23 Thread Alexander Kulkov
ice here in how I may contribute would be much appreciated. вт, 23 июл. 2019 г. в 19:21, Jonathan Wakely : > Sorry for the late reply that wasn't "tomorrow". > > On Tue, 9 Jul 2019 at 23:40, Alexander Kulkov wrote: > > > > Hi there! I hope, this message will g

Re: asking for __attribute__((aligned()) clarification

2019-08-19 Thread Alexander Monakov
d alignment on a typedef'ed scalar type goes way earlier than gcc-9) Alexander

Re: Aw: Re: asking for __attribute__((aligned()) clarification

2019-08-21 Thread Alexander Monakov
e new documentation promises a more sensible approach) In portable code one can also use memcpy to move unaligned data, the compiler should translate it like an unaligned load/store when size is a suitable constant: int val; memcpy(&val, ptr, sizeof val); (or __builtin_memcpy when -ffreestanding is in effect) Alexander

Re: asking for __attribute__((aligned()) clarification

2019-08-21 Thread Alexander Monakov
t; > Yes. But last I tried, optimizing that for > 1 alignment is problematic > because that information often doesn't make it down to the target code even > though it is documented to do so. Thanks, indeed this memcpy solution is not so well suited for that. Alexander

Re: -fpatchable-function-entry: leverage multi-byte NOP on x86

2020-01-06 Thread Alexander Monakov
/tc-i386.c;h=d0b8f2624a1885d83d2595474bfd78ae844f48f2;hb=HEAD#l1441 > > I'm not sure how worthy would it be to implement that? Huh? Surely the right move would be to ask Binutils to expose that via a new pseudo-op, like .balign but requesting a specific space rather than aligning up to a boundary. Alexander

Re: [RFC] builtin functions and `-ffreestanding -nostartfies` with static binaries

2020-01-10 Thread Alexander Monakov
-nodefaultlibs next to -nostartfiles in its Makefile, and write a trivial loop in place of __builtin_strlen. Alexander

Re: LTO remapping/deduction of machine modes of types/decls

2017-01-09 Thread Alexander Monakov
odes with the floating-point type 'kind' such as IEEE binary, IEEE decimal, accum/fract/sat, or IBM double-double. For our original goal, I think we'll switch to the other solution I've outlined in the opening mail, i.e. propagating mode tables at WPA stage and keeping enough information to know if the section comes from the host or native compiler. Thanks. Alexander

Re: LTO remapping/deduction of machine modes of types/decls

2017-01-10 Thread Alexander Monakov
s' arguments will be remapped. And I believe it wouldn't be acceptable to unpack/remap/repack function bodies at WPA stage (it's contrary to LTO scalability goal). Alexander

Re: LTO remapping/deduction of machine modes of types/decls

2017-01-11 Thread Alexander Monakov
and thus need no remapping, and the sections coming from the host compiler all need remapping (and will use the same mapping). Prefixes of per-function section names already carry the distinction (".gnu.lto_foo" vs. ".gnu.offload_lto_foo"). Alexander

Re: Improving code generation in the nvptx back end

2017-02-20 Thread Alexander Monakov
concerns are guaranteed to not arise: when the callee is not externally visible, and does not have its address taken. And there's a question of how well it's going to work after time passes, since other compilers always use the verbose form (and thus the .reg calling style is not frequently exercised). Alexander

Re: GPLv3 clarification - what constitutes IR

2017-03-06 Thread Alexander Monakov
of HSAIL/PTX assembly to GPU binary code takes place when the host executable runs, on user's machine, by invoking corresponding libraries (in case of PTX it's NVIDIA's CUDA driver library). There is no support for translating HSAIL/PTX on the developer's machine and linking the resulting GPU binary code into GCC-produced executable. Hope that helps. Alexander

Re: [RFA] update ggc_min_heapsize_heuristic()

2017-04-09 Thread Alexander Monakov
Can you explain a bit more, what projects you've tested?.. 10+% looks surprisingly high to me. > What do you think? I wonder if it's possible to reap most of the compile time benefit with a bit more modest gc threshold increase? Thanks. Alexander

Re: Linux and Windows generate different binaries

2017-07-15 Thread Alexander Monakov
On Fri, 14 Jul 2017, Yuri Gribov wrote: > I've also detect transitiveness violation compare_assert_loc > (tree-vrp.c), will send fix once tests are done. There are more issues still, see the thread starting at https://gcc.gnu.org/ml/gcc-patches/2017-07/msg00899.html Alexander

Re: Linux and Windows generate different binaries

2017-07-16 Thread Alexander Monakov
zed implementation of a [potentially not stable, e.g. qsort] sorting routine, and that would be sufficient to eliminate this source of codegen differences. Alexander [*] nor would it be sufficient, given our current practice of passing invalid comparators to libc sort, at which point anything can hap

Re: Linux and Windows generate different binaries

2017-07-16 Thread Alexander Monakov
n-stable sort. I think you mean '(slightly faster)'. > That is just a plain bug, undefined behaviour even (C11 7.22.5/4). > Of course it needs to be fixed. I've posted patches towards this goal. Alexander

Re: Linux and Windows generate different binaries

2017-07-17 Thread Alexander Monakov
e std::stable_sort, is that what you meant, or are there more places? Alexander

Re: RFC: C extension to support variable-length vector types

2017-08-04 Thread Alexander Monakov
uiltins and VLAs. The description at https://gcc.gnu.org/wiki/MiddleEndArrays refers to http://www.suse.de/~rguenther/guenther.pdf but this redirects to users.suse.de, for which DNS resolution fails. The Web Archive doesn't seem to have a copy. Any chance this might be available elsewhere? Thanks. Alexander

Re: RFC: Improving GCC8 default option settings

2017-09-12 Thread Alexander Monakov
ure if -fno-common is made default - thus, is there anybody in position to trigger a full-distro rebuild with gcc patched to enable -fno-common, and compare before/after build failure stats? Thanks. Alexander

Re: atomic_thread_fence() semantics

2017-10-19 Thread Alexander Monakov
hould work from gcc-8 onwards (PR 80640). Alexander

Re: atomic_thread_fence() semantics

2017-10-20 Thread Alexander Monakov
On Fri, 20 Oct 2017, Torvald Riegel wrote: > On Thu, 2017-10-19 at 15:31 +0300, Alexander Monakov wrote: > > On Thu, 19 Oct 2017, Andrew Haley wrote: > > > No, you did not. This looks like a bug. Please report it. > > > > This bug is fixed on trunk, so should wor

Re: Unstable build/host qsorts causing differing generated target code

2018-01-12 Thread Alexander Monakov
d that may cause codegen differences. (in other words, bootstrapping on a libc with randomized qsort has a good chance to run into bootstrap miscompares even if qsort_chk-clean) Alexander

Re: Unstable build/host qsorts causing differing generated target code

2018-01-12 Thread Alexander Monakov
rns 0 if and only if the items being compared are bitwise identical'. Otherwise qsort, not being a guaranteed-stable sort, has a choice as to how reorder non-identical items that compare equal. > But, if the comparison functions are fixed, then the implementation > differences between

Re: Unstable build/host qsorts causing differing generated target code

2018-01-12 Thread Alexander Monakov
On Fri, 12 Jan 2018, Joseph Myers wrote: > On Fri, 12 Jan 2018, Alexander Monakov wrote: > > > No. The qsort_chk effort was limited to catching instances where comparators > > are invalid, i.e. lack anti-commutativity (may indicate A < B < A) or > > transitivity pr

Cortex-r52 FP double precision

2018-01-25 Thread Alexander Fedotov
Hi, As I understand from this https://gcc.gnu.org/onlinedocs/gcc/ARM-Options.html current master branch doesn't have support of double-precision FPv5 floating-point instructions for ARMv8-R (Cortex-r52). If yes, are there any chances to see them in GCC 8 ? Alex

Re: Cortex-r52 FP double precision

2018-01-26 Thread Alexander Fedotov
Thank you Thomas So in order to set dp+Neon for armv8-r I should to use switch "neon-fp-armv8". Not an fpv5-d16. Right ? On Fri, Jan 26, 2018 at 12:52 PM, Thomas Preudhomme wrote: > Hi Alexander, > > As mentioned in [1], Arm Cortex-R52 can have either single precision or

Re: Cortex-r52 FP double precision

2018-01-31 Thread Alexander Fedotov
homas > > > On 26/01/18 16:44, Alexander Fedotov wrote: >> >> Thank you Thomas >> >> So in order to set dp+Neon for armv8-r I should to use switch >> "neon-fp-armv8". Not an fpv5-d16. Right ? >> >> On Fri, Jan 26, 2018 at 12:52 PM, Thomas

Problem using gcov

2018-02-21 Thread Alexander Fichtinger
Hi guys,   we have faced an error while using the gcov tool. We have the following C-code:     LC_TD_DINT caseSelector;     caseSelector = LC_this->LC_VD_X;     if ((caseSelector==(LC_TD_DINT)1L)||(caseSelector==(LC_TD_DINT)2L)||((caseSelector>=(LC_TD_DINT)33L) && (caseSelector<=(LC_TD_DIN

Re: GCC interpretation of C11 atomics (DR 459)

2018-02-25 Thread Alexander Monakov
hg16b availability and redirect 128-bit atomics to lock-free RMW implementations if so. (I don't like this solution) Thanks. Alexander

Re: Fw: GCC interpretation of C11 atomics (DR 459)

2018-02-26 Thread Alexander Monakov
e is that libatomic is not guaranteed to work like that. Today it relies on IFUNC for redirection, so you may (and not "will") get the desired behavior on Glibc (implying Linux), not on other OSes, and neither on Linux with non-GNU libc (nor on bare metal, for that matter). Alexander

Re: GCC interpretation of C11 atomics (DR 459)

2018-02-26 Thread Alexander Monakov
due to IFUNC redirection mentioned in the other subthread. Alexander

AW: AW: Problem using gcov

2018-02-26 Thread Alexander Fichtinger
Thanks Martin! I've seen that the target milestone for this bug is 8.0. When is 8.0 going to be released? Thanks and kind regards, Alexander -Ursprüngliche Nachricht- Von: gcc-ow...@gcc.gnu.org [mailto:gcc-ow...@gcc.gnu.org] Im Auftrag von Martin Liška Gesendet: Montag, 26. Fe

AW: AW: AW: Problem using gcov

2018-02-26 Thread Alexander Fichtinger
Ok, thanks for the info. I just saw the description in the bug-report. When we document this for our customers, it's ok, I think. Thanks and kind regards, Alexander -Ursprüngliche Nachricht- Von: gcc-ow...@gcc.gnu.org [mailto:gcc-ow...@gcc.gnu.org] Im Auftrag von Martin Liška Ges

AW: AW: AW: AW: Problem using gcov

2018-02-27 Thread Alexander Fichtinger
e-Coverage, so it is important for us to know if there are any bugs which could compromise the reported test coverage. Thanks and kind regards, Alexander -Ursprüngliche Nachricht- Von: gcc-ow...@gcc.gnu.org [mailto:gcc-ow...@gcc.gnu.org] Im Auftrag von Martin Liška Gesendet: Dienstag, 2

AW: AW: AW: AW: AW: Problem using gcov

2018-02-27 Thread Alexander Fichtinger
Ok, thank you. Alexander -Ursprüngliche Nachricht- Von: gcc-ow...@gcc.gnu.org [mailto:gcc-ow...@gcc.gnu.org] Im Auftrag von Martin Liška Gesendet: Dienstag, 27. Februar 2018 13:39 An: Alexander Fichtinger ; gcc@gcc.gnu.org Betreff: Re: AW: AW: AW: AW: Problem using gcov On 02/27/2018

Re: Why does IRA force all pseudos live across a setjmp call to be spilled?

2018-03-02 Thread Alexander Monakov
s the setjmp by forcing > the pseudos to interfere all hardregs. That can't be good for performance. > What am I missing? FWIW there's a similar issue with exceptions where IRA chooses memory for pseudos inside the loop even though the throwing call is outside: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82242#c3 Alexander

Re: GCC Compiler Optimization ignores or mistreats MFENCE memory barrier related instruction

2018-04-13 Thread Alexander Monakov
On Fri, 13 Apr 2018, Vivek Kinhekar wrote: > The mfence instruction with memory clobber asm instruction should create a > barrier between division and printf instructions. No, floating-point division does not touch memory, so the asm does not (and need not) restrict its motion. Alexander

Re: Sched1 stability issue

2018-07-04 Thread Alexander Monakov
been fixed in gcc-8, but some remain (you can search the bugzilla for qsort_chk issues). Since the comparator is invalid, different qsort implementations reorder the ready list differently. In gcc-9 qsort calls use gcc_qsort instead and thus wouldn't diverge. Alexander

Re: ChangeLog's: do we have to?

2018-07-05 Thread Alexander Monakov
should say what a function currently does, but > isn't the place for a history lesson. That data belongs only in ChangeLog GCC ChangeLogs don't record the purpose of the change. They say what changed, but not why. As far as I know, this ChangeLog style helped in pre-Subversion times when source control tools tracked changes per-file, not per-tree. Alexander

Re: ChangeLog's: do we have to?

2018-07-23 Thread Alexander Monakov
re's no need to split this quality-of-life change between the repository and the user's setup - it can be done once by a user and will work for all future checkouts) Alexander

Re: Question about GCC benchmarks and uninitialized variables

2018-07-24 Thread Alexander Monakov
uninitialized arrays there's this sparse set algorithm (which GCC itself also uses): https://research.swtch.com/sparse I think good benchmarks sets should be able to evolve to account for newly discovered bugs, rather then remain frozen (which sounds like a reason to become obsolete sooner rather than later). Alexander

Re: Question related to GCC structure variable assignment optimization

2018-07-27 Thread Alexander Monakov
up. What should work is (re)declaring memcpy with hidden visibility: __attribute__((visibility("hidden"))) void *memcpy(void *, const void *, size_t); or via the pragma, but today this doesn't work. I've opened a GCC bugreport for this: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=86695 Alexander

Re: Questions related to creation of libgcov.so

2018-08-06 Thread Alexander Monakov
binding and/or allocation (not sure which exactly) of TLS symbols. Lazy binding doesn't buy anything for gcov, and that would be a cheap way to avoid a regression. On the other hand, it's not gcov's responsibility to work around long-standing bugs in Glibc, so I don't insist. Alexander

Questions/topics for UB BoF

2018-08-21 Thread Alexander Monakov
ses directly to my address, not the list. If you prefer Google Forms, please fill https://goo.gl/forms/1sLhMtLLhorvzDm42 Development policies touched upon in items 2-6 is what I'd invite to discuss on the BoF. Thank you. Alexander You are wearing: [*] Distribution maintainer's hat

Re: ChangeLog files: 8 spaces vs. a tabular

2018-08-27 Thread Alexander Monakov
ngeLog-{year} files) > and I see: Note that some files in your list appear only because they have 12 spaces indenting the second author in a multi-author change, which is intentional and probably does not need changing. Alexander

Re: Scheduling automaton question

2011-02-11 Thread Alexander Monakov
ecution unit (A), the second has to wait. Alexander

Re: RTL Conditional and Call

2011-12-30 Thread Alexander Monakov
d to additionally generate comparison instructions). Hope that helps, Alexander

auto-vectorization analysis/__builtin_assume_aligned on gcc-4.7-20120114

2012-01-18 Thread Alexander Herz
Given this piece of code (gcc-4.7-20120114): static void Test(Batch* block,Batch* new_block,const uint32 offs) { T* __restrict old_values =(T*)__builtin_assume_aligned(block->items,16); T* __restrict new_values =(T*)__builtin_assume_aligned(new_block->items,16);

Re: auto-vectorization analysis/__builtin_assume_aligned on gcc-4.7-20120114

2012-01-19 Thread Alexander Herz
lex On 01/19/2012 11:29 AM, Richard Guenther wrote: On Wed, Jan 18, 2012 at 6:37 PM, Alexander Herz wrote: Given this piece of code (gcc-4.7-20120114): static void Test(Batch* block,Batch* new_block,const uint32 offs) { T* __restrict old_values =(T*)__builtin_assume_aligned(bl

Re: "-fno-unswitch-loops" option have no effect?

2009-08-17 Thread Alexander Strange
On Aug 17, 2009, at 10:50 AM, Bernd Roesch wrote: [..] There is no need for much detail, just compile any bigger sourcecode with -O3 -fno-.. and after that with -O2 When the object files are not identical, something is wrong and I can start a bug report. how much is size diffrent ?

"massive" inline

2009-09-30 Thread Alexander Shabanov
. } }; in *any* circumstances or not? Thanks in advance. -- Best regards, Alexander Shabanov

Re: Problems with selective scheduling

2009-10-27 Thread Alexander Monakov
Hi, On Tue, 27 Oct 2009, Markus L wrote: Hi, I recently read the articles about the selective scheduling implementation and found it quite interesting, I especially liked the idea of how neatly software pipelining is integrated. The target I am working on is a VLIW DSP so obviously these thing

Re: libgomp forces -Werror even when top level configure --disable-werror

2009-12-28 Thread Alexander Monakov
(libgomp only includes the latter). This can be fixed by making configure use -Werror (I believe that adding --with-pthread= option is out of the question). Bootstraps on affected systems should probably use make CFLAGS_FOR_TARGET='-g -O2 -I/usr/include/nptl' as a clean workaround. --

Re: Modulo Scheduling

2010-02-09 Thread Alexander Monakov
, at present SMS is not able to schedule any loops on x86 at all. This is due to implementation detail: SMS operates on loops that end with decrement-and-branch instruction, and GCC does not generate such instructions on x86. Sorry. Alexander Monakov

Re: Understanding Scheduling

2010-03-19 Thread Alexander Monakov
o tell whether you tested it. Best regards, Alexander Monakov

Re: bug linear loop transforms

2010-03-29 Thread Alexander Monakov
bed in http://gcc.gnu.org/bugs/ . Posting bug reports to gcc-bugs@ does not register them in the bugzilla, and thus is not recommended. Thanks. Alexander Monakov

Re: (known?) Issue with bitmap iterators

2009-06-26 Thread Alexander Monakov
break, which IMHO is fine. -- Alexander Monakov

Re: (known?) Issue with bitmap iterators

2009-06-26 Thread Alexander Monakov
On Fri, 26 Jun 2009, Joe Buck wrote: On Fri, Jun 26, 2009 at 03:38:31AM -0700, Alexander Monakov wrote: 1. Add bool field `modified_p' in bitmap structure. 2. Make iterator setup functions (e.g. bmp_iter_set_init) reset it to false. 3. Make functions that modify the bitmap set it to tr

Re: A question regarding bundling and NOPs insertion for VLIW architecture

2010-05-11 Thread Alexander Monakov
use it would be much harder to extract the instruction placement from the automaton (which I think tracks all of the mentioned constraints internally). Alexander

Re: Performance optimizations for Intel Core 2 and Core i7 processors

2010-05-20 Thread Alexander Strange
On May 20, 2010, at 8:04 AM, Steven Bosscher wrote: > On Mon, May 17, 2010 at 8:44 AM, Maxim Kuvyrkov > wrote: >> CodeSourcery is working on improving performance for Intel's Core 2 and Core >> i7 families of processors. >> >> CodeSourcery plans to add support for unaligned vector instructions

Re: Massive performance regression from switching to gcc 4.5

2010-06-25 Thread Alexander Monakov
h for the libgcov bug [1], but it was not reviewed and does not apply anymore due to build_constructor changes). [1] http://gcc.gnu.org/ml/gcc-patches/2010-05/msg00292.html Cheers, Alexander

Re: CFG traversal

2010-07-06 Thread Alexander Monakov
in cfganal.c. It computes topological sort order (which is what you need) in reverse: nodes that must be visited last come first in the array. Hope that helps. Alexander

Re: A question about doloop

2010-07-26 Thread Alexander Monakov
rtx.c so that 'infinite if' condition cannot be simplified and proven to be always false. Zdenek once had to improve simplify-rtx.c for this reason, as the audit trail shows. [1] http://gcc.gnu.org/PR32283 Hope that helps, Alexander

Re: Restrict qualifier still not working?

2010-08-02 Thread Alexander Monakov
for me with -fschedule-insns, -frename-registers or -fselective-scheduling2 (all of which are disabled by default on x86-64 -O2). Without those flags, second scheduler alone cannot lift the load due to dependency on %eax. Hope that helps. Alexander

RE: Restrict qualifier still not working?

2010-08-03 Thread Alexander Monakov
is quite complicated even without considering issues like this. Thanks to Vladimir's pressure-sensitive scheduling patches, pre-RA scheduling should solve this. Alexander

Re: pipeline description

2010-11-12 Thread Alexander Monakov
hat is the norm when compiling for ia64, for example. I don't think the backend should specifically care about it: the anti-dependency gets zero latency, and the scheduler is able to issue the second instruction on the same cycle after issuing the first. Alexander

How can I remove articles posted under my name?

2006-06-25 Thread Alexander Verhaeghe
Hello, As the title says, how can I remove articles posted under my name "Alexander Verhaeghe" or e-mailaddress "alexanderverhaeghe at yahoo dot com" When I do a search in http://gcc.gnu.org/lists.html I get 8 results which I would like to have removed, espcially wh

"Free as in Freedom"

2006-06-25 Thread Alexander Verhaeghe
"Free as in Freedom" in http://www.gnu.org/home.html#ContactInfo You're not even able to remove a couple of messages, so how "free" am I now? [EMAIL PROTECTED] wanted $300 for removal! How "free" am I now? You should be ashamed of yourselves! Not only privacy is not respected, [EMAIL PROTECTED] a

Re: "Free as in Freedom"

2006-06-25 Thread Alexander Verhaeghe
Quote Jan-Benedict Glaw "So please shut up now." Quite friendly I must say, it's the german way I suppose of handling things? To Jan-Benedict Glaw I WON'T SHUT UP because of "Free as in Freedom"! --- Jan-Benedict Glaw <[EMAIL PROTECTED]> wrote: > On Su

Re: "Free as in Freedom"

2006-06-25 Thread Alexander Verhaeghe
Always threatening, you're even worse than Microsoft... Once again "Free as in Freedom", how dare you to use this? Please don't forget to mention that you want to rip me off $300! --- Robert Dewar <[EMAIL PROTECTED]> wrote: > Alexander Verhaeghe wrote: > > Quot

Re: "Free as in Freedom"

2006-06-25 Thread Alexander Verhaeghe
out someone, and when they > do that, all your old posts will appear. Again, > that's > not a threat, just a statement of a fact that should > be clear to anyone posting on any list. > > Alexander Verhaeghe wrote: > > Go ahead threatening people, it's all what you

Re: "Free as in Freedom"

2006-06-25 Thread Alexander Verhaeghe
n 25, 2006 at 05:16:37PM -0700, Alexander > Verhaeghe wrote: > > Always threatening, you're even worse than > > Microsoft... > > Once again "Free as in Freedom", how dare you to > use > > this? Please don't forget to mention that you want > to >

Document how to build PGO-optimized GCC version

2022-12-27 Thread Alexander Zaitsev
* add documentation to the GCC site, how to build GCC with PGO optimizations * (if GCC community provides prebuilt gcc binaries) use PGO for the prebuilt binaries. E.g. Clang and rustc already uses this approach. Any feedback is appreciated. Thanks in advance! -- Best regards, Alexander

Re: Concerns regarding the -ffp-contract=fast default

2023-09-14 Thread Alexander Monakov
a worked example where -ffp-contract=fast caused a correctness issue in a widely used FOSS image processing application that was quite hard to debug. Obviously -Ofast and -ffast-math will still imply -ffp-contract=fast if we make the change, so SPEC scores won't be affected. Thanks. Alexander

Re: Concerns regarding the -ffp-contract=fast default

2023-09-18 Thread Alexander Monakov
Hi Florian, On Thu, 14 Sep 2023, Alexander Monakov wrote: > > On Thu, 14 Sep 2023, Florian Weimer via Gcc wrote: > > > While rebuilding CentOS Stream with -march=x86-64-v3, I rediscovered > > several packages had test suite failures because x86-64 suddenly gained &g

Re: Concerns regarding the -ffp-contract=fast default

2023-09-18 Thread Alexander Monakov
quirk about sNaNs and qNaNs. Sorry, do you mean contracting 'x + x - x' to 'x'? That is not allowed due to different result and lack of FP exception for infinities. Contracting 'x + x - x' to fma(x, 2, -x) would be fine. Alexander

Re: Concerns regarding the -ffp-contract=fast default

2023-09-18 Thread Alexander Monakov
hard to implement for C. But I was somewhat discouraged by the lack of front-end maintainers reaction to the patch implementing the =standard, so I didn't pursue that. The hardest part would be popping the pragma state when leaving a block, which didn't seem difficult (at least for C). Alexander

Re: Concerns regarding the -ffp-contract=fast default

2023-09-18 Thread Alexander Monakov
ult when x is so large that 'x + x' is not representable (exponent would overflow), but that's exactly what contraction is about? Alexander

Re: Concerns regarding the -ffp-contract=fast default

2023-09-18 Thread Alexander Monakov
ound statements (!= blocks). Thanks for the clarification. Let me note that the standard somehow decided to make out-of-place pragma a (compile-time) UB rather than a constraint violation, leaving us free to make it work for blocks (or launch Nethack). Alexander

Re: Concerns regarding the -ffp-contract=fast default

2023-09-18 Thread Alexander Monakov
example off-hand, since apart from FMA fused operations are rarely available in instruction sets. Alexander

Re: libgcov, fork, and mingw (and other targets without the full POSIX set)

2023-12-01 Thread Alexander Monakov
is compiled. > > Makes sense. The target-specific macro `_WIN32` serves that purpose. > > However `fork()` doesn't actually exist there, and linking should indeed fail. > Maybe `__gcov_fork()` shouldn't be defined at all. A possible stop-gap solution is using __builtin_fork() instead. Alexander

Re: libgcov, fork, and mingw (and other targets without the full POSIX set)

2023-12-01 Thread Alexander Monakov
cdir)/libgcov.h > > $(gcc_compile) -DL$* -c $(srcdir)/libgcov-interface.c > > > > It looks like this is done to emulate -Wl,--gc-sections without separate > > source files. Unfortunately, this is all built unconditionally. > > Hmm, so why's it then referenced and not "GCed"? On MinGW the corresponding .o file is not unpacked by the linker from libgcov.a when fork is not referenced, so it used to work fine. The problem is that now building the .o fails due to undeclared fork. > The classical "solution" is to make the reference weak via sth like > > extern typeof(fork) fork () __attribute__((weak)); This won't help here since fork is undeclared. Using __builtin_fork, as mentioned in adjacent sub-thread, should work. Alexander

Re: Builtin for consulting value analysis (better ffs() code gen)

2024-03-13 Thread Alexander Monakov
uiltin_constant_p(nonzero)) { res = -1; asm("bsf %1, %0" : "+r"(res) : "rm"(x)); } else if (nonzero) { asm("bsf %1, %0" : "=r"(res) : "rm"(x)); } else { res = -1; } return res; } Does it work for you? HTH Alexander

Re: [RFC] Linux system call builtins

2024-04-08 Thread Alexander Monakov
s the __kernel_vsyscall entrypoint, which provides whichever of { int 0x80, sysenter, syscall } methods is available and fastest. Or am I missing something? Alexander

Re: [RFC] Linux system call builtins

2024-04-08 Thread Alexander Monakov
On Mon, 8 Apr 2024, Florian Weimer wrote: > * Alexander Monakov: > > >> There is quite a bit of variance in how the kernel is entered. On > >> x86-64, one once popular mechanism is longer present in widely-used > >> kernels. > > > > I assu

Union initialization semantics

2024-06-19 Thread Alexander Monakov
rhaps somebody remembers where it was (I'm thinking Bugzilla) and could point me to it? My attempts to search for it aren't turning anything up so far. If someone knows what semantics GCC implements, that also would be welcome. Thank you. Alexander

Re: Non-consistent ICE in 14.1 and 14.2

2024-08-29 Thread Alexander Monakov
in > > tree_node_structure_for_code, at tree:527" > > > > How should I approach reporting this to get it fixed? > > It sounds you might got faulty memory in your system. Allan, what CPU is that on? If Intel 13th or 14th gen, that's not entirely unexpected, unfortunately, due to voltage management issues (or manufacturing, on some earlier samples). Alexander

[Android] The reason why -Bsymbolic is turned on by default

2013-03-29 Thread Alexander Ivchenko
ng it twice to Maxim - new google interface made my text too "rich") thank you in advance, Alexander

Re: [Android] The reason why -Bsymbolic is turned on by default

2013-04-03 Thread Alexander Ivchenko
must somehow let the user know about that (btw linux dynamic loader silently allows copy against DT_SYMBOLIC). thanks, Alexander 2013/4/3 Andrew Haley : > On 03/29/2013 06:55 PM, Alexander Ivchenko wrote: > >> When compiling a shared library with "-mandroid -shared" the

Re: [Android] The reason why -Bsymbolic is turned on by default

2013-04-04 Thread Alexander Ivchenko
reak BC, so fixing them was considered the best option. > (I think the initial support predates the default Bsymbolic setting.) Oh, I see now. Since x86 port started when Bsymbolic was the default I don't see any point of implementing R_386_COPY relocation in dynamic loader for it. (same can be applied for R_MIPS_COPY) best regards, Alexander

g++ 4.7 illumos regressions

2013-06-03 Thread Alexander Pyhalov
;std::pointer_to_binary_function, const Expr, bool>' I don't know how these errors can be fixed. The GCC bug 1773 was closed, but g++ 4.7 is still broken in OpenIndiana/illumos environment. Need your advices. If you wish I can share dejagnu logs somewhere (with patched illumos

-ftls-model docs/implementation inconsistency

2013-07-19 Thread Alexander Monakov
to set flag_shlib without -fPIC is entirely intended and WONTFIX. Thanks. Alexander

Re: -ftls-model docs/implementation inconsistency

2013-07-19 Thread Alexander Monakov
give them a smoother rope. I'd do the latter, but I don't see if there were any reasons for the current implementation to be the way it is, and hence I'm asking on the mailing list. Thanks. Alexander

<    1   2   3   >