[Bug fortran/31201] Too large unit number generates wrong code

2007-04-03 Thread patchapp at dberlin dot org
--- Comment #7 from patchapp at dberlin dot org 2007-04-04 05:55 --- Subject: Bug number PR31201 A patch for this bug has been added to the patch tracker. The mailing list url for the patch is http://gcc.gnu.org/ml/gcc-patches/2007-04/msg00126.html -- http://gcc.gnu.org/bugzilla/sh

[Bug target/27192] call through function pointer goes to wrong address

2007-04-03 Thread eweddington at cso dot atmel dot com
--- Comment #4 from eweddington at cso dot atmel dot com 2007-04-04 00:38 --- Confirmed bug. shifty3.i is a test case showing the problem. Compiled with avr-gcc 4.1.2, with: avr-gcc -Os shifty.c -o shifty.o shifty3.dis is a disassembly of shifty.o (with avr-objdump -d shifty.o). The

[Bug c++/29365] Unnecessary anonymous namespace warnings

2007-04-03 Thread crowl at google dot com
--- Comment #11 from crowl at google dot com 2007-04-04 00:30 --- (In reply to comment #5) > Yes, sorry, I should have said if foo::bar is used in multiple TUs, rather > than > foo itself. If foo::bar is defined in only one TU, and is used as an opaque > type in other TUs, you're fine.

[Bug fortran/31466] spurious error message when inner parentheses of a FORMAT statement are empty

2007-04-03 Thread jvdelisle at gcc dot gnu dot org
--- Comment #2 from jvdelisle at gcc dot gnu dot org 2007-04-04 00:28 --- Lahey reports this as a fatal syntax error. Checking file SOURCE.F90. Checking program unit TEST134 at line 1. Line 2, file SOURCE.F90 1 FORMAT(()) | | FATAL -- Essential LF90 requires that defined labels

[Bug target/27192] call through function pointer goes to wrong address

2007-04-03 Thread eweddington at cso dot atmel dot com
--- Comment #3 from eweddington at cso dot atmel dot com 2007-04-04 00:25 --- Created an attachment (id=13325) --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=13325&action=view) Disassembly of the shifty3.i test case. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=27192

[Bug target/27192] call through function pointer goes to wrong address

2007-04-03 Thread eweddington at cso dot atmel dot com
--- Comment #2 from eweddington at cso dot atmel dot com 2007-04-04 00:24 --- Created an attachment (id=13324) --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=13324&action=view) Pre-processed testcase. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=27192

[Bug c++/31103] [4.3 Regression] same canonical type node for VLAs

2007-04-03 Thread pinskia at gcc dot gnu dot org
--- Comment #3 from pinskia at gcc dot gnu dot org 2007-04-04 00:21 --- *** Bug 31104 has been marked as a duplicate of this bug. *** -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=31103

[Bug c++/31104] [4.3 Regression] same canonical type node for different types with anonymous

2007-04-03 Thread pinskia at gcc dot gnu dot org
--- Comment #2 from pinskia at gcc dot gnu dot org 2007-04-04 00:21 --- This is the same problem as PR 31103, VLAs. *** This bug has been marked as a duplicate of 31103 *** -- pinskia at gcc dot gnu dot org changed: What|Removed |Added ---

[Bug c++/29365] Unnecessary anonymous namespace warnings

2007-04-03 Thread spark at gcc dot gnu dot org
--- Comment #10 from spark at gcc dot gnu dot org 2007-04-04 00:18 --- (In reply to comment #9) > (In reply to comment #8) > > The following patch addresses the problem. > > Do we want to add a flag to control this ? > > Except if you look at the file name, you could get a case where yo

[Bug c++/29365] Unnecessary anonymous namespace warnings

2007-04-03 Thread pinskia at gcc dot gnu dot org
--- Comment #9 from pinskia at gcc dot gnu dot org 2007-04-04 00:11 --- (In reply to comment #8) > The following patch addresses the problem. > Do we want to add a flag to control this ? Except if you look at the file name, you could get a case where you are no longer warning about. -

[Bug c++/31449] [4.1/4.2/4.3 regression] static_cast can remove const-ness

2007-04-03 Thread reichelt at gcc dot gnu dot org
--- Comment #1 from reichelt at gcc dot gnu dot org 2007-04-04 00:06 --- Confirmed. The regression was introduced between GCC 4.0.2 and 4.0.3. Mark, it looks like the following patch of yours is responsible for the regression: 2006-01-21 Mark Mitchell <[EMAIL PROTECTED]> PR

[Bug c++/29365] Unnecessary anonymous namespace warnings

2007-04-03 Thread spark at gcc dot gnu dot org
--- Comment #8 from spark at gcc dot gnu dot org 2007-04-03 23:50 --- The following patch addresses the problem. Do we want to add a flag to control this ? --- a/gcc/cp/decl2.cMon Apr 02 15:48:00 2007 + +++ b/gcc/cp/decl2.cTue Apr 03 22:45:49 2007 + @@ -1860,9 +1860,13 @

[Bug bootstrap/31344] [4.3 Regression] bootstrap broken on i[345]86-linux

2007-04-03 Thread hjl at lucon dot org
--- Comment #16 from hjl at lucon dot org 2007-04-03 23:22 --- A patch is posted at http://gcc.gnu.org/ml/gcc-patches/2007-03/msg01764.html -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=31344

[Bug fortran/31304] REPEAT argument NCOPIES is not converted as it should

2007-04-03 Thread fxcoudert at gcc dot gnu dot org
--- Comment #4 from fxcoudert at gcc dot gnu dot org 2007-04-03 22:07 --- Fixed on mainline, closing. -- fxcoudert at gcc dot gnu dot org changed: What|Removed |Added

[Bug fortran/31304] REPEAT argument NCOPIES is not converted as it should

2007-04-03 Thread fxcoudert at gcc dot gnu dot org
--- Comment #3 from fxcoudert at gcc dot gnu dot org 2007-04-03 22:05 --- Subject: Bug 31304 Author: fxcoudert Date: Tue Apr 3 22:05:14 2007 New Revision: 123481 URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=123481 Log: PR fortran/31304 * fortran/gfortran.h (

[Bug fortran/31466] spurious error message when inner parentheses of a FORMAT statement are empty

2007-04-03 Thread burnus at gcc dot gnu dot org
--- Comment #1 from burnus at gcc dot gnu dot org 2007-04-03 21:58 --- I believe this bug is invalid as the format string is invalid. NAG f95 also claims: *** Malformed format specification Reasoning: R1001 format-stmt is FORMAT format-specification R1002 format-specification is ( [ fo

[Bug target/31334] Bad codegen for vector initializer with constants prop'd into a vector initializer

2007-04-03 Thread dorit at il dot ibm dot com
--- Comment #8 from dorit at il dot ibm dot com 2007-04-03 20:46 --- (In reply to comment #7) > Something like: > (define_insn_and_split "altivec_dup" > [(set (match_operand:V 0 "register_operand" "v") > (vec_duplicate: (match_operand: 0 "r"))) >(clobber (match_operand:V 3

[Bug tree-optimization/25553] Missed removal of load

2007-04-03 Thread rguenth at gcc dot gnu dot org
--- Comment #5 from rguenth at gcc dot gnu dot org 2007-04-03 20:40 --- Micha, this one is "similar" to hmmer -- rguenth at gcc dot gnu dot org changed: What|Removed |Added ---

[Bug target/25413] wrong alignment or incorrect address computation in vectorized code on Pentium 4 SSE

2007-04-03 Thread dorit at il dot ibm dot com
--- Comment #6 from dorit at il dot ibm dot com 2007-04-03 20:22 --- So I see Devang had sent a patch for this over a year ago: http://gcc.gnu.org/ml/gcc-patches/2006-03/msg00167.html I don't know what ever happened to it. Maybe you want to give it a try? (you may need to implement the n

[Bug c++/25915] use ODR rules to make C++ objects not be TREE_PUBLIC

2007-04-03 Thread pinskia at gcc dot gnu dot org
--- Comment #14 from pinskia at gcc dot gnu dot org 2007-04-03 20:03 --- *** Bug 31462 has been marked as a duplicate of this bug. *** -- pinskia at gcc dot gnu dot org changed: What|Removed |Added -

[Bug c++/31462] Unnamed namespace and exported symbols

2007-04-03 Thread pinskia at gcc dot gnu dot org
--- Comment #1 from pinskia at gcc dot gnu dot org 2007-04-03 20:03 --- This has already been implemented for 4.2.0. See PR 25915 which I am closing this as a dup of. *** This bug has been marked as a duplicate of 25915 *** -- pinskia at gcc dot gnu dot org changed: Wha

[Bug tree-optimization/25553] Missed removal of load

2007-04-03 Thread pinskia at gcc dot gnu dot org
--- Comment #4 from pinskia at gcc dot gnu dot org 2007-04-03 20:00 --- *** Bug 31460 has been marked as a duplicate of this bug. *** -- pinskia at gcc dot gnu dot org changed: What|Removed |Added ---

[Bug tree-optimization/31460] if(a) a[i] = xxx; else a[i] = yyy; is not converted to if (a) ddd= xxx; else ddd = yyy; a[i] = ddd;

2007-04-03 Thread pinskia at gcc dot gnu dot org
--- Comment #5 from pinskia at gcc dot gnu dot org 2007-04-03 20:00 --- (In reply to comment #4) > yes, this is indeed a known problem (I don't know if there's a PR open for > it). > It is one of the tree-ifcvt enhancements that Victor was going to tackle for > 4.3 (item (2.3) in http:/

[Bug tree-optimization/31460] if(a) a[i] = xxx; else a[i] = yyy; is not converted to if (a) ddd= xxx; else ddd = yyy; a[i] = ddd;

2007-04-03 Thread dorit at il dot ibm dot com
--- Comment #4 from dorit at il dot ibm dot com 2007-04-03 19:56 --- yes, this is indeed a known problem (I don't know if there's a PR open for it). It is one of the tree-ifcvt enhancements that Victor was going to tackle for 4.3 (item (2.3) in http://gcc.gnu.org/wiki/AutovectBranchOptim

[Bug libstdc++/31464] Extension request: publicly visible forward-declaration headers for and all STL containers

2007-04-03 Thread fang at csl dot cornell dot edu
--- Comment #1 from fang at csl dot cornell dot edu 2007-04-03 19:45 --- Funny you mention this, I've done exactly this in my own utility headers: create forward-declaration-only headers of STL containers and algorithms. "STL/allocator_fwd.h": namespace std { template class allocato

[Bug libstdc++/8670] Alignment problem in std::basic_string

2007-04-03 Thread pcarlini at suse dot de
--- Comment #21 from pcarlini at suse dot de 2007-04-03 19:26 --- A few issues of the current std::string should be really in suspended status, thus clarifying that cannot be fixed within the current ABI. Anyway, in the meanwhile, people are encouraged to try , a new, versatile implement

[Bug fortran/31466] New: spurious error message when inner parentheses of a FORMAT statement are empty

2007-04-03 Thread michael dot a dot richmond at nasa dot gov
When I compile the program listed below I receive a spurious error message: test134.f90:2.11: 1 FORMAT(()) 1 Error: Unexpected element in format string at (1) PROGRAM test134 1 FORMAT(()) END -- Summary: spurious error message when inner parentheses of a

[Bug fortran/31427] TRANSFER with mold kind /= lval kind: ICE on ia64, i686; no warning

2007-04-03 Thread dfranke at gcc dot gnu dot org
--- Comment #8 from dfranke at gcc dot gnu dot org 2007-04-03 19:01 --- PROGRAM test INTEGER(KIND=K) :: i(1) i = (/ TRANSFER("a", 0_L) /) print *, i END PROGRAM test Above snippet works on i686 and ia64 if K==L, if K/=L, it crashes, no matter which is the larger kind. -- http://gcc

[Bug fortran/31463] gfortran prints no warning message when an unset return value is an array

2007-04-03 Thread michael dot a dot richmond at nasa dot gov
--- Comment #1 from michael dot a dot richmond at nasa dot gov 2007-04-03 18:45 --- The following functions should produce a similar warning message: function test97() result(ps) character :: ps end function test97 CHARACTER(*) FUNCTION test105() i = LEN(test105) END FUNCTION test105

[Bug fortran/31465] New: spurious error: Implicitly typed PARAMETER doesn't match a later IMPLICIT type

2007-04-03 Thread michael dot a dot richmond at nasa dot gov
The program listed below produces a spurious error message: test.f90:2.11: PARAMETER(C = 0.0D0) 1 Error: Implicitly typed PARAMETER 'c' at (1) doesn't match a later IMPLICIT type The message will disappear if I put the IMPLICIT declaration before the PARAMETER declaration. PROGRAM tes

[Bug libstdc++/31464] New: Extension request: publicly visible forward-declaration headers for and all STL containers

2007-04-03 Thread zackw at panix dot com
It would be nice if there were publicly visible headers analogous to for and all the STL headers. To be more concrete: for every STL header there should be a that contains *only* forward declarations of the types with complete declarations in . The existing is an example of exactly what I h

[Bug fortran/31427] TRANSFER with mold kind /= lval kind: ICE on ia64, i686; no warning

2007-04-03 Thread michael dot a dot richmond at nasa dot gov
--- Comment #7 from michael dot a dot richmond at nasa dot gov 2007-04-03 18:08 --- (In reply to comment #6) > Could you try the following code in ia64 and i686? It works under i686. I do not have an ia64 machine. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=31427

[Bug rtl-optimization/23684] Combine stores for non strict alignment targets

2007-04-03 Thread pinskia at gcc dot gnu dot org
--- Comment #8 from pinskia at gcc dot gnu dot org 2007-04-03 17:54 --- *** Bug 19726 has been marked as a duplicate of this bug. *** -- pinskia at gcc dot gnu dot org changed: What|Removed |Added ---

[Bug rtl-optimization/19726] suboptimal constructor generated, consecutive stores should be done in a biggest mode

2007-04-03 Thread pinskia at gcc dot gnu dot org
--- Comment #3 from pinskia at gcc dot gnu dot org 2007-04-03 17:54 --- *** This bug has been marked as a duplicate of 23684 *** -- pinskia at gcc dot gnu dot org changed: What|Removed |Added --

[Bug fortran/31427] TRANSFER with mold kind /= lval kind: ICE on ia64, i686; no warning

2007-04-03 Thread burnus at gcc dot gnu dot org
--- Comment #6 from burnus at gcc dot gnu dot org 2007-04-03 17:54 --- Could you try the following code in ia64 and i686? PROGRAM test INTEGER(KIND=1) :: i(1) i = (/ TRANSFER("a", 0_1) /) print *, i END PROGRAM test I think this will compile and print "97". Is this indeed the case on i

[Bug rtl-optimization/14613] Fails to convert byte loads/stores to word/long loads/stores

2007-04-03 Thread pinskia at gcc dot gnu dot org
--- Comment #3 from pinskia at gcc dot gnu dot org 2007-04-03 17:53 --- *** This bug has been marked as a duplicate of 23684 *** -- pinskia at gcc dot gnu dot org changed: What|Removed |Added --

[Bug rtl-optimization/23684] Combine stores for non strict alignment targets

2007-04-03 Thread pinskia at gcc dot gnu dot org
--- Comment #7 from pinskia at gcc dot gnu dot org 2007-04-03 17:53 --- *** Bug 14613 has been marked as a duplicate of this bug. *** -- pinskia at gcc dot gnu dot org changed: What|Removed |Added ---

[Bug rtl-optimization/323] optimized code gives strange floating point results

2007-04-03 Thread guillaume dot melquiond at ens-lyon dot fr
--- Comment #95 from guillaume dot melquiond at ens-lyon dot fr 2007-04-03 17:51 --- > I think that Uros' patch to add a -mpc switch for precision control would > "fix" this. > The real fix would be to automatically insert fldcw instructions before > float/double operations, in order to

[Bug tree-optimization/31460] if(a) a[i] = xxx; else a[i] = yyy; is not converted to if (a) ddd= xxx; else ddd = yyy; a[i] = ddd;

2007-04-03 Thread pinskia at gcc dot gnu dot org
--- Comment #3 from pinskia at gcc dot gnu dot org 2007-04-03 17:49 --- This is not the vectorizer's fault. >tree level if-conversion for the vectorizer _should_ be able to recognize this > case. It may be that it's just not set up to deal with x86* insns of this > kind. It cannot becau

[Bug objc/31281] ICE on ObjC try-catch blocks with next runtime

2007-04-03 Thread stuart at gcc dot gnu dot org
--- Comment #4 from stuart at gcc dot gnu dot org 2007-04-03 17:43 --- Subject: Bug 31281 Author: stuart Date: Tue Apr 3 17:43:15 2007 New Revision: 123478 URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=123478 Log: PR 31281 * objc/objc-act.c (next_sjlj_build_cat

[Bug middle-end/30473] [4.1 Regression] Internal Compiler Error with a sprintf with few arguments for format %s

2007-04-03 Thread pinskia at gcc dot gnu dot org
--- Comment #9 from pinskia at gcc dot gnu dot org 2007-04-03 17:38 --- *** Bug 31458 has been marked as a duplicate of this bug. *** -- pinskia at gcc dot gnu dot org changed: What|Removed |Added ---

[Bug c/31458] gcc:internal compiler error: Segmentation fault on sprintf (buf, "%s");

2007-04-03 Thread pinskia at gcc dot gnu dot org
--- Comment #2 from pinskia at gcc dot gnu dot org 2007-04-03 17:38 --- *** This bug has been marked as a duplicate of 30473 *** -- pinskia at gcc dot gnu dot org changed: What|Removed |Added --

[Bug tree-optimization/31460] vectorizer failed to work on simple loop

2007-04-03 Thread hjl at lucon dot org
--- Comment #2 from hjl at lucon dot org 2007-04-03 17:37 --- For code: typedef short vec_t; extern __attribute__((aligned(16))) vec_t x [64]; extern __attribute__((aligned(16))) vec_t y [64]; extern __attribute__((aligned(16))) vec_t m [64]; void foo () { int i; for (i = 0; i <

[Bug libstdc++/19664] libstdc++ headers should have pop/push of the visibility around the declarations

2007-04-03 Thread pinskia at gcc dot gnu dot org
--- Comment #103 from pinskia at gcc dot gnu dot org 2007-04-03 17:37 --- *** Bug 31459 has been marked as a duplicate of this bug. *** -- pinskia at gcc dot gnu dot org changed: What|Removed |Added

[Bug fortran/31463] New: gfortran prints no warning message when an unset return value is an array

2007-04-03 Thread michael dot a dot richmond at nasa dot gov
When I compile the function listed below I receive no diagnostics. It should say: test.f90: In function 'test': test.f90:1: warning: Function return value not set FUNCTION test() RESULT(f) REAL, DIMENSION(1) :: f END FUNCTION test -- Summary: gfortran prints no warning message when

[Bug c++/31459] No #pragma GCC visibility {push/pop} (default) in and

2007-04-03 Thread pinskia at gcc dot gnu dot org
--- Comment #1 from pinskia at gcc dot gnu dot org 2007-04-03 17:37 --- Actually this is fixed in 4.2.0, see PR 19664. *** This bug has been marked as a duplicate of 19664 *** -- pinskia at gcc dot gnu dot org changed: What|Removed |Added

[Bug c++/31462] New: Unnamed namespace and exported symbols

2007-04-03 Thread guillaume dot melquiond at ens-lyon dot fr
(NB: I'm not suggesting to change the linkage of functions in an unnamed namespace to internal.) Unless specified otherwise, functions in an unnamed namespace have external linkage. Does that mean that g++ has to export the corresponding symbol? As the function cannot be used from another translat

[Bug fortran/31461] New: warn about entities in USE, ONLY statement not later used

2007-04-03 Thread vivekrao4 at yahoo dot com
I request that gfortran optionally warn about entities appearing in a USE, ONLY statement that are not later referenced in the program block where the USE appears. For example, for the code module util_mod integer :: i,j end module util_mod program main use util_mod, only: i,j j = 1 print*,"j=",j

[Bug debug/31412] [4.3] inf loop/long compile time, time spent in var-tracking.c

2007-04-03 Thread zadeck at naturalbridge dot com
--- Comment #14 from zadeck at naturalbridge dot com 2007-04-03 16:47 --- Subject: Re: [4.3] inf loop/long compile time, time spent in var-tracking.c steven at gcc dot gnu dot org wrote: > --- Comment #13 from steven at gcc dot gnu dot org 2007-04-03 16:40 > --- > So this m

[Bug debug/31412] [4.3] inf loop/long compile time, time spent in var-tracking.c

2007-04-03 Thread steven at gcc dot gnu dot org
--- Comment #13 from steven at gcc dot gnu dot org 2007-04-03 16:40 --- So this may be a non-monotonous dataflow problem...? Do we have the dataflow equations of the var-tracking problem somewhere? It'd be interesting to check them against the actual implementation. -- http://gcc.

[Bug tree-optimization/31460] vectorizer failed to work on simple loop

2007-04-03 Thread steven at gcc dot gnu dot org
--- Comment #1 from steven at gcc dot gnu dot org 2007-04-03 16:36 --- Maybe you can show the assembly output you're expecting? tree level if-conversion for the vectorizer _should_ be able to recognize this case. It may be that it's just not set up to deal with x86* insns of this kind.

[Bug target/29953] [SH-4] Perfomance regression in loops. cmp/eq used instead of dt

2007-04-03 Thread steven at gcc dot gnu dot org
--- Comment #5 from steven at gcc dot gnu dot org 2007-04-03 16:34 --- Re. comment #4: Answer: Go ahead and implement it in loop.c. If you want to fix it only for GCC 4.1, that is. There is no loop.c in GCC 4.2 and later. So does it make sense? Depends on what you want to achieve.

[Bug libstdc++/8670] Alignment problem in std::basic_string

2007-04-03 Thread jamesc at dspsrv dot com
--- Comment #20 from jamesc at dspsrv dot com 2007-04-03 16:30 --- I can see this problem, solaris 10 and gcc 4.1.1. The workaround suggested by the following person works: Margarita Manterola http://www.mail-archive.com/debian-bugs-rc@lists.debian.org/msg67774.html via Darren Long ht

[Bug target/29953] [SH-4] Perfomance regression in loops. cmp/eq used instead of dt

2007-04-03 Thread christian dot bruel at st dot com
--- Comment #4 from christian dot bruel at st dot com 2007-04-03 15:30 --- This missed optimisation appears with all counted loops. The ir in gimple produces j = 0; :; j = j + 1; if (j <= 999) { goto ; } The transformation to do ( j=1000; j=j-1; if (j)...) will a

[Bug tree-optimization/31460] New: vectorizer failed to work on simple loop

2007-04-03 Thread hjl at lucon dot org
bash-3.1$ cat pmaxsw.c typedef short vec_t; extern __attribute__((aligned(16))) vec_t x [64]; extern __attribute__((aligned(16))) vec_t y [64]; extern __attribute__((aligned(16))) vec_t m [64]; void foo () { int i; for (i = 0; i < 20; i++) #if 0 m [i] = (x [i] < y [i]) ? y [i] : x[i]; #e

[Bug c++/31459] New: No #pragma GCC visibility {push/pop} (default) in and

2007-04-03 Thread rjarrett at mathworks dot com
Generic header defect observed on both x86 and x86_64 Missing "#pragma GCC visibility push(default)" and "#pragma GCC visibility pop" directives wrapped around the versions of and that ship with GCC 4.0 - 4.2. See for example or , which are properly encased. Add #pragma GCC visibility push(d

[Bug fortran/31395] Colon edit descriptor is ignored unless preceded by a comma or a slash

2007-04-03 Thread jvdelisle at gcc dot gnu dot org
-- jvdelisle at gcc dot gnu dot org changed: What|Removed |Added AssignedTo|unassigned at gcc dot gnu |jvdelisle at gcc dot gnu dot |dot org

[Bug fortran/31201] Too large unit number generates wrong code

2007-04-03 Thread jvdelisle at gcc dot gnu dot org
--- Comment #6 from jvdelisle at gcc dot gnu dot org 2007-04-03 14:50 --- I have a patch testing -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=31201

[Bug debug/31412] [4.3] inf loop/long compile time, time spent in var-tracking.c

2007-04-03 Thread paolo dot bonzini at lu dot unisi dot ch
--- Comment #12 from paolo dot bonzini at lu dot unisi dot ch 2007-04-03 13:59 --- Subject: Re: [4.3] inf loop/long compile time, time spent in var-tracking.c > With dataflow branch that was compiled with profiling the testcase finishes > not too slow: This suggest that it is a bug

[Bug debug/31412] [4.3] inf loop/long compile time, time spent in var-tracking.c

2007-04-03 Thread rguenth at gcc dot gnu dot org
--- Comment #11 from rguenth at gcc dot gnu dot org 2007-04-03 13:56 --- With dataflow branch that was compiled with profiling the testcase finishes not too slow: Each sample counts as 0.01 seconds. % cumulative self self total time seconds second

[Bug debug/31412] [4.3] inf loop/long compile time, time spent in var-tracking.c

2007-04-03 Thread rguenth at gcc dot gnu dot org
--- Comment #10 from rguenth at gcc dot gnu dot org 2007-04-03 13:50 --- At least all the attr_list stuff is O(N) as it uses a linked list for static attrs attrs_list_member (attrs list, tree decl, HOST_WIDE_INT offset) { for (; list; list = list->next) if (list->decl == decl &&

[Bug debug/31412] [4.3] inf loop/long compile time, time spent in var-tracking.c

2007-04-03 Thread rguenth at gcc dot gnu dot org
--- Comment #9 from rguenth at gcc dot gnu dot org 2007-04-03 13:45 --- If I ignore abnormal edges the computation finishes. Of course I have no idea what happens in that case ;) -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=31412

[Bug debug/31412] [4.3] inf loop/long compile time, time spent in var-tracking.c

2007-04-03 Thread bonzini at gnu dot org
--- Comment #8 from bonzini at gnu dot org 2007-04-03 13:38 --- I wouldn't say so. If there is a bug and the df solver oscillates, that's the reason for the infinite loop. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=31412

[Bug rtl-optimization/19780] Floating point computation far slower for -mfpmath=sse

2007-04-03 Thread bonzini at gnu dot org
--- Comment #10 from bonzini at gnu dot org 2007-04-03 13:36 --- I would look at the lreg output, which contains the results of regclass. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=19780

[Bug debug/31412] [4.3] inf loop/long compile time, time spent in var-tracking.c

2007-04-03 Thread rguenth at gcc dot gnu dot org
--- Comment #7 from rguenth at gcc dot gnu dot org 2007-04-03 13:36 --- Ok, let's defer a solution to after the df merge. Certainly something to look at. -- rguenth at gcc dot gnu dot org changed: What|Removed |Added --

[Bug debug/31412] [4.3] inf loop/long compile time, time spent in var-tracking.c

2007-04-03 Thread bonzini at gnu dot org
--- Comment #6 from bonzini at gnu dot org 2007-04-03 13:33 --- anyway, the code looks well written. the dataflow_set_* functions look inefficient, though. maybe it's also possible to replace hash tables with pointer maps (there is a 1:1 relationships between decl nodes and their DECL_

[Bug rtl-optimization/19780] Floating point computation far slower for -mfpmath=sse

2007-04-03 Thread ubizjak at gmail dot com
--- Comment #9 from ubizjak at gmail dot com 2007-04-03 13:32 --- (In reply to comment #8) > what's the generated code for -ffast-math? in principle i don't see a reason > why it should make any difference... Trying to answer your question, I have played a bit with compile flags and thi

[Bug debug/31412] [4.3] inf loop/long compile time, time spent in var-tracking.c

2007-04-03 Thread bonzini at gnu dot org
--- Comment #5 from bonzini at gnu dot org 2007-04-03 13:31 --- well, for sure it would be possible to use df and a good example of that too. But I'm not *that* knowledgeable about the df-*.c implementation. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=31412

[Bug debug/31412] [4.3] inf loop/long compile time, time spent in var-tracking.c

2007-04-03 Thread rguenth at gcc dot gnu dot org
--- Comment #4 from rguenth at gcc dot gnu dot org 2007-04-03 13:30 --- The easiest thing is probably to ignore abnormal edges: Index: var-tracking.c === *** var-tracking.c (revision 123450) --- var-tracking.c (wo

[Bug debug/31412] [4.3] inf loop/long compile time, time spent in var-tracking.c

2007-04-03 Thread rguenth at gcc dot gnu dot org
--- Comment #3 from rguenth at gcc dot gnu dot org 2007-04-03 13:24 --- Well, vt_find_locations is quadratic in the number of edges and basic blocks which we have a _lot_ in this testcase. Now, with the dataflow rewrite there may be an easier way to compute the df problem. Maybe Paolo

[Bug rtl-optimization/19780] Floating point computation far slower for -mfpmath=sse

2007-04-03 Thread bonzini at gnu dot org
--- Comment #8 from bonzini at gnu dot org 2007-04-03 12:43 --- what's the generated code for -ffast-math? in principle i don't see a reason why it should make any difference... -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=19780

[Bug c++/30847] [4.1/4.2/4.3 regression] ICE with invalid statement expression

2007-04-03 Thread jakub at gcc dot gnu dot org
--- Comment #5 from jakub at gcc dot gnu dot org 2007-04-03 12:34 --- Fixed. -- jakub at gcc dot gnu dot org changed: What|Removed |Added Status|ASSIGNED

[Bug middle-end/30704] [4.2/4.3 Regression] Incorrect constant generation for long long

2007-04-03 Thread jakub at gcc dot gnu dot org
--- Comment #16 from jakub at gcc dot gnu dot org 2007-04-03 12:33 --- Fixed. -- jakub at gcc dot gnu dot org changed: What|Removed |Added Status|ASSIGNED

[Bug c/31458] gcc:internal compiler error: Segmentation fault on sprintf (buf, "%s");

2007-04-03 Thread sharybin at nm dot ru
--- Comment #1 from sharybin at nm dot ru 2007-04-03 12:02 --- Created an attachment (id=13323) --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=13323&action=view) File generated by -save-temps flag -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=31458

[Bug c/31458] New: gcc:internal compiler error: Segmentation fault on sprintf (buf, "%s");

2007-04-03 Thread sharybin at nm dot ru
When I'm trying to compile simple program #include void main () { char buf[1024]; sprintf (buf, "%s"); } gcc catchs segmentation fault. -- Summary: gcc:internal compiler error: Segmentation fault on sprintf (buf, "%s"); Product: gcc Ver

[Bug target/31175] isinf incorrectly expanded

2007-04-03 Thread uros at gcc dot gnu dot org
--- Comment #3 from uros at gcc dot gnu dot org 2007-04-03 11:21 --- Subject: Bug 31175 Author: uros Date: Tue Apr 3 11:20:53 2007 New Revision: 123465 URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=123465 Log: PR target/31175 * config/i386/i386.md (isinf2): Expan

[Bug libstdc++/5291] Bad reference to build directory in libstdc++.la

2007-04-03 Thread peb at mppmu dot mpg dot de
--- Comment #23 from peb at mppmu dot mpg dot de 2007-04-03 10:29 --- Created an attachment (id=13322) --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=13322&action=view) patch (3 of 3) as described in comment #20 -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=5291

[Bug c++/30847] [4.1/4.2/4.3 regression] ICE with invalid statement expression

2007-04-03 Thread jakub at gcc dot gnu dot org
--- Comment #4 from jakub at gcc dot gnu dot org 2007-04-03 10:28 --- Subject: Bug 30847 Author: jakub Date: Tue Apr 3 10:28:35 2007 New Revision: 123462 URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=123462 Log: PR c++/30847 * typeck.c (build_modify_expr): For

[Bug libstdc++/5291] Bad reference to build directory in libstdc++.la

2007-04-03 Thread peb at mppmu dot mpg dot de
--- Comment #22 from peb at mppmu dot mpg dot de 2007-04-03 10:28 --- Created an attachment (id=13321) --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=13321&action=view) patch (2 of 3) as described in comment #20 -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=5291

[Bug libstdc++/5291] Bad reference to build directory in libstdc++.la

2007-04-03 Thread peb at mppmu dot mpg dot de
--- Comment #21 from peb at mppmu dot mpg dot de 2007-04-03 10:27 --- Created an attachment (id=13320) --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=13320&action=view) patch (1 of 3) as described in comment #20 -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=5291

[Bug c++/30847] [4.1/4.2/4.3 regression] ICE with invalid statement expression

2007-04-03 Thread jakub at gcc dot gnu dot org
--- Comment #3 from jakub at gcc dot gnu dot org 2007-04-03 10:25 --- Subject: Bug 30847 Author: jakub Date: Tue Apr 3 10:25:31 2007 New Revision: 123461 URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=123461 Log: PR c++/30847 * typeck.c (build_modify_expr): For

[Bug libstdc++/5291] Bad reference to build directory in libstdc++.la

2007-04-03 Thread peb at mppmu dot mpg dot de
--- Comment #20 from peb at mppmu dot mpg dot de 2007-04-03 10:24 --- After some investigation I found that the problem of libtool & build paths has three aspects: (1) Build paths stored in installed c++ libraries (libstdc++.la and libsupc++.la) and then propagated to other libraries an

[Bug middle-end/30704] [4.2/4.3 Regression] Incorrect constant generation for long long

2007-04-03 Thread jakub at gcc dot gnu dot org
--- Comment #15 from jakub at gcc dot gnu dot org 2007-04-03 10:23 --- Subject: Bug 30704 Author: jakub Date: Tue Apr 3 10:23:03 2007 New Revision: 123460 URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=123460 Log: PR middle-end/30704 * fold-const.c (native_encod

[Bug c++/30847] [4.1/4.2/4.3 regression] ICE with invalid statement expression

2007-04-03 Thread jakub at gcc dot gnu dot org
--- Comment #2 from jakub at gcc dot gnu dot org 2007-04-03 10:08 --- Subject: Bug 30847 Author: jakub Date: Tue Apr 3 10:08:00 2007 New Revision: 123456 URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=123456 Log: PR c++/30847 * typeck.c (build_modify_expr): For

[Bug middle-end/30704] [4.2/4.3 Regression] Incorrect constant generation for long long

2007-04-03 Thread jakub at gcc dot gnu dot org
--- Comment #14 from jakub at gcc dot gnu dot org 2007-04-03 10:05 --- Subject: Bug 30704 Author: jakub Date: Tue Apr 3 10:05:38 2007 New Revision: 123455 URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=123455 Log: PR middle-end/30704 * fold-const.c (native_encod

[Bug libstdc++/31456] stringstream behaves unexpectedly

2007-04-03 Thread cmertes at techfak dot uni-bielefeld dot de
--- Comment #2 from cmertes at techfak dot uni-bielefeld dot de 2007-04-03 10:03 --- (In reply to comment #1) > And this is the correct behavior, which you can see also in many other > implementations. All right. It's strange anyway, I guess anybody who looked onto the two versions of

[Bug target/29826] __attribute__ dllimport makes optimization crash on cygwin

2007-04-03 Thread dannysmith at users dot sourceforge dot net
--- Comment #10 from dannysmith at users dot sourceforge dot net 2007-04-03 09:54 --- *** Bug 31457 has been marked as a duplicate of this bug. *** -- dannysmith at users dot sourceforge dot net changed: What|Removed |Added ---

[Bug c/31457] Internal Compiler Error

2007-04-03 Thread dannysmith at users dot sourceforge dot net
--- Comment #1 from dannysmith at users dot sourceforge dot net 2007-04-03 09:54 --- Duplicate of 29826 which is fixed on 4.2.0 and trunk. Danny *** This bug has been marked as a duplicate of 29826 *** -- dannysmith at users dot sourceforge dot net changed: What|Re

[Bug c/31457] Internal Compiler Error

2007-04-03 Thread dannysmith at users dot sourceforge dot net
-- dannysmith at users dot sourceforge dot net changed: What|Removed |Added AssignedTo|unassigned at gcc dot gnu |dannysmith at users dot |dot org

[Bug fortran/31427] When I compile the following program I get the message "GNU MP: Cannot reallocate memory"

2007-04-03 Thread dfranke at gcc dot gnu dot org
--- Comment #5 from dfranke at gcc dot gnu dot org 2007-04-03 09:37 --- For i686/SuSE 10.1 valgrind-3.2.2 gives: ==13209== Warning: set address range perms: large range 568154688 (undefined) ==13209== Invalid read of size 4 ==13209==at 0x40849CD: __gmpn_copyi (in /h/franke/packages/

[Bug fortran/31427] When I compile the following program I get the message "GNU MP: Cannot reallocate memory"

2007-04-03 Thread dfranke at gcc dot gnu dot org
--- Comment #4 from dfranke at gcc dot gnu dot org 2007-04-03 09:34 --- Neither can I (gcc-4.2, gcc-svn). x86_64 seems to be immune. Another i686 machine again crashes (gcc-4.2, gcc-svn), so does an ia64 (gcc-4.2). All boxes have gmp-4.2.1 installed. -- dfranke at gcc dot gnu dot or

[Bug libstdc++/31440] [4.3 Regression] libstdc++-g++-v3 discarded qualifiers

2007-04-03 Thread pcarlini at suse dot de
-- pcarlini at suse dot de changed: What|Removed |Added Target Milestone|--- |4.3.0 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=31440

[Bug libstdc++/31440] [4.3 Regression] libstdc++-g++-v3 discarded qualifiers

2007-04-03 Thread pcarlini at suse dot de
--- Comment #3 from pcarlini at suse dot de 2007-04-03 09:33 --- Fixed for 4.3.0. -- pcarlini at suse dot de changed: What|Removed |Added Status|ASSIGNED

[Bug libstdc++/31440] [4.3 Regression] libstdc++-g++-v3 discarded qualifiers

2007-04-03 Thread paolo at gcc dot gnu dot org
--- Comment #2 from paolo at gcc dot gnu dot org 2007-04-03 09:32 --- Subject: Bug 31440 Author: paolo Date: Tue Apr 3 09:32:31 2007 New Revision: 123452 URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=123452 Log: 2007-04-03 Paolo Carlini <[EMAIL PROTECTED]> PR libstd

[Bug libstdc++/31456] stringstream behaves unexpectedly

2007-04-03 Thread pcarlini at suse dot de
--- Comment #1 from pcarlini at suse dot de 2007-04-03 09:20 --- (In reply to comment #0) > the output changes to: 123de. So the initialization string gets overwritten > instead of appending the data. And this is the correct behavior, which you can see also in many other implementations

[Bug c/31457] New: Internal Compiler Error

2007-04-03 Thread henman at it dot to-be dot co dot jp
Error: unrecognizable insn (1) $ /usr/local/bin/gcc -v Using built-in specs. Target: i686-pc-cygwin Configured with: ../configure --enable-languages=c,c++,objc,fortran,java --cache-file=build_cache.dat Thread model: single gcc version 4.1.3 20070402 (prerelease) (2) system type: CYGWIN_NT-5.1 1

[Bug c++/31456] New: stringstream behaves unexpectedly

2007-04-03 Thread cmertes at techfak dot uni-bielefeld dot de
First of all some code that behaves as expected: #include #include using namespace std; int main(int argc, char argv[]) { stringstream name; name << "abcde"; name << 123; cout << name.str() << endl; } Output: abcde123 Now if we change the first two lines of main() to get: int main(in