Re: Unwinding CFI gcc practice of assumed `same value' regs

2006-12-12 Thread Ulrich Drepper
is]used in this way, not to add a bunch more unwinder data. Nope. The right way is to specify things like backtraces with the adequate mechanism. I fully support adding the Dwarf3 unwinder requirements. -- ➧ Ulrich Drepper ➧ Red Hat, Inc. ➧ 444 Castro St ➧ Mountain View, CA ❖

Re: Unwinding CFI gcc practice of assumed `same value' regs

2006-12-12 Thread Ulrich Drepper
about what you might do with %ebp, and extend debuginfo. The thread setup and the startup code certainly does initialize the register with zero. But this means nothing, the register can have zero values in all kinds of other places. -- ➧ Ulrich Drepper ➧ Red Hat, Inc. ➧ 444 Castro St ➧ Mountain View, CA ❖

Re: Call for compiler help/advice: atomic builtins for v3

2005-11-06 Thread Ulrich Drepper
nality between libstdc++ and libgcc means requiring even more versions since then libgcc also would have to be available in multiple versions. And note that for Linux the atomic ops need to take arch-specific extensions into account. For ppc it'll likely mean using the vDSO. -- ➧ Ulrich Dre

Re: Call for compiler help/advice: atomic builtins for v3

2005-11-07 Thread Ulrich Drepper
ed in the correct place and the dynamic linker, which does in fact know what arch is used, can make the decision. It's really pretty easy for those platforms with sufficient flexibility. Use if cascades or indirect jumps for the others, if necessary. -- ➧ Ulrich Drepper ➧ Red Hat, Inc. ➧ 44

Re: Call for compiler help/advice: atomic builtins for v3

2005-11-07 Thread Ulrich Drepper
ple who have to pay the price, not the (sane) rest of us. -- ➧ Ulrich Drepper ➧ Red Hat, Inc. ➧ 444 Castro St ➧ Mountain View, CA ❖ signature.asc Description: OpenPGP digital signature

Re: Call for compiler help/advice: atomic builtins for v3

2005-11-07 Thread Ulrich Drepper
hanisms, good for them. If not it's up to somebody who cares to come up with a solution. -- ➧ Ulrich Drepper ➧ Red Hat, Inc. ➧ 444 Castro St ➧ Mountain View, CA ❖ signature.asc Description: OpenPGP digital signature

Re: Call for compiler help/advice: atomic builtins for v3

2005-11-07 Thread Ulrich Drepper
quires platform specific solutions even if this means more maintenance effort. Equalizing is not acceptable since it punishes the more evolved platforms. -- ➧ Ulrich Drepper ➧ Red Hat, Inc. ➧ 444 Castro St ➧ Mountain View, CA ❖ signature.asc Description: OpenPGP digital signature

x32 libraries

2015-11-17 Thread Ulrich Drepper
Is there a reason why libmpx and libgccjit aren't build for x32? This is in the case when building IA-32, x86-64, and x32 all together. Haven't tested any other way to build. I suspect it's just an oversight in the way configuration works since I cannot see a technical reason.

Solaris vtv port breaks x32 build

2015-11-28 Thread Ulrich Drepper
After the Solaris vtv port was added my build of the x86 gcc with x32 support fails. The build is special since the kernel doesn't have x32 support and I cannot directly run x32 binaries (they are run in a kvm kernel). This is used to work well by configuring the tree with --build and --host etc.

Solaris vtv port breaks x32 build

2015-11-28 Thread Ulrich Drepper
After the Solaris vtv port was added my build of the x86 gcc with x32 support fails. The build is special since the kernel doesn't have x32 support and I cannot directly run x32 binaries (they are run in a kvm kernel). This is used to work well by configuring the tree with --build and --host etc.

Re: Solaris vtv port breaks x32 build

2015-11-30 Thread Ulrich Drepper
On Mon, Nov 30, 2015 at 6:57 PM, Jeff Law wrote: > What part of this requires bits to run? I see AC_COMPILE_IFELSE, but not > anything which obviously requires running the resulting code. Without AC_USE_SYSTEM_EXTENSIONS one gets: configure.ac:111: warning: AC_COMPILE_IFELSE was called before A

Re: Solaris vtv port breaks x32 build

2015-11-30 Thread Ulrich Drepper
On Mon, Nov 30, 2015 at 9:14 PM, Jeff Law wrote: > Right, but isn't AC_COMPILE_IFELSE a compile test, not a run test? The problem macro is _AC_COMPILER_EXEEXT_WORKS. The message is at the end. This macro *should* work for cross-compiling but somehow it doesn't work. In libvtv/configure $cross

Re: Solaris vtv port breaks x32 build

2015-12-01 Thread Ulrich Drepper
On Tue, Dec 1, 2015 at 2:39 AM, Matthias Klose wrote: > that might be another instance of > https://gcc.gnu.org/ml/gcc-patches/2015-01/msg02064.html > Does something like this help? No, same problem as before. This macro doesn't actually generate any code in configure.

Re: Solaris vtv port breaks x32 build

2015-12-01 Thread Ulrich Drepper
On Tue, Dec 1, 2015 at 10:16 AM, Bernd Edlinger wrote: > Your host_alias looks wrong: isn't it equal to your build_alias ? Yes. The goal is to basically build a native compiler but prevent it from trying to run any binaries. There is no fine-grained way to tell the configuration mechanism to ru

LTO and version scripts

2014-06-30 Thread Ulrich Drepper
Using LTO to create a DSO works fine (i.e., it performs the expected optimizations) for symbols which are marked with visibility attributes. It does not work, though, when the symbol is not restricted in its visibility in the source file but instead is prevented from being exported from the DSO by

Re: LTO and version scripts

2014-08-05 Thread Ulrich Drepper
On Tue, Aug 5, 2014 at 12:57 AM, Alan Modra wrote: > What version linker? In particular, do you have the fix for PR12975? The Fedora 19 version. I think it hasn't changed since then which means it is 2.23.88.0.1-13 (from the RPM version number). No idea whether that fix is included and unfortu

Re: LTO and version scripts

2014-08-10 Thread Ulrich Drepper
On Wed, Aug 6, 2014 at 11:07 PM, Alan Modra wrote: > Both Fedora 19 and 20 have the patch needed for this to work. Hmm, I > suppose the other thing necessary is a gcc that implements > LDPT_GET_SYMBOLS_V2. You may be lacking that. Here's what I see with > mainline gcc and ld. It's been a while

Re: GCC 5 Status Report (2015-01-19), Trunk in Stage 4

2015-01-19 Thread Ulrich Drepper
On Mon, Jan 19, 2015 at 12:32 PM, Jonathan Wakely wrote: > I would like to commit these two patches which complete the C++11 > library implementation: I would definitely be in favor. > https://gcc.gnu.org/ml/gcc-patches/2015-01/msg01694.html Just a nit. Why wouldn't you check the value of the

asm in inline function invalidating function attributes?

2011-10-15 Thread Ulrich Drepper
I think gcc should allow the programmer to tell it something about a function return value even if the function is inlined and the compiler can see all the code. Consider the code below. If NOINLINE is defined the compiler will call g once. No need to do anything after the h() call since the fun

Re: asm in inline function invalidating function attributes?

2011-10-16 Thread Ulrich Drepper
On Sun, Oct 16, 2011 at 06:31, Richard Guenther wrote: > The question is now, of course why you need to emit calls > from an asm() statement, something which isn't guaranteed > to work anyway (IIRC). It's not guaranteed to work in general. The problem to solve is that I know the function which i

Re: asm in inline function invalidating function attributes?

2011-10-16 Thread Ulrich Drepper
On Sun, Oct 16, 2011 at 14:38, Jakub Jelinek wrote: > If this is about e.g. > 2011-09-14  Ulrich Drepper   > >        * sysdeps/x86_64/fpu/bits/mathinline.h (__MATH_INLINE): Use >        __extern_always_inline. >        Define lrint{f,} and llrint{f,} for 64-bit and in s

Re: asm in inline function invalidating function attributes?

2011-10-17 Thread Ulrich Drepper
On Mon, Oct 17, 2011 at 02:57, Richard Guenther > It would simply be an alternate ABI that makes all registers callee-saved? > I suppose that would be not too hard to add. That would be great. There are quite a few interfaces which have a trivial normal case and only in special situations you ne

template class with default parameter in template parameter declaration

2011-11-08 Thread Ulrich Drepper
Complicated title, here's a bit of code: #ifdef FIX # define PARM2 , class T5 #else # define PARMS2 #endif template struct cl1 { }; template class T4 = cl1> struct cl2 { }; cl2<> var; If compiled without FIX defined this will fail with gcc 4.3 and later. Haven't checked 4.2 but it works with

-mavx option

2012-01-26 Thread Ulrich Drepper
I think gcc is missing an option since -mavx controls two different things. First, the generation of VEX-encoded instructions. Second, the use of ymm registers. The latter is not always available when the former is and using VEX-encoded instructions by themselves can have an advantage. Currentl

Re: (C++) mangling vector types

2009-11-12 Thread Ulrich Drepper
On 11/12/2009 07:24 AM, Jason Merrill wrote: c) Use -fabi-version=2.1. I'd favor this if you can emit aliases with the old names wherever this is possible and currently done. -- ➧ Ulrich Drepper ➧ Red Hat, Inc. ➧ 444 Castro St ➧ Mountain View, CA ❖

Re: (C++) mangling vector types

2009-11-12 Thread Ulrich Drepper
mpatible, other than other ABI breakages. -- ➧ Ulrich Drepper ➧ Red Hat, Inc. ➧ 444 Castro St ➧ Mountain View, CA ❖

bug or idiosyncrasy?

2012-08-17 Thread Ulrich Drepper
Compiling the following code with D defined works. Leave it out (and remove the extra dimension which has no influence on the data layout etc) and it compiles. Is this correct? Why wouldn't a simple use of an array parameter be sufficient? #ifdef D #define XD [1] #define XR [0] #define XBB {

Re: RFC: Disallow undocumented IA32 TLS GD access

2007-08-23 Thread Ulrich Drepper
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 H.J. Lu wrote: > Is there any objection? No, this is correct and necessary. - -- ➧ Ulrich Drepper ➧ Red Hat, Inc. ➧ 444 Castro St ➧ Mountain View, CA ❖ -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.7 (GNU/Linux) iD8DBQFGzaGk2ijC

desired behavior or missing warning?

2020-09-17 Thread Ulrich Drepper via Gcc
I found myself with code similar to this: struct base { virtual void cb() = 0; }; struct deriv final : public base { void cb() final override { } }; The question is about the second use of 'final'. Because the entire class is declared final, should the individual function's annotation be f

-Wformat and u8""

2022-05-09 Thread Ulrich Drepper via Gcc
I have a C++20+ code base which forces the program to run using an UTF-8 locale and then uses u8"" strings internally. This causes warnings with -Wformat. #include int main() { printf((const char*) u8"test %d\n", 1); return 0; } Compile with g++ -std=gnu++20 -c -O -Wall t.cc and you'll

Re: -Wformat and u8""

2022-05-09 Thread Ulrich Drepper via Gcc
On Mon, May 9, 2022 at 11:26 AM Florian Weimer wrote: > On the other hand, that cast is still quite ugly. Yes, there aren't yet any I/O functions defined for char8_t and therefore that's the best we can do right now. I have all kinds of ugly macros to high these casts. > All string-related >

[RFC] database with API information

2022-09-06 Thread Ulrich Drepper via Gcc
I talked to Jonathan the other day about adding all the C++ library APIs to the name hint file now that the size of the table is not really a concern anymore. Jonathan mentioned that he has to create and maintain a similar file for the module support. It needs to list all the exported interfaces

Re: [RFC] database with API information

2022-09-09 Thread Ulrich Drepper via Gcc
On Fri, Sep 9, 2022 at 5:26 PM Iain Sandoe wrote: > One small request, I realise that Python 2 is dead, but I regularly > bootstrap GCC > on older machines that only have Python 2 installations. If possible (and > it sounds > plausible if the job is really quite simple) - it would be good to sup

commit signing

2022-09-14 Thread Ulrich Drepper via Gcc
For my own projects I started /automatically/ signing all the git commits. This is so far not that important for my private projects but it is actually important for projects like gcc. It adds another layer of security to the supply chain security. My shell prompt (as many other people's as well)

Re: commit signing

2022-09-14 Thread Ulrich Drepper via Gcc
On Wed, Sep 14, 2022 at 1:31 PM Richard Biener wrote: > How does this improve supply chain security if the signing happens > automagically rather than manually at points somebody actually > did extra verification? It works only automatically if you have ssh-agent (and/or gpg-agent) running. I

Re: commit signing

2022-09-28 Thread Ulrich Drepper via Gcc
On Wed, Sep 14, 2022 at 2:07 PM Ulrich Drepper wrote: > On Wed, Sep 14, 2022 at 1:31 PM Richard Biener > wrote: > >> How does this improve supply chain security if the signing happens >> automagically rather than manually at points somebody actually >> did extra v