[Bug testsuite/36443] [4.3/4.4 Regression]: HOSTCC doesn't work with unstalled gcc

2008-06-08 Thread jakub at gcc dot gnu dot org
--- Comment #15 from jakub at gcc dot gnu dot org 2008-06-09 06:59 --- "Unless you can find a way to localize those environment changes only to the tested compiler (by setting/restoring them around every call to the compiler being tested for example), HOSTCC must set/clear all the env

[Bug libgomp/36471] New: omp_get_ancestor_thread_num_8 has no implicit type.

2008-06-08 Thread linuxl4 at sohu dot com
compiling trunk version 136578 failed. my $FFLAGS includes "-fimplicit-none". omp_lib.f90:268.10: function omp_get_ancestor_thread_num_8 (level) 1 Error: Symbol 'omp_get_ancestor_thread_num_8' at (1) has no IMPLICIT type omp_lib.f90:281.10: function omp_get_team_siz

[Bug c/36470] New: sizeof UTF-32 is 2 on AVR

2008-06-08 Thread hutchinsonandy at gcc dot gnu dot org
AVR fails gcc.dg/utf32-1.c execution test. As AVR has 16 bit int, I tried fixing this by using unsigned long for char_32. This failed, I was surprised to find this is apparently due to incorrect size of UTF-32 characters so that: sizeof (U'\0') sizeof (U'\u2029') sizeof (U'\U00064321') all giv

[Bug testsuite/36443] [4.3/4.4 Regression]: HOSTCC doesn't work with unstalled gcc

2008-06-08 Thread hjl dot tools at gmail dot com
--- Comment #14 from hjl dot tools at gmail dot com 2008-06-09 02:28 --- (In reply to comment #13) > Subject: Re: [4.3/4.4 Regression]: HOSTCC doesn't work > with unstalled gcc > > hjl dot tools at gmail dot com wrote: > > 1. User puts libraries/headers in $pefix/{lib,include}

[Bug testsuite/36443] [4.3/4.4 Regression]: HOSTCC doesn't work with unstalled gcc

2008-06-08 Thread mark at codesourcery dot com
--- Comment #13 from mark at codesourcery dot com 2008-06-09 00:05 --- Subject: Re: [4.3/4.4 Regression]: HOSTCC doesn't work with unstalled gcc hjl dot tools at gmail dot com wrote: 1. User puts libraries/headers in $pefix/{lib,include} 2. User builds GCC with correspondin

[Bug testsuite/36443] [4.3/4.4 Regression]: HOSTCC doesn't work with unstalled gcc

2008-06-08 Thread hjl dot tools at gmail dot com
--- Comment #12 from hjl dot tools at gmail dot com 2008-06-08 22:54 --- (In reply to comment #11) > Subject: Re: [4.3/4.4 Regression]: HOSTCC doesn't work > with unstalled gcc > > hjl dot tools at gmail dot com wrote: > > >> I suspect that if you remove the setting in site.exp you

[Bug c++/35242] [4.3 regression] ICE with invalid specialization of variadic template

2008-06-08 Thread paolo dot carlini at oracle dot com
--- Comment #5 from paolo dot carlini at oracle dot com 2008-06-08 21:28 --- Fixed for 4.4.0. -- paolo dot carlini at oracle dot com changed: What|Removed |Added

[Bug c++/35242] [4.3/4.4 regression] ICE with invalid specialization of variadic template

2008-06-08 Thread paolo at gcc dot gnu dot org
--- Comment #4 from paolo at gcc dot gnu dot org 2008-06-08 21:26 --- Subject: Bug 35242 Author: paolo Date: Sun Jun 8 21:25:49 2008 New Revision: 136569 URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=136569 Log: /cp 2008-06-08 Paolo Carlini <[EMAIL PROTECTED]> PR c+

[Bug testsuite/36443] [4.3/4.4 Regression]: HOSTCC doesn't work with unstalled gcc

2008-06-08 Thread mark at codesourcery dot com
--- Comment #11 from mark at codesourcery dot com 2008-06-08 21:12 --- Subject: Re: [4.3/4.4 Regression]: HOSTCC doesn't work with unstalled gcc hjl dot tools at gmail dot com wrote: >> I suspect that if you remove the setting in site.exp you will break the >> following scenario: >>

[Bug testsuite/36443] [4.3/4.4 Regression]: HOSTCC doesn't work with unstalled gcc

2008-06-08 Thread hjl dot tools at gmail dot com
--- Comment #10 from hjl dot tools at gmail dot com 2008-06-08 20:45 --- (In reply to comment #9) > Subject: Re: [4.3/4.4 Regression]: HOSTCC doesn't work > with unstalled gcc > > hjl dot tools at gmail dot com wrote: > > > How does gcc search the right paths when GCC_EXEC_PREFIX po

[Bug testsuite/36443] [4.3/4.4 Regression]: HOSTCC doesn't work with unstalled gcc

2008-06-08 Thread mark at codesourcery dot com
--- Comment #9 from mark at codesourcery dot com 2008-06-08 20:23 --- Subject: Re: [4.3/4.4 Regression]: HOSTCC doesn't work with unstalled gcc hjl dot tools at gmail dot com wrote: > How does gcc search the right paths when GCC_EXEC_PREFIX points > to non-existent directory because

[Bug target/30047] Corrupt return value in specific context

2008-06-08 Thread gcc at david dot osborn dot name
--- Comment #2 from gcc at david dot osborn dot name 2008-06-08 20:01 --- Created an attachment (id=15738) --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=15738&action=view) compiler output This shows bad code being generated. The return value (12345) gets pushed into eax on line

[Bug c/36468] [LTO] ICE in force_decl_die, at dwarf2out.c:13976

2008-06-08 Thread aldot at gcc dot gnu dot org
--- Comment #1 from aldot at gcc dot gnu dot org 2008-06-08 20:00 --- Created an attachment (id=15737) --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=15737&action=view) reduced testcase -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=36468

[Bug target/30047] Corrupt return value in specific context

2008-06-08 Thread gcc at david dot osborn dot name
--- Comment #1 from gcc at david dot osborn dot name 2008-06-08 19:55 --- Created an attachment (id=15736) --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=15736&action=view) reduced testcase This bug still exists in GCC 4.3.1. I've narrowed it down to line 183 in bits/basic_ios.tc

[Bug libgomp/36469] bootstrap broken on HPUX PA

2008-06-08 Thread andreast at gcc dot gnu dot org
-- andreast at gcc dot gnu dot org changed: What|Removed |Added CC||danglin at gcc dot gnu dot |

[Bug libgomp/36469] New: bootstrap broken on HPUX PA

2008-06-08 Thread andreast at gcc dot gnu dot org
The build of libgomp fails due to the use of strtoull in env.c HPUX-PA does not know about this function, officially. On 32-bit the function is available but not headerwise. On 64-bit this function is not available at all. The following snippet added to env.c cures the issue: Index: env.c ==

[Bug c/36468] New: [LTO] ICE in force_decl_die, at dwarf2out.c:13976

2008-06-08 Thread aldot at gcc dot gnu dot org
$ /there.pentium4/build_i686/staging_dir/usr/bin/i686-linux-uclibc-gcc -c regex.i -o regex.o -Wall -std=gnu99 -Os -Wfatal-errors -flto -v Using built-in specs. Target: i686-linux-uclibc Configured with: /there.pentium4/toolchain_build_i686/gcc-4.4.0/configure --prefix=/there.pentium4/build_i686/sta

[Bug target/36467] [avr] Missed optimization with pointer arithmetic and mul*

2008-06-08 Thread hutchinsonandy at gcc dot gnu dot org
--- Comment #4 from hutchinsonandy at gcc dot gnu dot org 2008-06-08 18:20 --- It makes sense in one respect We don't have fast shift by 4 bits and code defaults to loop for Os. Seems we should be selective as MUL is indeed shorter. Though I think gcc may be confused by our poor cost d

[Bug target/36467] [avr] Missed optimization with pointer arithmetic and mul*

2008-06-08 Thread eric dot weddington at atmel dot com
--- Comment #3 from eric dot weddington at atmel dot com 2008-06-08 18:08 --- Generated code when structure size is 16 (test.i): funct: /* prologue: function */ /* frame size = 0 */ lds r24,head mov r30,r24 clr r31 sbrc r30,7 com r31 ldi

[Bug target/36467] [avr] Missed optimization with pointer arithmetic and mul*

2008-06-08 Thread eric dot weddington at atmel dot com
--- Comment #2 from eric dot weddington at atmel dot com 2008-06-08 17:58 --- Created an attachment (id=15735) --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=15735&action=view) Test case with structure size == 17. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=36467

[Bug target/36467] [avr] Missed optimization with pointer arithmetic and mul*

2008-06-08 Thread eric dot weddington at atmel dot com
--- Comment #1 from eric dot weddington at atmel dot com 2008-06-08 17:57 --- Created an attachment (id=15734) --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=15734&action=view) Test case with structure size == 16. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=36467

[Bug target/36467] New: [avr] Missed optimization with pointer arithmetic and mul*

2008-06-08 Thread eric dot weddington at atmel dot com
>From AVR Freaks forum: http://www.avrfreaks.net/index.php?name=PNphpBB2&file=viewtopic&p=453770#453770 Adding an offset to a pointer to a structure. If the structure size is 16, the generated code is a loop with shifts. If the structure size is 17, the generated code uses MUL* instructions and ge

[Bug target/36424] avr-gcc use don't saved registers in ISR with -O3 ('-frename-registers' ) optimization

2008-06-08 Thread eric dot weddington at atmel dot com
--- Comment #4 from eric dot weddington at atmel dot com 2008-06-08 17:32 --- Fixed for 4.4.0. -- eric dot weddington at atmel dot com changed: What|Removed |Added

[Bug c/35701] Quieten -Wconversion warnings

2008-06-08 Thread manu at gcc dot gnu dot org
--- Comment #2 from manu at gcc dot gnu dot org 2008-06-08 17:32 --- Anyway, this won't work at all until bug 34389 is fixed because fold with convert each operand to the target type before considering the bit_and_expr. -- manu at gcc dot gnu dot org changed: What|Re

[Bug c/34389] -Wconversion produces wrong warning

2008-06-08 Thread manu at gcc dot gnu dot org
--- Comment #10 from manu at gcc dot gnu dot org 2008-06-08 17:30 --- (In reply to comment #9) > Does the patch also fix the warning for conditional expressions? For example: > > short f(int cond, short x, short y) > { > return cond ? x : y; > } > No, that is a completely different

[Bug c/35701] Quieten -Wconversion warnings

2008-06-08 Thread manu at gcc dot gnu dot org
--- Comment #1 from manu at gcc dot gnu dot org 2008-06-08 17:25 --- Ideally, one could just do: msp->small = (unsigned int:1) sm; Meanwhile, we will need to check that when converting to p bits that the mask is less than 2^p - 1. I wonder if we already have a function to do that.

[Bug c++/36461] [c++0x] Exception throws don't use rvalue reference constructors

2008-06-08 Thread s_gccbugzilla at nedprod dot com
--- Comment #3 from s_gccbugzilla at nedprod dot com 2008-06-08 17:19 --- Created an attachment (id=15733) --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=15733&action=view) Failing -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=36461

[Bug c++/36461] [c++0x] Exception throws don't use rvalue reference constructors

2008-06-08 Thread s_gccbugzilla at nedprod dot com
--- Comment #2 from s_gccbugzilla at nedprod dot com 2008-06-08 17:19 --- This problem actually seems to be one of subclassing: child class rvalue constructors invoke base class lvalue constructors!!! I have attached an example. As is, it compiles and works. If however you throw a Thin

[Bug c++/36461] [c++0x] Exception throws don't use rvalue reference constructors

2008-06-08 Thread s_gccbugzilla at nedprod dot com
--- Comment #1 from s_gccbugzilla at nedprod dot com 2008-06-08 17:07 --- Created an attachment (id=15732) --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=15732&action=view) Test Case -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=36461

[Bug c/35635] -Wconversion problematic with bitfields

2008-06-08 Thread manu at gcc dot gnu dot org
--- Comment #2 from manu at gcc dot gnu dot org 2008-06-08 16:50 --- In C++ we have: unit size align 8 symtab 0 alias set -1 canonical type 0x2b4fb9c0 precision 1 min max > In C we have: unit size align 32 symtab 0 alias set -1 canonical type

[Bug c/35635] -Wconversion problematic with bitfields

2008-06-08 Thread manu at gcc dot gnu dot org
--- Comment #1 from manu at gcc dot gnu dot org 2008-06-08 16:45 --- Confirmed. Notes: foo.x = bar != 0; // only warns in C, not in C++. foo.x = bar != 0 ? 1 : 0; // warning is not a problem of bitfields but for every conditional expression, the following also warns short x = (bar !=

[Bug tree-optimization/36218] [4.2/4.3/4.4 regression] VRP causes stack overflow while building libgcj

2008-06-08 Thread jsm28 at gcc dot gnu dot org
--- Comment #6 from jsm28 at gcc dot gnu dot org 2008-06-08 16:37 --- Note that a native build should be done to verify that my patch increases the stack limit enough to fix this bug, before marking it fixed. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=36218

[Bug tree-optimization/36218] [4.2/4.3/4.4 regression] VRP causes stack overflow while building libgcj

2008-06-08 Thread jsm28 at gcc dot gnu dot org
--- Comment #5 from jsm28 at gcc dot gnu dot org 2008-06-08 16:15 --- Subject: Bug 36218 Author: jsm28 Date: Sun Jun 8 16:14:33 2008 New Revision: 136563 URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=136563 Log: PR tree-optimization/36218 * Makefile.def (flags_

[Bug target/36424] avr-gcc use don't saved registers in ISR with -O3 ('-frename-registers' ) optimization

2008-06-08 Thread aesok at gcc dot gnu dot org
--- Comment #3 from aesok at gcc dot gnu dot org 2008-06-08 16:08 --- Subject: Bug 36424 Author: aesok Date: Sun Jun 8 16:08:08 2008 New Revision: 136562 URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=136562 Log: PR target/36424 * config/avr/avr.h (HARD_REGNO_RE

[Bug libstdc++/28811] --with-pic vs static libraries and libstdc++

2008-06-08 Thread hjl dot tools at gmail dot com
--- Comment #12 from hjl dot tools at gmail dot com 2008-06-08 15:45 --- (In reply to comment #8) > HJ, are you willing to prepare and test a patch? Many thanks in advance. > Sorry, I may not have time for it in the near future. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=2881

[Bug c++/35602] Bogus warning with -Wsign-conversion

2008-06-08 Thread manu at gcc dot gnu dot org
--- Comment #4 from manu at gcc dot gnu dot org 2008-06-08 15:37 --- Not target/host specific. -- manu at gcc dot gnu dot org changed: What|Removed |Added GCC build trip

[Bug c++/35602] Bogus warning with -Wsign-conversion

2008-06-08 Thread manu at gcc dot gnu dot org
--- Comment #3 from manu at gcc dot gnu dot org 2008-06-08 15:36 --- Confirmed. The relevant gimple dump is: int main(int, const char* const*) (D.2050, D.2051) { struct stringD.2032[0] * retval.0D.2067; struct stringD.2032[0] * D.2055; struct stringD.2032[0] * D.2056; long intD

[Bug target/36466] internal compiler error: in choose_reload_regs, at reload1.c:6190

2008-06-08 Thread aurelien at aurel32 dot net
--- Comment #1 from aurelien at aurel32 dot net 2008-06-08 14:31 --- Created an attachment (id=15731) --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=15731&action=view) reduced testcase -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=36466

[Bug target/36466] New: internal compiler error: in choose_reload_regs, at reload1.c:6190

2008-06-08 Thread aurelien at aurel32 dot net
gcc fails to build the attached testcase with optimization levels above -O0. The problem occurs with all versions from the gcc 4.x branch. Versions gcc 3.x do not expose the problem. Note that the ICE occurs on both old-ABI and EABI. Using built-in specs. Target: arm-linux-gnueabi Configured with:

[Bug tree-optimization/29212] ICE with -fipa-pta

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

[Bug middle-end/36465] Compilation crashes and asks me to submit a bug report

2008-06-08 Thread pinskia at gcc dot gnu dot org
--- Comment #5 from pinskia at gcc dot gnu dot org 2008-06-08 14:12 --- fipa-pta is known to be broken, don't use it. *** This bug has been marked as a duplicate of 29212 *** -- pinskia at gcc dot gnu dot org changed: What|Removed |Added -

[Bug middle-end/36465] Compilation crashes and asks me to submit a bug report

2008-06-08 Thread pattakosn at yahoo dot com
--- Comment #4 from pattakosn at yahoo dot com 2008-06-08 14:10 --- (In reply to comment #2) > I downloaded and compiled 4.3.1 which seems to work well. I am sorry, maybe I was not clear. I meant that I downloaded and compiled 4.3.1 and 4.4-20080606 and then gfortran 4.3.1 compiles my s

[Bug middle-end/36465] Compilation crashes and asks me to submit a bug report

2008-06-08 Thread pattakosn at yahoo dot com
--- Comment #3 from pattakosn at yahoo dot com 2008-06-08 14:06 --- Created an attachment (id=15730) --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=15730&action=view) the file that the latest gfortran (4.4-20080606) fails to compile and the produced .s file This is the file relevan

[Bug middle-end/36465] Compilation crashes and asks me to submit a bug report

2008-06-08 Thread pattakosn at yahoo dot com
--- Comment #2 from pattakosn at yahoo dot com 2008-06-08 13:49 --- I downloaded and compiled 4.3.1 which seems to work well. However I also downloaded the latest snapshot (4.4-20080606) and I get an other bug : Using built-in specs. Target: i686-pc-linux-gnu Configured with: /home/nima

[Bug middle-end/36465] Compilation crashes and asks me to submit a bug report

2008-06-08 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 fortran/36459] Wrong interface use for PROCEDURE

2008-06-08 Thread janus at gcc dot gnu dot org
--- Comment #5 from janus at gcc dot gnu dot org 2008-06-08 12:16 --- Fixed in rev 136555. Closing. -- janus at gcc dot gnu dot org changed: What|Removed |Added

[Bug fortran/36465] Compilation crashes and asks me to submit a bug report

2008-06-08 Thread pattakosn at yahoo dot com
--- Comment #1 from pattakosn at yahoo dot com 2008-06-08 12:05 --- Created an attachment (id=15729) --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=15729&action=view) The source code and the generated .s file This is the source file that crashes and the .s file that is generated.

[Bug fortran/36463] [4.4 Regression] ICE in expand_expr_real_1, at expr.c:7264 with rev.136554

2008-06-08 Thread dominiq at lps dot ens dot fr
--- Comment #1 from dominiq at lps dot ens dot fr 2008-06-08 12:01 --- The code in comment #1 of PR35971 compiles without error. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=36463

[Bug fortran/36459] Wrong interface use for PROCEDURE(

2008-06-08 Thread janus at gcc dot gnu dot org
--- Comment #4 from janus at gcc dot gnu dot org 2008-06-08 11:56 --- Subject: Bug 36459 Author: janus Date: Sun Jun 8 11:55:41 2008 New Revision: 136555 URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=136555 Log: 2008-06-08 Janus Weil <[EMAIL PROTECTED]> PR fortran/3

[Bug fortran/36465] New: Compilation crashes and asks me to submit a bug report

2008-06-08 Thread pattakosn at yahoo dot com
There is a simulation code that I am trying to make run faster by trying several compile optimization flags. It also uses OpenMP to utilize multiple cores. Today I got this: Driving: /home/nimar/opt/gcc-4.3.0/bin/gfortran -v -save-temps -I/home/nimar/opt/gcc-4.3.0/include -O3 -fimplicit-none -fope

[Bug c++/36464] Segfault when using precompiled headers

2008-06-08 Thread mycae at yahoo dot com
--- Comment #1 from mycae at yahoo dot com 2008-06-08 11:29 --- It still crashes when I write my code properly too. $ gcc -c -Wall --ansi -Wno-deprecated --verbose -save-temps -g -DDEBUG `wx-config --cflags` -o wxsimple.o wxsimple.cpp Using built-in specs. Target: i386-redhat-linux Co

[Bug c++/36464] New: Segfault when using precompiled headers

2008-06-08 Thread mycae at yahoo dot com
To be honest, I don't know what some of these bug fields mean (triplet??), so if you need more info please let me know. I am trying to use precompiled headers to speed up my development time when using wx-widgets. All of my source files crash when attempting to compile any of them Header file ---

[Bug fortran/36462] KIND argument in INDEX results in wrong code

2008-06-08 Thread burnus at gcc dot gnu dot org
--- Comment #1 from burnus at gcc dot gnu dot org 2008-06-08 11:20 --- Note: Initially found by James Van Buskirk: http://groups.google.com/group/comp.lang.fortran/msg/e90575a5a6a50e35 -- burnus at gcc dot gnu dot org changed: What|Removed |Added -

[Bug fortran/36463] New: [4.4 Regression] ICE in expand_expr_real_1, at expr.c:7264 with rev.136554

2008-06-08 Thread dominiq at lps dot ens dot fr
On i686-apple-darwin9 with revision 136554, I get the following ICEs on the codes from pr35971 and the two codes from http://groups.google.com/group/comp.lang.fortran/browse_thread/thread/ff7ae6c7a7860bca/60213205751117d4 (see pr36322): pr35971.f90: In function 'gp': pr35971.f90:46: internal co

[Bug fortran/35830] ICE with PROCEDURE() containing array formal arguments

2008-06-08 Thread burnus at gcc dot gnu dot org
--- Comment #15 from burnus at gcc dot gnu dot org 2008-06-08 07:50 --- FIXED on the trunk (4.4.0). -- burnus at gcc dot gnu dot org changed: What|Removed |Added

[Bug fortran/35830] ICE with PROCEDURE() containing array formal arguments

2008-06-08 Thread burnus at gcc dot gnu dot org
--- Comment #14 from burnus at gcc dot gnu dot org 2008-06-08 07:49 --- Subject: Bug 35830 Author: burnus Date: Sun Jun 8 07:48:53 2008 New Revision: 136554 URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=136554 Log: 2008-06-08 Tobias Burnus <[EMAIL PROTECTED]> PR fort