[Bug c/36482] New: cris gcc 4.2.3 -Os causes internal compiler error (-O0 works)

2008-06-10 Thread hinko dot kocevar at cetrtapot dot si
This was created by a toolchain for cris architecture: gcc-4.2.3, uClibc-0.9.29, binutils-2.17 compiling openssl-0.9.8h. [EMAIL PROTECTED] /work/stage/openwrt2/build_dir/cris/openssl-0.9.8h/crypto/cast $ cris-linux-uclibc-gcc -I.. -I../.. -I../../include -fPIC -DOPENSSL_PIC -DZLIB_SHARED -DZLIB -

[Bug c/36482] cris gcc 4.2.3 -Os causes internal compiler error (-O0 works)

2008-06-10 Thread hinko dot kocevar at cetrtapot dot si
--- Comment #1 from hinko dot kocevar at cetrtapot dot si 2008-06-10 07:31 --- Created an attachment (id=15744) --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=15744&action=view) preprocessed source that caused the internal compiler error Created with: cris-linux-uclibc-gcc -I.. -I

[Bug c/36166] Use of the 'nonnull' attribute breaks code

2008-06-10 Thread pgut001 at cs dot auckland dot ac dot nz
--- Comment #1 from pgut001 at cs dot auckland dot ac dot nz 2008-06-10 07:48 --- This is actually a lot more serious than just a documentation issue (I've changed it from a doc issue to a gcc issue) in that the use of this annotation by the optimizer will break correctly-functioning co

[Bug c++/36483] New: Getting an address of a byte-aligned field declared as a bit-field should be allowed

2008-06-10 Thread yuri at tsoft dot com
gcc produces an error for the code below: bit-field.C:6: error: attempt to take address of bit-field structure member 'S::j' In this case field j is guaranteed to be byte-aligned. gcc shouldn't have such a rigid requirement that one can't get an address of any bit field variable but should allow

[Bug fortran/36476] ICE: len=* CHARACTER array with separate PARAMETER statement

2008-06-10 Thread walter dot zimmer at dlr dot de
--- Comment #2 from walter dot zimmer at dlr dot de 2008-06-10 08:11 --- The workaround works fine, many thanks! -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=36476

[Bug target/36450] ICE in insert_restore/insert_save with GET_MODE_ALIGNMENT mem

2008-06-10 Thread aldot at gcc dot gnu dot org
--- Comment #4 from aldot at gcc dot gnu dot org 2008-06-10 08:18 --- pristine trunk is also broken: sort.i:10318: internal compiler error: in insert_save, at caller-save.c:787 -- aldot at gcc dot gnu dot org changed: What|Removed |Added -

[Bug middle-end/36166] Use of the 'nonnull' attribute breaks code

2008-06-10 Thread pinskia at gcc dot gnu dot org
--- Comment #2 from pinskia at gcc dot gnu dot org 2008-06-10 08:25 --- No this is not a non documentation bug as non-null attribute says that the argument has to be non null to work correctly. So if you pass a NULL argument to the function, it will crash. So optimizing out the check fo

[Bug c++/36483] Getting an address of a byte-aligned field declared as a bit-field should be allowed

2008-06-10 Thread pinskia at gcc dot gnu dot org
--- Comment #1 from pinskia at gcc dot gnu dot org 2008-06-10 08:25 --- This is required by the C/C++ standards. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=36483

[Bug target/36482] cris gcc 4.2.3 -Os causes internal compiler error (-O0 works)

2008-06-10 Thread pinskia at gcc dot gnu dot org
-- pinskia at gcc dot gnu dot org changed: What|Removed |Added CC||pinskia at gcc dot gnu dot |

[Bug target/36484] New: g++ generates code with illegal instruction on Pentium D / x86_64

2008-06-10 Thread vincent at vinc17 dot org
To reproduce the bug, get MPFR trunk, compile with CC=g++ (with or without optimizations) and make check. The crash occurs on tprintf (and tsprintf and tfprintf). I could reproduce it with both g++-4.2 (GCC) 4.2.4 (Debian 4.2.4-2) g++.real (Debian 4.3.1-1) 4.3.1 No problem with gcc. (gdb) run

[Bug bootstrap/36481] gcc fails to build on Solaris x86 - it forgets the locations of libmpfr

2008-06-10 Thread pinskia at gcc dot gnu dot org
--- Comment #1 from pinskia at gcc dot gnu dot org 2008-06-10 08:52 --- Your configure line should not have LD_LIBRARY_PATH set. Also this works for me ... -- pinskia at gcc dot gnu dot org changed: What|Removed |Added

[Bug target/36484] g++ generates code with illegal instruction on Pentium D / x86_64

2008-06-10 Thread pinskia at gcc dot gnu dot org
--- Comment #1 from pinskia at gcc dot gnu dot org 2008-06-10 08:54 --- You should try out 4.3.1. Also this is not a good testcase, we need the preprocesed source that is producing the error with the exact command line that is used to compile that file. -- pinskia at gcc dot gnu dot

[Bug middle-end/36166] Use of the 'nonnull' attribute breaks code

2008-06-10 Thread pinskia at gcc dot gnu dot org
--- Comment #4 from pinskia at gcc dot gnu dot org 2008-06-10 09:07 --- The GCC attribute is an extension. What it is about is saying if it is NULL then the program/function will crash and is not expecting a NULL argument. So if you mark a function argument as non NULL, then the optimi

[Bug target/36484] g++ generates code with illegal instruction on Pentium D / x86_64

2008-06-10 Thread vincent at vinc17 dot org
--- Comment #2 from vincent at vinc17 dot org 2008-06-10 09:09 --- (In reply to comment #1) > You should try out 4.3.1. As I said, I could reproduce the problem with this version too (but there's a bug in gmp.h, so I was not sure). -- vincent at vinc17 dot org changed: W

[Bug middle-end/36166] Use of the 'nonnull' attribute breaks code

2008-06-10 Thread pgut001 at cs dot auckland dot ac dot nz
--- Comment #3 from pgut001 at cs dot auckland dot ac dot nz 2008-06-10 09:02 --- It's more than just a documentation bug, two different portions of gcc are interpreting this attribute in completely different ways, and the interaction between the two breaks otherwise perfectly valid cod

[Bug middle-end/36166] Use of the 'nonnull' attribute breaks code

2008-06-10 Thread pgut001 at cs dot auckland dot ac dot nz
--- Comment #5 from pgut001 at cs dot auckland dot ac dot nz 2008-06-10 09:15 --- >Think printf with %s where it is supplied with a NULL argument or puts >with a NULL argument. Sure, I understand how that part of it works, but gcc doesn't just use it for that, it applies two often mut

[Bug middle-end/36166] Use of the 'nonnull' attribute breaks code

2008-06-10 Thread pgut001 at cs dot auckland dot ac dot nz
--- Comment #7 from pgut001 at cs dot auckland dot ac dot nz 2008-06-10 09:27 --- >The developer of the API says that it must be non-NULL so when the developer >of the API then tests for NULLness he is either being stupid or really just >thinking that the user will not use it correctly

[Bug middle-end/36166] Use of the 'nonnull' attribute breaks code

2008-06-10 Thread pinskia at gcc dot gnu dot org
--- Comment #6 from pinskia at gcc dot gnu dot org 2008-06-10 09:19 --- >gcc doesn't just use it for that, it applies two often mutually exclusive >interpretations to the same > attribute. They are no mutually exclusive at all. Think of it is this way. The developer of the API says t

[Bug c++/36478] [4.3/4.4 regression] warning not emitted when code expanded from macro

2008-06-10 Thread rguenth at gcc dot gnu dot org
--- Comment #1 from rguenth at gcc dot gnu dot org 2008-06-10 09:50 --- Confirmed. -- rguenth at gcc dot gnu dot org changed: What|Removed |Added Status|UNCON

[Bug target/36484] g++ generates code with illegal instruction on Pentium D / x86_64

2008-06-10 Thread rguenth at gcc dot gnu dot org
--- Comment #3 from rguenth at gcc dot gnu dot org 2008-06-10 09:54 --- Waiting for a testcase. Also, can you show disassembly of the relevant region of code? -- rguenth at gcc dot gnu dot org changed: What|Removed |Added -

[Bug target/36079] [4.3/4.4 Regression] cld instruction is not emitted anymore.

2008-06-10 Thread cnstar9988 at gmail dot com
--- Comment #15 from cnstar9988 at gmail dot com 2008-06-10 10:07 --- I build gcc 4.3.1 with --with-cld ./src/configure --prefix=/opt/gcc-4.3.1 --with-gmp=/opt/gcc-4.3.1/gmp --with-mpfr=/opt/gcc-4.3.1/mpfr --enable-languages=c,c++ --disable-nls --enable-bootstrap --disable-shared --enabl

[Bug middle-end/36166] Use of the 'nonnull' attribute breaks code

2008-06-10 Thread rguenth at gcc dot gnu dot org
--- Comment #8 from rguenth at gcc dot gnu dot org 2008-06-10 09:56 --- This works as designed (and documented). Whether the design is the best possible one is another question. -- rguenth at gcc dot gnu dot org changed: What|Removed |Added --

[Bug c++/36483] Getting an address of a byte-aligned field declared as a bit-field should be allowed

2008-06-10 Thread rguenth at gcc dot gnu dot org
--- Comment #2 from rguenth at gcc dot gnu dot org 2008-06-10 09:51 --- The diagnostic is required by the standard. -- rguenth at gcc dot gnu dot org changed: What|Removed |Added -

[Bug c/36359] [Regression] compile error in linux-kernel 2.6.26-rc4 with -O2

2008-06-10 Thread bunk at stusta dot de
--- Comment #10 from bunk at stusta dot de 2008-06-10 10:11 --- Created an attachment (id=15745) --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=15745&action=view) Mirco's usbcore.o -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=36359

[Bug c/36359] [Regression] compile error in linux-kernel 2.6.26-rc4 with -O2

2008-06-10 Thread bunk at stusta dot de
--- Comment #11 from bunk at stusta dot de 2008-06-10 10:28 --- (In reply to comment #7) > Looking at http://www.readcode.org/code/linux-2.6.20/include/linux/log2.h it > seems that either the argument to ilog _is_ zero or the compiler thinks so. If you disassemble Mirco's usbcore.o you'

[Bug target/36473] Generate bit test (bt) instructions

2008-06-10 Thread uros at gcc dot gnu dot org
--- Comment #3 from uros at gcc dot gnu dot org 2008-06-10 10:30 --- Subject: Bug 36473 Author: uros Date: Tue Jun 10 10:29:36 2008 New Revision: 136615 URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=136615 Log: PR target/36473 * config/i386/i386.c (ix86_tune_fea

[Bug c/36359] [Regression] compile error in linux-kernel 2.6.26-rc4 with -O2

2008-06-10 Thread aldot at gcc dot gnu dot org
--- Comment #12 from aldot at gcc dot gnu dot org 2008-06-10 11:07 --- smallish testcase, fwiw. $ gcc -Wall -Wundef -Wstrict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -Werror-implicit-function-declaration -fno-stack-protector -mregparm=3 -freg-struct-return -mpreferred-

[Bug target/36079] [4.3/4.4 Regression] cld instruction is not emitted anymore.

2008-06-10 Thread rguenther at suse dot de
--- Comment #16 from rguenther at suse dot de 2008-06-10 10:56 --- Subject: Re: [4.3/4.4 Regression] cld instruction is not emitted anymore. On Tue, 10 Jun 2008, cnstar9988 at gmail dot com wrote: > --- Comment #15 from cnstar9988 at gmail dot com 2008-06-10 10:07 --- > I bu

[Bug c/36359] [Regression] compile error in linux-kernel 2.6.26-rc4 with -O2

2008-06-10 Thread aldot at gcc dot gnu dot org
--- Comment #13 from aldot at gcc dot gnu dot org 2008-06-10 11:20 --- should have been int argh(void) __attribute__((error ("dce?"))); works without __builtin_constant_p and fails even with -Os -ftree-dce -fweb -ftree-fre -ftree-pre pr36359.c: In function 'foo': pr36359.c:7: error: ca

[Bug driver/36485] New: gcc driver incorrectly assumes existence of $(prefix)/usr/lib

2008-06-10 Thread pluto at agmk dot net
i've configured gcc in this way: $ ./xgcc -B. -v Reading specs from ./specs Target: x86_64-gnu-linux Configured with: ../configure --target=x86_64-gnu-linux --with-arch=k8 --prefix=/local/devel/toolchain43/x86_64-gnu-linux --with-sysroot=/local/devel/toolchain43/x86_64-gnu-linux --libdir=/local/d

[Bug target/36484] g++ generates code with illegal instruction on Pentium D / x86_64

2008-06-10 Thread vincent at vinc17 dot org
--- Comment #4 from vincent at vinc17 dot org 2008-06-10 11:26 --- cmpb$42, -481(%rbp) je .L458 jmp .L456 .L463: cmpb$85, -481(%rbp) je .L461 cmpb$90, -481(%rbp) je .L462 jmp .L456 .L458:

[Bug middle-end/36166] Use of the 'nonnull' attribute breaks code

2008-06-10 Thread joseph at codesourcery dot com
--- Comment #9 from joseph at codesourcery dot com 2008-06-10 11:53 --- Subject: Re: Use of the 'nonnull' attribute breaks code On Tue, 10 Jun 2008, pgut001 at cs dot auckland dot ac dot nz wrote: > fully correct code suddenly breaks. In fact gcc seems to be doing the > opposite >

[Bug target/36484] g++ generates code with illegal instruction on Pentium D / x86_64

2008-06-10 Thread ubizjak at gmail dot com
--- Comment #5 from ubizjak at gmail dot com 2008-06-10 11:58 --- (In reply to comment #4) > vasprintf.c:1846: note: (so you should pass 'int' not 'mpfr_rnd_t' to > 'va_arg') > vasprintf.c:1846: note: if this code is reached, the program will abort > > I don't know if this is related,

[Bug target/36484] g++ generates code with illegal instruction on Pentium D / x86_64

2008-06-10 Thread vincent at vinc17 dot org
--- Comment #6 from vincent at vinc17 dot org 2008-06-10 12:37 --- OK, but shouldn't g++ generate a SIGABRT instead of a illegal instruction? I've never had thought that a compiler should generate an illegal instruction on purpose, so making me think that the problem comes from the compi

[Bug target/36484] g++ generates code with illegal instruction on Pentium D / x86_64

2008-06-10 Thread ubizjak at gmail dot com
--- Comment #7 from ubizjak at gmail dot com 2008-06-10 13:33 --- Here is a short explanation from config/i386/i386.md on this matter: --cut here-- ;; We used to use "int $5", in honor of #BR which maps to interrupt vector 5. ;; That, however, is usually mapped by the OS to SIGSEGV, whi

[Bug target/36484] g++ generates code with illegal instruction on Pentium D / x86_64

2008-06-10 Thread vincent at vinc17 dot org
--- Comment #8 from vincent at vinc17 dot org 2008-06-10 14:02 --- I agree about SIGSEGV. But what about abort()? Wouldn't this be cleaner? This builtin trap is quite similar to a failed assertion (often used to avoid undefined behavior), isn't it? -- http://gcc.gnu.org/bugzilla/sho

[Bug target/36484] g++ generates code with illegal instruction on Pentium D / x86_64

2008-06-10 Thread rguenth at gcc dot gnu dot org
--- Comment #9 from rguenth at gcc dot gnu dot org 2008-06-10 14:38 --- Calling abort() doesn't work with free-standing environments. To answer the other questions we still need a testcase. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=36484

[Bug c++/36486] New: g++ accepts code with ambiguous overloading

2008-06-10 Thread richard-gccbugzilla at metafoo dot co dot uk
g++ (at least versions 3.3.5, 3.4.4 and 4.1.1) accepts the following code, which I think is ill-formed: template struct F {}; template int f(R (C::*f)() const, const F &n = F()) { return 0; } // f0 template int f(const R &(C::*f)() const, const F &n = F()) { return 1; } // f1 struct X { const

[Bug c++/36486] g++ accepts code with ambiguous overloading

2008-06-10 Thread richard-gccbugzilla at metafoo dot co dot uk
--- Comment #1 from richard-gccbugzilla at metafoo dot co dot uk 2008-06-10 14:51 --- FWIW, Microsoft's recent compilers agree that this is ill-formed also. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=36486

[Bug target/36484] g++ generates code with illegal instruction on Pentium D / x86_64

2008-06-10 Thread vincent at vinc17 dot org
--- Comment #10 from vincent at vinc17 dot org 2008-06-10 14:52 --- (In reply to comment #9) > Calling abort() doesn't work with free-standing environments. OK, but how about using an illegal instruction with free-standing environments and abort() with hosted ones? After all, the abort(

[Bug target/36484] g++ generates code with illegal instruction on Pentium D / x86_64

2008-06-10 Thread vincent at vinc17 dot org
--- Comment #11 from vincent at vinc17 dot org 2008-06-10 15:21 --- Here's the testcase (I've never used va_list and so on myself, so I hope it is correct; at least it shows the missing warning problem). With gcc -Wall -std=c99 -Wc++-compat -pedantic -Wextra, I don't get any warning conc

[Bug target/36134] GCC creates suboptimal ASM : usage of ADDA.L where LEA could be used

2008-06-10 Thread gunnar at greyhound-data dot com
--- Comment #5 from gunnar at greyhound-data dot com 2008-06-10 15:24 --- (In reply to comment #4) > Could you please submit your patch to [EMAIL PROTECTED], including a > ChangeLog entry and stating how you tested it. > As requested I did send the email last week. Do you need anythin

[Bug c/36487] New: Generated 68K code bad for pipelining

2008-06-10 Thread gunnar at greyhound-data dot com
The code generation by GCC 4.4 (trunk) for 68K/Coldfire will run slow on the SuperScalar pipelines of the 68060 and Coldfire V4/V5 cores. if you compilining this example: uint32_t fletcher( uint16_t *data, size_t len ) { uint32_t sum1 = 0x, sum2 = 0x; while (len) {

[Bug testsuite/36285] gcc.dg/compat/struct-by-value-xxx improper test for AVR target

2008-06-10 Thread eric dot weddington at atmel dot com
--- Comment #3 from eric dot weddington at atmel dot com 2008-06-10 15:43 --- Fixed for 4.4.0. -- eric dot weddington at atmel dot com changed: What|Removed |Added

[Bug middle-end/36447] [4.4 Regression] simplify_subreg ICE with right shift more than length type AVR

2008-06-10 Thread eric dot weddington at atmel dot com
--- Comment #5 from eric dot weddington at atmel dot com 2008-06-10 15:43 --- Fixed for 4.4.0. -- eric dot weddington at atmel dot com changed: What|Removed |Added

[Bug c/36488] New: Generated 68K code bad for pipelining (case swap)

2008-06-10 Thread gunnar at greyhound-data dot com
+++ This bug was initially created as a clone of Bug #36487 +++ The code generation by GCC 4.4 (trunk) for 68K/Coldfire will run slow on the SuperScalar pipelines of the 68060 and Coldfire V4/V5 cores. if you compilining this example: uint32_t fletcher( uint16_t *data, size_t len ) { ui

[Bug target/25128] [m68k] Suboptimal comparisons against 65536

2008-06-10 Thread gunnar at greyhound-data dot com
--- Comment #2 from gunnar at greyhound-data dot com 2008-06-10 16:02 --- > Note that > > cmp.l #65535,%d0 > jbhi .L10 > > can be replaced with > > swap %d0 > tst.w %d0 > jbne .L10 > > A similar trick can be applied to signed comparisons as w

[Bug c/36489] New: Warning "initialized field overwritten" wrongly triggers with multidimensional arrays

2008-06-10 Thread smeuuh at gmail dot com
Hi, This code : int t[10][10] = { [1][2] = 1, [1][3] = 2 }; warns with "initialized field overwritten" under -Wextra with gcc 4.3.0, although it's perfectly valid. Antoine Levitt -- Summary: Warning "initialized field overwritten" wrongly trigge

[Bug c++/36490] New: Attempt to copy a temporary object during passing it to a function as a const reference

2008-06-10 Thread dervih at interia dot pl
gcc returns: niko.cpp: In function 'int gun()': niko.cpp:7: error: 'A::A(const A&)' is private niko.cpp:20: error: within this context when compiling: struct A { A() ; int fun() const ; private: A( const A& ) ; } ; int hun( const A& a ) { return a.fun()*4 ; } int gun() {

[Bug tree-optimization/30052] [4.2 Regression] points-to analysis slow and memory hungry

2008-06-10 Thread giovannibajo at libero dot it
--- Comment #60 from giovannibajo at libero dot it 2008-06-10 17:26 --- If a knowledgable GCC developer could suggest *any* workaround at -O1 for this bug in 4.2 (including disabling whatever alias analysys causes the problem), it might be proposed as a fix within distros at least. --

[Bug c/36491] New: Command line macro fails if definition contains spaces

2008-06-10 Thread schulz at adi dot com
Gcc 4.2.4 (also 4.2.3) built for Solaris versions 2.5.1, 8 and 10 does not handle a command line macro if the definition contains spaces. This was discovered while building Ghostscript. Following is an example. > gcc -DGX_COLOR_INDEX_TYPE="unsigned long long" test.c gcc: long: No such file or di

[Bug fortran/36492] New: incorrect error when compiling

2008-06-10 Thread clerman at fuse dot net
I'm using the latest trunk version of gfortran. File gcc-trunk-x86_64.tar.gz. Downloaded today, Tues., June 10, 2008. For this line of code: CHARACTER (MAX_FLD_HED, ASCIICharacterKind) :: DWFdHd(MAXFLD) = [(" ", i = 1, MAXFLD)] the compiler issues the following error message: Error: The CHAR

[Bug target/36450] ICE in insert_restore/insert_save with GET_MODE_ALIGNMENT mem

2008-06-10 Thread vmakarov at gcc dot gnu dot org
--- Comment #5 from vmakarov at gcc dot gnu dot org 2008-06-10 19:02 --- Subject: Bug 36450 Author: vmakarov Date: Tue Jun 10 19:01:37 2008 New Revision: 136638 URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=136638 Log: 2008-06-10 Vladimir Makarov <[EMAIL PROTECTED]>

[Bug target/36450] ICE in insert_restore/insert_save with GET_MODE_ALIGNMENT mem

2008-06-10 Thread aldot at gcc dot gnu dot org
--- Comment #6 from aldot at gcc dot gnu dot org 2008-06-10 19:34 --- Can you please also fix trunk? Thanks alot -- aldot at gcc dot gnu dot org changed: What|Removed |Added --

[Bug target/36028] [IRA] ICE in reload_cse_simplify_operands

2008-06-10 Thread aldot at gcc dot gnu dot org
--- Comment #6 from aldot at gcc dot gnu dot org 2008-06-10 19:42 --- Fixed on the IRA branch. -- aldot at gcc dot gnu dot org changed: What|Removed |Added St

[Bug tree-optimization/36493] New: [4.3/4.4 Regression] vectorizer aliasing bug

2008-06-10 Thread jsm28 at gcc dot gnu dot org
The following code aborts if built for i686-pc-linux-gnu with -msse2 -O3. extern void abort (void); int main (void) { int i; long x[12] __attribute__((aligned(16))); x[0] = 1; for (i = 0; i < 12; i++) x[i] = i; if (x[0] != 0) abort (); return 0; } The loop gets vectorized usin

[Bug driver/36491] Command line macro fails if definition contains spaces

2008-06-10 Thread pinskia at gcc dot gnu dot org
--- Comment #1 from pinskia at gcc dot gnu dot org 2008-06-10 20:18 --- Are you sure that your gcc program is not a shell script that calls the real gcc program. -- pinskia at gcc dot gnu dot org changed: What|Removed |Added --

[Bug driver/36491] Command line macro fails if definition contains spaces

2008-06-10 Thread schulz at adi dot com
--- Comment #2 from schulz at adi dot com 2008-06-10 20:45 --- I just checked and it is a shell script. I should have thought of that. Sorry for the noise. -- schulz at adi dot com changed: What|Removed |Added -

[Bug c/36494] New: Char arrays gets corrupted in avr programs.

2008-06-10 Thread martin at kfib dot org
I've seen this bug in 4.1.2, 4.2.0, 4.2.1, 4.2.2, 4.3.0 and 4.3.1 (and at least with the version 4.1.2 and 4.3.0 of the avr-gcc-c++-compiler). What happens is that when a char array gets a value assigned through a quoted string, the data gets corrupted (or lost) in the compilation, but if it's init

[Bug c++/36486] g++ accepts code with ambiguous overloading

2008-06-10 Thread peterbindels at gmail dot com
--- Comment #2 from peterbindels at gmail dot com 2008-06-10 21:32 --- It's still warning free on 4.3.1 (except with all turned on, when ti complains about unused parameters but nothing else). As far as I can tell the second template matches the subset of the matches for the first templ

[Bug target/36494] Char arrays gets corrupted in avr programs.

2008-06-10 Thread pinskia at gcc dot gnu dot org
-- pinskia at gcc dot gnu dot org changed: What|Removed |Added Severity|major |normal Component|c |target GCC ta

[Bug target/36450] ICE in insert_restore/insert_save with GET_MODE_ALIGNMENT mem

2008-06-10 Thread hjl dot tools at gmail dot com
--- Comment #7 from hjl dot tools at gmail dot com 2008-06-10 22:05 --- Please note that some mode alignments are the hard requirement. This problem will go away after stack branch is merged with trunk. -- hjl dot tools at gmail dot com changed: What|Removed

[Bug preprocessor/36453] PR36320 breaks boost

2008-06-10 Thread mueller at gcc dot gnu dot org
--- Comment #2 from mueller at gcc dot gnu dot org 2008-06-10 22:14 --- so the code should be changed to #elif defined(BOOST_PP_ITERATION_DEPTH) && BOOST_PP_ITERATION_DEPTH() == 1 ? it is confusing that #elif behaves more like "#if" and not like "#else\n#if" -- http://gcc.gnu.org

[Bug bootstrap/36481] gcc fails to build on Solaris x86 - it forgets the locations of libmpfr

2008-06-10 Thread david dot kirkby at onetel dot net
--- Comment #2 from david dot kirkby at onetel dot net 2008-06-10 22:37 --- Subject: Re: gcc fails to build on Solaris x86 - it forgets the locations of libmpfr pinskia at gcc dot gnu dot org wrote: > --- Comment #1 from pinskia at gcc dot gnu dot org 2008-06-10 08:52 > ---

[Bug c++/4131] The C++ compiler don't place a const class object to ".rodata" section with non trivial constructor

2008-06-10 Thread jorg dot brown at gmail dot com
--- Comment #20 from jorg dot brown at gmail dot com 2008-06-11 00:07 --- Interesting, but I'm not sure this can legally be done. Consider: struct POD { int x; int y; }; struct nonPOD { int x; int y; nonPOD(int xx, int yy) : x(xx), y(yy) { } }; I, for one, would love to se

[Bug testsuite/36440] [4.4 Regression] FAIL: g++.dg/cdce3.C on powerpc-apple-darwin8.5.0

2008-06-10 Thread kkojima at gcc dot gnu dot org
--- Comment #4 from kkojima at gcc dot gnu dot org 2008-06-11 01:27 --- Created an attachment (id=15746) --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=15746&action=view) patch >From the reports on gcc-testresults, cdce3.C fails on some other targets: arm-none-linux-gnueabi http:/

[Bug c++/4131] The C++ compiler don't place a const class object to ".rodata" section with non trivial constructor

2008-06-10 Thread pinskia at gcc dot gnu dot org
--- Comment #21 from pinskia at gcc dot gnu dot org 2008-06-11 02:17 --- Well if done correctly the compiler would see that nonpod.x was used for the initialization and inline it as zero :). So really this can be still done. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=4131

[Bug target/36494] Char arrays gets corrupted in avr programs.

2008-06-10 Thread hutchinsonandy at gcc dot gnu dot org
--- Comment #1 from hutchinsonandy at gcc dot gnu dot org 2008-06-11 02:35 --- Please post command line used to compile and assembler produced. I cannot reproduce this on 4.4 or 4.2.2. At high optimisation (-Os) it compiles to load PORTC with 3 directly. (as one would expect): 13

[Bug middle-end/36166] Use of the 'nonnull' attribute breaks code

2008-06-10 Thread pgut001 at cs dot auckland dot ac dot nz
--- Comment #10 from pgut001 at cs dot auckland dot ac dot nz 2008-06-11 03:47 --- >13. Unlike for C9X, the consensus at the London meeting was that there should >be no invention, without exception. Only those features that have a history >and are in common use by a commercial implement

[Bug fortran/36492] incorrect error when compiling

2008-06-10 Thread burnus at gcc dot gnu dot org
--- Comment #1 from burnus at gcc dot gnu dot org 2008-06-11 05:36 --- Can you post a *complete* example? I tried to create a program based on your single line, but here it simply works. I tried both (gfortran -v) 4.4.0 20080609 [trunk revision 136577] and 4.4.0 20080610 [trunk

[Bug target/36494] Char arrays gets corrupted in avr programs.

2008-06-10 Thread eric dot weddington at atmel dot com
and b[0] for equality with 0x3a) are true. This is with WinAVR 20080610 (4.3.0 + patches). Please give us more information to be able to reproduce the problem. -- eric dot weddington at atmel dot com changed: What|Removed |

[Bug libgomp/36469] bootstrap broken on HPUX PA

2008-06-10 Thread jakub at gcc dot gnu dot org
--- Comment #1 from jakub at gcc dot gnu dot org 2008-06-11 06:27 --- Subject: Bug 36469 Author: jakub Date: Wed Jun 11 06:27:04 2008 New Revision: 136650 URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=136650 Log: PR libgomp/36469 * configure.ac: Add AC_CHECK_FUN

[Bug c++/36408] [4.3/4.4 regression] ICE with statement expression in template

2008-06-10 Thread jakub at gcc dot gnu dot org
--- Comment #2 from jakub at gcc dot gnu dot org 2008-06-11 06:31 --- Subject: Bug 36408 Author: jakub Date: Wed Jun 11 06:30:55 2008 New Revision: 136651 URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=136651 Log: PR c++/36408 * semantics.c (stmt_expr_value_expr)

[Bug libgomp/36208] Boolean type discrepancy between gfortran and libgomp

2008-06-10 Thread jakub at gcc dot gnu dot org
--- Comment #1 from jakub at gcc dot gnu dot org 2008-06-11 06:44 --- This ought to be fixed on the trunk - BT_BOOL is the C _Bool type even in Fortran. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=36208

[Bug c++/36408] [4.3/4.4 regression] ICE with statement expression in template

2008-06-10 Thread jakub at gcc dot gnu dot org
--- Comment #3 from jakub at gcc dot gnu dot org 2008-06-11 06:48 --- Subject: Bug 36408 Author: jakub Date: Wed Jun 11 06:47:36 2008 New Revision: 136652 URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=136652 Log: PR c++/36408 * semantics.c (stmt_expr_value_expr)

[Bug libgomp/35881] OMP wrong results for omp_get_max_threads

2008-06-10 Thread jakub at gcc dot gnu dot org
--- Comment #4 from jakub at gcc dot gnu dot org 2008-06-11 06:48 --- Fixed on the trunk as part of the OpenMP 3.0 support. -- jakub at gcc dot gnu dot org changed: What|Removed |Added ---

[Bug libgomp/35644] omp_set_num_threads not working?

2008-06-10 Thread jakub at gcc dot gnu dot org
--- Comment #1 from jakub at gcc dot gnu dot org 2008-06-11 06:53 --- That's correct actually. omp_set_num_threads sets the NTHREADS_VAR ICV, i.e. something that will be used to determine the number of threads of the next #pragma omp parallel. omp_get_num_threads returns the number of th