Re: Disappeared flag: -maes on -march=ivybridge, present in -march=native

2019-07-28 Thread Marc Glisse
.     (PTA_GOLDMONT): Likewise. As you can see, this is very much on purpose. See https://gcc.gnu.org/ml/gcc-patches/2018-08/msg01940.html for the explanation that came with the patch. -- Marc Glisse

Re: [ARM] LLVM's -arm-assume-misaligned-load-store equivalent in GCC?

2020-01-07 Thread Marc Glisse
r2, [r0, #4]@ unaligned instead of strdr1, r2, [r0] -- Marc Glisse

Re: Deprecating arithmetic on std::atomic

2017-04-20 Thread Marc Glisse
t violates the standard... -- Marc Glisse

Re: Support Library Requirements for GCC 7.1

2017-05-02 Thread Marc Glisse
build recipe: %define mpfr_version 2.4.2 %define mpc_version0.8.1 %define gmp_version4.3.2 I tried that with gcc 7.1.0 but the build failed complaining mpfr was too old. Could you be more precise about how the build failed? AFAIK mpfr-2.4.2 is still supposed to work. -- Marc Glisse

Re: Bug in GCC 7.1?

2017-05-05 Thread Marc Glisse
e a problem with gcc, maybe optimization creates a path that corresponds to size==0 and fails to notice that it cannot be taken. -- Marc Glisse

Re: Infering that the condition of a for loop is initially true?

2017-09-14 Thread Marc Glisse
test of the loop, as can be seen in the dump produced with -fdump-tree-optimized. -- Marc Glisse

Re: -pie option in ARM64 environment

2017-09-29 Thread Marc Glisse
ou run "gcc -dumpspecs"? If so you could provide a different specs file. Otherwise, you could check the patches that your distribution applies to gcc, one of them likely has "pie" in its name. Easiest is likely to build gcc from the official sources, which shouldn't use pie by default. -- Marc Glisse

Re: GCC Buildbot Update - Definition of regression

2017-10-11 Thread Marc Glisse
arith-overflow.c.exe iteration 2 of PASS: test-arith-overflow.c.exe iteration 4 of 5: verify_u PASS: test-combination. PASS: test-combination.c.exe it [...] The issue is more likely in the testsuite, but I assume you have a workflow that allows working around the issue? -- Marc Glisse

Re: gcc Bugzilla corrupt again?

2017-11-22 Thread Marc Glisse
In preferences, you get to choose the behavior "After changing a bug". Default is "Show next bug in my list". -- Marc Glisse

Re: gcc 7.3: Replacing global operator new/delete in shared libraries

2018-02-07 Thread Marc Glisse
don't have much experience there. -- Marc Glisse

Re: gdb 8.x - g++ 7.x compatibility

2018-02-07 Thread Marc Glisse
understand there's no mangled name for the class such that echo | c++filt outputs the class name (e.g. "Foo<10>"). That wouldn't make sense, since there's no symbol for the class itself. $ echo _Z1YI1XE | c++filt Y -- Marc Glisse

Re: gcc 7.3: Replacing global operator new/delete in shared libraries

2018-02-07 Thread Marc Glisse
lity=hidden to hide everything but a few carefully chosen interfaces. -- Marc Glisse

Re: why C++ cannot alias an inline function, C can ?

2018-04-01 Thread Marc Glisse
ays_inline)) void foo(void){} }; static inline __attribute__((always_inline,alias("foo"))) void bar(void); Or you can use an asm label to specify some arbitrary name. -- Marc Glisse

Re: libstdc++: ODR violation when using std::regex with and without -D_GLIBCXX_DEBUG

2018-05-08 Thread Marc Glisse
to help with that? (I didn't really think about it, maybe it doesn't) "don't do that" remains the most sensible answer. -- Marc Glisse

Re: About Bug 52485

2018-05-09 Thread Marc Glisse
few spaces. A single run of clang-tidy would likely fix all of them for you. -- Marc Glisse

Re: Unused __builtin_ia32_* builtins

2018-05-10 Thread Marc Glisse
r arith instead? When I removed their use in the intrinsic headers, I tried to remove them, but Ada people asked us to keep them https://gcc.gnu.org/ml/gcc-patches/2014-10/msg00843.html -- Marc Glisse

Re: Generating gimple assign stmt that changes sign

2018-05-21 Thread Marc Glisse
nt to patch genmatch.c (near get_operand_type maybe?) so it doesn't try to guess that the type of absu is the same as its argument. You can also specify a type in transformations, look for :utype or :etype in match.pd. -- Marc Glisse

Re: How to get GCC on par with ICC?

2018-06-08 Thread Marc Glisse
owns when compiled with GCC vs. ICC. -- Marc Glisse

Re: -Wclass-memaccess warning should be in -Wextra, not -Wall

2018-07-08 Thread Marc Glisse
st (PR 86024 seems related, there are probably some closer matches), but indeed more would be helpful. -- Marc Glisse

Re: -Wclass-memaccess warning should be in -Wextra, not -Wall

2018-07-08 Thread Marc Glisse
On Sun, 8 Jul 2018, Jason Merrill wrote: On Sun, Jul 8, 2018 at 6:40 PM, Marc Glisse wrote: On Fri, 6 Jul 2018, Martin Sebor wrote: On 07/05/2018 05:14 PM, Soul Studios wrote: Simply because a struct has a constructor does not mean it isn't a viable target/source for use with m

Re: -Wclass-memaccess warning should be in -Wextra, not -Wall

2018-07-10 Thread Marc Glisse
gory where we don't want to litter the code with casts to quiet the warnings, I find -Wsign-compare way worse in practice than -Wclass-memaccess. -- Marc Glisse

Re: r227907 and AIX 5.[23]

2018-07-25 Thread Marc Glisse
someone has the time, of course. -- Marc Glisse

Re: Can offsetting a non-null pointer result in a null one?

2018-08-20 Thread Marc Glisse
he opposite direction may be both easier and safer, even if it won't handle everything: P p+ N is nonnull if P or N is known to be nonnull (and something similar for &p->field and others) -- Marc Glisse

Re: Can offsetting a non-null pointer result in a null one?

2018-08-20 Thread Marc Glisse
value_ranges_intersect_p with a singleton range, but that function seems dead and broken). When POINTER_PLUS_EXPR is changed to take a signed argument, your suggested test will need updating :-( -- Marc Glisse

__builtin_clzll and uintmax_t

2011-03-05 Thread Marc Glisse
? Is there a good reason to use __builtin_clzl instead on platforms where long and long long have the same size? In case it matters, this is strictly for compile-time computations (templates, constexpr). -- Marc Glisse

Re: __builtin_clzll and uintmax_t

2011-03-06 Thread Marc Glisse
that's the best guarantee I could ask for about the existence of __builtin_clzll. -- Marc Glisse

Re: Environment setting LDFLAGS ineffective after installation stage 1. Any workaround?

2011-05-31 Thread Marc Glisse
LDFLAGS environment setting is partially effective during gcc build? Yes. For further stages, there is BOOT_LDFLAGS. There is also a configure option with a similar name. --with-stage1-ldflags= --with-boot-ldflags= see: http://gcc.gnu.org/install/configure.html -- Marc Glisse

Re: badly broken?!?

2011-06-06 Thread Marc Glisse
at it means: #include int main() { std::cout << "ok\n"; } Can anybody else see this crazy breakage? May be a few days old, AFAICS. 4_6-branch is perfectly fine. 174683 here on linux x64 and everything is fine. -- Marc Glisse

Re: PATCH RFA: Build stages 2 and 3 with C++

2011-07-31 Thread Marc Glisse
in gcc... The alternative would be to store the full enum instead of a bitfield (just for stage1 so that's not too bad), but some comments in the code seem to advise against it. -- Marc Glisse

Re: PATCH RFA: Build stages 2 and 3 with C++

2011-08-01 Thread Marc Glisse
it's only for C that they are a GNU extension - so can't we just enable them unconditionally when building as C++?) Great, I didn't know that. That's a much better solution. -- Marc Glisse

Re: Performance degradation on g++ 4.6

2011-08-01 Thread Marc Glisse
On Mon, 1 Aug 2011, Oleg Smolsky wrote: BTW, some of these tweaks increase the binary size to 99K, yet there is no performance increase. I don't see this in the thread: did you use -march=native? -- Marc Glisse

Re: Do I need some Python stuff to build trunk as of 177065 ?

2011-08-01 Thread Marc Glisse
On Mon, 1 Aug 2011, Toon Moene wrote: See: http://gcc.gnu.org/ml/gcc-testresults/2011-08/msg00117.html Er, the python thing only tells you your system has a broken symlink but ignores it. Did you check in libgcc/config.log for the real error? -- Marc Glisse

Re: autogen version testing in fixincludes/genfixes

2011-08-06 Thread Marc Glisse
5." or GNU, or grep -v for " [0-4]". 3) something else. -- Marc Glisse

Re: FDO and LTO on ARM

2011-08-09 Thread Marc Glisse
orter: class string; void f(const string&); string x(); struct locale { string y() const; }; template void g(const locale& l) { f(x()); // OK f(l.y()); // FAIL in C++0X } g++ apparently instantiates more eagerly in C++0X than in C++03. -- Marc Glisse

Re: Build report gcc 4.6.1 on Sparc Solaris 10

2011-08-18 Thread Marc Glisse
(first use in this function) Strange, this is expected with gcc-3.4 (although there is a workaround in the development version of mpc) but not with gcc-4.6. -- Marc Glisse

RE: Bootstrap with -Wmissing-prototypes doesn't work for C++

2011-08-19 Thread Marc Glisse
). It requires that you first have: int f(int); and only then: int f(int){return 0;} -- Marc Glisse

Re: Critical behavioral change between g++-4.4/g++-4.5 and g++-4.6 ?

2011-08-21 Thread Marc Glisse
you can manually force instantiation in one translation unit and inhibit it in the others). (sorry I didn't manage to circumvent the problem to a small piece of code), Er, what did you try? -- Marc Glisse

Re: Trunk LTO Bootstrap of Sun Aug 21 18:01:01 UTC 2011 (revision 177942) FAILED

2011-08-22 Thread Marc Glisse
, then I guess this patch will solve it: http://gcc.gnu.org/ml/gcc-patches/2011-08/msg01674.html -- Marc Glisse

Re: C++11 atomic library notes

2011-09-30 Thread Marc Glisse
ic_design_a.html which is good since the main point seems to be to share it between implementations. Are there others on board? -- Marc Glisse

Re: C++11 atomic library notes

2011-10-02 Thread Marc Glisse
On Sat, 1 Oct 2011, Andrew MacLeod wrote: On 10/01/2011 02:55 AM, Marc Glisse wrote: "The compiler must ensure that for any given object, it either ALWAYS inlines lock free routines, OR calls the external routines. For any given object, these cannot be intermixed." Why? Y

Re: adding destroyable objects into Ggc

2011-10-20 Thread Marc Glisse
is deleted, the FILE* is fclosed] or even std::ostringstream or std::ostring-s shared between several passes. Yes, those are the usual arguments for a finalizer. -- Marc Glisse

Re: adding destroyable objects into Ggc

2011-10-20 Thread Marc Glisse
On Thu, 20 Oct 2011, Basile Starynkevitch wrote: On Thu, Oct 20, 2011 at 09:11:02AM +0200, Marc Glisse wrote: On Thu, 20 Oct 2011, Basile Starynkevitch wrote: PPL [Parma Polyhedra Library] data, like e.g. ppl_Constraint_t [from header that is, using a C API] comes to mind. If you want to

Re: adding destroyable objects into Ggc

2011-10-20 Thread Marc Glisse
the naive question, but std::vector can take an allocator parameter, gmp lets you specify an allocation function... (note that I have never looked at Ggc so my question may be off...) -- Marc Glisse

Re: adding destroyable objects into Ggc

2011-10-20 Thread Marc Glisse
hanks for bearing with my questions. -- Marc Glisse

Re: [C++11] Reclaiming fixed-point suffixes for user-defined literals.

2011-11-06 Thread Marc Glisse
an underscore for future normalization. I interpret that as: defining your own suffix k should print a warning instead of an error. I don't believe this is worth changing (if the error message is readable enough) until there is a plan for actually using that suffix. -- Marc Glisse

Re: template class with default parameter in template parameter declaration

2011-11-08 Thread Marc Glisse
e exotic pieces of legal code that were broken by this extension, so it had to go. -- Marc Glisse

Re: template class with default parameter in template parameter declaration

2011-11-09 Thread Marc Glisse
On Tue, 8 Nov 2011, Marc Glisse wrote: On Tue, 8 Nov 2011, Ulrich Drepper wrote: 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 co

Re: GCC 4.6 is inserting unnecessary MOVAPS instructions for SSE intrinsics

2011-11-23 Thread Marc Glisse
that the register allocator is doing a fairly poor job on SSE/AVX registers... -- Marc Glisse

Re: ::gets has not been declared

2012-01-05 Thread Marc Glisse
try to synchronize on some features. -- Marc Glisse

Re: ::gets has not been declared

2012-01-05 Thread Marc Glisse
On Thu, 5 Jan 2012, Marc Glisse wrote: Do you have any suggestion on what libstdc++ can do when faced with C libraries that will randomly declare gets or not depending on flags? It would need knowledge of these exact flags so it can provide a replacement exactly when it isn't declared (

comp_type_attributes

2012-01-15 Thread Marc Glisse
gnore the rest). Is that what's supposed to happen? I can use another mechanism than attributes, but this looks suspicious. -- Marc Glisse

Re: comp_type_attributes

2012-01-18 Thread Marc Glisse
apt quite a few functions to preserve it. Using an attribute seems to make sense and would reuse more existing mechanisms (though it may have drawbacks too). -- Marc Glisse

Re: C Compiler benchmark: gcc 4.6.3 vs. Intel v11 and others

2012-01-18 Thread Marc Glisse
r the math functions, this is normally more a libc feature, so you might get very different results on different OS. Then again, by using -ffast-math, you allow the math functions to return any random value, so I can think of ways to make it even faster ;-) -- Marc Glisse

Re: Dealing with compilers that pretend to be GCC

2012-01-21 Thread Marc Glisse
r project, and with recursive dependencies it would quickly get out of hand. -- Marc Glisse

Re: Dealing with compilers that pretend to be GCC

2012-01-31 Thread Marc Glisse
q.c __has_builtin $ clang -E q.c -- Marc Glisse

(int *const) function parameter

2009-08-14 Thread Marc Mason
Hello, The following code is rejected by one compiler, while it is accepted by gcc without any warning. Several people in comp.lang.c seem to think that it is a bug in the first compiler which should ***not*** reject the program. Message-ID: http://groups.google.com/group/comp.lang.c/browse_frm/

Re: [LTO] Request for testing: Last merge from trunk before final merge

2009-09-30 Thread Marc Glisse
ocs.sun.com/app/docs/doc/817-1984/chapter2-88783?a=view#chapter2-7 seems to recommend the -t linker flag. -- Marc Glisse

Re: Optimizing floating point *(2^c) and /(2^c)

2010-03-31 Thread Marc Glisse
ve the same characteristic, but it may indeed not be worth the trouble. -- Marc Glisse

Re: GCC 4.5.0 release candidate available

2010-04-06 Thread Marc Glisse
On Tue, 6 Apr 2010, Jerome Quinn wrote: undefined reference to `mp_get_memory_functions' This means your version of GMP is too old. configure should probably catch this. -- Marc Glisse

Re: GCC 4.5.0 Released

2010-04-22 Thread Marc Glisse
n.com/app/docs/doc/805-3172/6j31br5j5 Do you mean its output is different enough that it is unusable here? Or that it is not installed by default? (SUNWbtool is already listed as a requirement in install/specific.html) -- Marc Glisse

Re: Why not contribute? (to GCC)

2010-04-23 Thread Marc Glisse
On Fri, 23 Apr 2010, Manuel López-Ibáñez wrote: This seems to be the question running around the blogosphere for several projects. And I would like to ask all people that read this list but hardly say or do anything. What reasons keep you from contributing to GCC? Not sure we should spam this

Re: Call for testers: MPC-0.6 released

2009-04-01 Thread Marc Glisse
s a bug in -fstack-protector in that version that masks this. Anyway, thanks both of you for helping to track it down. I'll forward this along to the MPC maintainers. This could be related to a call to sprintf(str,...,str,...), which according to the doc is undefined behaviour. -- Marc Glisse

Complex numbers in c++0x

2009-06-11 Thread Marc Steinbach
In , GCC defines an additional overload of conj(x) for non-complex arithmetic types, as specified in 26.3.9 [cmplx.over] of the upcoming C++ Standard (Working Draft). The Draft mandates certain type promotion of x. In the (experimental) GCC implementation, conj(x) returns x as a complex value (wit

RE: pic+64bit+sun assembler+unwind-tables => illegal cross section subtraction

2010-05-10 Thread Marc Glisse
at you can also try to ping Oracle with this pointer: http://bugs.sun.com/view_bug.do?bug_id=6832717 -- Marc Glisse

Re: optimizing a DSO

2010-05-11 Thread Marc Glisse
the linker is gnu? -- Marc Glisse

Re: optimizing a DSO

2010-05-11 Thread Marc Glisse
On Tue, 11 May 2010, Ian Lance Taylor wrote: Marc Glisse writes: On Tue, 11 May 2010, Jakub Jelinek wrote: And you can use -Wl,-O1 (pass -O1 to the linker) to let the linker determine optimal size of the hash table (minimum number of collisions for reasonably sized section). Was it

trampolines handling, important copyright question

2010-05-29 Thread Marc Espie
So, I used to contribute back to gcc regularly, got overwhelmed by other stuff, but I'm back. Case in point: I've added stuff to OpenBSD for secure handling of trampolines. Since trampolines require an executable stack, we want to make sure we don't have trampolines all over the place, hence a -ft

Re: trampolines handling, important copyright question

2010-05-29 Thread Marc Espie
On Sat, May 29, 2010 at 03:49:48PM +0200, Steven Bosscher wrote: > On Sat, May 29, 2010 at 3:45 PM, Marc Espie wrote: > > > Is there something I'm missing ? Is there a way I can still be the owner > > of that patch and release it as I wish ? > > Yes. Read your co

Re: forcing the linker to be a particular one (i.e. gold vs bfd)

2010-10-10 Thread Marc Glisse
/lib/gold-ld to select the ld you want. -- Marc Glisse

Re: Fw: new requirement of "constexpr" for static const float data members is too restrictive

2010-11-29 Thread Marc Glisse
since an alternative is now available. -- Marc Glisse

Re: new requirement of "constexpr" for static const float data members is too restrictive

2010-11-30 Thread Marc Glisse
appen with X::v defined separately) -- Marc Glisse

Questions about another usage of GCOV

2006-06-17 Thread Marc Alff
Hi All. I have some questions regarding GCOV, which is part of GCC. I hope this is the right place (if not, suggestions are welcome). Please add me (marc dot alff at comcast dot net) in your replies, as I am not subscribed to this list. Let me start with some background : A project &quo

Re: Questions about another usage of GCOV

2006-06-18 Thread Marc Alff
Hi Nicholas Nethercote wrote: > On Sat, 17 Jun 2006, Marc Alff wrote: > >> 2) Licensing >> >> For technical reasons, I can not use the gcov library itself, >> and plan to implement code to read/write the files the GCOV program >> needs. > > Then wh

Re: GCC Rust git branch

2021-05-28 Thread Marc Poulhiès
e will merge these later today. The > results look the same as the numbers were getting on x86 too. Hello, FYI, your changes are being merged : https://github.com/Rust-GCC/gccrs/pull/454 Thanks! Marc

Re: An asm constraint issue (ARM FPU)

2021-07-25 Thread Marc Glisse
he problem is that 's0' is a single-precision float register and it should be 'd0' instead. Either I'm seriously missing something, in which case I would be most obliged if someone sent me to the right direction; or it is a compiler or documentation bug. Thanks, Zoltan -- Marc Glisse

Re: unexpected result with -O2 solved via "volatile"

2021-09-19 Thread Marc Glisse
hanged. https://gcc.gnu.org/bugs/ says that you should first try compiling your code with -fsanitize=undefined, which tells you at runtime that your code is broken. Apart from that, bug reports should go to https://gcc.gnu.org/bugzilla/ and questions to gcc-h...@gcc.gnu.org. -- Marc Glisse

Re: reordering of trapping operations and volatile

2022-01-08 Thread Marc Glisse
antee about this anyway. In the other case, it could affect correct code before the trap. -fnon-call-exceptions helps with the first testcase but not with the second one. I don't know if that's by accident, but the flag seems possibly relevant. -- Marc Glisse

Re: gcd_1.c:188:13: runtime error: shift exponent 64 is too large for 64-bit type 'long unsigned int'

2022-02-01 Thread Marc Glisse
version of GMP first? gcd_1.c has only 103 lines in release 6.2.1. A stack trace (UBSAN_OPTIONS=print_stacktrace=1) would make it easier to guess where this is coming from. -- Marc Glisse

Re: gcd_1.c:188:13: runtime error: shift exponent 64 is too large for 64-bit type 'long unsigned int'

2022-02-02 Thread Marc Glisse
be updated. -- Marc Glisse

Re: "cannot convert to a pointer type" error repeated tens of times

2022-02-12 Thread Marc Glisse
...); No, curl_easy_setopt is a macro. If you look at the preprocessed code, you get many statements doing the same wrong operation, and one warning for each of them. (wrong list, should be gcc-help, or an issue on bugzilla) -- Marc Glisse

Re: temp obj created by compiler

2005-02-14 Thread Marc Espie
In article <[EMAIL PROTECTED]> you write: >Thanks Jon, > >Can anyone throw more light on this. > Stop telling us what you want to do, explain to us WHY you want to do it. There are lots of different reasons for which you might want to know more about temporary object generation, and we can probab

Re: Accessing the subversion repository

2005-02-16 Thread Marc Espie
In article <[EMAIL PROTECTED]> you write: >Daniel Berlin wrote: >> I should note that svn treats it's remote connections as disposable, so >> svn+ssh will probably connect more than once for things like remote >> diffs. So if it takes a while to authenticate, this may not be your >> best bet if yo

Re: SVN Test Repo updated

2005-02-16 Thread Marc Espie
In article <[EMAIL PROTECTED]> you write: >Complete alphabetical order is not in the cards for diff, at least for >diffs involving server side (diffs that are client side are easily >sorted by filename). >This is because it would require losing the "streaminess" of the >protocol (unlike cvs, the cl

Re: SVN Test Repo updated

2005-02-17 Thread Marc Espie
In article <[EMAIL PROTECTED]> you write: >AFAIK, Subversion uses UTC time internally, but always works with the >local time of the user for the interface (I don't know what happens for >ambiguous dates, due to summer/winter times). Anyway, Subversion has >global revisions, so that doing a dichotom

Re: Extension compatibility policy

2005-02-27 Thread Marc Espie
Long term, gcc extensions mean a given piece of code will only be compilable by gcc. If the extension is succesful enough, it may even be adopted by other compilers, such as Intel CC. Happened in the past. Personally, I tend to not like gcc extensions. Especially the silent variety. Now that the C

Re: Calculating cosinus/sinus

2013-05-11 Thread Marc Glisse
in is slower and less precise than the libc SSE2 implementation. -- Marc Glisse

Re: Memory alignment optimization

2013-05-28 Thread Marc Glisse
On Tue, 28 May 2013, Anton Titov wrote: I'm trying to force gcc to trust me that my memory allocation function is returning aligned memory. So far I tried everything I found with no luck. Did you try using __builtin_assume_aligned? -- Marc Glisse

Re: Generate abs target assembly code with saturation behavior

2013-06-28 Thread Marc Glisse
you can't then assign that to an int, because it will overflow. 0x8000 will not fit in an int: it's undefined behaviour. Implementation defined, and ok with gcc: http://gcc.gnu.org/onlinedocs/gcc/Integers-implementation.html -- Marc Glisse

Re: Remove the __GXX_EXPERIMENTAL_CXX0X__?

2013-07-03 Thread Marc Glisse
relying on it. No? OTOH, it may have been a proxy for __cplusplus for users for a good while. People may still be using it even if the library no longer uses it. What do folks think? Please keep it. Removing it won't gain you anything, and people do rely on it. -- Marc Glisse

Re: typos

2013-07-04 Thread Marc Glisse
ow it goes :-) Thanks, -- Marc Glisse

Re: RFC: Gimple combine/folding interface

2013-07-20 Thread Marc Glisse
eem easy to avoid... No folding categories as in http://gcc.gnu.org/ml/gcc-patches/2011-03/msg01099.html ? -- Marc Glisse

Re: [RFC] Vectorization of indexed elements

2013-09-09 Thread Marc Glisse
IT_FIELD_REF for vec_select and CONSTRUCTOR for vec_duplicate, adding new nodes is always painful. This enhancement could possibly help further optimizing larger scenarios such as linear systems. Regards VP -- Marc Glisse

Re: is there a optimizing opportunity for const std::vector + std::initializer_list replaced with std::array?

2013-09-19 Thread Marc Glisse
to the gcc bugzilla and file an enhancement request (category tree-optimization) if these problems are not there yet. -- Marc Glisse

Re: is there a optimizing opportunity for const std::vector + std::initializer_list replaced with std::array?

2013-09-20 Thread Marc Glisse
On Fri, 20 Sep 2013, Dennis Luehring wrote: Am 20.09.2013 07:50, schrieb Marc Glisse: (gcc-h...@gcc.gnu.org would have been a better list) On Fri, 20 Sep 2013, Dennis Luehring wrote: > gcc 4.8.1, -O3 -march=native -std=c++11 > > small example program to check what does the

Re: integer_onep vs. signed 1-bit bitfields

2013-11-02 Thread Marc Glisse
ine with integer_minus_onep returning true on -1U. Without the renaming patch, there is a single use of integer_minus_onep (in fold-const.c), so it shouldn't be hard to check all users, and IIRC we want it to return true for -1U in this case (turning x*-1 into -x). -- Marc Glisse

Re: Fwd: Macros taking a function as argument - and evaluating it at least twice

2013-11-13 Thread Marc Glisse
nline function where I expect gcc must optimize away the second copy of the code. Not that it wouldn't be good if there was no second copy for gcc to optimize... -- Marc Glisse

Re: Enable -Wreturn-type by default ?

2013-11-17 Thread Marc Glisse
packages): http://clang.debian.net/status.php?version=3.3&key=FUNCTION_RETURNS_VALUE That's cool, if clang forces people to update their code to C99, maybe we'll be able to switch gcc to use -std=gnu99 by default one day... -- Marc Glisse

Re: memset zero bytes at NULL - isolate-erroneous-paths

2013-11-17 Thread Marc Glisse
der at hand), a paragraph at the beginning of the description of string.h. It does not apply to strnlen_s. For strnlen, which is only in posix, I am not sure, but glibc has the nonnull attribute. -- Marc Glisse

Re: Weird constant folding of __builtin_remainder() with -frounding-math

2013-11-20 Thread Marc Glisse
on… Did you really test on x86_64-linux? I am only seeing this -2.71e-20 when using -mfpmath=387. -- Marc Glisse

Re: Weird constant folding of __builtin_remainder() with -frounding-math

2013-11-20 Thread Marc Glisse
On Wed, 20 Nov 2013, Marc Glisse wrote: On Wed, 20 Nov 2013, FX wrote: I reduced my problem to the following code: int main (void) { double x; x = 1 / 3.; __builtin_printf ("%.30lg %.30lg\n", __builtin_remainder(1., 1/3.), 1/3.); __builtin_printf ("%.30lg %.30lg\n",

<    1   2   3   >