How to link a static lib when build a shared lib ?

2009-08-08 Thread Andy
Hi all, I got that, glibc can support SHA in crypt lib since v2.7. There is a requirement in my application to use SHA, but update the whole glibc is too risky. So I want to build a specific crypt lib for the module using crypt function in my application. Now the calling graph seems like this, fr

Re: Cross Compiler Unix - Windows

2005-08-29 Thread Andy Smith
I have used MinGW on Linux to compile Windows executables. I don't see why it could not be compiled on other Unix variants. Try: http://www.libsdl.org/extras/win32/cross/README.txt and http://www.mingw.org Regards, Andy --- Ivan Novick <[EMAIL PROTECTED]> wrote: > Can y

Re: Broken check rejecting -fcf-protection and -mindirect-branch=thunk-extern

2020-04-28 Thread Andy Lutomirski
> On Apr 28, 2020, at 9:14 AM, Peter Zijlstra wrote: > > On Tue, Apr 28, 2020 at 02:41:33PM +0100, Andrew Cooper wrote: >> Its fine to focus on userspace first, but the kernel is far more simple. >> >> Looking at that presentation, the only thing missing for kernel is the >> notrack thunks,

Re: Broken check rejecting -fcf-protection and -mindirect-branch=thunk-extern

2020-04-28 Thread Andy Lutomirski
> On Apr 28, 2020, at 10:44 AM, H.J. Lu wrote: > > On Tue, Apr 28, 2020 at 10:24 AM David Woodhouse wrote: >> >> >> >>> On 28 April 2020 17:14:49 BST, Peter Zijlstra wrote: >>> On Tue, Apr 28, 2020 at 02:41:33PM +0100, Andrew Cooper wrote: Its fine to focus on userspace first, but t

gcc feature request / RFC: extra clobbered regs

2015-06-30 Thread Andy Lutomirski
d still lose the five cycles in the full fast-path case, but we'd do better in the slower paths, and the slower paths are becoming increasingly important in real workloads.) Thanks, Andy

Re: gcc feature request / RFC: extra clobbered regs

2015-06-30 Thread Andy Lutomirski
en. (Presumably the PIC register on PIC builds would be an example of that.) --Andy

Re: gcc feature request / RFC: extra clobbered regs

2015-06-30 Thread Andy Lutomirski
On Tue, Jun 30, 2015 at 2:52 PM, H. Peter Anvin wrote: > On 06/30/2015 02:48 PM, Andy Lutomirski wrote: >> On Tue, Jun 30, 2015 at 2:41 PM, H. Peter Anvin wrote: >>> On 06/30/2015 02:37 PM, Jakub Jelinek wrote: >>>> I'd say the most natural API for this would

Re: gcc feature request / RFC: extra clobbered regs

2015-07-01 Thread Andy Lutomirski
On Wed, Jul 1, 2015 at 8:23 AM, Vladimir Makarov wrote: > > > On 06/30/2015 05:37 PM, Jakub Jelinek wrote: >> >> On Tue, Jun 30, 2015 at 02:22:33PM -0700, Andy Lutomirski wrote: >>> >>> I'm working on a massive set of cleanups to Linux'

Re: gcc feature request / RFC: extra clobbered regs

2015-07-01 Thread Andy Lutomirski
ompile: void func(void) __attribute__((used_reg("r12"))); void (*x)(void); x = func; --Andy

Re: gcc feature request / RFC: extra clobbered regs

2015-07-01 Thread Andy Lutomirski
hing } I'd want the code that calls normal_func() to be understand that normal_func() *will* preserve r12 despite the fact that weird_func is allowed to clobber r12. I think this means that the attribute would have to be an attribute of a function, not of the RA while compiling the function. --Andy

RFC: adding Linux vsyscall-disable and similar backwards-incompatibility flags to ELF headers?

2015-09-01 Thread Andy Lutomirski
e that could be done in a clean, extensible way. --Andy

Re: RFC: adding Linux vsyscall-disable and similar backwards-incompatibility flags to ELF headers?

2015-09-01 Thread Andy Lutomirski
On Sep 1, 2015 6:53 PM, "Brian Gerst" wrote: > > On Tue, Sep 1, 2015 at 8:51 PM, Andy Lutomirski wrote: > > Hi all- > > > > Linux has a handful of weird features that are only supported for > > backwards compatibility. The big one is the x86_64 vsyscall

Re: RFC: adding Linux vsyscall-disable and similar backwards-incompatibility flags to ELF headers?

2015-09-01 Thread Andy Lutomirski
On Sep 1, 2015 6:12 PM, "Ian Lance Taylor" wrote: > > On Tue, Sep 1, 2015 at 5:51 PM, Andy Lutomirski wrote: > > > > Linux has a handful of weird features that are only supported for > > backwards compatibility. The big one is the x86_64 vsyscall page, but

Re: [musl] RFC: adding Linux vsyscall-disable and similar backwards-incompatibility flags to ELF headers?

2015-09-01 Thread Andy Lutomirski
On Tue, Sep 1, 2015 at 7:54 PM, Rich Felker wrote: > On Tue, Sep 01, 2015 at 05:51:44PM -0700, Andy Lutomirski wrote: >> Hi all- >> >> Linux has a handful of weird features that are only supported for >> backwards compatibility. The big one is the x86_64 vsyscall p

Re: [musl] RFC: adding Linux vsyscall-disable and similar backwards-incompatibility flags to ELF headers?

2015-09-01 Thread Andy Lutomirski
On Tue, Sep 1, 2015 at 9:18 PM, Rich Felker wrote: > On Tue, Sep 01, 2015 at 08:39:27PM -0700, Andy Lutomirski wrote: >> On Tue, Sep 1, 2015 at 7:54 PM, Rich Felker wrote: >> > On Tue, Sep 01, 2015 at 05:51:44PM -0700, Andy Lutomirski wrote: >> >> Hi all- >> &

Re: [musl] RFC: adding Linux vsyscall-disable and similar backwards-incompatibility flags to ELF headers?

2015-09-01 Thread Andy Lutomirski
On Tue, Sep 1, 2015 at 9:55 PM, Rich Felker wrote: > On Tue, Sep 01, 2015 at 09:32:22PM -0700, Andy Lutomirski wrote: >> On Tue, Sep 1, 2015 at 9:18 PM, Rich Felker wrote: >> > On Tue, Sep 01, 2015 at 08:39:27PM -0700, Andy Lutomirski wrote: >> >> On Tue, Sep 1

Re: RFC: adding Linux vsyscall-disable and similar backwards-incompatibility flags to ELF headers?

2015-09-02 Thread Andy Lutomirski
On Sep 2, 2015 6:57 AM, "Brian Gerst" wrote: > > On Tue, Sep 1, 2015 at 10:21 PM, Andy Lutomirski wrote: > > On Sep 1, 2015 6:53 PM, "Brian Gerst" wrote: > >> > >> On Tue, Sep 1, 2015 at 8:51 PM, Andy Lutomirski > >> wrote: > &g

Quadmath

2018-09-27 Thread andy hall
be able to either publish something in the future, or make some money such that I can make a donation. In any event it has been a lot of fun. Once again, thank you. Andy Sent from Mail for Windows 10

Re: should sync builtins be full optimization barriers?

2011-09-12 Thread Andy Lutomirski
orrect code. (TBH, it was never entirely clear to me that mfence is guaranteed to flush the store buffer and force everything to be re-read from the coherency domain, but if that's not true then it's pretty much impossible to get this right.) --Andy

How to handle address which contain SUBREG

2009-11-25 Thread Andy H
I'm am fixing some reload bugs for AVR. In a couple of situations an address is formed which included a SUBREG expression. I am not sure how I should be handling these. Initial attempts produce sub-optimal code - and/or reload failures, so thought is a good idea to get some advise! Either

Cygwin support

2008-11-14 Thread Andy Scott
ux/Un*x purist camps but I like it :-) ) Reason, I ask is I would like to start to contribute and for me Cygwin is the easiest target for me. But looking over things I'm not sure it would be the best place to start to help things out. Andy -- Brain upgrade required: a working hypothalamus

Re: Cygwin support

2008-11-14 Thread Andy Scott
On 14/11/2008, Brian Dessent <[EMAIL PROTECTED]> wrote: > Andy Scott wrote: > > > Looking over the bugzilla data base and archives of this (and other) > > lists I was wondering about the level of support there is for GCC on > > Cygwin. (I realise that it is weird

This is a Cygwin failure yeah?

2009-01-07 Thread Andy Scott
t more before posting on their forums] GCC Build One: Again stage3 part of build, and this is what actually stops the build the above issue doesn't seem to (I think it happens in stage 2), I get the following: /home/andy/live-gcc/my_gcc/./gcc/xgcc -B/home/andy/live-gcc/my_gcc/

Re: This is a Cygwin failure yeah?

2009-01-08 Thread Andy Scott
On 07/01/2009, Dave Korn wrote: > Andy Scott wrote: > > GCC Build One: > > > > Again stage3 part of build, and this is what actually stops the build > > the above issue doesn't seem to (I think it happens in stage 2), > > > That sentence contradicts

Re: This is a Cygwin failure yeah?

2009-01-14 Thread Andy Scott
On 10/01/2009, Bernd Roesch wrote: > Hello Dave > >> Unix commad for stack increase(forget the name) > > > > 'ulimit' > > > ah yes i see, I update from time and time and now its more.my bash show this > now.Maybe Andy can do this test what his

Re: This is a Cygwin failure yeah?

2009-01-21 Thread Andy Scott
2009/1/18 Dave Korn : > Andy Scott wrote: > >> Again stage3 part of build, and this is what actually stops the build >> the above issue doesn't seem to (I think it happens in stage 2), I get >> the following: >> >> > > < a few more lin

Re: This is a Cygwin failure yeah?

2009-01-26 Thread Andy Scott
On 18/01/2009, Dave Korn wrote: > Andy Scott wrote: > > > Again stage3 part of build, and this is what actually stops the build > > the above issue doesn't seem to (I think it happens in stage 2), I get > > the following: > > > >

Re: Serious code generation/optimisation bug (I think)

2009-01-30 Thread Andy Armstrong
Abort 0x0014 Reserved 0x0018 IRQ 0x001C FIQ so only the reset vector is at 0. -- Andy Armstrong, Hexten

Does backend need to worry about overlap?

2005-02-21 Thread Andy Hutchinson
If I have RTL pattern such as: (SET (MEM...) (MEM...)) (define_insn in backend target.md) do I need to guard against the possibility that the two operands overlap? Or does the front/middle end take care of any C/C++ language specific needs here? (perhaps by using a register as an intermediate) T

[RFC / musing] Scoped exception handling in Linux userspace?

2013-07-18 Thread Andy Lutomirski
clearly work, but anyone using this mechanism for SIGSEGV is probably asking for trouble. --Andy P.S. Just because you can probably get away with throwing a C++ exception from a signal handler right now does not mean it's a good idea. Especially in a library.

Re: [RFC / musing] Scoped exception handling in Linux userspace?

2013-07-18 Thread Andy Lutomirski
On Thu, Jul 18, 2013 at 5:40 PM, David Daney wrote: > On 07/18/2013 05:26 PM, Andy Lutomirski wrote: >> >> Windows has a feature that I've wanted on Linux forever: stack-based >> (i.e. scoped) exception handling. The upshot is that you can do, >> roughly, this

Re: [RFC / musing] Scoped exception handling in Linux userspace?

2013-07-18 Thread Andy Lutomirski
On Thu, Jul 18, 2013 at 6:17 PM, David Daney wrote: > On 07/18/2013 05:50 PM, Andy Lutomirski wrote: >> >> On Thu, Jul 18, 2013 at 5:40 PM, David Daney >> wrote: >>> >>> On 07/18/2013 05:26 PM, Andy Lutomirski wrote: >>> >>> >>

Re: [RFC / musing] Scoped exception handling in Linux userspace?

2013-07-19 Thread Andy Lutomirski
On Fri, Jul 19, 2013 at 9:22 AM, David Daney wrote: > On 07/18/2013 08:29 PM, Andy Lutomirski wrote: >> >> Other way around: a *library* that wants to use exception handling >> can't do so safely without the cooperation, or at least understanding, >> of the main

Automatic dependency file generation bug/question

2014-01-15 Thread ANDY KENNEDY
that my Makefile(s) will now require a section specifically dedicated to the .d file generation. Whereas I remember that this used to be the way I had to construct the dependency list, this was cumbersome and the way e.g. 4.4.4 supported automatic dependency generation is preferable to me. Thank you for your time, Andy

RE: Automatic dependency file generation bug/question

2014-01-21 Thread ANDY KENNEDY
Ping (with one correction). > -Original Message- > From: ANDY KENNEDY > Sent: Wednesday, January 15, 2014 3:16 PM > To: 'gcc@gcc.gnu.org' > Subject: Automatic dependency file generation bug/question > > Reading <http://gcc.gnu.org/news/dependencies.htm

How do I disable warnings across gcc versions?

2012-05-14 Thread Andy Lutomirski
-Wpragmas] This seems to defeat the purpose, and adding #pragma GCC diagnostic ignored "-Wpragmas" is a little gross. How am I supposed to do this? Thanks, Andy

Re: C++11: new builtin to allow constexpr to be applied to performance-critical functions

2012-10-19 Thread Andy Gibbs
will provide a link-time error if the non-constexpr function is not defined, which is half-way there. Perhaps using the "unavailable" attribute in conjunction with "constexpr_alias" would be the compile-time solution... Cheers Andy

Re: Redundant logical operations left after early splitting

2008-02-19 Thread Andy H
em, I doubt it is intended to provide such optimizations. An additional cse pass after split would seem a better way perhaps? Andy

Re: Redundant logical operations left after early splitting

2008-02-19 Thread Andy H
Dave and Jeff, Here are more details and I have include testcase, splitter patterns and RTL dump to show problem in more detail. The testcase is: unsigned long f (unsigned char *P) { unsigned long C; C = ((unsigned long)P[1] << 24) | ((unsigned long)P[2] << 16) | ((unsigned long)P

Re: Redundant logical operations left after early splitting

2008-02-20 Thread Andy H
000a 0895 ret Which is optimal. TADA! This would indicate that simplify-rtx inside fwprop is removing OR Rx,0 but not picking up the the additionally revealed forward propagation oppertunities This would seem to be an avoidable limitation. Andy

Re: Redundant logical operations left after early splitting

2008-02-21 Thread Andy H
I very grateful for your help and wisdom Testcase and MD Patch attached unsigned long f (unsigned char *P) { unsigned long C; C = ((unsigned long)P[1] << 24) | ((unsigned long)P[2] << 16) | ((unsigned long)P[3] << 8) | ((unsigned long)P[4] << 0); return C; } Index: avr.md

Re: Redundant logical operations left after early splitting

2008-02-21 Thread Andy H
register islinked to 4 QImode DEFs - and fwprop gives up. Putting fwprop after subreg pass removes this problem - as the subreg have then been converted to QImode psuedo regs and we get single DEF. Andy Paolo Bonzini wrote: This would indicate that simplify-rtx inside fwprop is removing OR

Combine repeats matching on insn pairs and will ICE on 3.

2008-03-08 Thread Andy H
that create_log_links, needs to distill the links down to avoid duplicates, but I'm really not sure what to blame. best regards Andy

Forward propagation before register allocation

2008-03-16 Thread Andy H
seriously consider this request and provide some means by which to solve the issue. regards Andy

Re: How to avoid stack calling for trapoline code?

2008-04-04 Thread Andy H
/compile/nested-1.c will fail. There are quite a few like this. I am hoping to get round to providing patches to correct these test cases. You will find a few more listed in this valiant attempt of 2005: http://gcc.gnu.org/ml/gcc-patches/2005-05/msg01919.html Andy

RFC Test suite fix testing of no_trampolines

2008-04-05 Thread Andy H
There are several test in testsuite that use trampolines that are still run with dejagnu switch set to no_trampolines. Its on my TODO list for AVR target but a recent email reminded me that it affects testing of other targets than can't or won't support trampolines. Theres an old patch by

Re: RFC Test suite fix testing of no_trampolines

2008-04-07 Thread Andy H
Thank you so much. I can test it easily and will let you know of any divergence from original other than the those you mention. Andy Janis Johnson wrote: On Sat, 2008-04-05 at 06:57 -0400, Andy H wrote: There are several test in testsuite that use trampolines that are still run with

Re: Problem with reloading in a new backend...

2008-04-08 Thread Andy H
EVEN and EIGHT and likely pick EVEN because its bigger class. So I think that is perhaps reason. I think order of classes maybe need to be changed or something else to prevent problem with overlap (LOWER_EVEN? UPPER_EVEN) But I could be completely wrong! Andy

How do I add target specific tests?

2008-05-10 Thread Andy H
I want to add target specific tests for AVR. These would be testcases for PR that fail related to AVR back end problems - rather than testcases for generic PR. Do I just add them to directory testsuite/gcc.target/avr? Or are there some other configuration steps needed? Andy

Whats going on with the conversion warning?

2008-05-19 Thread Andy H
I came across this odd issue with testsuite test Wconversion-5.c and AVR target. I should get warning going from a unsigned value that is wider than signed result. As I am not skilled in the art of the all conversions rules. I would appreciate some guidance before I report this as bug. FYI

Re: Whats going on with the conversion warning?

2008-05-20 Thread Andy H
how I can patch testcase correctly for AVR or post a bug. best regards Andy Manuel López-Ibáñez wrote: 2008/5/20 Andy H <[EMAIL PROTECTED]>: I came across this odd issue with testsuite test Wconversion-5.c and AVR target. I should get warning going from a unsigned value that is wider than

Re: Where is setup for "goto" in nested function created?

2008-05-22 Thread Andy H
Thanks Ian! I found it in function.c (expand_function_start) emit_move_insn (r_save, virtual_stack_vars_rtx); Whereas it should be emit_move_insn (r_save, targetm.builtin_setjmp_frame_value ()); to match same construction used for setjmp. thanks for help! Ian Lance Taylor wrote:

Re: Help with reload and naked constant sum causing ICE

2008-05-27 Thread Andy H
Thank you very much for reply. reload is such a lonely place! TBH, it sounds like the opposite: LEGITIMIZE_RELOAD_ADDRESS should not be handling this address at all. Yes but reload will not do anything before call to L_R_A. So in practice that would mean L_R_A has to check reg_equiv_constant[re

Re: Help with reload and naked constant sum causing ICE

2008-05-27 Thread Andy H
If L_R_A does nothing with it, the normal reload handling will first try: (const:HI (plus:HI (symbol_ref:HI ("chk_fail_buf") (const_int 2 This worked just as your described after I added test of reg_equiv_constant[] inside L_R_A . So I guess that looks like the fix for bug I post

Bugs in dg/struct profilr test - but what was intended?

2008-06-10 Thread Andy H
Hi, In the process of fixing tests for AVR and other small targets I have come across issues with profile tests in gcc/dg/struct that affect all targets and I would like reviewed so I can raise patches to rectify them correctly. Both involve random creating structures then setting and checkin

Why does loop-35.c store motion testcase fail for AVR?

2008-06-16 Thread Andy H
Help ! gcc.dg/tree-ssa/loop-35.c is a test that looks for "Executing store motion" in dump-tree-lim-details As the load and store of memory location should be pulled out of loop. This works for 3 out of 4 tescases. But on AVR target test3() will fail. The only difference between this and te

How should I disable vectorization test for AVR?

2008-06-22 Thread Andy H
as AVR does not have any vectors enabled by command line or otherwise, the semantics are misleading. Andy

Re: a small C (naive) program faster with clang than with gcc

2023-04-25 Thread Andy via Gcc
I see it in godbolt GCC compiles to: movsx eax, BYTE PTR [rdi+2] cmp al, 9 ja .L42 Clang: movzx edx, byte ptr [rdi + 2] cmp edx, 9 ja .LBB0_40 GCC extend with sign, Clang with zero. cmp with 32 bit register is apparently faster than 8bit pon., 24 kwi 2023 o 17:34 Basile Starynkevitch napisał(a)

Re: typeof and operands in named address spaces

2020-11-05 Thread Andy Lutomirski via Gcc
[name] "p" (ptr) With this constraint, ptr must be uintptr_t or intptr_t. %[name] refers to ptr, formatted as a dereference operation. So the generated asm is identical to [name] "m" (*(char *)ptr), but the semantics are different. The problem is that I don't know how to specify the semantics, but at least the instant UB of building and dereferencing a garbage pointer would be avoided. --Andy

Bugs in GCC 14.2 …/fixed-include/ files

2024-08-31 Thread Andy Miller via Gcc
t;https://www.gnu.org/software/libtool/manual/html_node/C-header-files.html>) symbols: __BEGIN_DECLS and __END_DECLS ! Also also stdio.h fails to include the missing _stdio.h which fails to include the missing secure/_common.h ! Shocking !! ;-) Thanks Andy Miller

Re: Bugs in GCC 14.2 …/fixed-include/ files

2024-09-01 Thread Andy Miller via Gcc
Thanks for your prompt reply (on a weekend!), Ian. But I think we’re missing the point (see red text)… > On Aug 31, 2024, at 11:01 PM, Iain Sandoe wrote: > > Hello Andy, > >> On 31 Aug 2024, at 23:14, Andy Miller via Gcc wrote: > >> After apparently easily ins

Revolutionize Your Software Sales with EngageBay 💻

2024-09-10 Thread Andy Roberts via Gcc
Is growth possible for a dollar a day?.. Hi there! I'm Andy Roberts, and I've been closely analyzing the dynamic needs of th