[Bug pending/27092] New: Compiling a special asm-statment will fail if -O1 -fgcse is set.

2006-04-09 Thread gcc-bugzilla at gcc dot gnu dot org
NOTE: Defaulting component because reported component no longer exists When compile with gcc-3.4 -O1 -fgcse -c -o qemu-bug.o qemu-bug.c, there will be the error: [EMAIL PROTECTED]:~/src/qemu-bug$ gcc-3.4 -O1 -fgcse -c -o qemu-bug.o qemu-bug.c qemu-bug.c: In function `main': qemu-bug.c:2: error: in

[Bug c/27289] New: Gcc produces spurious -Wuninitialized warning compiling gdb

2006-04-24 Thread gcc-bugzilla at gcc dot gnu dot org
When building gdb with -Werror, the compile fails due to what looks like a spurious warning from using -Wuninitialized. I've reduced the testcase down to a minimal one, hopefully preserving the original cause of the warning. Environment: System: Linux puffer.diveadx.com 2.6.16-1.2069_FC4smp #1

[Bug other/27348] New: memcmp reads past end of strings

2006-04-28 Thread gcc-bugzilla at gcc dot gnu dot org
If you use memcmp to compare strings, it does not stop reading when it finds the terminating null byte of the shortest string, which can trigger an attempt to read unallocated memory. I'd recommend replacing instances of memcmp on strings with strncmp, which won't attempt to read past the end of

[Bug c++/27369] New: tree check ICE when attribute externally_visible used

2006-05-01 Thread gcc-bugzilla at gcc dot gnu dot org
When compiling a C++ program (for the AVR target) that defines interrupt vectors using the externally_visible attribute, I get this ICE message: avrlib/bits/atmega128_usart.cpp:20: internal compiler error: tree check: expected tree that contains 'decl minimal' structure, have 'omp_atomic' in eq_

[Bug target/27540] New: libgomp fails to configure on IRIX 5.3

2006-05-10 Thread gcc-bugzilla at gcc dot gnu dot org
Current mainline fails to bootstrap on IRIX 5.3: configure: error: Pthreads are required to build libgomp make[1]: *** [configure-target-libgomp] Error 1 Environment: System: IRIX lyra 5.3 11091812 IP22 mips host: mips-sgi-irix5.3 build: mips-sgi-irix5.3 target: mips-sgi-irix5.3 configured wi

[Bug c++/27813] New: ICE while building a public released package from source

2006-05-29 Thread gcc-bugzilla at gcc dot gnu dot org
I was trying to install the amule-2.0.3-r4 package from source in my gentoo linux. The package is public so if it could be a package error it should be reported on their web site, but it is not. I send this bug directly to you gcc-team, without interesting the gentoo forums, cause it is reproducib

[Bug libstdc++/27931] New: valgrind reports memleak when std::ios:sync_with_stdio(false)

2006-06-07 Thread gcc-bugzilla at gcc dot gnu dot org
A memory leak happens when std::ios::sync_with_stdio(false); valgrind: ... ==13644== ==13644== ERROR SUMMARY: 0 errors from 0 contexts (suppressed: 17 from 1) ==13644== malloc/free: in use at exit: 122,880 bytes in 6 blocks. ==13644== malloc/free: 6 allocs, 0 frees, 122,880 bytes allocated. ==136

[Bug ada/27936] New: gnatbind fails to link on Tru64 UNIX

2006-06-07 Thread gcc-bugzilla at gcc dot gnu dot org
Bootstrapping current mainline with Ada included fails on Tru64 UNIX V5.1B when linking gnatbind: /vol/gccsrc/obj/gcc-4.2.0-20060606/5.1b-gcc/./prev-gcc/xgcc -B/vol/gccsrc/obj/gcc-4.2.0-20060606/5.1b-gcc/./prev-gcc/ -B/vol/gcc/alpha-dec-osf5.1b/bin/ -g -O2 -DIN_GCC -W -Wall -Wwrite-strings -W

[Bug ada/27937] New: [4.2 Regression] Ada bootstrap failure on Solaris 10/x86

2006-06-07 Thread gcc-bugzilla at gcc dot gnu dot org
Bootstrapping mainline on Solaris 10/x86 (configured for i686-pc-solaris2.10 to work around the still unfixed PR target/26146) fails compiling several Ada files: /vol/gccsrc/obj/gcc-4.2.0-20060606/10-gcc-gas-amd64/./gcc/xgcc -B/vol/gccsrc/obj/gcc-4.2.0-20060606/10-gcc-gas-amd64/./gcc/ -B/vol/gcc/

[Bug boehm-gc/27963] New: [4.2 Regression] libjava fails to build if it isn't built by default

2006-06-08 Thread gcc-bugzilla at gcc dot gnu dot org
Trying to bootstrap mainline on IRIX 6.5 with java included failed since boehm-gc (which is required for libjava) isn't built: In file included from /vol/gcc/src/gcc-dist/libjava/include/jvm.h:25, from /vol/gcc/src/gcc-dist/libjava/include/java-interp.h:14, from

[Bug libgcj/28189] New: [4.1/4.2 Regression] Many libjava execution tests time out on Tru64 UNIX

2006-06-28 Thread gcc-bugzilla at gcc dot gnu dot org
Between 20050805 and 20060208, many libjava execution tests started to time out on Tru64 UNIX (both V4.0F and V5.1B), as can be seen comparing the following test results: http://gcc.gnu.org/ml/gcc-testresults/2005-08/msg00708.html http://gcc.gnu.org/ml/gcc-testresults/2006-02/msg00899.html While

[Bug libgcj/28190] New: [4.2 Regression] libjava bootstrap failure on IRIX 6.5: stdint.h misdetection

2006-06-28 Thread gcc-bugzilla at gcc dot gnu dot org
Since at least 20060503, libjava fails to bootstrap on IRIX 6.5.28: /vol/gccsrc/obj/gcc-4.2.0-20060616/6.5-gcc-java/./gcc/xgcc -shared-libgcc -B/vol/gccsrc/obj/gcc-4.2.0-20060616/6.5-gcc-java/./gcc -nostdinc++ -L/vol/gccsrc/obj/gcc-4.2.0-20060616/6.5-gcc-java/mips-sgi-irix6.5/32/libstdc++-v3/src

[Bug c/28233] New: internal compiler error: in make_decl_rtl, at varasm.c:752

2006-07-03 Thread gcc-bugzilla at gcc dot gnu dot org
An array of 64K labels triggers the error. Environment: System: FreeBSD FreeBSD.jphartmann.net 6.1-RELEASE FreeBSD 6.1-RELEASE #1: Sat Jun 17 11:51:42 CEST 2006 [EMAIL PROTECTED]:/usr/src/sys/i386/compile/KERNEL i386 host: i386-unknown-freebsd6.1 build: i386-unknown-freebsd6.1

[Bug target/28285] New: [4.2 Regression] duplicate case value in alpha_swapped_comparison operator

2006-07-06 Thread gcc-bugzilla at gcc dot gnu dot org
Bootstrapping current mainline on Tru64 UNIX fails in stage1 as of 20060705: gcc -c -g -fkeep-inline-functions -DIN_GCC -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wold-style-definition -Wmissing-format-attribute -fno-common -DHAVE_CONFIG_H -I. -I. -I/vol/gcc/src/gcc/

[Bug libstdc++/28290] New: [4.2 Regression] ICE during extc++.h pch generation on Tru64 UNIX V5.1B

2006-07-06 Thread gcc-bugzilla at gcc dot gnu dot org
Bootstrapping current mainline as of 20060705 fails on Tru64 UNIX V5.1B when trying to genererate the PCH file for extc++.h: /vol/gccsrc/obj/gcc-4.2.0-20060705/5.1b-gcc/./gcc/xgcc -shared-libgcc -B/vol/gccsrc/obj/gcc-4.2.0-20060705/5.1b-gcc/./gcc -nostdinc++ -L/vol/gccsrc/obj/gcc-4.2.0-20

[Bug libgomp/28296] New: libgomp fails to configure on Tru64 UNIX

2006-07-06 Thread gcc-bugzilla at gcc dot gnu dot org
libgomp just doesn't configure any more on Tru64 UNIX V5.1B: configure: error: Pthreads are required to build libgomp This is due to the last configure.ac change: 2006-07-05 Eric Christopher <[EMAIL PROTECTED]> * configure.ac: Depend addition of -pthread on host OS. * configu

[Bug target/28307] New: [4.1/4.2 Regression] pthread functions in libgcc not weak any more on Tru64 UNIX

2006-07-07 Thread gcc-bugzilla at gcc dot gnu dot org
While investigating the root cause of PR libgcj/28189, I noticed that both on the 4.1 branch and on mainline (where the libjava testsuite timeouts occur) the boehm-gc test had started failing as well (which easily goes unnoticed due to PR boehm-gc/11412): gctest fails like this: Key creation fail

[Bug libstdc++/28344] New: [4.2 Regression] Use of __alpha in tr1/random breaks Tru64 UNIX bootstrap

2006-07-11 Thread gcc-bugzilla at gcc dot gnu dot org
libstdc++ fails to bootstrap on Tru64 UNIX as of 20060710: /vol/gccsrc/obj/gcc-4.2.0-20060710/4.0f-gcc/./gcc/xgcc -shared-libgcc -B/vol/gccsrc/obj/gcc-4.2.0-20060710/4.0f-gcc/./gcc -nostdinc++ -L/vol/gccsrc/obj/gcc-4.2.0-20060710/4.0f-gcc/alpha-dec-osf4.0f/libstdc++-v3/src -L/vol/gccsrc/o

[Bug c/28368] New:

2006-07-12 Thread gcc-bugzilla at gcc dot gnu dot org
-std=c89 doesn't warn about gcc's "?:" extension Environment: System: Linux rho 2.6.15-1-amd64-k8 #2 Tue Mar 7 06:53:26 UTC 2006 x86_64 GNU/Linux Architecture: x86_64 host: x86_64-unknown-linux-gnu build: x86_64-unknown-linux-gnu target: x86_64-unknown-linux-gnu configured with: /mirror

[Bug tree-optimization/38405] New: Regression (silent failure) handling bitfield in ternary

2008-12-04 Thread gcc-bugzilla at gcc dot gnu dot org
In the context of a function returning int, and rfp->signed is a one-bit field, return rfp->signed_flag ? 1 : 0; yields -1. This is an optimization problem, seen with -O2 but not -O1. Isolated to -ftree-vrp. Not seen in gcc-4.3 or earlier. Environment: System: Li

[Bug c/38687] New: wrong-code in loop optimization

2009-01-01 Thread gcc-bugzilla at gcc dot gnu dot org
Example program works with option -O1, but not with -O2 Problem occurs with gcc 4.3.2 and 4.4.0, but not with 4.2.4 Environment: System: Linux andiunx 2.6.27-11-generic #1 SMP Fri Dec 19 16:29:52 UTC 2008 i686 GNU/Linux host: i686-pc-linux-gnu build: i686-pc-linux-gnu target: i68

[Bug c/40204] New: segfault with bitfields in structs

2009-05-19 Thread gcc-bugzilla at gcc dot gnu dot org
Compiling the following (nonsense but valid) code triggers an internal compiler error. Environment: System: Linux thanatos 2.6.26-2-686-bigmem #1 SMP Thu Mar 26 02:03:34 UTC 2009 i686 GNU/Linux How-To-Repeat: Compile the following: -- snip -- struct s {

[Bug c++/40512] New: Compilation stops on valid code with ICE

2009-06-21 Thread gcc-bugzilla at gcc dot gnu dot org
compile the attached code with the -std=c++0x flag. Environment: System: Linux x 2.6.26-2-686 #1 SMP Thu Mar 26 01:08:11 UTC 2009 i686 GNU/Linux host: i686-pc-linux-gnu build: i686-pc-linux-gnu target: i686-pc-linux-gnu configured with: ./configure --prefix=/home/x/gcc-4.4-20090616 --e

[Bug other/40736] New: Fix for err_bad_typedef.c libffi test failure

2009-07-13 Thread gcc-bugzilla at gcc dot gnu dot org
err_bad_typedef.c leads to a call to initialize_aggregate with arg->elemnts==NULL. This sets ptr on line 46 of libffi/src/prep_cif.c to NULL, which is then dereferenced on line 48. Environment: System: Linux dps 2.6.30.1-nofb #3 SMP PREEMPT Tue Jul 7 13:26:53 B

[Bug target/41021] New: [ARM] Suboptimal code generated to store a struct

2009-08-09 Thread gcc-bugzilla at gcc dot gnu dot org
A simple function to store a small struct ends up writing the struct to memory twice unnecessarily (plus writing it for real the third time). The function's args are passed in r0-r3 (with r1-r3 being the struct). It compiles to a sequence containing the following loads and stores, among others:

[Bug ada/24880] New: (Ada) Conversion of user-defined integer type with Size fixed causes crashes

2005-11-15 Thread gcc-bugzilla at gcc dot gnu dot org
Explicit conversion from a numeric integer Type to Integer causes a crash of gcc when the type is defined with a Size representation clause. The bug disappears if the representation clause is removed or if the range begins with 0. Environment: System: Linux simone 2.6.12.051101 #1 Tue Nov 1 17:19

[Bug target/24913] New: undocumented new CPU upgrade by -mpowerpc-gpopt overrides user-selected -mcpu= setting

2005-11-17 Thread gcc-bugzilla at gcc dot gnu dot org
The G4 PowerPC processor does not support the (full) GPOPT instruction set that can be activated with -mpowerpc-gpopt. The documentation is not explicitly clear on which (current) processors support this instruction set - or any of the other additional/extended/optional sets like those se

[Bug bootstrap/25002] New: build breaks if no `NAN'

2005-11-23 Thread gcc-bugzilla at gcc dot gnu dot org
This gcc version always requires that system have at least one floating value that is usable as `NAN' - in its own headers or specified in build configuration. In this system with this compiler it is not the case. Can not obtain `NAN' value at all. When trying to compute it dynamically, the pr

[Bug rtl-optimization/25130] New: 4.1: miscompilation in loop optimization

2005-11-27 Thread gcc-bugzilla at gcc dot gnu dot org
hi - The current gcc in the 4.1 branch (svn rev 107578) miscompiles the following source with -O3 -fno-strict-aliasing: --- // g++ -O3 -g -fno-strict-aliasing -o x x.cc inline void* operator new(unsigned, void* __p) thr

[Bug c/25334] New: The example for flexible array member doesn't work.

2005-12-09 Thread gcc-bugzilla at gcc dot gnu dot org
Using an example from the GCC documentation doesn't work. I don't know if the documentation is broken or the compiler. Environment: System: FreeBSD inchoate.localdomain 7.0-CURRENT FreeBSD 7.0-CURRENT #0: Sat Oct 8 10:25:52 CST 2005 root@:/usr/obj/usr/src/sys/INCHOATE i386 host: i386-portbld-fre

[Bug c/25350] New: Can't include mmintrin.h

2005-12-11 Thread gcc-bugzilla at gcc dot gnu dot org
when trying to include file mmintrin.h in any file, compilation fails with the following message: mmintrin.h: In function '_mm_add_si64': mmintrin.h:280: error: can't convert between vector values of different size mmintrin.h: In function '_mm_sub_si64': mmintrin.h:382: error: can't convert bet

[Bug fortran/25412] New: gfortran 4.0.2 seg fault

2005-12-14 Thread gcc-bugzilla at gcc dot gnu dot org
Segmentation fault: #gfortran4.0 -c wave.f90 wave.f90:80: internal compiler error: Segmentation fault I believe this worked under gfortran 4.0. Environment: System: Linux FUME.WPI.EDU 2.6.9-22.ELsmp #1 SMP Mon Sep 19 18:00:54 EDT 2005 x86_64 x86_64 x86_64 GNU/Linux Architecture: x86_64 host:

[Bug other/25551] New: gcov incorrect count for lone return in block

2005-12-23 Thread gcc-bugzilla at gcc dot gnu dot org
gcov incorrectly shows that a lone return statement inside a block has executed when in fact it has not Environment: System: Linux mercury.acucorp.com 2.4.18-27.8.0smp #1 SMP Fri Mar 14 07:13:13 EST 2003 i686 athlon i386 GNU/Linux Architecture: i686 host: i686-pc-linux-gnu build

[Bug bootstrap/25589] New: can not configure CFLAGS_FOR_TARGET

2005-12-28 Thread gcc-bugzilla at gcc dot gnu dot org
Flags that are passed to newly built gcc when compiling code for target system during are determined by value of `CFLAGS_FOR_TARGET' makefile variable as defined in top level `Makefile'. `CFLAGS' in that `Makefile' are passed on for use with old compiler used to bootstrap gcc. Can not configure

[Bug c/25682] New: ICE when using (int)(&((S*)0)->field) as array size

2006-01-05 Thread gcc-bugzilla at gcc dot gnu dot org
A 'field offset' macro which has worked so far (up to gcc-3.4.3) now causes an ICE. Environment: System: Linux suse2 2.4.19-64GB-SMP #1 SMP Mon Oct 21 18:48:05 UTC 2002 i686 unknown Architecture: i686 host: i686-pc-linux-gnu build: i686-pc-linux-gnu target: i686-pc-linux-gnu con

[Bug c++/25687] New: pwlib 1.8.7 does not build on alpha due with -Os

2006-01-05 Thread gcc-bugzilla at gcc dot gnu dot org
While building the pwlib package on alpha, the following problem occured: http://buildd.debian.org/fetch.php?&pkg=pwlib&ver=1.8.7-1&arch=alpha&stamp=1131832002&file=log&as=raw The build does involve a testrun after linking the library. This testrun is compiling and executin

[Bug pending/25870] New: GCC 3.4.5 java compiler bootstrap failure.

2006-01-19 Thread gcc-bugzilla at gcc dot gnu dot org
NOTE: Defaulting component because reported component no longer exists When list of languages has java (--enable-languages=c,c++,ada,f77,objc,java) passed then make bootstrap fails on java with the following error: Making all in gcj make[5]: Entering directory `/root/gcc-build/x86_64-slackware-lin

[Bug bootstrap/28469] New: stage2 error: toplev.c redefines floor_log2

2006-07-24 Thread gcc-bugzilla at gcc dot gnu dot org
When executing `make bootstrap', the following error occurs. stage1/xgcc -Bstage1/ -B/usr/local/i686-pc-linux-gnu/bin/ -O2 -g -fomit-frame-pointer -DIN_GCC -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -pedantic -Wno-long-long -Wno-variadic-macros -Wold-style-definition

[Bug c/28470] New: does not inline constant funargs

2006-07-24 Thread gcc-bugzilla at gcc dot gnu dot org
Observing it at least on stage 1 compiler, and exactly the same way as in 3.3.2. If inline function, later called a functional, is passed a function argument that is constant and inline, and said argument is called in the functional body, and when inline expansions are on, compiler expand inline

[Bug bootstrap/28472] New: -B$(build_tooldir)/bin/

2006-07-24 Thread gcc-bugzilla at gcc dot gnu dot org
Some targets in `gcc/Makefile.in' built while `make bootstrap' specify `-B$(build_tooldir)/bin/'. All of this is done when nothing from gcc being built is installed in that directory yet. What is installed there, if any, generally has nothing to do with gcc at all. It may easily be files from o

[Bug other/28700] New: does not fix broken linux/compiler-gcc+.h

2006-08-11 Thread gcc-bugzilla at gcc dot gnu dot org
System include file is broken as described in section. fixincludes does not create any modification of it, let alone fixed as described. Newly built gcc includes broken file when run. This may break just any program built with gcc, and does break compiling `toplev.c' with `stage1/xgcc' as desc

[Bug c/28814] New: ICE when compiling Stalin under 4.1 but not 4.0

2006-08-22 Thread gcc-bugzilla at gcc dot gnu dot org
Stalin is a Scheme compiler that generates C code. Stalin is itself written in C and can compile itself. I am preparing a new release of Stalin for Debian Etch. This release compiles with earlier versions of gcc, such as gcc-4.0, but not with gcc-4.1. It gives an ICE. The preprocessed source is

[Bug c/29309] New: Compiling an assembler-less file generates error from assembler

2006-10-01 Thread gcc-bugzilla at gcc dot gnu dot org
I'm trying to compile svgalib (http://www.svgalib.org/) on my FreeBSD/amd64 system. Although the package uses assembler in a few places, this can be disabled with the -DNO_ASSEMBLY flag. After the pre-processor there is no assembler code in the trouble-some

[Bug fortran/29321] New: optional arguments+derived types = segmentation fault

2006-10-02 Thread gcc-bugzilla at gcc dot gnu dot org
Compilation of functions/subroutines with optional derived type arguments gives segmentation fault. a.F90: In function 'func': a.F90:11: internal compiler error: Segmentation fault Please submit a full bug report, with preprocessed source if appropriate. See http://gcc.gnu.org/bugs.html> for i

[Bug c++/31289] New: gcc412 elides code in operator delete() override method

2007-03-20 Thread gcc-bugzilla at gcc dot gnu dot org
// BUG DEMO for gcc 4.1.2 (and 4.1.1) for 32-bit x86 // // If operator delete() is over-ridden in a base class, then // if the implementation of delete() stores into the storage used // by the object, the store seems to be removed by the compiler // (maybe because the compiler thinks stores to a d

[Bug target/31486] New: ICE with vector code when -mno-sse2 on amd64

2007-04-05 Thread gcc-bugzilla at gcc dot gnu dot org
Compilation of the attached code yields an ICE in certain cases. Environment: System: Linux chii 2.6.20 #3 SMP Sun Feb 11 23:52:47 EET 2007 x86_64 GNU/Linux Architecture: x86_64 host: x86_64-pc-linux-gnu build: x86_64-pc-linux-gnu target: x86_64-pc-linux-gnu configured with: ../src/conf

[Bug c++/31652] New: postfix increment semantics implemented incorrectly

2007-04-21 Thread gcc-bugzilla at gcc dot gnu dot org
g++ parses the code correctly and calls the correct overloaded increment operators, but in the wrong postfix order. The semantics of postfix are to take the rvalue before invoking the method. Note this is not related to multiple reference ordering between sequence points as the object is only re

[Bug libfortran/32977] New: [4.3 regression] All gfortran tests fail on Tru64 UNIX V4.0F: vsnprintf missing

2007-08-03 Thread gcc-bugzilla at gcc dot gnu dot org
As of 20070730, all gfortran tests fail on alpha-dec-osf4.0f: 25729:./PR19754_2.exe: /sbin/loader: Error: Unresolved symbol in /amnt/sequoia/export/vol/gcc/obj/alpha/gcc-4.3.0-20070730/4.0f-gcc/alpha-dec-osf4.0f/./libgfortran/.libs/libgfortran.so.3: vsnprintf 25729:./PR19754_2.exe: /sbin/loader:

[Bug c/33024] New: gcc allows negatively-sized arrays

2007-08-08 Thread gcc-bugzilla at gcc dot gnu dot org
By using an integer variable as the size of an array to be initialized on the stack, you can trick gcc into accepting and trying to create a negatively-sized array. The assembly it generates in such a case seems to indicate it really thinks it has a negatively-sized array. E

[Bug bootstrap/33306] New: [4.3 regression] Bootstrap failure on Tru64 UNIX V5.1B: ICE in convert_move, at expr.c:369

2007-09-04 Thread gcc-bugzilla at gcc dot gnu dot org
Bootstrapping current mainline as of 20070903 fails on alpha-dec-osf5.1b building the stage 1 libgcc: /vol/gccsrc/obj/gcc-4.3.0-20070903/5.1b-gcc/./gcc/xgcc -B/vol/gccsrc/obj/gcc-4.3.0-20070903/5.1b-gcc/./gcc/ -B/vol/gcc/alpha-dec-osf5.1b/bin/ -B/vol/gcc/alpha-dec-osf5.1b/lib/ -isystem /vol/gcc/a

[Bug c++/33468] New: C++: Invalid interpretation of friendness with nested classes

2007-09-18 Thread gcc-bugzilla at gcc dot gnu dot org
Gcc's friend-mechanism seems to expand to nested classes as well, although the C++ standard explicitly tells differently. The following example is almost straight from the C++ standard (11.4/2). The only change is that inheritance is commented out for class X (in order to remove the first error i

[Bug c/33519] New: Invalid code generated with a combination of thumb, AAPCS and -Os.

2007-09-21 Thread gcc-bugzilla at gcc dot gnu dot org
GCC generates odd code sequence.. Part of the source (full source in attachment): usbd_status usbd_do_request_flags_pipe(usbd_device_handle dev, usbd_pipe_handle pipe, usb_device_request_t *req, void *data, u_int16_t flags, int *actlen, u_int32_t timeout) { usbd_xfer_hand

[Bug c/19988] New: [4.0 Regression] pessimizes fp multiply-add/subtract combo

2005-02-15 Thread gcc-bugzilla at gcc dot gnu dot org
When I compile the following code with 'gcc -O3 --save-temps -c': double foo(double x, double y) { return ((x + 0.1234 * y) * (x - 0.1234 * y)); } gcc 3.x gives one load of the constant 0.1234, one multiplication 0.1234 * y, one addition, one subtraction, and the final multiplication: total

[Bug other/20055] New: Many source files are unnecessarily executable

2005-02-18 Thread gcc-bugzilla at gcc dot gnu dot org
I just noticed that many source files are unnecessarily marked executable. This needs to be fixed by someone with direct access to the CVS repository. The list below is pruned of anything which obviously needs to be executable,, like configure scripts etc. boehm-gc/AmigaOS.c boehm-gc/cord/de_win

[Bug c++/20062] New: hash_map leak memory

2005-02-18 Thread gcc-bugzilla at gcc dot gnu dot org
hash_map implementation of g++ extensions of STL leaks memory Environment: System: Linux rose 2.6.8-2004 #2 SMP Wed Nov 24 11:15:13 CET 2004 i686 GNU/Linux Architecture: i686 host: i486-pc-linux-gnu build: i486-pc-linux-gnu target: i486-pc-linux-gnu configured with: ../src/

[Bug fortran/20178] New: COMPLEX function returns incompatible with g77

2005-02-23 Thread gcc-bugzilla at gcc dot gnu dot org
A function returning a COMPLEX value cannot be compiled in g77 and called from gfortran (or vice versa) - doing so results in a segfault or incorrect results. (See test case below.) This is a problem, since for the near future g77 and gfortran are likely to coexist on many systems, and incompat

[Bug fortran/20179] New: cannot mix C and Fortran I/O

2005-02-23 Thread gcc-bugzilla at gcc dot gnu dot org
When calling a C library from a gfortran-compiled program, C stdio is only partially written. Ability to mix languages as needed is really important in many practical applications these days, so this would be nice to fix. I suspect that there is simply a missing fflush (or similar) somewhere, si

[Bug target/20263] New: Incorrect asm for global register vars on sparc64

2005-03-01 Thread gcc-bugzilla at gcc dot gnu dot org
Using a global variable tied to register g7 generates invalid assembly code on sparc64. Consider: register void *tp __asm__("%g7"); void set_tp() { tp = 0; } Compiling this file produces an error and a warning from the assembler: /usr/ccs/bin/as: "/var/tmp//ccLsIpQg.s"

[Bug debug/20268] New: g++ generates incomplete debug information for given testcase

2005-03-01 Thread gcc-bugzilla at gcc dot gnu dot org
It appears that g++ is generating incorrect scope debug information for inlined functions. One symptom of this is that addr2line will generate inconsistent results for the affected address ranges, showing the correct line information for the inlined function, but showing the function name as the

[Bug c/20272] New: AltiVec vector instructions fail unless compiled with -force_cpusubtype_ALL

2005-03-01 Thread gcc-bugzilla at gcc dot gnu dot org
On MacOS 10.3, when I compile Altivec programs that use certain builtins, in particular the vec_ste() function, specifying -faltivec and/or -mcpu=7400, gcc-4.1-20050227 gives me the following error: /var/tmp//ccpZcozX.s:16:lvx vector instruction is optional for the PowerPC (not allowed without

[Bug c++/20324] New: Tru64 assembler cores for 3.4.3 g++ -gcoff of #include

2005-03-04 Thread gcc-bugzilla at gcc dot gnu dot org
On a Tru64 alpha system, when I compile a file containing: #include using g++ 3.4.3 as follows: g++ -c -gcoff I get the following output: mips-tfile, /tmp//ccnFchPc.s:1071 compiler error, badly formed #.def (internal line # = 2812)

[Bug c++/20366] New: AIX g++ -D_LARGE_FILES fails to compile #include

2005-03-07 Thread gcc-bugzilla at gcc dot gnu dot org
The compiler's C++ headers do not appear to work properly on AIX when the compiler is run with -D_LARGE_FILES. This macro causes the system headers to #define symbols like fopen, while the C++ headers unconditionally #undef these symbols. Environment: System: AIX

[Bug target/20415] New: Vector init builtin produces invalid instruction pshufw

2005-03-10 Thread gcc-bugzilla at gcc dot gnu dot org
__builtin_ia32_vec_init_v4hi and __builtin_ia32_vec_init_v8qi produce the pshufw instruction when compiled with -O2 and any of the switches -mmmx, -m3dnow, -march=pentium-mmx, -march=pentium2, -march=k6, -march=k6-2, i.e. targeting CPUs which do not support SSE. Environment: System: Linux localho

[Bug c/20573] New: unable to use cast to suppress "warning: comparison is always false due to limited range of data type"

2005-03-20 Thread gcc-bugzilla at gcc dot gnu dot org
There doesn't seem to be an easy way to suppress this warning in a macro like #define MILL(in) ((in) > 100) where the macro may be passed different sizes of ints including shorts. I would have expected the warning to be suppressed when a cast is present like: #define MILL(in) ((int)(in) > 1000

[Bug c++/37087] New: Segfault on compiling template defined in wrong namespace.

2008-08-11 Thread gcc-bugzilla at gcc dot gnu dot org
G++ reports a segmentation fault when compiling the code below. Environment: System: Linux temporal.corp.google.com 2.6.18.5-gg34workstation-mixed64-32 #1 SMP Thu May 8 01:31:23 UTC 2008 x86_64 GNU/Linux Architecture: x86_64 host: i486-pc-linux-gnu build: i486-pc-linux-gnu target: i486-pc-linux-

[Bug preprocessor/37215] New: ICE on 'gcc -E -dM -fpreprocessed - < /dev/null'

2008-08-23 Thread gcc-bugzilla at gcc dot gnu dot org
Executing 'gcc -E -dM -fpreprocessed - < /dev/null' gives: :1: internal compiler error: Segmentation fault Please submit a full bug report, with preprocessed source if appropriate. See for instructions. Environment: System: L

[Bug pending/37879] New: g++: internal compiler error: Segmentation fault

2008-10-21 Thread gcc-bugzilla at gcc dot gnu dot org
NOTE: Defaulting component because reported component no longer exists ICE: Segmentation fault when compiling with an incorrect used __attribute__((noreturn)); Environment: System: Linux molybdaen 2.6.26-1-686 #1 SMP Wed Sep 10 16:46:13 UTC 2008 i686 GN U/Linux host: i486-pc-linux-gnu bui

[Bug java/38075] New: Scanner(System.in) causes next*() to behave incorrectly

2008-11-10 Thread gcc-bugzilla at gcc dot gnu dot org
When the below code (see How-To-Repeat) is compiled and run, the program waits for input after initializing the Scanner. That input is then returned to the first input.next() call, and each input.next() call returns the user input given during the previous call. Environment: System: Linux hybrid

[Bug c++/34977] New: GCC 3.4.6 link fails with undefined reference to .hidden symbol __floatdidf (libgcc.a)

2008-01-25 Thread gcc-bugzilla at gcc dot gnu dot org
Building Regina-REXX-3.4 from source distribution. The linker fails with the following error: /usr/local/bin/gcc -O2 -I/usr/local/include -pthreads -L/usr/local/lib -o execiser32 execiser.o -L. -lregina -lfl -lm -lnsl -lsocket -lcrypt -ldl -lpthread /usr/local/bin/ld: execiser32: hi

[Bug c++/35021] New: g++ fails to compile legal template code involving templatized methods

2008-01-29 Thread gcc-bugzilla at gcc dot gnu dot org
g++ is unable to compile a call to a templatized method from a template function that takes the class that contains the templatized methods as a template parameter. Environment: System: Linux bnell-deb4-64 2.6.18-4-amd64 #1 SMP Mon Mar 26 11:36:53 CEST 2007 x86_64 GNU/Linux Architecture: x86_64

[Bug libobjc/39465] New: libobjc does not find classes of DLLs

2009-03-15 Thread gcc-bugzilla at gcc dot gnu dot org
When building a program that uses an objc library as a DLL, libobjc can't find its classes. When the program and the library are statically linked, it works. My libobjc itself is linked as a static library. Environment: System: Linux asgard.webkeks.org 2.6.28.5 #1

[Bug target/41551] New: ia64: ICE: in instantiate_virtual_regs_in_insn, at function.c:1630

2009-10-02 Thread gcc-bugzilla at gcc dot gnu dot org
ICE on ia64 at -O1 and higher, seen with gcc 4.3 and 4.4 but not 4.2. % gcc -O -c t.c t.c: In function 'main': t.c:5:1: error: unrecognizable insn: (insn 5 4 6 3 t.c:3 (set (reg:DF 344) (unsigned_float:DF (reg/f:DI 328 sfp))) -1 (nil)) t.c:5:1: internal compiler error: in instantiate_virtu

[Bug c++/31816] New: If a function foo is defined before declaring a template class A, overloaded version of foo defined after the class declaration will not be available within class A.

2007-05-04 Thread gcc-bugzilla at gcc dot gnu dot org
Let us consider the following code: - void qHash(double) {} template struct QSet { void foo() { qHash(T()); } }; // void qHash(double) {} // ok if placed here void qHash(int*) {} int main() { QSet s; s.foo(); // ok QSet sp; sp.foo(); // do not compile, qHash(int*) is no

[Bug target/32264] New: gcc 4.2.0 compiled vanilla kernel 2.4.34.5 crashes when VIA C3 optimized -march=c3

2007-06-08 Thread gcc-bugzilla at gcc dot gnu dot org
When Linux vanilla kernel 2.4.34.5 is compiled with -march=c3 (VIA C3) - kernel crashes after boot on a VIA C3 .config: CONFIG_MCYRIXIII=y Environment: System: Linux bongo 2.4.34.5-ARXc3 COHERENT #9-ARX (Build 3359) Fri Jun 8 16:41:33 CEST 2007 i686 i686 i386 GNU/Linux Architectur

[Bug c++/32325] New: cc1plus ICE configuring libstdc++ on Tru64 UNIX V5.1B: SEGV in rtl_verify_flow_info

2007-06-13 Thread gcc-bugzilla at gcc dot gnu dot org
During a mainline bootstrap on alpha-dec-osf5.1b, the libstdc++ configure failed: checking for exception model to use... configure: error: unable to detect exception model make[1]: *** [configure-target-libstdc++-v3] Error 1 config.log reveals: configure:13794: checking for exception model to u

[Bug libfortran/32345] New: Unconditional snprintf use breaks all gfortran exec tests on Tru64 UNIX V4.0F

2007-06-14 Thread gcc-bugzilla at gcc dot gnu dot org
All gfortran execute tests fail on alpha-dec-osf4.0f since snprintf is missing in libc, but used in libgfortran. Environment: System: OSF1 hindemith V4.0 1229 alpha Machine: alpha host: alpha-dec-osf4.0f build: alpha-dec-osf4.0f target: alpha-dec-osf4.0f configured with: /vol/gcc/src/gcc-dist/co

[Bug pending/32403] New:

2007-06-19 Thread gcc-bugzilla at gcc dot gnu dot org
NOTE: Defaulting component because reported component no longer exists Environment: System: Linux marko2 2.6.15-28-686 #1 SMP PREEMPT Thu Feb 1 16:14:07 UTC 2007 i686 GNU/Linux Architecture: i686 host: i486-pc-linux-gnu build: i486-pc-linux-gnu target: m68hc11-unknown-none configured with: ../s

[Bug libgcj/32462] New: Linking libgcj.so fails on Solaris 10/x86

2007-06-22 Thread gcc-bugzilla at gcc dot gnu dot org
A mainline bootstrap as of 20070618 on Solaris 10/x86 with the bundled gas 2.15 fails to link libgcj.so: ld: fatal: relocation error: R_386_GOTOFF: file java/.libs/process-Posix.o: symbol java::lang::PosixProcess::queueLock: relocation must bind locally collect2: ld returned 1 exit status make[3]

[Bug libgcj/32465] New: Linking 64-bit libgcj.so fails on Solaris 10/x86: non-PIC code despite -fPIC

2007-06-22 Thread gcc-bugzilla at gcc dot gnu dot org
A mainline bootstrap as of 20070618 on Solaris 10/x86 with the bundled gas 2.15 and my patch to support boehm-gc for x86-64 http://gcc.gnu.org/ml/java-patches/2007-q2/msg00330.html fails when linking the 64-bit libgcj: [ca. 6800 lines omitted] gnu::gcj::runtime::FinalizerThread::finalizer_

[Bug libstdc++/32499] New: libstdc++ testsuite fails on platforms without ranlib

2007-06-25 Thread gcc-bugzilla at gcc dot gnu dot org
I noticed that the libstdc++ testsuite fails to run on mips-sgi-irix6.5 and mips-sgi-irix5.3:: ERROR: tcl error sourcing /vol/gcc/src/gcc-dist/libstdc++-v3/testsuite/libstdc++-abi/abi.exp. ERROR: could not link libtestc++.a while executing "error "could not link libtestc++.a"" (procedure

[Bug c/32536] New: wrong generated code on complex statement;

2007-06-28 Thread gcc-bugzilla at gcc dot gnu dot org
sample code: #include int main() { char cp[2]; cp[0] = 'A'; cp[1] = 'B'; printf("%x %x\n",cp[0],cp[1]); cp[0] ^= (cp[1]^=(cp[0]^=cp[1])); printf("%x %x\n",cp[0],cp[1]); return 0; } The complex byte swapping instruction is far fetched but seems legal. It actually swaps bytes if c

[Bug libgomp/32538] New: All libgomp tests fail to link on IRIX 6: copysignl undefined

2007-06-28 Thread gcc-bugzilla at gcc dot gnu dot org
All libgomp tests fail to link on IRIX 6: Executing on host: /vol/gcc/obj/gcc-4.3.0-20070622/6.5-gcc/gcc/xgcc -B/vol/gcc/obj/gcc-4.3.0-20070622/6.5-gcc/gcc/ /vol/gcc/src/gcc-dist/libgomp/testsuite/libgomp.fortran/appendix-a/a.16.1.f90 -B/vol/gcc/obj/gcc-4.3.0-20070622/6.5-gcc/mips-sgi-irix6.5/./

[Bug ada/32547] New: gnat.dg tasking tests fail on IRIX 5.3

2007-06-29 Thread gcc-bugzilla at gcc dot gnu dot org
All gnat.dg tasking tests FAIL on IRIX 5.3 since the platform lacks thread support: failed run-time assertion : Tasking not implemented on this configuration FAIL: gnat.dg/curr_task.adb execution test Instead of failing, the tests should be marked UNSUPPORTED as is done for ACATS. Environment:

[Bug ada/32548] New: gnat.dg tests for non-default multilib fail

2007-06-29 Thread gcc-bugzilla at gcc dot gnu dot org
When running the gnat.dg tests on multilib-targets (like sparc-sun-solaris2*, i386-pc-solaris2*, or mips-sgi-irix6*), most tests for a non-default multilib fail with confusing error messages: Running /vol/gcc/src/gcc/gcc/testsuite/gnat.dg/dg.exp ... Executing on host: /vol/gccsrc/obj/gcc-4.3.0-20

[Bug libgcj/32651] New: [4.2/4.3 regression] libjava fails to build on IRIX 6.5

2007-07-06 Thread gcc-bugzilla at gcc dot gnu dot org
On both the 4.2 branch and mainline, libjava fails to build on mips-sgi-irix6.5: * sysdeps_dir isn't set in configure.host, so the generic locks.h is used which just errors out * libgcj_interpreter is set to yes in the general mips-* clause in configure.host, but this cannot work for IRIX 6

[Bug libgcj/32652] New: [4.3 regression] libgcj fails to build with --disable-interpreter

2007-07-06 Thread gcc-bugzilla at gcc dot gnu dot org
Even with the fix for PR libgcj/32651 (which sets libgcj_interpreter=no), libgcj doesn't build on IRIX 6.5 (or any other platform) because several types and classes from java-interp.h are used even with INTERPRETER undefined. This is a regression from 4.1 and 4.2 and can easily be reproduced with

[Bug ada/32654] New: [4.2 regression] Ada comparison failure in exp_aggr.o on Tru64 UNIX V5.1B

2007-07-06 Thread gcc-bugzilla at gcc dot gnu dot org
Bootstrapping the current 4.2 branch on alpha-dec-osf5.1b with GCC 3.4 as the bootstrap compiler, I get a comparison failure in exp_aggr.o: Comparing stages 2 and 3 Bootstrap comparison failure! ./ada/exp_aggr.o differs make[2]: *** [compare] Error 1 There's only a minimal difference in the debu

[Bug bootstrap/32744] New: [4.3 regression] ICE in build2_stat, at tree.c:3077 bootstrapping on Tru64 UNIX

2007-07-12 Thread gcc-bugzilla at gcc dot gnu dot org
On both alpha-dec-osf4.0f and alpha-dec-osf5.1b, current mainline (as of r126588) fails to bootstrap: /vol/gccsrc/obj/gcc-4.3.0-20070712/4.0f-gcc/./gcc/xgcc -B/vol/gccsrc/obj/gcc-4.3.0-20070712/4.0f-gcc/./gcc/ -B/vol/gcc/alpha-dec-osf4.0f/bin/ -B/vol/gcc/alpha-dec-osf4.0f/lib/ -isystem /vol/gcc/a

[Bug bootstrap/32745] New: [4.3 regression] ICE in set_expression_vuses at tree-ssa-pre.c:265 on Solaris 10/SPARC

2007-07-12 Thread gcc-bugzilla at gcc dot gnu dot org
Bootstrapping mainline on sparc-sun-solaris2.10 as of r126588 fails building the sparcv9 stage2 libgcc: /vol/gccsrc/obj/gcc-4.3.0-20070712/10-gcc/./gcc/xgcc -B/vol/gccsrc/obj/gcc-4.3.0-20070712/10-gcc/./gcc/ -B/vol/gcc/sparc-sun-solaris2.10/bin/ -B/vol/gcc/sparc-sun-solaris2.10/lib/ -isystem /vol

[Bug c++/23730] New: ICE instead of reporting a call to a non existant member function

2005-09-05 Thread gcc-bugzilla at gcc dot gnu dot org
G++ dies instead of reporting a clear error message. This is a regression as compared to 3.3 I'm afraid I can't currently upgrade to 4.1, so I can't tell if this is still a problem... Environment: System: Linux nostromo 2.4.27-1-686 #1 Wed Dec 1 19:57:47 JST 2004 i686 GNU/Linux Architecture:

[Bug middle-end/23775] New: 4.1: wrong code in argument passing

2005-09-07 Thread gcc-bugzilla at gcc dot gnu dot org
On a i686 platform, the example below is miscompiled with -O1. I expect this program to print -0.96. Here's what it actually does: $ g++ -O1 -o y y.cc $ ./y -1.288766 $ g++ -o y y.cc $ ./y -0.96 $ The value that the optimized version prints is actually different on each run of the program

[Bug rtl-optimization/23810] New: missed 64-bit shift+mask optimizations on 32-bit arch

2005-09-10 Thread gcc-bugzilla at gcc dot gnu dot org
(Sources are from CVS as of about 6AM US/Eastern time today.) I'm testing out how well gcc optimizes some code for reversing bit strings. It appears that on x86 at least, double-word shifts followed by masks that zero out all the bits that crossed the word boundary are not optimized as well as

[Bug c++/24014] New: casting int to double with got wrong result

2005-09-22 Thread gcc-bugzilla at gcc dot gnu dot org
I've written an macro for log2 calculation to calculate the exponent of one value. Than I cast this value to from double to int. The 2 values double and int differs. example: log2(8) should be 3 but after casting to int its 2. This bug could be rep

[Bug fortran/24144] New: segmentation fault in gfortran with character functions.

2005-09-30 Thread gcc-bugzilla at gcc dot gnu dot org
When compiling the given peace of fortran code I will get a segmentation fault. With g77 there have been no problems on it. The problem is independent of the used optimization level. [EMAIL PROTECTED]:~/maint_gcc4/tools> /usr/local/bin/gfortran-4.0 -g -v -save-temps -c test.f Using built-in sp

[Bug c++/24164] New: Explicit instantiation of template has no effect.

2005-10-01 Thread gcc-bugzilla at gcc dot gnu dot org
Here are three files that illustrate the problem. Header file "t.hpp": namespace arrpp { template class A { public: A(); }; } File implementing class A, called t.cc: #include "t.hpp" template

[Bug target/24334] New: [4.0/4.1 regression] IRIX 6.5 bootstrap failure with SGI 7.4.3m ld: GOT overflow

2005-10-12 Thread gcc-bugzilla at gcc dot gnu dot org
Bootstrapping both the 4.0 branch as of 20050928 and mainline as of 20051004 fails on IRIX 6.5.26f with SGI ld from MIPSpro 7.4.3m: gcc -g -DENABLE_CHECKING -DENABLE_ASSERT_CHECKING -DIN_GCC -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wold-style-definition -DHAVE_CON

[Bug c++/24386] New: 4.1: wrong virtual function called in template member

2005-10-15 Thread gcc-bugzilla at gcc dot gnu dot org
The cvs head of g++ 4.1 miscompiles the following program: extern "C" int printf(...); struct A { virtual void foo () { printf ("A::foo\n"); } }; struct B : public A { virtual void foo () { printf ("B::foo\n"); } }; template void f(T

[Bug c++/2350] No warning for referencing a temporary

2005-10-15 Thread gcc-bugzilla at gcc dot gnu dot org
--- Comment #6 from neroden at gcc dot gnu dot org 2003-05-23 06:02 --- confirmed dupe. -- neroden at gcc dot gnu dot org changed: What|Removed |Added Status|

[Bug c++/4409] Internal Compiler Error

2005-10-15 Thread gcc-bugzilla at gcc dot gnu dot org
--- Comment #2 from from-classpath at savannah dot gnu dot org 2003-07-22 17:16 --- I've checked in a fix for this. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=4409

[Bug c++/8701] Internal compiler error in expand_call, at calls.c:3049

2005-10-15 Thread gcc-bugzilla at gcc dot gnu dot org
--- Comment #6 from bangerth at dealii dot org 2003-06-11 22:18 --- *** Bug 8240 has been marked as a duplicate of this bug. *** -- bangerth at dealii dot org changed: What|Removed |Added

  1   2   3   >