[Bug fortran/30902] gfortran produces wrong result with code using generic interface block

2007-02-21 Thread pault at gcc dot gnu dot org
--- Comment #3 from pault at gcc dot gnu dot org 2007-02-21 08:51 --- (In reply to comment #2) (In reply to comment #0) By the way, NAG f95 detects the interface/procedure mismatch also for the original program as the interface and the subroutines are in the same file. This

[Bug middle-end/30143] [4.2 only] OpenMP can produce invalid gimple

2007-02-21 Thread jakub at gcc dot gnu dot org
--- Comment #12 from jakub at gcc dot gnu dot org 2007-02-21 09:12 --- Subject: Bug 30143 Author: jakub Date: Wed Feb 21 09:12:14 2007 New Revision: 122192 URL: http://gcc.gnu.org/viewcvs?root=gccview=revrev=122192 Log: Backported from mainline 2006-12-20 Andrew

[Bug middle-end/30904] New: [dataflow] No longer optimizes shifts with large count

2007-02-21 Thread rguenth at gcc dot gnu dot org
extern void link_error (const char *); extern int ones; void foo(int); void kernel () { struct { unsigned int a : 7; } s; s.a = ones; if (s.a 8) link_error (foo); if (s.a 9) link_error (foo); } mainline optimizes this to an empty function with -O2,

[Bug middle-end/30905] New: [dataflow] Fails to cross-jump

2007-02-21 Thread rguenth at gcc dot gnu dot org
static int a[30]; static int b[30]; int gen_int(int); void kernel () { int i; i = gen_int (1); if (i != 0) { a[0] = a[0] + (a[0] 3); b[0] = b[0] + (b[0] | 3); } else { a[0] = a[0] + (a[0] 3); b[0] = b[0] + (b[0] | 3); } if (i != 1) {

[Bug c++/30822] wrong choice of overloaded template functions in recursive call

2007-02-21 Thread Zarathustra at gentlemansclub dot de
--- Comment #4 from Zarathustra at gentlemansclub dot de 2007-02-21 10:16 --- Now the code was also compiled with 4.3.0 and produced the same error message. I can make the actual failure more specific: The following code compiles fine: templatetemplatetypename class

[Bug middle-end/30907] New: [dataflow] Bad interaction with addressing mode selection and regalloc

2007-02-21 Thread rguenth at gcc dot gnu dot org
int bar (void); void foo (int *); static int s[10]; void foobar (int i1, int i2, int i3, int i4, int i5, int i6) { int a[100]; int i, i7; i7 = bar (); bar (); for (i = 0; i 100; i++) a[i] = s[i1] + s[i2] + s[i3] + s[i4] + s[i5] + s[i6] + s[i7]; foo (a[0]); return; } If you

[Bug fortran/30870] GENERIC non-INTRINSIC procedure rejected as actual argument

2007-02-21 Thread pault at gcc dot gnu dot org
--- Comment #2 from pault at gcc dot gnu dot org 2007-02-21 10:47 --- This fixes it: Index: gcc/fortran/resolve.c === *** gcc/fortran/resolve.c (revision 122101) --- gcc/fortran/resolve.c (working copy)

[Bug debug/30898] [4.3 regression] ICE with anonymous union and -g

2007-02-21 Thread rguenth at gcc dot gnu dot org
--- Comment #1 from rguenth at gcc dot gnu dot org 2007-02-21 11:02 --- Works for me - maybe related to the fixed PR29558. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=30898

[Bug fortran/30873] ENTRY without explict RESULT does not work for recursive functions

2007-02-21 Thread pault at gcc dot gnu dot org
--- Comment #2 from pault at gcc dot gnu dot org 2007-02-21 11:02 --- Removing the error call if (proc-attr.recursive result == NULL) { gfc_error (RESULT attribute required in ENTRY statement at %C); return MATCH_ERROR; } at decl.c:3032 fixes

[Bug debug/30898] [4.3 regression] ICE with anonymous union and -g

2007-02-21 Thread rguenth at gcc dot gnu dot org
--- Comment #2 from rguenth at gcc dot gnu dot org 2007-02-21 11:03 --- Confirmed. 32bits only. -- rguenth at gcc dot gnu dot org changed: What|Removed |Added

[Bug debug/30898] [4.3 regression] ICE with anonymous union and -g

2007-02-21 Thread rguenth at gcc dot gnu dot org
--- Comment #3 from rguenth at gcc dot gnu dot org 2007-02-21 11:06 --- Another subreg lowering issue. We have #1 0x0078510e in mem_loc_descriptor (rtl=0x2b5aa76fc0c0, mode=DImode) at /space/rguenther/src/svn/trunk/gcc/dwarf2out.c:9010 9010 gcc_unreachable ();

[Bug c++/30901] [4.1 Regression] internal compiler error: in is_ancestor, at cp/name-lookup.c

2007-02-21 Thread rguenth at gcc dot gnu dot org
--- Comment #1 from rguenth at gcc dot gnu dot org 2007-02-21 11:12 --- *** This bug has been marked as a duplicate of 27102 *** -- rguenth at gcc dot gnu dot org changed: What|Removed |Added

[Bug c++/27102] [4.0/4.1 regression] ICE with invalid class name in function template

2007-02-21 Thread rguenth at gcc dot gnu dot org
--- Comment #16 from rguenth at gcc dot gnu dot org 2007-02-21 11:12 --- *** Bug 30901 has been marked as a duplicate of this bug. *** -- rguenth at gcc dot gnu dot org changed: What|Removed |Added

[Bug c/30908] New: -Os inlines functions that are called more than once (optimization regression)

2007-02-21 Thread j at uriah dot heep dot sax dot de
This has been observed for the AVR target, but could perhaps also apply to other targets. Recent versions of GCC (4.1.1 and 4.3.0 trunk are confirmed) tend to inline static functions with -Os even when they are being called more than once, thus resulting in larger code than necessary. This

[Bug c/30908] -Os inlines functions that are called more than once (optimization regression)

2007-02-21 Thread j at uriah dot heep dot sax dot de
--- Comment #1 from j at uriah dot heep dot sax dot de 2007-02-21 11:50 --- Created an attachment (id=13082) -- (http://gcc.gnu.org/bugzilla/attachment.cgi?id=13082action=view) Sample code snippet that can be used to demonstrate the problem. avr-gcc -DNOINLINE -Os -S bar.c avr-gcc

[Bug libfortran/30498] Support traceback (backtrace) on errors

2007-02-21 Thread P dot Schaffnit at access dot rwth-aachen dot de
--- Comment #11 from P dot Schaffnit at access dot rwth-aachen dot de 2007-02-21 11:58 --- Hi! I don't seem to be able to apply this patch to '122195' sources: did it get out of synch, or is it plain clumsiness on my part? I get: Hunk #2 FAILED at 3151. 1 out of 2 hunks FAILED --

[Bug tree-optimization/30858] [4.3 Regression] ice for legal code with -O2 -ftree-vectorize

2007-02-21 Thread dcb314 at hotmail dot com
--- Comment #7 from dcb314 at hotmail dot com 2007-02-21 12:17 --- (In reply to comment #6) proposed patches - http://gcc.gnu.org/ml/gcc-patches/2007-02/msg01734.html would you mind giving these patches a try? (to see what's the next ICE...?) If the patches have been applied to gcc

[Bug c++/30909] New: public member of template class not visible in derived template class

2007-02-21 Thread sl at datamyway dot de
on SuSe linux 10.0 ~/wurschtel/cpp uname -a Linux djebe 2.6.13-15-smp #1 SMP Tue Sep 13 14:56:15 UTC 2005 i686 i686 i386 GNU/Linux with gcc version 4.0.2 (but also with 4.1.2) when running make on the following files A.h: //const int NUM_BYTES = 5; templateint NUM_BYTES class A { public: int

[Bug c++/30909] public member of template class not visible in derived template class

2007-02-21 Thread sl at datamyway dot de
--- Comment #1 from sl at datamyway dot de 2007-02-21 12:27 --- Sorry for my cutpaste, the files really are: A.h: //const int NUM_BYTES = 5; templateint NUM_BYTES class A { public: int mBytes[NUM_BYTES]; }; B.h: #include A.h templateint NUM_BYTES class B : public

bug report

2007-02-21 Thread Fabio TROVATO
I'm sending this mail to report a bug during the compilation of a Fortran program. The information needed are: Using built-in specs. Target: i686-apple-darwin8 Configured with: /private/var/tmp/gcc/gcc-5367.obj~1/src/configure --disable-checking -enable-werror --prefix=/usr

[Bug c/30908] -Os inlines functions that are called more than once (optimization regression)

2007-02-21 Thread rguenth at gcc dot gnu dot org
--- Comment #2 from rguenth at gcc dot gnu dot org 2007-02-21 12:33 --- This is not a bug with inlining but at most with the cost function(s). Use -fdump-ipa-inline to follow the reasoning: Deciding on inlining. Starting with 10 insns. Inlining always_inline functions: Deciding on

[Bug c/30908] -Os inlines functions that are called more than once (optimization regression)

2007-02-21 Thread rguenth at gcc dot gnu dot org
--- Comment #3 from rguenth at gcc dot gnu dot org 2007-02-21 12:35 --- And indeed, for x86_64 we have [EMAIL PROTECTED]:/abuild/rguenther/trunk-g/gcc ./xgcc -B. -Os -fdump-ipa-inline t.i -c [EMAIL PROTECTED]:/abuild/rguenther/trunk-g/gcc size t.o textdata bss dec

[Bug fortran/30910] New: Gfortran: ES format not quite right...

2007-02-21 Thread pmason at ricardo dot com
When printing using ES-format descriptor with zero decimal places (e.g. ES6.0) get zero answer. Sample code below, compiled as gfortran test.f90, using version 4.3.0 20070221 (experimental) on suse 9 linux box (64-bit). - program esformat !This should print

[Bug c++/30909] public member of template class not visible in derived template class

2007-02-21 Thread rguenth at gcc dot gnu dot org
--- Comment #2 from rguenth at gcc dot gnu dot org 2007-02-21 12:54 --- Read about two-stage name lookup. Use this-mBytes. -- rguenth at gcc dot gnu dot org changed: What|Removed |Added

[Bug c/30908] -Os inlines functions that are called more than once (optimization regression)

2007-02-21 Thread j at uriah dot heep dot sax dot de
--- Comment #4 from j at uriah dot heep dot sax dot de 2007-02-21 12:58 --- (In reply to comment #2) so it believes code size is unchanged by inlining the function twice and removing the now unneeded out-of-line copy. So does that mean some cost factor needs to be tuned in the AVR

[Bug middle-end/30904] [dataflow] No longer optimizes shifts with large count

2007-02-21 Thread belyshev at depni dot sinp dot msu dot ru
--- Comment #1 from belyshev at depni dot sinp dot msu dot ru 2007-02-21 13:30 --- Confirmed, same problem on alphaev56-unknown-linux-gnu. -- belyshev at depni dot sinp dot msu dot ru changed: What|Removed |Added

[Bug libgcj/30886] Memory collection deadlock

2007-02-21 Thread aph at gcc dot gnu dot org
--- Comment #2 from aph at gcc dot gnu dot org 2007-02-21 13:38 --- I don't understand what this is supposed to be testing. Can you please explain what your expected behaviour is? -- aph at gcc dot gnu dot org changed: What|Removed |Added

[Bug fortran/30873] ENTRY without explict RESULT does not work for recursive functions

2007-02-21 Thread burnus at gcc dot gnu dot org
--- Comment #3 from burnus at gcc dot gnu dot org 2007-02-21 13:53 --- Removing the error call if (proc-attr.recursive result == NULL) { gfc_error (RESULT attribute required in ENTRY statement at %C); return MATCH_ERROR; } at decl.c:3032

[Bug tree-optimization/30911] New: VRP fails to eliminate range checks in Ada code

2007-02-21 Thread baldrick at gcc dot gnu dot org
All of the range checks can in theory be eliminated, except for the first one (a call to __gnat_rcheck_04, unlike the others which are calls to __gnat_rcheck_04), but they are not: $ gcc -c -O2 -fdump-tree-all j.ads $ grep __gnat_rcheck_12 j.ads.118t.final_cleanup __gnat_rcheck_12

[Bug c/30912] New: Can't build gcc on Sun Solaris

2007-02-21 Thread info at icomsoftware dot de
$ uname -a SunOS sun 5.8 Generic_108528-03 sun4u sparc SUNW,Ultra-5_10 $ $CC -V cc: Sun WorkShop 6 update 1 C 5.2 2000/09/11 $ gmake --version GNU Make 3.80 $ gmake -k gmake[1]: Entering directory `/export/home0/sun_home/pirschel/tmp/gcc-4.1.2' gmake[2]: Entering directory

[Bug middle-end/30364] [4.1/4.2/4.3 Regression] Wrong variable ranges due to constant folding

2007-02-21 Thread rguenth at gcc dot gnu dot org
--- Comment #10 from rguenth at gcc dot gnu dot org 2007-02-21 14:24 --- Mine. -- rguenth at gcc dot gnu dot org changed: What|Removed |Added

[Bug tree-optimization/30913] New: SRA bugs with anon bitfields

2007-02-21 Thread jakub at gcc dot gnu dot org
// gcc -O2 -Wall -S uninit-anon-bitfield.c struct foo { unsigned int a:16; unsigned int b:11; unsigned int :5; }; extern struct foo bar; void foo(int a, int b) { struct foo tmp; tmp.a = a; tmp.b = b; bar = tmp; } warns while it should not, the anon bitfield is just a padding,

[Bug fortran/30910] Gfortran: ES format not quite right...

2007-02-21 Thread jvdelisle at gcc dot gnu dot org
--- Comment #1 from jvdelisle at gcc dot gnu dot org 2007-02-21 14:32 --- I wil investigate this. -- jvdelisle at gcc dot gnu dot org changed: What|Removed |Added

[Bug c/30908] -Os inlines functions that are called more than once (optimization regression)

2007-02-21 Thread rguenth at gcc dot gnu dot org
--- Comment #5 from rguenth at gcc dot gnu dot org 2007-02-21 14:35 --- Unfortunately(?) the cost metrics for inlining are completely target independent at the moment. Can you check whether adjusting --param inline-call-cost will fix it for you? At the moment this is artificially high

[Bug c/30908] -Os inlines functions that are called more than once (optimization regression)

2007-02-21 Thread j at uriah dot heep dot sax dot de
--- Comment #6 from j at uriah dot heep dot sax dot de 2007-02-21 14:46 --- (In reply to comment #5) Unfortunately(?) the cost metrics for inlining are completely target independent at the moment. Can you check whether adjusting --param inline-call-cost will fix it for you? Only

[Bug fortran/30910] [Regression 4.2, 4.3] Gfortran: ES format not quite right...

2007-02-21 Thread burnus at gcc dot gnu dot org
--- Comment #2 from burnus at gcc dot gnu dot org 2007-02-21 14:51 --- This is a regression. With 4.1.2 20070115 (prerelease) (SUSE Linux) I get 1.E-01, but with today's 4.2 and 4.3 I get 0.E+00. -- burnus at gcc dot gnu dot org changed: What|Removed

[Bug bootstrap/30914] New: Bootstrap fails on HP-UX

2007-02-21 Thread info at icomsoftware dot de
$ uname -a HP-UX hp-ux B.11.11 U 9000/785 2014286724 unlimited-user license $ gmake --version GNU Make 3.80 $ gmake bootstrap [...] Bootstrapping the compiler gmake[1]: Entering directory `/home/pirschel/tmp/gcc-4.1.2/gcc' gmake[1]: *** No rule to make target `bootstrap'. Stop. gmake[1]:

[Bug middle-end/30761] [4.1/4.2/4.3 regression] Error: unsupported relocation against sfp

2007-02-21 Thread uweigand at gcc dot gnu dot org
--- Comment #4 from uweigand at gcc dot gnu dot org 2007-02-21 15:05 --- Subject: Bug 30761 Author: uweigand Date: Wed Feb 21 15:05:01 2007 New Revision: 122199 URL: http://gcc.gnu.org/viewcvs?root=gccview=revrev=122199 Log: PR middle-end/30761 * reload1.c

[Bug middle-end/30908] -Os inlines functions that are called more than once (optimization regression)

2007-02-21 Thread pinskia at gcc dot gnu dot org
--- Comment #7 from pinskia at gcc dot gnu dot org 2007-02-21 15:10 --- Even on powerpc, it lowers in size also: no inline: __TEXT __DATA __OBJC others dec hex 84 0 0 0 84 54 With inline: __TEXT __DATA __OBJC others dec hex 52 0 0

[Bug bootstrap/30915] New: [4.3 regression] bootstrap fails while building libstdc++-v3 on x86_64-pc-linux-gnu

2007-02-21 Thread eesrjhc at bath dot ac dot uk
Hi, Platform: Gentoo Linux: $ uname -a Linux hertz 2.6.17-gentoo-r4 #1 SMP Thu Aug 24 16:20:25 BST 2006 x86_64 AMD Opteron(tm) Processor 844 AuthenticAMD GNU/Linux Toolchain: $ /lib/libc.so.6 GNU C Library development release version 2.4, by Roland McGrath et al. Copyright (C) 2006 Free

[Bug c++/30332] [4.1/4.2/4.3 regression] bit-field: optimization BUG?

2007-02-21 Thread rguenth at gcc dot gnu dot org
--- Comment #4 from rguenth at gcc dot gnu dot org 2007-02-21 15:12 --- With 4.1.3 for C we have, even without optimizing ./xgcc -B. -o t t.c -Wall t.c: In function 'main': t.c:13: warning: format '%llx' expects type 'long long unsigned int', but argument 2 has type 'long unsigned

[Bug fortran/30902] gfortran produces wrong result with code using generic interface block

2007-02-21 Thread deji_aking at yahoo dot ca
--- Comment #4 from deji_aking at yahoo dot ca 2007-02-21 15:13 --- (In reply to comment #3) (In reply to comment #2) (In reply to comment #0) By the way, NAG f95 detects the interface/procedure mismatch also for the original program as the interface and the subroutines are in

[Bug tree-optimization/30708] [4.1 Regression] Aliasing miscompilation

2007-02-21 Thread rguenth at gcc dot gnu dot org
-- rguenth at gcc dot gnu dot org changed: What|Removed |Added Target Milestone|--- |4.1.3 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=30708

[Bug tree-optimization/30911] VRP fails to eliminate range checks in Ada code

2007-02-21 Thread baldrick at gcc dot gnu dot org
--- Comment #1 from baldrick at gcc dot gnu dot org 2007-02-21 15:17 --- I've tried and failed to attach the source code (bugzilla problem), so here it is inline (you can extract it using gnatchop): with Join_Equal; with JS; procedure J is new Join_Equal ( Source_Type = JS.S,

[Bug tree-optimization/30913] SRA bugs with anon bitfields

2007-02-21 Thread pinskia at gcc dot gnu dot org
--- Comment #1 from pinskia at gcc dot gnu dot org 2007-02-21 15:18 --- SRA certainly should not have decided to use element copies at all, that makes many times worse code. That is really unrelated to unanonymous bitfields and is a different bug and has been filled already (I forgot

[Bug c++/30850] [4.1/4.2/4.3 regression] ICE with invalid asm statement

2007-02-21 Thread rguenth at gcc dot gnu dot org
--- Comment #1 from rguenth at gcc dot gnu dot org 2007-02-21 15:22 --- Confirmed. Starting with 4.0.0 there are random segfaults on diagnostics. -- rguenth at gcc dot gnu dot org changed: What|Removed |Added

[Bug c++/30818] [4.1/4.2/4.3 Regression] templates and typedefs cause function prototype not to match

2007-02-21 Thread rguenth at gcc dot gnu dot org
-- rguenth at gcc dot gnu dot org changed: What|Removed |Added Target Milestone|--- |4.1.3 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=30818

[Bug middle-end/30774] [4.1 regression] ld: fatal: too many symbols require `small' PIC references

2007-02-21 Thread rguenth at gcc dot gnu dot org
-- rguenth at gcc dot gnu dot org changed: What|Removed |Added Target Milestone|--- |4.1.3 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=30774

[Bug middle-end/30907] [dataflow] Bad interaction with addressing mode selection and regalloc

2007-02-21 Thread steven at gcc dot gnu dot org
--- Comment #1 from steven at gcc dot gnu dot org 2007-02-21 15:53 --- On i686, this happens too, due to fwprop1: In insn 47, replacing (mem/s:SI (plus:SI (plus:SI (mult:SI (reg:SI 75 [ ivtmp.37 ]) (const_int 4 [0x4])) (reg/f:SI 91))

[Bug middle-end/30904] [dataflow] No longer optimizes shifts with large count

2007-02-21 Thread steven at gcc dot gnu dot org
--- Comment #2 from steven at gcc dot gnu dot org 2007-02-21 15:58 --- Problem here is combine. -- steven at gcc dot gnu dot org changed: What|Removed |Added

[Bug middle-end/30907] [dataflow] Bad interaction with addressing mode selection and regalloc

2007-02-21 Thread bonzini at gnu dot org
--- Comment #2 from bonzini at gnu dot org 2007-02-21 16:01 --- fwprop has some tricks to avoid propagating within loops before unrolling. The interesting point is why they trigger differently in mainline vs. dataflow. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=30907

[Bug middle-end/30904] [dataflow] No longer optimizes shifts with large count

2007-02-21 Thread bonzini at gnu dot org
--- Comment #3 from bonzini at gnu dot org 2007-02-21 16:03 --- This unrelated patch fixes a very similar case for powerpc unpatched: or r0,r3,r28 rlwinm r0,r0,0,0xff cmpwi cr7,r0,0 beq- cr7,L4929 patched: (r3 and r28 are both extended from QImode)

[Bug middle-end/30904] [dataflow] No longer optimizes shifts with large count

2007-02-21 Thread bonzini at gnu dot org
--- Comment #4 from bonzini at gnu dot org 2007-02-21 16:05 --- It doesn't, but I confirm that the bug is target independent. A way to fix it would be to do the transform in VRP, but I'll look at combine if time permits. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=30904

[Bug middle-end/30904] [dataflow] No longer optimizes shifts with large count

2007-02-21 Thread bonzini at gnu dot org
--- Comment #5 from bonzini at gnu dot org 2007-02-21 16:11 --- The first one is in the same EBB as the assignment. The second one isn't and combine screws up. This is because of the way combine treats regs with one def that dominates all uses, I talked to zadeck yesterday about that

[Bug debug/30898] [4.3 regression] ICE with anonymous union and -g

2007-02-21 Thread ian at airs dot com
--- Comment #4 from ian at airs dot com 2007-02-21 16:12 --- I'm testing a patch. -- ian at airs dot com changed: What|Removed |Added AssignedTo|unassigned at

[Bug middle-end/30904] [dataflow] No longer optimizes shifts with large count

2007-02-21 Thread bonzini at gnu dot org
--- Comment #6 from bonzini at gnu dot org 2007-02-21 16:23 --- Created an attachment (id=13083) -- (http://gcc.gnu.org/bugzilla/attachment.cgi?id=13083action=view) patch to fix the bug The logic in trunk's combine with respect to uninitialized variables is correct. We have to look

[Bug c/30916] New: Wrong �float� rather than �double� due to prototype warning

2007-02-21 Thread hermantenbrugge at home dot nl
The following code: void func (float a); void func (float a) { } int main (void) { func (3.0f); return 0; } Compiled with: gcc -Wconversion bug.c produces: bug.c: In function ‘main’: bug.c:10: warning: passing argument 1 of ‘func’ as ‘float’ rather than ‘double’ due to prototype I was not

[Bug fortran/30876] Array valued recursive function rejected

2007-02-21 Thread pault at gcc dot gnu dot org
--- Comment #2 from pault at gcc dot gnu dot org 2007-02-21 16:33 --- fortcom: Warning: dtgv.f90, line 9: Recursive array-valued function without result variable ambiguous [TEST] Goes right to the nub of it. Within test, is an r-value expression that contains a reference to test

[Bug fortran/30876] Array valued recursive function rejected

2007-02-21 Thread burnus at gcc dot gnu dot org
--- Comment #3 from burnus at gcc dot gnu dot org 2007-02-21 17:03 --- Paul, fortcom: Warning: dtgv.f90, line 9: Recursive array-valued function without result variable ambiguous [TEST] Goes right to the nub of it. Within test, is an r-value expression that contains a

[Bug middle-end/30908] -Os inlines functions that are called more than once (optimization regression)

2007-02-21 Thread j at uriah dot heep dot sax dot de
--- Comment #8 from j at uriah dot heep dot sax dot de 2007-02-21 17:18 --- (In reply to comment #7) So really this is a target specific issue I think. The only question then is whether the current architecture allows for tuning the costs in the target-specific files. --

[Bug middle-end/30908] -Os inlines functions that are called more than once (optimization regression)

2007-02-21 Thread hubicka at gcc dot gnu dot org
--- Comment #9 from hubicka at gcc dot gnu dot org 2007-02-21 17:26 --- The main problem here is that inliner really don't have enough of detailed information. In general inlining improves optimization and often leads to smaller code when inlining such a trivial function ARM or not.

[Bug c/30912] Can't build gcc on Sun Solaris

2007-02-21 Thread ebotcazou at gcc dot gnu dot org
--- Comment #1 from ebotcazou at gcc dot gnu dot org 2007-02-21 17:38 --- Please post the configure line. $ gmake -k Do not use -k. /bin/sh: pod2man: not found Do not use /bin/sh. Please retry after reading the build instructions available at: http://gcc.gnu.org/install

[Bug middle-end/30908] -Os inlines functions that are called more than once (optimization regression)

2007-02-21 Thread steven at gcc dot gnu dot org
--- Comment #10 from steven at gcc dot gnu dot org 2007-02-21 17:42 --- So, ehm... What do the asm dumps for AVR look like? Can you attach them, so we know what we're talking about here? -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=30908

[Bug tree-optimization/30911] VRP fails to eliminate range checks in Ada code

2007-02-21 Thread steven at gcc dot gnu dot org
--- Comment #2 from steven at gcc dot gnu dot org 2007-02-21 17:55 --- Bonus points if you can reduce this to a C test case ;-) Starting with the gimple dumps, this is usually not hard to do. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=30911

[Bug tree-optimization/30911] VRP fails to eliminate range checks in Ada code

2007-02-21 Thread ebotcazou at gcc dot gnu dot org
--- Comment #3 from ebotcazou at gcc dot gnu dot org 2007-02-21 18:01 --- Bonus points if you can reduce this to a C test case ;-) Starting with the gimple dumps, this is usually not hard to do. Not everything is in the dumps, in particular you don't have subtypes in C. --

[Bug c++/30917] New: ICE with friend in local class (to a function)

2007-02-21 Thread pinskia at gcc dot gnu dot org
Testcase: unsigned count() { class QGListIterator { friend class QGList; QGListIterator( const QGList ); }; } I think this is valid code. -- Summary: ICE with friend in local class (to a function) Product: gcc Version: 4.3.0 Status:

[Bug c++/30917] ICE with friend in local class (to a function)

2007-02-21 Thread pinskia at gcc dot gnu dot org
--- Comment #1 from pinskia at gcc dot gnu dot org 2007-02-21 18:24 --- The ICE: t2.cc: In function 'unsigned int count()': t2.cc:4: internal compiler error: in lookup_name_real, at cp/name-lookup.c:4014 Please submit a full bug report, with preprocessed source if appropriate. See

[Bug fortran/30876] Array valued recursive function rejected

2007-02-21 Thread pault at gcc dot gnu dot org
--- Comment #4 from pault at gcc dot gnu dot org 2007-02-21 18:52 --- Tobias, Well, it is easy: 12.5.2.1 Function subprogram If RESULT is not specified, the result variable is function- name and all occurrences of the function name in execution-part statements are references to

[Bug fortran/30865] optional argument passed on to size(...,dim=)

2007-02-21 Thread kargl at gcc dot gnu dot org
--- Comment #7 from kargl at gcc dot gnu dot org 2007-02-21 19:02 --- (In reply to comment #4) Created an attachment (id=13073) -- (http://gcc.gnu.org/bugzilla/attachment.cgi?id=13073action=view) [edit] Fix for the problem Paul, I tried to apply your patch, but it is rejected. Is

[Bug tree-optimization/30858] [4.3 Regression] ice for legal code with -O2 -ftree-vectorize

2007-02-21 Thread dorit at il dot ibm dot com
--- Comment #8 from dorit at il dot ibm dot com 2007-02-21 19:31 --- Is this acceptable ? sure, thanks -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=30858

[Bug middle-end/30908] -Os inlines functions that are called more than once (optimization regression)

2007-02-21 Thread j at uriah dot heep dot sax dot de
--- Comment #11 from j at uriah dot heep dot sax dot de 2007-02-21 19:32 --- (In reply to comment #9) I don't see that adding a hook to provide target specific tuning for size estimates at this level is going to be useful enough to justify maintenance cost of such code. Sadly

[Bug middle-end/30908] -Os inlines functions that are called more than once (optimization regression)

2007-02-21 Thread j at uriah dot heep dot sax dot de
--- Comment #12 from j at uriah dot heep dot sax dot de 2007-02-21 19:32 --- Created an attachment (id=13084) -- (http://gcc.gnu.org/bugzilla/attachment.cgi?id=13084action=view) Compilation result with inlined functions. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=30908

[Bug middle-end/30908] -Os inlines functions that are called more than once (optimization regression)

2007-02-21 Thread j at uriah dot heep dot sax dot de
--- Comment #13 from j at uriah dot heep dot sax dot de 2007-02-21 19:33 --- Created an attachment (id=13085) -- (http://gcc.gnu.org/bugzilla/attachment.cgi?id=13085action=view) Compilation result with inlining disabled. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=30908

[Bug middle-end/30908] -Os inlines functions that are called more than once (optimization regression)

2007-02-21 Thread pinskia at gcc dot gnu dot org
--- Comment #14 from pinskia at gcc dot gnu dot org 2007-02-21 19:37 --- The AVR back-end really needs improvement: ldi r18,lo8(1) ldi r19,hi8(1) .L3: std Y+2,r19 std Y+1,r18 ldi r24,lo8(99) ldi r25,hi8(99) here r25 and r19 are the same,

[Bug c/28706] [4.1 Regression] Compile failure with --combine and explicitly aligned structures

2007-02-21 Thread ddrake at brontes3d dot com
--- Comment #4 from ddrake at brontes3d dot com 2007-02-21 19:50 --- Created an attachment (id=13086) -- (http://gcc.gnu.org/bugzilla/attachment.cgi?id=13086action=view) backported to gcc 4.1.2 Is there any chance of this fix appearing in a release before 4.3.0? I have backported it

[Bug middle-end/30908] -Os inlines functions that are called more than once (optimization regression)

2007-02-21 Thread j at uriah dot heep dot sax dot de
--- Comment #15 from j at uriah dot heep dot sax dot de 2007-02-21 19:51 --- (In reply to comment #14) The AVR back-end really needs improvement: Oh, I certainly wouldn't deny that. :-) Yes, the tendency to handle far too many items as 16 bits (the sizeof(int) on that machine) when

[Bug c++/29939] Add rvalue references (C++0x)

2007-02-21 Thread hhinnant at apple dot com
--- Comment #5 from hhinnant at apple dot com 2007-02-21 20:17 --- Russell Yanofsky has submitted a patch implementing N2118: http://gcc.gnu.org/ml/gcc-patches/2007-02/msg01760.html -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=29939

[Bug c++/29939] Add rvalue references (C++0x)

2007-02-21 Thread fang at csl dot cornell dot edu
--- Comment #6 from fang at csl dot cornell dot edu 2007-02-21 20:26 --- Subject: Re: Add rvalue references (C++0x) --- Comment #5 from hhinnant at apple dot com 2007-02-21 20:17 --- Russell Yanofsky has submitted a patch implementing N2118:

[Bug tree-optimization/30558] ICE with OpenMP and exceptions

2007-02-21 Thread supermar at gmx dot de
--- Comment #6 from supermar at gmx dot de 2007-02-21 20:31 --- Just to note: I can confirm the bug for x86-architecture as well. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=30558

[Bug rtl-optimization/30643] [4.1/4.2/4.3 Regression] CSE regression

2007-02-21 Thread jakub at gcc dot gnu dot org
--- Comment #3 from jakub at gcc dot gnu dot org 2007-02-21 20:49 --- 4.1.2 behaves the same way as 4.2/4.3, the PR27363 patch that caused this is got committed even there, see http://gcc.gnu.org/viewcvs?root=gccview=revrev=115620 Reverting that patch on gcc-4_1-branch restores the

[Bug middle-end/30905] [dataflow] Fails to cross-jump

2007-02-21 Thread steven at gcc dot gnu dot org
--- Comment #1 from steven at gcc dot gnu dot org 2007-02-21 20:59 --- Confirmed, we almost never do cross-jumping on the dataflow-branch anymore: only after regmove. -- steven at gcc dot gnu dot org changed: What|Removed |Added

[Bug fortran/30877] overloading operator(*) for intrinsic type (complex) fails

2007-02-21 Thread pault at gcc dot gnu dot org
--- Comment #2 from pault at gcc dot gnu dot org 2007-02-21 21:14 --- (In reply to comment #1) MODULE PROCEDURE F1 interface.c:567 is where it all starts. The types that cannot be over-ridden are to be found there. If complex is excluded from product, we run into a problem with

[Bug libfortran/30918] New: Failure to skip commented out NAMELIST

2007-02-21 Thread anlauf at gmx dot de
Hi, when reading a namelist from a file, gfortran does not skip a commented out entry as in !REPORT use = 'ignore' /! Commented out, ignore this one! ! REPORT type = 'SYNOP' use = 'active' max_proc = 20 / The attached program demonstrates that

[Bug libfortran/30918] Failure to skip commented out NAMELIST

2007-02-21 Thread anlauf at gmx dot de
--- Comment #1 from anlauf at gmx dot de 2007-02-21 21:47 --- Created an attachment (id=13087) -- (http://gcc.gnu.org/bugzilla/attachment.cgi?id=13087action=view) Read loop for namelist file with multiple entries -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=30918

[Bug libfortran/30918] Failure to skip commented out NAMELIST

2007-02-21 Thread anlauf at gmx dot de
--- Comment #2 from anlauf at gmx dot de 2007-02-21 21:47 --- Created an attachment (id=13088) -- (http://gcc.gnu.org/bugzilla/attachment.cgi?id=13088action=view) The namelist file -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=30918

[Bug middle-end/30095] ICE in lhd_set_decl_assembler_name, at langhooks.c:165 with -O0

2007-02-21 Thread anlauf at gmx dot de
--- Comment #4 from anlauf at gmx dot de 2007-02-21 21:57 --- I cannot reproduce this one any longer on a current 4.3. Has this one been fixed, or did it get hidden behind something else? -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=30095

[Bug target/15267] libgcc_s.so.1 fails to link on Solaris 8/SPARC with GNU as 2.14.91

2007-02-21 Thread fcusack at fcusack dot com
--- Comment #9 from fcusack at fcusack dot com 2007-02-21 22:08 --- seen this with S10 and gcc-3.4.6 as well. For some reason I didn't see this with gcc-3.4.5 and perhaps earlier versions. Workaround for me is to set LIBGCC2_DEBUG_CFLAGS (in gcc/Makefile.in) to -gstabs instead of -g.

[Bug middle-end/30905] [dataflow] Fails to cross-jump

2007-02-21 Thread steven at gcc dot gnu dot org
--- Comment #2 from steven at gcc dot gnu dot org 2007-02-21 22:09 --- On the trunk, *and* on the dataflow branch, we crossjump the code starting with if (i != 1) on the first cleanup_cfg iteration when it's called from rest_of_handle_stack_adjustments. Trunk then goes on to crossjump

[Bug middle-end/30095] ICE in lhd_set_decl_assembler_name, at langhooks.c:165 with -O0

2007-02-21 Thread pinskia at gcc dot gnu dot org
--- Comment #5 from pinskia at gcc dot gnu dot org 2007-02-21 22:29 --- I can still reproduce it on powerpc-linux-gnu 4.3.0 20070220 so the bug is still there for sure. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=30095

[Bug middle-end/30095] ICE in lhd_set_decl_assembler_name, at langhooks.c:165 with -O0

2007-02-21 Thread pinskia at gcc dot gnu dot org
--- Comment #6 from pinskia at gcc dot gnu dot org 2007-02-21 22:35 --- ;; __builtin_memcpy ((char[0:][1:1] *) D.992, C.966, 4) (insn 39 38 40 (set (reg:SI 134) (high:SI (symbol_ref:SI (*.LANCHOR0) [flags 0x182]))) -1 (nil) (nil)) (insn 40 39 41 (set (reg/f:SI 133)

[Bug ada/18819] [4.2/4.3 regression] ACATS cdd2a02 fail at runtime

2007-02-21 Thread ebotcazou at gcc dot gnu dot org
--- Comment #35 from ebotcazou at gcc dot gnu dot org 2007-02-21 22:58 --- Subject: Bug 18819 Author: ebotcazou Date: Wed Feb 21 22:58:44 2007 New Revision: 122208 URL: http://gcc.gnu.org/viewcvs?root=gccview=revrev=122208 Log: PR ada/18819 * sem_ch3.adb

[Bug ada/18819] [4.2/4.3 regression] ACATS cdd2a02 fail at runtime

2007-02-21 Thread ebotcazou at gcc dot gnu dot org
--- Comment #36 from ebotcazou at gcc dot gnu dot org 2007-02-21 23:00 --- Subject: Bug 18819 Author: ebotcazou Date: Wed Feb 21 23:00:01 2007 New Revision: 122209 URL: http://gcc.gnu.org/viewcvs?root=gccview=revrev=122209 Log: PR ada/18819 * sem_ch3.adb

[Bug ada/18819] [4.2/4.3 regression] ACATS cdd2a02 fail at runtime

2007-02-21 Thread ebotcazou at gcc dot gnu dot org
--- Comment #37 from ebotcazou at gcc dot gnu dot org 2007-02-21 23:04 --- At long last. -- ebotcazou at gcc dot gnu dot org changed: What|Removed |Added

[Bug c++/7302] -Wnon-virtual-dtor should't complain of protected dtor

2007-02-21 Thread pluto at agmk dot net
--- Comment #14 from pluto at agmk dot net 2007-02-22 00:13 --- (In reply to comment #12) Already posted as http://gcc.gnu.org/ml/gcc-patches/2006-04/msg00885.html, with no response. this patch doesn't cover one situation: struct D; struct C { virtual void f() = 0;

[Bug target/30919] New: [4.1 regression] unable to find a register to spill in class 'CREG'

2007-02-21 Thread debian-gcc at lists dot debian dot org
seen with the final 4.1.2 release; taken from the OOo 2.1 sources, which built fine with previous 4.1 versions. test case fails with -O0, works with -O1 and -O2 Matthias In function 'void callVirtualMethod(void*, sal_uInt32, void*, typelib_TypeDescription*, bool, sal_uInt64*, sal_uInt32,

[Bug target/30919] [4.1 regression] unable to find a register to spill in class 'CREG'

2007-02-21 Thread debian-gcc at lists dot debian dot org
--- Comment #1 from debian-gcc at lists dot debian dot org 2007-02-22 00:35 --- Created an attachment (id=13089) -- (http://gcc.gnu.org/bugzilla/attachment.cgi?id=13089action=view) preprocessed source -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=30919

[Bug tree-optimization/30858] [4.3 Regression] ice for legal code with -O2 -ftree-vectorize

2007-02-21 Thread patchapp at dberlin dot org
--- Comment #9 from patchapp at dberlin dot org 2007-02-22 01:01 --- Subject: Bug number PR30858 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-02/msg01774.html --

[Bug c++/7302] -Wnon-virtual-dtor should't complain of protected dtor

2007-02-21 Thread ben at decadent dot org dot uk
--- Comment #15 from ben at decadent dot org dot uk 2007-02-22 01:10 --- Pawel: Yes, any friend class or function can call a protected or private destructor wrongly. So can members of the class - in fact, even pure virtual members can, since they may still have definitions! The

[Bug libfortran/30918] Failure to skip commented out NAMELIST

2007-02-21 Thread jvdelisle at gcc dot gnu dot org
--- Comment #3 from jvdelisle at gcc dot gnu dot org 2007-02-22 01:23 --- Curious. I will exzmine this on the weekend. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=30918

[Bug fortran/30910] [Regression 4.2, 4.3] Gfortran: ES format not quite right...

2007-02-21 Thread jvdelisle at gcc dot gnu dot org
--- Comment #3 from jvdelisle at gcc dot gnu dot org 2007-02-22 01:26 --- I fixed one similar to this not too long ago with E format. I will dig that up while I am at it. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=30910

  1   2   >