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

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

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

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

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: 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",

Re: x86 gcc lacks simple optimization

2013-12-06 Thread Marc Glisse
aster). That is because, at a high level, signed multiplication overflow is undefined behavior while shift isn't. At a low level, gcc knows it can implement *4 as a shift anyway. v[x + 4] = t[x + 4]; } return 0; } -- Marc Glisse

Re: Finding a relevant place for a custom GCC pass

2014-01-05 Thread Marc Glisse
k for that, so you may have to edit gcc's source code directly. If you compile with -g and look at debug statements, the information is not completely lost after the pass that optimizes this to just VAR1 = 7, but it still wouldn't be convenient to use that for your purpose. -- Marc Glisse

Re: Surprising Behavior Comparing Floats

2014-01-11 Thread Marc Glisse
r. Second, there are hundreds of places on the internet answering this same question. Is this expected behavior? Yes. -- Marc Glisse

Re: Is C++11 to be default for GCC 4.9?

2014-01-24 Thread Marc Glisse
by default] Or does the "enabled by default" bit mean something other than I think it means? It is the warning that is enabled by default (in other messages you would see [-Wunused] or [-Wformat] etc to tell you which option controls this warning). -- Marc Glisse

Re: compiling multi file project

2014-01-24 Thread Marc Glisse
ll me the errors of my ways? Project layout: Irrelevant. Problem: class1source.cpp fails to compile on it's header with "error: ‘shared_ptr’ does not name a type" Have you heard of namespaces? -- Marc Glisse

Re: implementation & optimization of std::function with and without allocator

2014-01-25 Thread Marc Glisse
er libstdc++ or libc++). Filing some new PRs may be in order, if there aren't already a few about this. -- Marc Glisse

Re: Is C++11 to be default for GCC 4.9?

2014-01-27 Thread Marc Glisse
a real reviewer now ;-) We should show the flag that enables the warning, so that users can use the -Wno- variant to disable it if they want. Or does "enabled by default" mean that no such -Wno- flag exists? Exactly. -std=c++11 is the right way to make this warning quiet. -- Marc Glisse

Re: How to include header of stl in gcc?

2014-02-20 Thread Marc Glisse
: /home/pritam/GCC_BUILDS/gcc_4.7/install/lib/gcc/i686-pc-linux-gnu/4.7.2/../../../../include/c++/4.7.2/cstdlib:76:8: error: attempt to use poisoned "calloc" Include before any gcc header, i.e. before things can be poisoned. -- Marc Glisse

Re: [RFC] Meta-description for tree and gimple folding

2014-02-28 Thread Marc Glisse
ance -ftrapping-math for which a split was discussed (PR 53805#c4). -- Marc Glisse

Re: [RFC] Meta-description for tree and gimple folding

2014-03-04 Thread Marc Glisse
signal failure. I am not sure if it will be easy to write code that works for generic and gimple. I'll see... -- Marc Glisse

Re: [RFC] Meta-description for tree and gimple folding

2014-03-11 Thread Marc Glisse
to y+3 and 5+y "simplifies" to y+5, then it looks worth it to replace the expression with x?y+3:(y+5). Would there be a convenient way to separate them, so it can tell me that 3+y should be replaced with y+3 but that it is not a simplification? -- Marc Glisse

Re: [RFC] Meta-description for tree and gimple folding

2014-03-12 Thread Marc Glisse
On Wed, 12 Mar 2014, Richard Biener wrote: On Tue, 11 Mar 2014, Marc Glisse wrote: On Mon, 3 Mar 2014, Richard Biener wrote: How do you handle a transformation that currently tries to recursively fold something else and does the main transformation only if that simplified? And doesn'

Re: [gsoc 2014] moving fold-const patterns to gimple

2014-03-14 Thread Marc Glisse
ST1 That's not the same, try X=1, CST1=1, CST2=0. b) (X & ~CST) == 0 -> X <= CST Uh, that can't be true for all constants, only some with a very specific shape (7 is 2^3-1). -- Marc Glisse

Re: [gsoc 2014] moving fold-const patterns to gimple

2014-03-14 Thread Marc Glisse
On Fri, 14 Mar 2014, Prathamesh Kulkarni wrote: On Fri, Mar 14, 2014 at 9:25 PM, Marc Glisse wrote: On Fri, 14 Mar 2014, Prathamesh Kulkarni wrote: The patterns mentioned in the links were: a) (X >> CST1) >= CST2 -> X >= CST2 << CST1 however, an expression Y >= CS

Re: Pb on gcc : no warning on information lost.

2014-04-14 Thread Marc Glisse
(); cerr << a << endl; } when I compil with : g++ -Wall fic.cpp I think that there should be a warning. -Wconversion -- Marc Glisse

Re: [i386] Question about Constraint Modifier character in smaxdf3 pattern.

2012-02-19 Thread Marc Glisse
arithmetic that assume that arguments and results are not NaNs or +-Infs. so I am not sure what you expect exactly. -- Marc Glisse

Re: Bootstrapping and C++ compiler

2012-02-25 Thread Marc Glisse
ike CXX, but then it doesn't matter. -- Marc Glisse

Re: GCC 4.7.0 Release Candidate available from gcc.gnu.org

2012-03-07 Thread Marc Glisse
u.org/bugzilla/show_bug.cgi?id=50461 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51935 (second one has a patch) -- Marc Glisse

Re: GCC 4.7.0 Release Candidate available from gcc.gnu.org

2012-03-08 Thread Marc Glisse
On Thu, 8 Mar 2012, NightStrike wrote: On Wed, Mar 7, 2012 at 10:12 AM, Marc Glisse wrote: On Wed, 7 Mar 2012, NightStrike wrote: Building gmp/mpfr/mpc in tree fails in the configure-stage1-mpc step with the current version of mpfr version 3.1.0, out since last October, and mpc, version 0.9

Re: The state of glibc libm

2012-03-14 Thread Marc Glisse
ompiled for sse. And the software implementation was more precise than fsin. My conclusion was to ignore fsin from then on. -- Marc Glisse

Re: status of GCC & C++

2012-03-25 Thread Marc Glisse
-with-cxx in the configure options. Or you can just assume that it is built as C++, which is the default after all. People who have anything different should have asked for it and thus know what to expect. -- Marc Glisse

Re: RFH - Testing targets for the switch to C++

2012-04-07 Thread Marc Glisse
x27;t have stage 2 and haven't been tested with a C++ compiler yet? For build issues with other compilers, 50167 and 50177 are still open (last time I looked, I couldn't find the meta-bug about switching to C++ in stage1 to add them as blockers). -- Marc Glisse

Re: RFH - Testing targets for the switch to C++

2012-04-10 Thread Marc Glisse
). -- Marc Glisse

Re: RFH - Testing targets for the switch to C++

2012-04-10 Thread Marc Glisse
On Tue, 10 Apr 2012, Rainer Orth wrote: Marc Glisse writes: Currently, they all use versions of g++ 4.4, but I could give it a try with different versions of Sun/Oracle Studio CC. They should all fail, versions up to 12.2 because of CC bugs (reported to Oracle and fixed in 12.3 I think

Re: RFH - Testing targets for the switch to C++

2012-04-10 Thread Marc Glisse
On Tue, 10 Apr 2012, Rainer Orth wrote: Marc Glisse writes: Thanks for the heads-up, that saved me time and effort. Do you have CRs for the CC bugs? http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=7073578 http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=7073575 I think that was it

Re: Updated GCC vs Clang diagnostics

2012-04-13 Thread Marc Glisse
needed with g++ that uses intermediate types/typedefs to print a short type, but it was a great way to have the arguments at the same depth visible at a glance, and I still use it occasionally (also on the output of c++filt). -- Marc Glisse

Re: [cxx-conversion] is enable_if ok?

2012-04-14 Thread Marc Glisse
mance penalty because of this, it is a serious optimizer deficiency that should be fixed so all C++ users can benefit. -- Marc Glisse

Re: GCC 4.7 build problems

2012-04-15 Thread Marc Glisse
to report build errors? No, please send any follow-up to gcc-h...@gcc.gnu.org only. -- Marc Glisse

Re: Undefined constant is crashing streams - g++ bug?

2012-04-29 Thread Marc Glisse
nedocs/gcc/Warning-Options.html#index-Winit_002dself-289 (it won't warn if you write that line in the global scope, but it does inside a function) -- Marc Glisse

Re: h8300-elf build broken

2012-05-09 Thread Marc Glisse
l be necessary because of platforms where size_t is unsigned short (I didn't know those existed...) and because std::max is picky about having the same type for both arguments (the papers about improving it for C++11 were rejected). -- Marc Glisse

Re: h8300-elf build broken

2012-05-09 Thread Marc Glisse
On Wed, 9 May 2012, Gabriel Dos Reis wrote: On Wed, May 9, 2012 at 3:41 AM, Marc Glisse wrote: necessary because of platforms where size_t is unsigned short (I didn't know those existed...) Well, I suspect AVR might be such platform but I do not seem to have an ABI document for AV

Re: G++ could optimize ASM code more

2012-05-09 Thread Marc Glisse
lue I compare? Both. And you also need to look at the code that is nearby, not just this one instruction. In short, don't bother. If you really want to know, benchmark both versions. -- Marc Glisse

Re: G++ could optimize ASM code more

2012-05-09 Thread Marc Glisse
2))) (set (reg:DI 6) (sign_extend:DI (match_dup 5))) and replacing it with your version that zero-extends to DI and does the multiplication there. -- Marc Glisse

Re: installing an older version of g++ on ubuntu 12.04

2012-06-06 Thread Marc Glisse
/predefs.h: No such file or directory [...] and there's a lot more , what to do ?? export LIBRARY_PATH=/usr/lib/i386-linux-gnu export C_INCLUDE_PATH=/usr/include/i386-linux-gnu export CPLUS_INCLUDE_PATH=/usr/include/i386-linux-gnu -- Marc Glisse

Re: installing an older version of g++ on ubuntu 12.04

2012-06-06 Thread Marc Glisse
On Wed, 6 Jun 2012, mixpro wrote: Marc Glisse-6 wrote: export LIBRARY_PATH=/usr/lib/i386-linux-gnu export C_INCLUDE_PATH=/usr/include/i386-linux-gnu export CPLUS_INCLUDE_PATH=/usr/include/i386-linux-gnu know i get : /usr/bin/ld: cannot find -lgcc_s collect2: ld returned 1 exit status You

Re: C++ and gather-detailed-mem-stats

2012-08-15 Thread Marc Glisse
you are doing it for gcc only, that could work) I doubt you would be happy with a solution that requires calling gimple_build_assign_with_ops((...)) (double parentheses), might as well add MEM_STAT_INFO manually instead. Nope, sorry :-( -- Marc Glisse

Re: trunk merged into MELT branch after C++ conversion

2012-08-29 Thread Marc Glisse
ve to code // file foo2.cc extern "C" { extern const int twosymb; const int twosymb=2; }; to get a symbol "twosymb" in foo2.o Yes, that's one of the usual traps about C vs C++. Note that you can write everything on the same line... extern "C" const int twosymb = 2; -- Marc Glisse

Re: --with-gmp, --with-mpfr and/or --with-mpc

2012-09-22 Thread Marc Glisse
message. (it is probably better to avoid the --with-*=/usr, they are unlikely to help) -- Marc Glisse

Re: Contributing to the project

2012-09-23 Thread Marc Glisse
give up. If you get interested say in libstdc++, you may then be motivated to fix some C++ front-end bug that affects it, or some missed optimization where you noticed you had to write twisted C++ to get gcc to generate the best asm. -- Marc Glisse

Re: alias template bug?

2012-10-23 Thread Marc Glisse
ago or so. -- Marc Glisse

<    1   2   3   >