[Bug libstdc++/38340] New: Error in pthread.h

2008-12-01 Thread saravanan-2 dot krishnamoorthy-2 at cognizant dot com
Hi, I am facing an error in pthread.h while compiling my application using gcc 4.1.2. But I don't have any error if I compile same applicaiton using gcc 3.2.3. Can anyone help me? GCC Build: Using built-in specs. Target: i386-redhat-linux Configured with: ../configure --prefix=/usr --mandir=/usr

[Bug libmudflap/38339] libtool: compile: not configured to build any kind of library

2008-12-01 Thread gzp at gmx dot net
--- Comment #1 from gzp at gmx dot net 2008-12-01 08:03 --- Created an attachment (id=16796) --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=16796&action=view) config.log environment log.configure log.make Inside the files.tar you can find the following files: config.log environm

[Bug c/38341] New: Wrong warning comparison of promoted ~unsigned with unsigned

2008-12-01 Thread fredrik dot hederstierna at securitas-direct dot com
Compiler gives wrong warning for "comparison of promoted ~unsigned with unsigned" when compiling with ARM-ELF. Submit script for building arm-elf toolchain and testcode. Compilation using; arm-elf-gcc -c cast.c -W cast.c: In function 'test_cast': cast.c:13: warning: comparison of promoted ~unsig

[Bug c++/38342] New: __attribute__((__progmem__)) not propagated from typedef to data

2008-12-01 Thread westfw at yahoo dot com
The program source is trivial (yes, I've attached the .ii file as well): #include prog_uchar foo [10][10] = { 0 }; When compiled with g++ 4.3.0, this does not actually put the data in program space. BillW-MacOSX<1063> /Downloads/arduino-0012/hardware/tools/avr/bin/avr-g++ pgmspace.c -mmcu=at

[Bug c++/38342] __attribute__((__progmem__)) not propagated from typedef to data

2008-12-01 Thread westfw at yahoo dot com
--- Comment #1 from westfw at yahoo dot com 2008-12-01 09:16 --- Created an attachment (id=16797) --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=16797&action=view) output from g++ -v -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=38342

[Bug c++/38342] __attribute__((__progmem__)) not propagated from typedef to data

2008-12-01 Thread westfw at yahoo dot com
--- Comment #2 from westfw at yahoo dot com 2008-12-01 09:18 --- Created an attachment (id=16798) --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=16798&action=view) pgmspace.ii for the failing g++ compilation Actual compile command: /Downloads/arduino-0012/hardware/tools/avr/bin/av

[Bug c++/38342] __attribute__((__progmem__)) not propagated from typedef to data

2008-12-01 Thread westfw at yahoo dot com
--- Comment #3 from westfw at yahoo dot com 2008-12-01 09:20 --- Bug has been reproduced on at least two hosts. See also avrfreaks discussion: http://www.avrfreaks.net/index.php?name=PNphpBB2&file=viewtopic&p=515859#515859 -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=38342

[Bug c/38337] Wrong "is used uninitialized in this function" warning

2008-12-01 Thread rguenth at gcc dot gnu dot org
--- Comment #1 from rguenth at gcc dot gnu dot org 2008-12-01 09:45 --- works for me -- rguenth at gcc dot gnu dot org changed: What|Removed |Added Summary|Wro

[Bug middle-end/38338] [4.4 Regression] Compile abort when compiling code which used to work

2008-12-01 Thread rguenth at gcc dot gnu dot org
--- Comment #1 from rguenth at gcc dot gnu dot org 2008-12-01 09:47 --- This is a recent regression, r141893 works. -- rguenth at gcc dot gnu dot org changed: What|Removed |Added -

[Bug c++/38334] pmf accesses violate strict-aliasing rules

2008-12-01 Thread rguenth at gcc dot gnu dot org
--- Comment #2 from rguenth at gcc dot gnu dot org 2008-12-01 09:49 --- There's a pointer-adjustment in the original code (we just cprop a zero). If there was a suitable member forwprop should have re-constructed an access. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=38334

[Bug c/38343] New: ice for legal code with -O2

2008-12-01 Thread dcb314 at hotmail dot com
I just tried to compile the Suse Linux package MyODBC-unixODBC-3.51.26r1127-1.62 with the GNU C compiler version 4.4 snapshot 20081128. The compiler said gcc -DHAVE_CONFIG_H -I. -DNONTHREADSAFE -I/usr/include -O3 -DDBUG_OFF -I/usr/include/mysql -fmessage-length=0 -D_FORTIFY_SOURCE=2 -fstack-prote

[Bug c/38341] Wrong warning comparison of promoted ~unsigned with unsigned

2008-12-01 Thread rguenth at gcc dot gnu dot org
--- Comment #1 from rguenth at gcc dot gnu dot org 2008-12-01 10:01 --- /* Warn if two unsigned values are being compared in a size larger than their original size, and one (and only one) is the result of a `~' operator. This comparison will always fail. Also warn if o

[Bug c/38343] ice for legal code with -O2

2008-12-01 Thread dcb314 at hotmail dot com
--- Comment #1 from dcb314 at hotmail dot com 2008-12-01 10:01 --- Created an attachment (id=16799) --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=16799&action=view) C source code -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=38343

[Bug middle-end/38274] why the option "-fstack-protector-all" doesn't works?

2008-12-01 Thread zuogang at huawei dot com
--- Comment #2 from zuogang at huawei dot com 2008-12-01 10:13 --- (In reply to comment #1) > Works for me with the trunk on i386-darwin8.11: > [236:~] apinski% ~/local-gcc/bin/gcc t.c -fstack-protector-all > [236:~] apinski% ./a.out > ?,a:-1,b2 > *** stack smashing detected ***: term

[Bug other/38340] Error in pthread.h

2008-12-01 Thread paolo dot carlini at oracle dot com
--- Comment #1 from paolo dot carlini at oracle dot com 2008-12-01 10:34 --- Certainly nothing to do with the C++ runtime library. -- paolo dot carlini at oracle dot com changed: What|Removed |Added

[Bug c++/38342] __attribute__((__progmem__)) not propagated from typedef to data

2008-12-01 Thread j at uriah dot heep dot sax dot de
--- Comment #4 from j at uriah dot heep dot sax dot de 2008-12-01 10:37 --- Note that this is a GCC 4.3.x regression; GCC 4.2.x compiled the code the way expected. -- j at uriah dot heep dot sax dot de changed: What|Removed |Added

[Bug c/38343] ice for legal code with -O2

2008-12-01 Thread rguenth at gcc dot gnu dot org
--- Comment #2 from rguenth at gcc dot gnu dot org 2008-12-01 10:42 --- Reducing. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=38343

[Bug middle-end/38343] [4.4 Regression] ice for legal code with -O2

2008-12-01 Thread rguenth at gcc dot gnu dot org
--- Comment #3 from rguenth at gcc dot gnu dot org 2008-12-01 10:50 --- typedef struct myodbc3_err_str { char sqlstate[6]; } MYODBC3_ERR_STR; static MYODBC3_ERR_STR myodbc3_errors[] = { { "01000" } }; void myodbc_sqlstate2_init(void) { __builtin_stpcpy(myodbc3_errors[0].sqlstate,

[Bug target/38344] [4.3 Regression] bootstrap failure in libjava/link.cc (ICE in invariant_for_use)

2008-12-01 Thread rguenth at gcc dot gnu dot org
-- rguenth at gcc dot gnu dot org changed: What|Removed |Added Keywords||ice-on-valid-code Known to fail||4.3

[Bug target/38344] [4.3 Regression] bootstrap failure in libjava/link.cc (ICE in invariant_for_use)

2008-12-01 Thread rguenth at gcc dot gnu dot org
--- Comment #2 from rguenth at gcc dot gnu dot org 2008-12-01 11:06 --- Can you figure out which patch is the cause? -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=38344

[Bug target/38344] [4.3 Regression] bootstrap failure in libjava/link.cc (ICE in invariant_for_use)

2008-12-01 Thread doko at ubuntu dot com
--- Comment #3 from doko at ubuntu dot com 2008-12-01 11:08 --- doing this, but it will be slow ... -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=38344

[Bug target/38326] [4.3 regression] libjava build failure on ia64-linux-gnu

2008-12-01 Thread doko at ubuntu dot com
--- Comment #2 from doko at ubuntu dot com 2008-12-01 11:16 --- afaics no ia64 specific changes besides the proposed patch for pr27880 to configure --with-system-libunwind. trunk fails as well, build log at https://launchpad.net/ubuntu/+source/gcc-snapshot/20081130-0ubuntu1/+build/80075

[Bug target/38344] [4.3 regression] bootstrap failure in libjava/link.cc (ICE in invariant_for_use)

2008-12-01 Thread doko at ubuntu dot com
--- Comment #1 from doko at ubuntu dot com 2008-12-01 10:59 --- Created an attachment (id=16800) --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=16800&action=view) preprocessed source -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=38344

[Bug target/38344] New: [4.3 regression] bootstrap failure in libjava/link.cc (ICE in invariant_for_use)

2008-12-01 Thread doko at ubuntu dot com
seen with 4.3.3 20081029, seen the last successful bootstrap with 20081022, not seen on the trunk. /home/doko/gcc/4.3/java/gcj-4.3-4.3.2/build/gcc/cc1plus -quiet -nostdinc++ -v -g -O2 -Wswitch-enum -Wextra -Wall -version -fno-rtti -fnon-call-exceptions -fdollars-in-identifiers -fPIC link.ii Progr

[Bug c++/38345] New: redeclaration of name introduced in a condition

2008-12-01 Thread jwakely dot gcc at gmail dot com
The example in 6.4p3 is not diagnosed by GCC: if (int x = f()) { int x; // ill-formed, redeclaration of x } else { int x; // ill-formed, redeclaration of x } This compiles without warnings on every version of GCC I tried from 3.3 to 4.3 -- Summary: redeclaration of name introduc

[Bug rtl-optimization/33828] Issues with code hoisting implementation in gcse.c

2008-12-01 Thread steven at gcc dot gnu dot org
--- Comment #13 from steven at gcc dot gnu dot org 2008-12-01 12:24 --- After fixing the issue mentioned in comment#2 and comment #8, gcse.c hoisting hoists things too far up, e.g.: { pred ENTRY } BB1 if (...) goto BB2 else goto BB3 { succ BB2, BB3 } { pred BB1 } BB2 ... goto BB4 { suc

[Bug target/38254] [4.4 Regression] Revision 142160 causes PR27908 -O3

2008-12-01 Thread uros at gcc dot gnu dot org
--- Comment #4 from uros at gcc dot gnu dot org 2008-12-01 12:29 --- Subject: Bug 38254 Author: uros Date: Mon Dec 1 12:28:05 2008 New Revision: 142310 URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=142310 Log: Backport from mainline: 2008-11-25 Uros Bizjak <[

[Bug c/38341] Wrong warning comparison of promoted ~unsigned with unsigned

2008-12-01 Thread fredrik dot hederstierna at securitas-direct dot com
--- Comment #2 from fredrik dot hederstierna at securitas-direct dot com 2008-12-01 12:40 --- Then why dont we get warning on the first if-statement? Shouldnt these lines be equal? if (c1 == (unsigned char)(~c2)) { } if (u1 == (u8_t)(~u2)) { // THIS WILL GIVE WARNING } The fi

[Bug c/38341] Wrong warning comparison of promoted ~unsigned with unsigned

2008-12-01 Thread rguenth at gcc dot gnu dot org
--- Comment #3 from rguenth at gcc dot gnu dot org 2008-12-01 12:49 --- As I said, for the first case we optimize away the promotions before the warning code comes along. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=38341

[Bug c/38341] Wrong warning comparison of promoted ~unsigned with unsigned

2008-12-01 Thread fredrik dot hederstierna at securitas-direct dot com
--- Comment #4 from fredrik dot hederstierna at securitas-direct dot com 2008-12-01 12:55 --- Heres another example, then I do not think the warnings are due to optimization. I have same warnings with both -O0 and -O3. #include typedef unsigned char u8_t; void test_cast(unsigned ch

[Bug c/38346] New: NTPL pthread_create is thread safe ?

2008-12-01 Thread deadmaxfr at gmail dot com
Dears, I'm currently develop a multi-threaded application using GCC pthread (NTPL). My application start a thread who start another sub-thread. During the creation of the subthread, i invoke the pthread_cancel on the first thread. This result sometime a Sigfault (see the diagram bellow). Main t

[Bug c/38341] Wrong warning comparison of promoted ~unsigned with unsigned

2008-12-01 Thread fredrik dot hederstierna at securitas-direct dot com
--- Comment #5 from fredrik dot hederstierna at securitas-direct dot com 2008-12-01 13:35 --- On Intel i386-GCC (4.2.3) we just get warning only for the line if (c1 == ~c2) The other lines does not give warnings, so maybe its just the ARM-backend that catch this warning. I guess yo

[Bug middle-end/38347] New: [4.4 Regression] gfortran.dg/alloc_comp_constructor_1.f90 ICE with -O2 -fdefault-integer-8

2008-12-01 Thread dominiq at lps dot ens dot fr
On powerpc-apple-darwin9 at revision 142300, compiling gfortran.dg/alloc_comp_constructor_1.f90 with -O2 -fdefault-integer-8 gives and ICE: [karma] dominiq/test% gfc -O2 -fdefault-integer-8 /opt/gcc/gcc-4.4-work/gcc/testsuite/gfortran.dg/alloc_comp_constructor_1.f90 /opt/gcc/gcc-4.4-work/gcc/tes

[Bug middle-end/37908] atomic NAND op generate wrong code; __sync_nand_and_fetch, __sync_fetch_and_nand

2008-12-01 Thread uros at gcc dot gnu dot org
--- Comment #16 from uros at gcc dot gnu dot org 2008-12-01 13:50 --- Subject: Bug 37908 Author: uros Date: Mon Dec 1 13:48:52 2008 New Revision: 142313 URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=142313 Log: PR middle-end/37908 * config/alpha/alpha.c (alpha_

[Bug fortran/38324] Wrong lbound given to allocatable components

2008-12-01 Thread dominiq at lps dot ens dot fr
--- Comment #1 from dominiq at lps dot ens dot fr 2008-12-01 13:54 --- AFAICT this pr is the cause of half of the failures of gfortran.dg/alloc_comp_constructor_1.f90 on i686-apple-darwin9 with -fdefault-integer-8: FAIL: gfortran.dg/alloc_comp_constructor_1.f90 -O0 execution test FAIL

[Bug c++/38348] New: ICE from c_finish_omp_for

2008-12-01 Thread jakub at gcc dot gnu dot org
int a[10]; template void foo () { #pragma omp for for (int *p = a; p < a + 10; p++) ; } ICEs with -fopenmp, fold_convert is called with NULL second argument fro c_finish_omp_for. -- Summary: ICE from c_finish_omp_for Product: gcc Version: unknown

[Bug c++/38348] ICE from c_finish_omp_for

2008-12-01 Thread jakub at gcc dot gnu dot org
-- jakub at gcc dot gnu dot org changed: What|Removed |Added Status|UNCONFIRMED |ASSIGNED Ever Confirmed|0 |1 Last reco

[Bug c++/38348] [4.4 Regression] ICE from c_finish_omp_for

2008-12-01 Thread jakub at gcc dot gnu dot org
-- jakub at gcc dot gnu dot org changed: What|Removed |Added Summary|ICE from c_finish_omp_for |[4.4 Regression] ICE from |

[Bug preprocessor/38322] ICE in gcc.dg/cpp/trad/include.c -fno-show-column at -m32 and -m64

2008-12-01 Thread howarth at nitro dot med dot uc dot edu
--- Comment #2 from howarth at nitro dot med dot uc dot edu 2008-12-01 14:23 --- I don't see any c++ comments in the included system headers. Is there a way in gcc to dump the preprocessed source in a manner that won't parse out the comments? When I dropped the '-fno-show-column -tradi

[Bug rtl-optimization/38245] [4.4 Regression] stack corruption when a call is removed but not the outgoing argument pushes

2008-12-01 Thread jakub at gcc dot gnu dot org
--- Comment #6 from jakub at gcc dot gnu dot org 2008-12-01 14:36 --- Subject: Bug 38245 Author: jakub Date: Mon Dec 1 14:34:51 2008 New Revision: 142317 URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=142317 Log: PR rtl-optimization/38245 * tree-vrp.c (abs_exten

[Bug ada/37440] [4.4 Regression] GNAT Bug Box a-ngcefu.adb:397

2008-12-01 Thread joel at gcc dot gnu dot org
--- Comment #1 from joel at gcc dot gnu dot org 2008-12-01 14:39 --- Still broken: +===GNAT BUG DETECTED==+ | 4.4.0 20081126 (experimental) [trunk revision 142228] (arm-unknown-rtems4.10) GCC error:| | in find_valid_class, at reload.c:

[Bug c/38346] NTPL pthread_create is thread safe ?

2008-12-01 Thread rguenth at gcc dot gnu dot org
--- Comment #1 from rguenth at gcc dot gnu dot org 2008-12-01 14:44 --- This is not related to GCC. -- rguenth at gcc dot gnu dot org changed: What|Removed |Added

[Bug boehm-gc/38349] New: Error Building Ada (h8300)

2008-12-01 Thread joel at gcc dot gnu dot org
4.4.0 20081126 (experimental) [trunk revision 142228] /n/12/joel/test-gcc/b-gcc2-h8300/./gcc/xgcc -B/n/12/joel/test-gcc/b-gcc2-h8300/./gcc/ -nostdinc -B/n/12/joel/test-gcc/b-gcc2-h8300/h8300-rtems4.10/newlib/ -isystem /n/12/joel/test-gcc/b-gcc2-h8300/h8300-rtems4.10/newlib/targ-include -isystem /

[Bug c++/38348] [4.4 Regression] ICE from c_finish_omp_for

2008-12-01 Thread jakub at gcc dot gnu dot org
--- Comment #1 from jakub at gcc dot gnu dot org 2008-12-01 15:11 --- Subject: Bug 38348 Author: jakub Date: Mon Dec 1 15:10:25 2008 New Revision: 142318 URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=142318 Log: PR c++/38348 * c-omp.c (c_finish_omp_for): Only t

[Bug c++/38348] [4.4 Regression] ICE from c_finish_omp_for

2008-12-01 Thread jakub at gcc dot gnu dot org
--- Comment #2 from jakub at gcc dot gnu dot org 2008-12-01 15:14 --- Fixed. -- jakub at gcc dot gnu dot org changed: What|Removed |Added Status|ASSIGNED

[Bug ada/38349] Error Building Ada (h8300)

2008-12-01 Thread joel at gcc dot gnu dot org
--- Comment #1 from joel at gcc dot gnu dot org 2008-12-01 15:15 --- Ada not boehm-gc. Selected wrong box. -- joel at gcc dot gnu dot org changed: What|Removed |Added

[Bug target/38350] New: odd extra unused stack space/register allocated with asm

2008-12-01 Thread hp at gcc dot gnu dot org
For the attached code, there's no reason why the generated code at -O2 would need an unused stack-slot (a second with -march=v10, a first with -march=v32) when operand 5 (the last) of the asm is "g" than if it's "X". Using "X" seems a little awkward life-time-wise because the input is supposed to

[Bug target/38350] odd extra unused stack space/register allocated with asm

2008-12-01 Thread hp at gcc dot gnu dot org
--- Comment #1 from hp at gcc dot gnu dot org 2008-12-01 15:20 --- Created an attachment (id=16801) --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=16801&action=view) testcase Change the last constraint from g to X and compile with 4.3-branch r142284 with -O2 -march=v32 and -O2 -mar

[Bug target/38350] odd extra unused stack space/register allocated with asm

2008-12-01 Thread hp at gcc dot gnu dot org
-- hp at gcc dot gnu dot org changed: What|Removed |Added Status|UNCONFIRMED |ASSIGNED Ever Confirmed|0 |1 Last reconfi

[Bug rtl-optimization/33642] unrecognizable insn for -frtl-abstract-sequences

2008-12-01 Thread uros at gcc dot gnu dot org
--- Comment #32 from uros at gcc dot gnu dot org 2008-12-01 15:21 --- Subject: Bug 33642 Author: uros Date: Mon Dec 1 15:19:40 2008 New Revision: 142319 URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=142319 Log: PR rtl-optimization/33642 * gcc.c-torture/compile/

[Bug c++/38257] [4.4 regression] ICE with auto and #pragma omp parallel

2008-12-01 Thread jakub at gcc dot gnu dot org
--- Comment #1 from jakub at gcc dot gnu dot org 2008-12-01 15:28 --- Subject: Bug 38257 Author: jakub Date: Mon Dec 1 15:27:12 2008 New Revision: 142320 URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=142320 Log: PR c++/38257 * parser.c (cp_parser_omp_for_loop):

[Bug c++/38257] [4.4 regression] ICE with auto and #pragma omp parallel

2008-12-01 Thread jakub at gcc dot gnu dot org
--- Comment #2 from jakub at gcc dot gnu dot org 2008-12-01 15:30 --- Fixed. -- jakub at gcc dot gnu dot org changed: What|Removed |Added Status|ASSIGNED

[Bug middle-end/38338] [4.4 Regression] Compile abort when compiling code which used to work

2008-12-01 Thread hjl dot tools at gmail dot com
--- Comment #2 from hjl dot tools at gmail dot com 2008-12-01 15:35 --- It is caused by either revision 142115 or 142116. Revision 142116: http://gcc.gnu.org/ml/gcc-cvs/2008-11/msg00617.html is my first guess. -- hjl dot tools at gmail dot com changed: What|Removed

[Bug middle-end/38338] [4.4 Regression] Compile abort when compiling code which used to work

2008-12-01 Thread hjl dot tools at gmail dot com
--- Comment #3 from hjl dot tools at gmail dot com 2008-12-01 15:37 --- -fno-ira also failed: [EMAIL PROTECTED] rrs]$ ./142116/usr/bin/gcc -fPIC -m32 -S y.c -fno-ira y.c: In function âapply_charâ: y.c:11: error: unable to find a register to spill in class âQ_REGSâ y.c:11: error: this is

[Bug middle-end/38338] [4.4 Regression] Compile abort when compiling code which used to work

2008-12-01 Thread jakub at gcc dot gnu dot org
--- Comment #4 from jakub at gcc dot gnu dot org 2008-12-01 15:45 --- Yes, the problem is that eax, edx and ecx are live there (might be arguments) and ebx is reserved for PIC pointer, so at that spot is no QImode register available. I guess either my builtins.c change could be conditio

[Bug debug/37982] Extraneous DW_TAG_variable tag

2008-12-01 Thread swagiaal at redhat dot com
--- Comment #8 from swagiaal at redhat dot com 2008-12-01 16:12 --- > DW_AT_MIPS_linkage_name should be removed from GCC only after the DW_AT_name > scoping/qualification will get fully fixed. GDB currently already contains > the > DW_AT_MIPS_linkage_name reader and there is probably n

[Bug fortran/38351] New: poor error message

2008-12-01 Thread jv244 at cam dot ac dot uk
MODULE M1 TYPE T1 INTEGER :: I END TYPE T1 INTERFACE OPERATOR(+) MODULE PROCEDURE add END INTERFACE CONTAINS TYPE(T1) FUNCTION add(a,b) TYPE(T1), INTENT(IN) :: a,b END FUNCTION END MODULE M1 USE M1 TYPE(T1), DIMENSION(2,2) :: a,b a=a+b END > gfortran test.f90 test.f90:15.2: a=a+b

[Bug c++/37314] [4.2/4.3/4.4 Regression] seg violation

2008-12-01 Thread jason at gcc dot gnu dot org
--- Comment #16 from jason at gcc dot gnu dot org 2008-12-01 16:29 --- (In reply to comment #8) > Which I guess is invalid because the definition of Cdeque is not complete > at the time we bind iterator::pointer to Cdeque::pointer. This is not an issue because Cdeque::pointer is a membe

[Bug c/38352] New: cos() returns incorrect value in FE_UPWARD rounding mode

2008-12-01 Thread kruppaal at loria dot fr
The attached test case produces the erroneous value of -20763584.029346 for cos(2 * Pi / 4) when the rounding mode is set to FE_UPWARD, instead of the correct value (close to) 0. Other rounding modes do not show this error, compiling with optimization enabled (-O1, -O2 or -O3) or as a 32 bit binary

[Bug fortran/38291] Rejects I/O with POS= if FMT=*

2008-12-01 Thread jvdelisle at gcc dot gnu dot org
--- Comment #4 from jvdelisle at gcc dot gnu dot org 2008-12-01 16:32 --- > So the read statement by itself is invalid. ??? I was testing with and without the open statement in the test case and saw that we were not catching that error either. Regardless, the problem is that I was usi

[Bug c/38352] cos() returns incorrect value in FE_UPWARD rounding mode

2008-12-01 Thread kruppaal at loria dot fr
--- Comment #1 from kruppaal at loria dot fr 2008-12-01 16:33 --- Created an attachment (id=16802) --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=16802&action=view) Test case for incorrect value of cos() -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=38352

[Bug c/38352] cos() returns incorrect value in FE_UPWARD rounding mode

2008-12-01 Thread rguenth at gcc dot gnu dot org
--- Comment #2 from rguenth at gcc dot gnu dot org 2008-12-01 16:36 --- Not a GCC issue. And invalid anyway, C99 math always rounds to even. -- rguenth at gcc dot gnu dot org changed: What|Removed |Added ---

[Bug fortran/38291] Rejects I/O with POS= if FMT=*

2008-12-01 Thread burnus at gcc dot gnu dot org
--- Comment #5 from burnus at gcc dot gnu dot org 2008-12-01 16:40 --- (In reply to comment #4) > > > So the read statement by itself is invalid. > > ??? > > I was testing with and without the open statement in the test case and saw > that we were not catching that error either. Ah, yo

[Bug fortran/38351] poor error message

2008-12-01 Thread burnus at gcc dot gnu dot org
--- Comment #1 from burnus at gcc dot gnu dot org 2008-12-01 16:48 --- The best message other compilers had are: a) NAG f95: Error: fgjf.f90, line 15: No specific match for reference to operator + Error: fgjf.f90, line 15: Incompatible data types for the + operator

[Bug rtl-optimization/37514] [4.4 Regression] Wrong code generated for 20021120-1.c with -O3 -fomit-frame-pointer on sh4

2008-12-01 Thread hjl at gcc dot gnu dot org
--- Comment #9 from hjl at gcc dot gnu dot org 2008-12-01 17:04 --- Subject: Bug 37514 Author: hjl Date: Mon Dec 1 17:03:13 2008 New Revision: 142324 URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=142324 Log: 2008-12-01 Vladimir Makarov <[EMAIL PROTECTED]> PR rtl-opt

[Bug fortran/38353] New: Define statments in an include file are not preprocessed.

2008-12-01 Thread yonhan dot chong at rolls-royce dot com
Define statments in an include file are not preprocessed before a main file is compile. E.g. include "header.h" a=1.0 if (debug) print *,a #define debug .TRUE. -- Summary: Define statments in an include file are not preprocessed.

[Bug middle-end/38343] [4.4 Regression] ice for legal code with -O2

2008-12-01 Thread jakub at gcc dot gnu dot org
--- Comment #4 from jakub at gcc dot gnu dot org 2008-12-01 17:35 --- The bug is in expand_builtin_stpcpy, where it doesn't handle COMPOUND_EXPRs resulting from build_call_expr as other routines do. -- jakub at gcc dot gnu dot org changed: What|Removed

[Bug c/38337] Wrong "is used uninitialized in this function" warning

2008-12-01 Thread yakov at emc dot com
--- Comment #2 from yakov at emc dot com 2008-12-01 18:16 --- Subject: Re: Wrong "is used uninitialized in this function" warning Richard, it work for me too if T_SRS_ID would be modified typedef struct S_SPS_ID { unsigned char dir; unsigned char loop; unsigned char dae_idx;

[Bug target/37364] [4.4 Regression] IRA generates inefficient code due to missing regmove pass

2008-12-01 Thread ubizjak at gmail dot com
--- Comment #30 from ubizjak at gmail dot com 2008-12-01 18:26 --- (In reply to comment #29) > Other compilers do this kind of transformation via reverse copy propagation. > GCC could perhaps add something like that too, when it transforms a 3-address > insn to a 2-address insn. Will

[Bug libstdc++/38244] [4.4 Regression] bitset initialization from 0 rejected.

2008-12-01 Thread cgd at google dot com
--- Comment #8 from cgd at google dot com 2008-12-01 18:30 --- (re: my last comment on 11/24: I see you added the test case in the original commit! Sorry, didn't notice that! Thanks much for resolving the issue.) -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=38244

[Bug middle-end/38338] [4.4 Regression] __builtin_apply causes an ICE on x86

2008-12-01 Thread pinskia at gcc dot gnu dot org
--- Comment #5 from pinskia at gcc dot gnu dot org 2008-12-01 18:56 --- /me wishes __builtin_apply would just go away. -- pinskia at gcc dot gnu dot org changed: What|Removed |Added --

[Bug c++/38345] redeclaration of name introduced in a condition

2008-12-01 Thread pinskia at gcc dot gnu dot org
--- Comment #1 from pinskia at gcc dot gnu dot org 2008-12-01 19:02 --- I think this is a dup of bug 18770. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=38345

[Bug fortran/38252] [4.4 Regression] Empty function with CONTAINS triggers Internal Error

2008-12-01 Thread mikael at gcc dot gnu dot org
--- Comment #6 from mikael at gcc dot gnu dot org 2008-12-01 19:32 --- Subject: Bug 38252 Author: mikael Date: Mon Dec 1 19:30:55 2008 New Revision: 142327 URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=142327 Log: 2008-12-01 Mikael Morin <[EMAIL PROTECTED]> PR fortr

[Bug rtl-optimization/37514] [4.4 Regression] Wrong code generated for 20021120-1.c with -O3 -fomit-frame-pointer on sh4

2008-12-01 Thread vmakarov at gcc dot gnu dot org
--- Comment #10 from vmakarov at gcc dot gnu dot org 2008-12-01 19:33 --- Subject: Bug 37514 Author: vmakarov Date: Mon Dec 1 19:31:41 2008 New Revision: 142328 URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=142328 Log: 2008-12-01 Vladimir Makarov <[EMAIL PROTECTED]>

[Bug fortran/38353] Define statments in an include file are not preprocessed.

2008-12-01 Thread dfranke at gcc dot gnu dot org
--- Comment #1 from dfranke at gcc dot gnu dot org 2008-12-01 19:42 --- http://gcc.gnu.org/onlinedocs/gfortran/Preprocessing-and-conditional-compilation.html "If a preprocessed file includes another file with the Fortran INCLUDE statement, the included file is not preprocessed. To prepr

[Bug fortran/38252] [4.4 Regression] Empty function with CONTAINS triggers Internal Error

2008-12-01 Thread mikael at gcc dot gnu dot org
--- Comment #7 from mikael at gcc dot gnu dot org 2008-12-01 19:52 --- I hope one day I'll be able to commit properly. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=38252

[Bug fortran/38252] [4.4 Regression] Empty function with CONTAINS triggers Internal Error

2008-12-01 Thread mikael at gcc dot gnu dot org
--- Comment #8 from mikael at gcc dot gnu dot org 2008-12-01 19:53 --- Subject: Bug 38252 Author: mikael Date: Mon Dec 1 19:52:15 2008 New Revision: 142331 URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=142331 Log: 2008-12-01 Mikael Morin <[EMAIL PROTECTED]> PR fortr

[Bug middle-end/38347] [4.4 Regression] gfortran.dg/alloc_comp_constructor_1.f90 ICE with -O2 -fdefault-integer-8

2008-12-01 Thread pinskia at gcc dot gnu dot org
--- Comment #1 from pinskia at gcc dot gnu dot org 2008-12-01 20:23 --- This works on PPC64-linux with revision 141772. GNU Fortran (GCC) version 4.4.0 2008 (experimental) [trunk revision 141772] (powerpc64-unknown-linux-gnu) I don't have anything newer right now though, I will try

[Bug middle-end/38338] [4.4 Regression] __builtin_apply causes an ICE on x86

2008-12-01 Thread jakub at gcc dot gnu dot org
-- jakub at gcc dot gnu dot org changed: What|Removed |Added AssignedTo|unassigned at gcc dot gnu |jakub at gcc dot gnu dot org |dot org

[Bug c/38354] New: Spurious error: initializer element is not computable at load time

2008-12-01 Thread gnu at behdad dot org
The following code is from gcc docs and works as expected: #include int main (int argc, char **argv) { static const int array[] = { &&foo-&&foo, &&bar-&&foo, &&hack-&&foo }; int i = argc - 1; goto *(array[i]+&&foo); foo: printf ("foo\n"); return 0; bar: printf ("bar\n"); return

[Bug tree-optimization/23286] missed fully redundant expression

2008-12-01 Thread steven at gcc dot gnu dot org
--- Comment #24 from steven at gcc dot gnu dot org 2008-12-01 22:00 --- Created an attachment (id=16803) --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=16803&action=view) patch to implement code hoisting in tree-ssa-pre.c This passes bootstrap+testing on ia64-linux and amd64-linux.

[Bug middle-end/38204] PRE for post dominating expressions

2008-12-01 Thread steven at gcc dot gnu dot org
--- Comment #4 from steven at gcc dot gnu dot org 2008-12-01 22:12 --- davidxl, my latest patch to bug 23286 (tree-hoist_v3.diff) makes PRE in tree-ssa-pre.c code-size aware. I have tested this with CSiBE on mips-unknown-elf. Without the patch, code size at -Os with PRE enabled is ~17%

[Bug tree-optimization/38355] New: ICE with -fipa-struct-reorg / -fipa-pta

2008-12-01 Thread debian-gcc at lists dot debian dot org
[forwarded from http://bugs.debian.org/PR498708] seen with 4.3 branch and trunk 20081130, building without -fipa-struct-reorg works. $ g++ -O3 -fwhole-program -fipa-struct-reorg xx.cc xx.cc:289: internal compiler error: Segmentation fault Please submit a full bug report, with preprocessed source

[Bug tree-optimization/38355] ICE with -fipa-struct-reorg / -fipa-pta

2008-12-01 Thread debian-gcc at lists dot debian dot org
--- Comment #1 from debian-gcc at lists dot debian dot org 2008-12-01 22:50 --- Created an attachment (id=16804) --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=16804&action=view) preprocessed source -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=38355

[Bug tree-optimization/38355] ICE with -fipa-struct-reorg / -fipa-pta

2008-12-01 Thread pinskia at gcc dot gnu dot org
--- Comment #2 from pinskia at gcc dot gnu dot org 2008-12-01 22:54 --- -fipa-pta does nothing ... -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=38355

[Bug tree-optimization/38355] ICE with -fipa-struct-reorg / -fipa-pta

2008-12-01 Thread pinskia at gcc dot gnu dot org
--- Comment #3 from pinskia at gcc dot gnu dot org 2008-12-01 22:55 --- *** This bug has been marked as a duplicate of 32305 *** -- pinskia at gcc dot gnu dot org changed: What|Removed |Added --

[Bug c++/32305] ICE in initialize_flags_in_bb with -O -fipa-pta

2008-12-01 Thread pinskia at gcc dot gnu dot org
--- Comment #9 from pinskia at gcc dot gnu dot org 2008-12-01 22:55 --- *** Bug 38355 has been marked as a duplicate of this bug. *** -- pinskia at gcc dot gnu dot org changed: What|Removed |Added ---

[Bug c++/32305] ICE in initialize_flags_in_bb with -O -fipa-pta

2008-12-01 Thread steven at gcc dot gnu dot org
--- Comment #10 from steven at gcc dot gnu dot org 2008-12-01 23:04 --- With so many dups, IMHO this ought to be fixed for the releases... -- steven at gcc dot gnu dot org changed: What|Removed |Added ---

[Bug c++/38232] [4.4 Regression] "value-initialization of reference" warning too strict

2008-12-01 Thread cgd at google dot com
--- Comment #4 from cgd at google dot com 2008-12-01 23:28 --- Decided to try to verify again with current head of trunk compiler (since several other bugs I reported have been fixed, and one was related to value initialization). gcc version 4.4.0 20081201 (experimental) (GCC

[Bug c/38354] Spurious error: initializer element is not computable at load time

2008-12-01 Thread jakub at gcc dot gnu dot org
--- Comment #1 from jakub at gcc dot gnu dot org 2008-12-01 23:33 --- What's the rationale for using a pointer type for something that is integral (difference of 2 pointers)? I don't see why we should support that as a valid constant initializer. -- http://gcc.gnu.org/bugzilla/show_

[Bug c/38354] Spurious error: initializer element is not computable at load time

2008-12-01 Thread gnu at behdad dot org
--- Comment #2 from gnu at behdad dot org 2008-12-01 23:38 --- It's not a useful use case, agreed, but I don't see how that affects the computability of a value at "load time", whatever that means. It did trick me: I was converting a vtable to use label values, and before converting the

[Bug tree-optimization/38356] New: ICE with -ftree-parallelize-loops

2008-12-01 Thread debian-gcc at lists dot debian dot org
[forwarded from http://bugs.debian.org/487776] seen with 4.3 branch 20081129, fixed on the trunk, omitting -ftree-parallelize-loops=2 lets the compile succeed. Matthias g++ -g -O3 -ffast-math -fomit-frame-pointer -ftree-parallelize-loops=2 -c -o dcraw.o dcraw.ii g++: Internal error: Segmentati

[Bug tree-optimization/38356] ICE with -ftree-parallelize-loops

2008-12-01 Thread debian-gcc at lists dot debian dot org
--- Comment #1 from debian-gcc at lists dot debian dot org 2008-12-01 23:42 --- Created an attachment (id=16805) --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=16805&action=view) preprocessed source -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=38356

[Bug c++/38357] New: [4.2/4.3/4.4 regression] ICE cc1plus (Segmentation fault)

2008-12-01 Thread debian-gcc at lists dot debian dot org
4.1 branch gives an error, message, 4.2 and up segfault. Matthias $ g++-4.1 -save-temps bug.cc bug.cc:17: error: could not convert template argument 'BUG::name' to 'bool' $ g++ -save-temps bug.cc bug.cc:17: internal compiler error: Segmentation fault Please submit a full bug report, with prepr

[Bug c++/38253] g++.dg/ipa/iinline-1.C scan-ipa-dump inline fails on powerpc-apple-darwin9

2008-12-01 Thread janis at gcc dot gnu dot org
--- Comment #4 from janis at gcc dot gnu dot org 2008-12-02 00:00 --- This test also fails on powerpc64-unknown-linux-gnu for both -m32 and -m64. It passed on 2008-08-24 (r138089) and failed on 2008-08-25 (r138121). Let me know if you'd like me to run a regression hunt and/or provide d

[Bug c/38358] New: Could not compile gcc using large include files

2008-12-01 Thread ahjiefreak at yahoo dot com
I am trying to compile a typical c file with include option turned on. The include option includes .h file as part of the array element declaration for the c file. When I did compile:- gcc c.c -include myfile.h -D STS In file included from /usr/include/sys/cdefs.h:0, from /usr/in

[Bug middle-end/38358] Could not compile gcc using large include files

2008-12-01 Thread pinskia at gcc dot gnu dot org
--- Comment #1 from pinskia at gcc dot gnu dot org 2008-12-02 00:03 --- Did you see: See http://bugzilla.redhat.com/bugzilla> for instructions. ?? -- pinskia at gcc dot gnu dot org changed: What|Removed |Added -

[Bug middle-end/38219] gcc.dg/tree-ssa/vrp47.c fails on powerpc-apple-darwin9

2008-12-01 Thread janis at gcc dot gnu dot org
--- Comment #3 from janis at gcc dot gnu dot org 2008-12-02 00:05 --- This test also fails on powerpc64-unknown-linux-gnu for both -m32 and -m64. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=38219

[Bug tree-optimization/38359] New: [4.3/4.4 regression] ICE in set_lattice_value, at tree-ssa-ccp.c:466

2008-12-01 Thread debian-gcc at lists dot debian dot org
[forwarded from http://bugs.debian.org/PR492505] works with 4.2 branch, fails with 4.3 branch and trunk, succeeds with -O0 $ gcc-4.3 000.c -c -O1 000.c: In function '_ov_64_seek_lap': 000.c:33: internal compiler error: in set_lattice_value, at tree-ssa-ccp.c:487 Please submit a full bug report, w

[Bug tree-optimization/38359] [4.3/4.4 regression] ICE in set_lattice_value, at tree-ssa-ccp.c:466

2008-12-01 Thread pinskia at gcc dot gnu dot org
--- Comment #1 from pinskia at gcc dot gnu dot org 2008-12-02 00:11 --- Here is a shorter testcase: void _ov_64_seek_lap (void) { _Bool x1, x2, x3; unsigned ltmp_3978_7; unsigned ltmp_3978_7__PHI_TEMPORARY; unsigned ltmp_4011_7__PHI_TEMPORARY; unsigned ltmp_4012_7; signed ltm

  1   2   >