[c++] switch ( enum ) vs. default statment.

2007-01-23 Thread Paweł Sikora
Hi, Please consider following testcase which is a core of PR c++/28236. typedef enum { X, Y } E; int f( E e ) { switch ( e ) { case X: return -1; case Y: return +1; } } In this example g++ produces a warning: e.cpp: In function ‘int f(E)’:

Re: [c++] switch ( enum ) vs. default statment.

2007-01-29 Thread Paweł Sikora
Mark Mitchell wrote: > For GCC, what happens (though we need not document it) is that the > value is converted to the underlying type -- but not masked down > to { 0, 1 }, because that masking would be costly. > So, "((int) e == 7)" may be true after the assignment above. > (Perhaps, in some mode

Re: Performance regression on the 4.3 branch?

2007-02-14 Thread Paweł Sikora
François-Xavier Coudert napisał(a): $ gcc -march=pentium4 -O3 a.c && time ./a.out 064069fbc13963b920219c3e939225e38e38e38e3956d81c71c71c71c0ba0f00 ./a.out 1.81s user 0.00s system 99% cpu 1.818 total $ gcc-4.3 -march=pentium4 -O3 a.c && time ./a.out 064069fbc13963b920219c3e939225e38e38e38e3956d8

Re: GCC 4.2.0 Status Report (2007-02-19)

2007-02-20 Thread Paweł Sikora
Richard Guenther napisał(a): On 2/20/07, Mark Mitchell <[EMAIL PROTECTED]> wrote: So, my feeling is that the best course of action is to set a relatively low threshold for GCC 4.2.0 and target 4.2.0 RC1 soon: say, March 10th. Then, we'll have a 4.2.0 release by (worst case, and allowing fo

Re: Import GCC 4.2.0 PRs

2007-03-12 Thread Paweł Sikora
On Monday 12 of March 2007 19:47:21 Mark Mitchell wrote: > * PR 29906 (Oliva) -- This is a crash during DWARF generation for a > small C++ test case. += PR 29202. ps). the PR 30052 (aliasing related) is still unconfirmed.

Re: GCC 4.2 RC2 Available

2007-05-02 Thread Paweł Sikora
On Tuesday 01 of May 2007 20:08:25 Mark Mitchell wrote: > GCC 4.2 RC2 is now available from: > > ftp://gcc.gnu.org/pub/gcc/prerelease-4.2.0-20070430 > > There is a known serious problem with RC2: Ada does not build. > Therefore, there will be an RC3 shortly. there're two more 4.2-only problems w

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

2011-06-22 Thread Paweł Sikora
On Monday, June 20, 2011 03:01:47 PM Jakub Jelinek wrote: > The first release candidate for GCC 4.6.1 is available from > > ftp://gcc.gnu.org/pub/gcc/snapshots/4.6.1-RC-20110620 > > and shortly its mirrors. It has been generated from SVN revision 175201. > > I have so far bootstrapped and tes

Re: Converting SIGSEGV etc. signals to exceptions

2011-08-20 Thread Paweł Sikora
On Saturday 20 of August 2011 14:51:44 sudhakar govindavajhala wrote: > Hi there, > > I am writing C++ code in Linux (2.6.18) using pthreads. glibc 2.5. gcc 4.1.2 > > 2) I would like to translate SIGSEGV or SIGFPE to an exception in the > program so that it can be caught at higher levels. Is th

Re: -mavx option

2012-01-26 Thread Paweł Sikora
On Thursday 26 of January 2012 09:52:22 Ulrich Drepper wrote: > 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 V

(un)aligned accesses on x86 platform.

2010-03-08 Thread Paweł Sikora
hi, during development a cross platform appliacation on x86 workstation i've enabled an alignemnt checking [1] to catch possible erroneous code before it appears on client's sparc/arm cpu with sigbus ;) it works pretty fine and catches alignment violations but Jakub Jelinek had told me (on glibc

Re: (un)aligned accesses on x86 platform.

2010-03-08 Thread Paweł Sikora
On Monday 08 March 2010 16:46:10 Richard Guenther wrote: > 2010/3/8 Paweł Sikora : > > hi, > > > > during development a cross platform appliacation on x86 workstation > > i've enabled an alignemnt checking [1] to catch possible erroneous > > code before it

[lto] elfutils-libelf-0.145 vs libelf-0.8.13?

2010-03-11 Thread Paweł Sikora
hi, i would like to ask why the LTO forces libelf-0.8.x in configure.ac? linux/unix distros have well tested elfutils-libelf subpackage, so what is the point in forcing new library? i've just built (with little hack) gcc/trunk with elfutils-libelf and lto works fine. BR, Pawel.

Re: [lto] elfutils-libelf-0.145 vs libelf-0.8.13?

2010-03-11 Thread Paweł Sikora
Dnia 11-03-2010 o 14:51:39 H.J. Lu napisał(a): checking for libelf/gelf.h... no checking for the correct version of libelf... yes I am using elfutils-libelf 0.145. ahh, right. i've accidentally used an older version 0.142 which libelf.h contains only: extern int elf_getshstrndx (Elf *__elf,

Re: Why not contribute? (to GCC)

2010-04-23 Thread Paweł Sikora
On Friday 23 April 2010 22:05:56 HyperQuantum wrote: > On Fri, Apr 23, 2010 at 9:58 PM, HyperQuantum wrote: > > On Fri, Apr 23, 2010 at 8:39 PM, Manuel López-Ibáñez > > > > wrote: > >> What reasons keep you from contributing to GCC? > > > > The lack of time, for the most part. > > I submitted

Re: Why not contribute? (to GCC)

2010-04-24 Thread Paweł Sikora
On Friday 23 April 2010 22:36:21 Manuel López-Ibáñez wrote: > (...). In the free-software world, you can actually help to fix it. > (...) we need more contributors. Wanna help? i haven't so much free time (c++work/family/studies) for learn internal gcc structures and non-trivial design to start f

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

2009-01-28 Thread Paweł Sikora
On Wednesday 28 of January 2009 17:39:39 Andrew Haley wrote: > Zoltán Kócsi wrote: > >> No, this is since C90; nothing has changed in this area. NULL > >> doesn't mean "address 0", it means "nothing". The C statement > >> > >> if (ptr) > >> > >> doesn't mean "if ptr does not point to address ze

Re: going from SunOS 5/SparcWorks -> Linux/gcc

2010-04-29 Thread Paweł Sikora
On Thursday 29 April 2010 20:35:23 Steven Bosscher wrote: > The standard 1st questions are: > 1) Did you compile with -Wall -Wextra and solve all warnings? > 2) Did you try with -fno-strict-aliasing? for legacy code, the '-fwrapv' could be helpful.

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

2014-04-17 Thread Paweł Sikora
Hi, the opt_random.h header includes unconditionally and breaks crytopp build (redefinition of _mm_shuffle_epi8 in cpu.h). could you please add #ifdef __SSSE3__ around this include? BR, Paweł. cpu.h @ cryptopp: (...) #if !defined(__GNUC__) || defined(__SSSE3__) || defined(__INTEL_COMPILER)

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

2014-04-17 Thread Paweł Sikora
W dniu 2014-04-17 12:13, Jonathan Wakely napisał(a): On 17 April 2014 10:38, Paweł Sikora wrote: Hi, the opt_random.h header includes unconditionally and breaks crytopp build (redefinition of _mm_shuffle_epi8 in cpu.h). could you please add #ifdef __SSSE3__ around this include? Do you

Re: weird optimization in sin+cos, x86 backend

2012-02-10 Thread Paweł Sikora
On Friday 10 of February 2012 13:30:25 James Courtier-Dutton wrote: > On 10 February 2012 10:42, Andrew Haley wrote: > > On 02/10/2012 10:07 AM, Richard Guenther wrote: > >> > >> The issue with libm in glibc here is that Drepper absolutely does > >> not want new ABIs in libm - he believes that for

Re: weird optimization in sin+cos, x86 backend

2012-02-10 Thread Paweł Sikora
On Friday 10 of February 2012 17:41:49 Andrew Haley wrote: > On 02/10/2012 05:31 PM, Paweł Sikora wrote: > > it would be also nice to see functions for reducing argument range in > > public api. > > finally the end-user can use e.g. sin(reduce(x)) to get the best precision &

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

2012-03-03 Thread Paweł Sikora
On Friday 02 of March 2012 14:44:45 Richard Guenther wrote: > > GCC 4.7.0 Release Candidate available from gcc.gnu.org > > The first release candidate for GCC 4.7.0 is available from > > ftp://gcc.gnu.org/pub/gcc/snapshots/4.7.0-RC-20120302 > > and shortly its mirrors. It has been generated f

Re: Prototype libatomic

2012-03-14 Thread Paweł Sikora
On Tuesday 13 of March 2012 17:02:01 Richard Henderson wrote: > So, I've got something put together. I think it should be fairly scalable. > As a test I've thrown in some ARM overrides. > > See > > git://repo.or.cz/gcc/rth.git rth/libatomic > > which is a gcc tree with a libatomic subdir. >

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

2012-03-19 Thread Paweł Sikora
On Wednesday 14 of March 2012 12:22:41 Richard Guenther wrote: > > GCC 4.7.0 Release Candidate available from gcc.gnu.org > > A second release candidate for GCC 4.7.0 is available from > > ftp://gcc.gnu.org/pub/gcc/snapshots/4.7.0-RC-20120314 > > and shortly its mirrors. It has been generated

Re: Switching to C++ by default in 4.8

2012-04-03 Thread Paweł Sikora
On Tuesday 03 of April 2012 13:37:50 Diego Novillo wrote: > > Concurrently with this, Lawrence and Ian are working on the C++ coding > guidelines. The draft is stored at http://gcc.gnu.org/wiki/CppConventions. what about using http://astyle.sourceforge.net/astyle.html for code checkers? what ab

Re: Switching to C++ by default in 4.8

2012-04-03 Thread Paweł Sikora
On Tuesday 03 of April 2012 13:51:56 Ian Lance Taylor wrote: > Paweł Sikora writes: > > > On Tuesday 03 of April 2012 13:37:50 Diego Novillo wrote: > >> > >> Concurrently with this, Lawrence and Ian are working on the C++ coding > >> guidelines. The dra

Re: Switching to C++ by default in 4.8

2012-04-10 Thread Paweł Sikora
On Tuesday 10 of April 2012 10:46:14 Jakub Jelinek wrote: > On Mon, Apr 09, 2012 at 04:34:32PM -0700, Xinliang David Li wrote: > > Class hierarchy is one such feature that is useful. Assuming we have > > two hierarchies for gcc: one for values rooted at ValExp, and one for > > gimple stmts rooted a

Re: Converting GCC to C++ - new branch cxx-conversion

2012-04-11 Thread Paweł Sikora
On Wednesday 11 of April 2012 12:35:18 Diego Novillo wrote: > I have created the SVN branch cxx-conversion to host all the > mini-projects aimed at exploring the C++ conversion. Everyone is > welcome to contribute to it. > > The branch has been configured to build in C++ mode by default. > > I h

Re: Switching to C++ by default in 4.8

2012-04-11 Thread Paweł Sikora
On Wednesday 11 of April 2012 11:43:36 Richard Guenther wrote: > > () The overloadable operator new means that memory can be > > _implicitly_ allocated in the right place. > > Implicit allocation is bad. In a compiler you want to _see_ where you > spend memory. in c++ you can overload new/delet

Re: C++98/C++11 ABI compatibility for gcc-4.7

2012-06-14 Thread Paweł Sikora
On Thursday 31 of May 2012 22:58:32 Jonathan Wakely wrote: > On 31 May 2012 22:39, Jonathan Wakely wrote: > > On 31 May 2012 22:35, James Y Knight wrote: > >> I understand that the ABI changes generally cannot be avoided, but a lot > >> of pain for a lot of people could be avoided by making things

Re: GCC stack backtraces

2012-08-29 Thread Paweł Sikora
On Wednesday 29 of August 2012 00:22:55 Ian Lance Taylor wrote: > I've spent the last couple of days working on a stack backtrace library. > > It uses the GCC unwind interface to collect a stack trace, and parses > DWARF debug info to get file/line/function information. (Of course it's > silly to

Re: GCC stack backtraces

2012-08-29 Thread Paweł Sikora
On Wednesday 29 of August 2012 11:37:07 Ian Lance Taylor wrote: > On Wed, Aug 29, 2012 at 1:07 AM, Paweł Sikora wrote: > > On Wednesday 29 of August 2012 00:22:55 Ian Lance Taylor wrote: > >> I've spent the last couple of days working on a stack backtrace library. > >

Re: 4.3.0-rc1 available

2008-02-22 Thread Paweł Sikora
On Friday 22 of February 2008 21:08:10 Guillermo Ballester Valor wrote: > ../../../native/jni/classpath/.libs/jcl.o -ljack -m32 -m32 -m32 > -Wl,-soname -Wl,libgjsmdssi.so -o .libs/libgjsmdssi.so > /usr/lib64/gcc/x86_64-suse-linux/4.2.1/../../../../x86_64-suse-linux/bin/ld >: skipping incompatib

executable stack in gcc shared libs?

2008-03-20 Thread Paweł Sikora
Hi all, I noticed (readelf -lW/grep) that some gcc libraries require executable stack: /usr/lib64/libffi.so.4.0.1 GNU_STACK 0x00 0x 0x 0x00 0x00 RWE 0x8 /usr/lib64/libgcj.so.8.0.0 GNU_STACK 0x00 0x000

Re: Shared library without dependence on libgcc_s.so

2008-06-06 Thread Paweł Sikora
6/6/2008, "Arne Steinarson" <[EMAIL PROTECTED]> napisał/a: >The shared libraries themselves still >have a dependency on libgcc_s.so: > > $ ldd libwx_gtk2ud_fwb_core-2.9.so.0 | grep gcc > libgcc_s.so.1 => /lib/libgcc_s.so.1 (0xb6ee8000) you can use the -nodefaultlibs and manually add what yo

Re: gcc-in-cxx branch created

2008-06-19 Thread Paweł Sikora
On Thursday 19 of June 2008 19:26:27 Ian Lance Taylor wrote: > Jens-Michael Hoffmann <[EMAIL PROTECTED]> writes: > >> No. I've flipped the branch to start compiling the source files in > >> gcc with C++. Unfortunately a number of issues will need to be > >> addressed before all the code will comp

Re: GCC 4.3.2 Status Report (2008-06-22)

2008-06-22 Thread Paweł Sikora
On Sunday 22 of June 2008 13:17:38 Joseph S. Myers wrote: > Status > == > > The GCC 4.3 branch is open for commits under normal release branch > rules. The 4.3.2 release is expected around 2008-08-06. > > Quality Data > > > Priority# Change from Last Report >

Re: How widely used are and ?

2007-10-29 Thread Paweł Sikora
On Friday 26 of October 2007 19:40:34 Joe Buck wrote: > Some programs try to isolate the details of where the headers are by > having one header with #ifdefs that, in turn, does the #include of > , but many others do not. I think you shouldn't care about implementation specific #include . I'm usi