[Bug c/34789] New: Missed optimisation on avr - sometimes the compiler keeps addresses in registers unnecessarily

2008-01-15 Thread david at westcontrol dot com
On RISC cpus with many registers, it is often helpful to keep constants (such as addresses) in registers for later use, since loading a register with a constant takes longer than moving data between registers, and since register-constant operations are seldom available. On the AVR, however, regist

[Bug c/34791] New: Missed optimisation on avr - optimisation of 8-bit logic sometimes fails

2008-01-15 Thread david at westcontrol dot com
As the avr is an 8-bit processor, it is important to handle data as 8-bit when possible, even though the C standards force 8-bit data to be promoted to 16-bit ints in many situations. Common cases are when doing logic operations on chars - when legally valid (i.e., the results are the same as for

[Bug c/34790] New: Missed optimisation on avr - no sibling call optimisation

2008-01-15 Thread david at westcontrol dot com
-- Summary: Missed optimisation on avr - no sibling call optimisation Product: gcc Version: 4.2.2 Status: UNCONFIRMED Severity: enhancement Priority: P3 Component: c AssignedTo: unassigned at g

[Bug c/34790] Missed optimisation on avr - no sibling call optimisation

2008-01-15 Thread david at westcontrol dot com
--- Comment #1 from david at westcontrol dot com 2008-01-15 08:34 --- (Sorry - I committed the bug before entering the description!) Sibling calls are not optimised on avrgcc, even with -foptimize-sibling-calls enabled (such as for -Os): extern void foo(void); void bar(void) {

[Bug c++/34792] New: Missed optimisation on avr - c++ worse than c compiler at 8-bit optimisations

2008-01-15 Thread david at westcontrol dot com
As noted in http://gcc.gnu.org/bugzilla/show_bug.cgi?id=34791 , it is important on the avr to use 8-bit logic whenever possible. In some cases, the c++ compiler will produce worse code than the c compiler for exactly the same source: extern uint8_t data[64]; uint8_t bar2(uint8_t x, uint8_t y) {

[Bug c++/27177] [4.1/4.2/4.3 Regression] ICE in build_simple_base_path, at cp/class.c:474

2008-01-15 Thread rguenth at gcc dot gnu dot org
--- Comment #18 from rguenth at gcc dot gnu dot org 2008-01-15 09:47 --- Thanks. -- rguenth at gcc dot gnu dot org changed: What|Removed |Added Status|WAITIN

[Bug c++/27177] [4.1/4.2/4.3 Regression] ICE in build_simple_base_path, at cp/class.c:474

2008-01-15 Thread rguenth at gcc dot gnu dot org
-- rguenth at gcc dot gnu dot org changed: What|Removed |Added Status|NEW |ASSIGNED http://gcc.gnu.org/bugzilla/show_bug.cgi?id=27177

[Bug c++/33887] [4.1/4.2/4.3 Regression] Reference to bitfield gets wrong value when optimizing

2008-01-15 Thread rguenth at gcc dot gnu dot org
--- Comment #23 from rguenth at gcc dot gnu dot org 2008-01-15 09:45 --- I don't see where there is a problem with widening conversions. The problem is we re-use the (unsigned : 24) i; value for the comparison, which looks reasonable, but this _narrowing_ conversion is not reflected b

[Bug middle-end/34793] New: [Regression 4.1/4.3] warning: 'areg' may be used uninitialized in this function

2008-01-15 Thread j at uriah dot heep dot sax dot de
After reading all other PRs about uninitialized variable warnings, I believe this one is a different situtation. PR 20968 -- is about inlining, which is not involved here PR 21733 -- is about two concatenated blocks rather than nested ones PR 31707 -- is about setjmp PR 20644 -- is also about unre

[Bug bootstrap/32287] gas version style changed causes warnings with configure

2008-01-15 Thread aldot at gcc dot gnu dot org
--- Comment #8 from aldot at gcc dot gnu dot org 2008-01-15 10:10 --- This was recently changed on trunk: http://gcc.gnu.org/ml/gcc-patches/2007-08/msg01574.html via r127745 | drow | 2007-08-23 19:42:08 +0200 (Thu, 23 Aug 2007) | 4 lines * configure.ac (leb128): Modify sed state

[Bug middle-end/34793] [Regression 4.1/4.3] warning: 'areg' may be used uninitialized in this function

2008-01-15 Thread j at uriah dot heep dot sax dot de
--- Comment #1 from j at uriah dot heep dot sax dot de 2008-01-15 10:10 --- Created an attachment (id=14942) --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=14942&action=view) Testcase showing the problem -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=34793

[Bug c/34781] __builtin_expect()'s first argument should be treated like other conditional expressions

2008-01-15 Thread rguenth at gcc dot gnu dot org
-- rguenth at gcc dot gnu dot org changed: What|Removed |Added Severity|normal |enhancement Keywords||diagnosti

[Bug libstdc++/34794] New: build of gcc 4.2.2 fails on AIX 6.1 / libstdc++-v3/libmath/stubs.c:47

2008-01-15 Thread tammer at tammer dot net
Hello, the build of gcc 4.2.2 fails on AIX 6.1 during stage3 / libstdc++. environment: IBM AIX 6.1 TL0 SP2 XC C/C++ 9.0 gcc 4.2.2 compiled on AIX 5.3 => stage_current: stage3 gmake[4]: Entering directory `/opt/freeware/src/packages/BUILD/gcc-build/powerpc-ibm-aix6.1.0.0/libstdc++-v3/libmath

[Bug middle-end/34793] warning: 'areg' may be used uninitialized in this function

2008-01-15 Thread rguenth at gcc dot gnu dot org
--- Comment #2 from rguenth at gcc dot gnu dot org 2008-01-15 10:49 --- This problem is introduced by the default case that gets added to the switch stmt in the IL. Coming from this case, areg is uninitialized. The fix for PR14495 will likely fix this (by removing the default case agai

[Bug libstdc++/34794] build of gcc 4.2.2 fails on AIX 6.1 / libstdc++-v3/libmath/stubs.c:47

2008-01-15 Thread pcarlini at suse dot de
--- Comment #1 from pcarlini at suse dot de 2008-01-15 10:45 --- Hi David, can you have a look at this issue? Thanks. -- pcarlini at suse dot de changed: What|Removed |Added --

[Bug target/34787] fix -shared + -pthread for mips/linux

2008-01-15 Thread rguenth at gcc dot gnu dot org
--- Comment #1 from rguenth at gcc dot gnu dot org 2008-01-15 10:37 --- Patches should be sent to [EMAIL PROTECTED] -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=34787

[Bug fortran/34795] New: inquire statement , direct= specifier incorrectly returns YES

2008-01-15 Thread kendrick dot killian at colostate dot edu
The inquire direct= specifier always returns YES regardless how the file is created or actually opened. The bug has been seen on gfortran versions gcc version 4.1.0 20060304 (Red Hat 4.1.0-3) Target: x86_64-redhat-linux gcc version 4.1.1 20061011 (Red Hat 4.1.1-30) Target: i386-redhat-linux

[Bug libstdc++/34794] build of gcc 4.2.2 fails on AIX 6.1 / libstdc++-v3/libmath/stubs.c:47

2008-01-15 Thread tammer at tammer dot net
--- Comment #2 from tammer at tammer dot net 2008-01-15 11:28 --- Hello, currently I am working with Ralf Wildenhues (libtool, autconf, automake, config) to get AIX 6.1 in. The libtool (branch-1.5 / HEAD) and config.guess now recognizes AIX 6.1 as -> powerpc-ibm-aix6.1.0.0. I have not y

[Bug middle-end/34793] warning: 'areg' may be used uninitialized in this function

2008-01-15 Thread j at uriah dot heep dot sax dot de
--- Comment #3 from j at uriah dot heep dot sax dot de 2008-01-15 12:54 --- (In reply to comment #2) > The fix for PR14495 will likely fix this (by removing the default case again). Alas, no, it doesn't. I applied that patch (and the one it depends one mentioned in the article), rebu

[Bug fortran/34796] New: [4.3 Regression] Too strict error checking for assumed-shaped array

2008-01-15 Thread burnus at gcc dot gnu dot org
Compiling gives twice the error message: Error: Element of assumed-shaped array passed to dummy argument 'y' Other compilers give it only for "rdiff2"; thinking over it, there is no reason to reject it for "rdiff" as the memory is contiguous which might not be the case for dummy arguments (strip

[Bug libstdc++/34797] New: [parallel mode] Settings are separated for each compilation unit

2008-01-15 Thread singler at gcc dot gnu dot org
In settings.h, the Settings class (containing only static variables) is encapsulated in an anonymous namespace. This makes the linker think of a distinct class for each compilation unit. As as result, settings changed in one .cpp file won't affect code from another .cpp file, although they should h

[Bug libstdc++/34797] [parallel mode] Settings are separated for each compilation unit

2008-01-15 Thread singler at gcc dot gnu dot org
--- Comment #1 from singler at gcc dot gnu dot org 2008-01-15 13:15 --- First of all, we should get rid of these many static variables in the Settings class, and replace them by usual member variables. Then, there should be one static/global instance of this Settings class. The question

[Bug c++/33887] [4.1/4.2/4.3 Regression] Reference to bitfield gets wrong value when optimizing

2008-01-15 Thread rguenth at gcc dot gnu dot org
--- Comment #24 from rguenth at gcc dot gnu dot org 2008-01-15 13:23 --- So the issue is that for void foo(unsigned int) (i) { i.0; : i.0 = () i; sv.f2 = i.0; if ((unsigned int) i.0 != 0) we neither emit code for the narrowing nor for the widening, but only for the bitfield

[Bug middle-end/34793] warning: 'areg' may be used uninitialized in this function

2008-01-15 Thread rguenther at suse dot de
--- Comment #4 from rguenther at suse dot de 2008-01-15 13:27 --- Subject: Re: warning: 'areg' may be used uninitialized in this function On Tue, 15 Jan 2008, j at uriah dot heep dot sax dot de wrote: > --- Comment #3 from j at uriah dot heep dot sax dot de 2008-01-15 12:54 > -

[Bug libstdc++/34797] [parallel mode] Settings are separated for each compilation unit

2008-01-15 Thread singler at gcc dot gnu dot org
--- Comment #2 from singler at gcc dot gnu dot org 2008-01-15 13:20 --- There are two general options to fix this bug: 1. Introduce a global variable, to be compiled into libstdc++.a and libstdc++.so. 2. Do the "template trick", i. e. pseudo-parametrize Settings as template class, to lea

[Bug libstdc++/33490] parallel v3: std::accumulate assumes iterators have std::iterator_traits declared

2008-01-15 Thread singler at gcc dot gnu dot org
--- Comment #6 from singler at gcc dot gnu dot org 2008-01-15 13:05 --- No further objections. -- singler at gcc dot gnu dot org changed: What|Removed |Added

[Bug fortran/34796] [4.3 Regression] Too strict error checking for assumed-shaped array

2008-01-15 Thread burnus at gcc dot gnu dot org
--- Comment #1 from burnus at gcc dot gnu dot org 2008-01-15 14:04 --- >From the Fortran 2003 standard ("12.4.1.2 Actual arguments associated with dummy data objects") "If the actual argument is scalar, the corresponding dummy argument shall be scalar unless the actual argument is of ty

[Bug c++/33887] [4.1/4.2/4.3 Regression] Reference to bitfield gets wrong value when optimizing

2008-01-15 Thread rguenth at gcc dot gnu dot org
--- Comment #25 from rguenth at gcc dot gnu dot org 2008-01-15 14:05 --- Unassigning. I like to have help from somebody knowing how to debug the libjava failures. The only bitfields are defined in jvmti.h. -- rguenth at gcc dot gnu dot org changed: What|Removed

[Bug middle-end/34483] wo_prof_two_strs.c:56: internal compiler error: in find_new_var_of_type, at ipa-struct-reorg.c:605

2008-01-15 Thread olga at gcc dot gnu dot org
--- Comment #31 from olga at gcc dot gnu dot org 2008-01-15 14:11 --- I gave it another push. The following is a patch solving inconsistency of the data structures in struct reorg, and releasing comparison with 0. Please try it together with the Richard's patch. It should give extra XPAS

[Bug java/32484] build of junit 4.3.1 native lib fails

2008-01-15 Thread debian-gcc at lists dot debian dot org
--- Comment #2 from debian-gcc at lists dot debian dot org 2008-01-15 14:54 --- confirmed. Matthias -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=32484

[Bug middle-end/34793] warning: 'areg' may be used uninitialized in this function

2008-01-15 Thread rguenther at suse dot de
--- Comment #6 from rguenther at suse dot de 2008-01-15 14:54 --- Subject: Re: warning: 'areg' may be used uninitialized in this function On Tue, 15 Jan 2008, j at uriah dot heep dot sax dot de wrote: > --- Comment #5 from j at uriah dot heep dot sax dot de 2008-01-15 14:38 > -

[Bug middle-end/32628] [4.3 Regression] bogus integer overflow warning

2008-01-15 Thread rguenth at gcc dot gnu dot org
--- Comment #8 from rguenth at gcc dot gnu dot org 2008-01-15 14:44 --- Reduced testcase: int f(char *device) { return device == ((char *)0 + ~0UL); } for building the POINTER_PLUS_EXPR we convert the unsigned offset to sizetype which causes the double-int (-1, 0) to sign-extend to (

[Bug middle-end/34793] warning: 'areg' may be used uninitialized in this function

2008-01-15 Thread j at uriah dot heep dot sax dot de
--- Comment #5 from j at uriah dot heep dot sax dot de 2008-01-15 14:38 --- (In reply to comment #4) > Oh, indeed - it also needs PR30317 fixed. (the attached patches therein > probably no longer apply) I applied the second of the attached patches there. It applies cleanly, but stil

[Bug c/32455] [4.1/4.2/4.3 regression] ICE with modified va_list, allows declaration of __builtin_*

2008-01-15 Thread rguenth at gcc dot gnu dot org
--- Comment #4 from rguenth at gcc dot gnu dot org 2008-01-15 15:01 --- I think the frontend should reject identifiers in declarations that touch the __builtin_ namespace. The regression status is dubious (it probably 'regressed' at the point the builtin was introduced). -- rguenth

[Bug middle-end/33699] [4.1/4.2/4.3 regression], missing optimization on const addr area store

2008-01-15 Thread rguenth at gcc dot gnu dot org
-- rguenth at gcc dot gnu dot org changed: What|Removed |Added Severity|enhancement |normal http://gcc.gnu.org/bugzilla/show_bug.cgi?id=33699

[Bug java/32484] build of junit 4.3.1 native lib fails

2008-01-15 Thread aph at gcc dot gnu dot org
--- Comment #3 from aph at gcc dot gnu dot org 2008-01-15 15:13 --- Fixed in trunk. Tested: zorro:~ $ ~/gcc/trunk/install/bin/gcj -shared -Wl,-Bsymbolic -fPIC -findirect-dispatch -fjni -g0 -O0 -mtune=nocona -march=nocona -pipe -w -save-temps -o libjunit.jar.so junit.jar gcj: warning: -

[Bug middle-end/18071] [4.0/4.1/4.2/4.3 Regression] -Winline does not respect -fno-default-inline

2008-01-15 Thread rguenth at gcc dot gnu dot org
--- Comment #31 from rguenth at gcc dot gnu dot org 2008-01-15 15:22 --- Created an attachment (id=14943) --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=14943&action=view) other approach to supress the warnings -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=18071

[Bug fortran/31298] F2003: use mod, operator(+) => operator(.userOp.) not supported

2008-01-15 Thread burnus at gcc dot gnu dot org
--- Comment #14 from burnus at gcc dot gnu dot org 2008-01-15 15:21 --- Check that the renamed imported operator is not imported again, see PR 33541. If I recall correctly, this part is missing for the patch in PR 33541 -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=31298

[Bug ada/34799] New: [Ada] Assertion fails when no component clause is given for generic record member

2008-01-15 Thread markus dot heichel at comsoft dot de
In the example below gcc reports an assertion failure, when warnings are switched on. > gcc -c -gnatwa status.ads fails, while > gcc -c status.ads is working. The snapshot 4.3.0 20070921 is correctly warning 'no component clause given for "C" declared at line 12' while later snapshots (e.g. 4.

[Bug middle-end/18071] [4.0/4.1/4.2/4.3 Regression] -Winline does not respect -fno-default-inline

2008-01-15 Thread rguenth at gcc dot gnu dot org
--- Comment #30 from rguenth at gcc dot gnu dot org 2008-01-15 15:21 --- I suggest to tag the DECL with TREE_NO_WARNING if -fno-default-inline is set and check this. On the trunk the functions are inlined anyway, because we inline small functions by default (and the functions are pure

[Bug java/32484] build of junit 4.3.1 native lib fails

2008-01-15 Thread aph at gcc dot gnu dot org
--- Comment #4 from aph at gcc dot gnu dot org 2008-01-15 15:32 --- . -- aph at gcc dot gnu dot org changed: What|Removed |Added Status|RESOLVED

[Bug java/32484] build of junit 4.3.1 native lib fails

2008-01-15 Thread aph at gcc dot gnu dot org
--- Comment #5 from aph at gcc dot gnu dot org 2008-01-15 15:32 --- *** This bug has been marked as a duplicate of 33639 *** -- aph at gcc dot gnu dot org changed: What|Removed |Added --

[Bug java/33639] gcj generates assembler errors

2008-01-15 Thread aph at gcc dot gnu dot org
--- Comment #3 from aph at gcc dot gnu dot org 2008-01-15 15:32 --- *** Bug 32484 has been marked as a duplicate of this bug. *** -- aph at gcc dot gnu dot org changed: What|Removed |Added ---

[Bug middle-end/18071] [4.0/4.1/4.2/4.3 Regression] -Winline does not respect -fno-default-inline

2008-01-15 Thread rguenther at suse dot de
--- Comment #33 from rguenther at suse dot de 2008-01-15 15:54 --- Subject: Re: [4.0/4.1/4.2/4.3 Regression] -Winline does not respect -fno-default-inline On Tue, 15 Jan 2008, hubicka at gcc dot gnu dot org wrote: > --- Comment #32 from hubicka at gcc dot gnu dot org 2008-01-15

[Bug middle-end/18071] [4.0/4.1/4.2/4.3 Regression] -Winline does not respect -fno-default-inline

2008-01-15 Thread hubicka at gcc dot gnu dot org
--- Comment #32 from hubicka at gcc dot gnu dot org 2008-01-15 15:47 --- I am bit confused by logic of code here. Middle end now ingore DECL_INLINE consistently, it is still arround since it affect some instantiation decisions in C++ FE. Does fno-default-inline work? I think only way

[Bug c++/34052] [4.3 regression] Trouble with variadic templates as template-template parameter

2008-01-15 Thread dgregor at gcc dot gnu dot org
--- Comment #9 from dgregor at gcc dot gnu dot org 2008-01-15 16:07 --- Fixed in mainline -- dgregor at gcc dot gnu dot org changed: What|Removed |Added Statu

[Bug c++/33964] [4.3 Regression] internal compiler error: in dependent_type_p, at cp/pt.c:15319 (vararg templates)

2008-01-15 Thread dgregor at gcc dot gnu dot org
--- Comment #6 from dgregor at gcc dot gnu dot org 2008-01-15 16:09 --- Fixed on mainline -- dgregor at gcc dot gnu dot org changed: What|Removed |Added Statu

[Bug c++/34052] [4.3 regression] Trouble with variadic templates as template-template parameter

2008-01-15 Thread dgregor at gcc dot gnu dot org
--- Comment #8 from dgregor at gcc dot gnu dot org 2008-01-15 16:07 --- Subject: Bug 34052 Author: dgregor Date: Tue Jan 15 16:06:48 2008 New Revision: 131543 URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=131543 Log: 2008-01-15 Douglas Gregor <[EMAIL PROTECTED]> PR c+

[Bug middle-end/18071] [4.0/4.1/4.2/4.3 Regression] -Winline does not respect -fno-default-inline

2008-01-15 Thread hubicka at ucw dot cz
--- Comment #34 from hubicka at ucw dot cz 2008-01-15 15:59 --- Subject: Re: [4.0/4.1/4.2/4.3 Regression] -Winline does not respect -fno-default-inline > Yes, this is what I understand. I think we need a new flag specifying > if in the source the 'inline' keyword was used and solely u

[Bug c++/34756] [4.3 regression] ICE with broken specialization of variadic template

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

[Bug c++/33964] [4.3 Regression] internal compiler error: in dependent_type_p, at cp/pt.c:15319 (vararg templates)

2008-01-15 Thread dgregor at gcc dot gnu dot org
--- Comment #7 from dgregor at gcc dot gnu dot org 2008-01-15 16:10 --- Subject: Bug 33964 Author: dgregor Date: Tue Jan 15 16:09:28 2008 New Revision: 131544 URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=131544 Log: 2008-01-15 Douglas Gregor <[EMAIL PROTECTED]> PR c+

[Bug c++/34755] [4.3 regression] ICE with invalid argument in variadic template function

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

[Bug c++/34757] [4.3 regression] ICE with invalid parameters in variadic template

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

[Bug c++/34754] [4.3 regression] ICE with invalid function arguments in variadic template

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

[Bug c++/34753] [4.3 regression] ICE with invalid template parameter in variadic template

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

[Bug c++/34752] pointer to member rejected in variadic template

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

[Bug c++/34050] [4.3 regression] ICE derived classes and variadic templates

2008-01-15 Thread dgregor at gcc dot gnu dot org
--- Comment #5 from dgregor at gcc dot gnu dot org 2008-01-15 16:40 --- This is an ice-on-valid, so it should probably be a P2. -- dgregor at gcc dot gnu dot org changed: What|Removed |Added -

[Bug middle-end/18071] [4.0/4.1/4.2/4.3 Regression] -Winline does not respect -fno-default-inline

2008-01-15 Thread manu at gcc dot gnu dot org
--- Comment #35 from manu at gcc dot gnu dot org 2008-01-15 16:44 --- (In reply to comment #33) > Yes, this is what I understand. I think we need a new flag specifying > if in the source the 'inline' keyword was used and solely use that for > inline warning purposes. (That is, I would

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

2008-01-15 Thread dgregor at gcc dot gnu dot org
--- Comment #3 from dgregor at gcc dot gnu dot org 2008-01-15 16:59 --- Patch here: http://gcc.gnu.org/ml/gcc-patches/2008-01/msg00650.html -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=34055

[Bug c++/34102] [4.3 regression] ICE with invalid inheritance of variadic templates

2008-01-15 Thread dgregor at gcc dot gnu dot org
--- Comment #3 from dgregor at gcc dot gnu dot org 2008-01-15 16:59 --- Patch here: http://gcc.gnu.org/ml/gcc-patches/2008-01/msg00650.html -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=34102

[Bug c++/34103] [4.3 regression] ICE with invalid variadic template functions

2008-01-15 Thread dgregor at gcc dot gnu dot org
--- Comment #4 from dgregor at gcc dot gnu dot org 2008-01-15 16:59 --- Patch here: http://gcc.gnu.org/ml/gcc-patches/2008-01/msg00650.html -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=34103

[Bug rtl-optimization/25609] too agressive printf optimization

2008-01-15 Thread gustavodn at gmail dot com
--- Comment #16 from gustavodn at gmail dot com 2008-01-15 17:20 --- "Glibc being Linux being the world" is not really relevant, IMHO. What is relevant is printf() (or any function) is, fundamentally, implemented by library, not by compiler, so compiler should not prevent library from de

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

2008-01-15 Thread alexandre dot nunes at gmail dot com
--- Comment #6 from alexandre dot nunes at gmail dot com 2008-01-15 17:40 --- This seems to work as of gcc 4.2.2 (vanilla), using the original commands to reproduce. Anyone denies/confirms this? -- alexandre dot nunes at gmail dot com changed: What|Removed

[Bug c/34800] New: Compile failure with --combine and a union with an anonymous struct

2008-01-15 Thread alexandre dot nunes at gmail dot com
$ cat pqp.c typedef union { struct { unsigned char d; }; unsigned char a, b; } test_type; extern test_type whatever; $ gcc -c pqp.c $ gcc --combine -c pqp.c pqp.c pqp.c:9: error: conflicting types for ‘whatever’ pqp.c:9: error: previous declaration of ‘whatever’ was here T

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

2008-01-15 Thread alexandre dot nunes at gmail dot com
--- Comment #7 from alexandre dot nunes at gmail dot com 2008-01-15 17:55 --- (In reply to comment #6) > This seems to work as of gcc 4.2.2 (vanilla), using the original commands to > reproduce. Anyone denies/confirms this? > ... and please see bug 34800 . -- http://gcc.gnu.org/b

[Bug c/28712] [4.0/4.1 Regression] Compile failure with --combine and packed structures.

2008-01-15 Thread alexandre dot nunes at gmail dot com
--- Comment #5 from alexandre dot nunes at gmail dot com 2008-01-15 17:58 --- (In reply to comment #4) > won't fix in GCC-4.0.x. Adjusting milestone. > For anyone interested, I think this is fixed for at least gcc 4.2.2; I couldn't reproduce it. -- alexandre dot nunes at gmail do

[Bug c++/34314] [4.3 Regression] ICE on invalid code (with variadic templates): tree check: expected class ‘type’, have ‘exceptional’ (error_mark) in template_class_depth

2008-01-15 Thread dgregor at gcc dot gnu dot org
--- Comment #5 from dgregor at gcc dot gnu dot org 2008-01-15 18:00 --- Subject: Bug 34314 Author: dgregor Date: Tue Jan 15 17:59:44 2008 New Revision: 131546 URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=131546 Log: 2008-01-15 Douglas Gregor <[EMAIL PROTECTED]> PR c+

[Bug fortran/34796] [4.3 Regression] Too strict error checking for assumed-shaped array

2008-01-15 Thread burnus at gcc dot gnu dot org
--- Comment #2 from burnus at gcc dot gnu dot org 2008-01-15 18:00 --- Patch: http://gcc.gnu.org/ml/gcc-patches/2008-01/msg00656.html -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=34796

[Bug c/28744] externally_visible attribute not effective with prior declaration of symbol.

2008-01-15 Thread alexandre dot nunes at gmail dot com
--- Comment #16 from alexandre dot nunes at gmail dot com 2008-01-15 18:03 --- vanilla gcc 4.2.2 seems to compile this testcase ok (all five symbols are emmited and externally visible, no warnings) -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28744

[Bug c++/34314] [4.3 Regression] ICE on invalid code (with variadic templates): tree check: expected class ‘type’, have ‘exceptional’ (error_mark) in template_class_depth

2008-01-15 Thread dgregor at gcc dot gnu dot org
--- Comment #6 from dgregor at gcc dot gnu dot org 2008-01-15 18:05 --- Fixed on mainline -- dgregor at gcc dot gnu dot org changed: What|Removed |Added Statu

[Bug c++/34051] [4.3 regression] ICE in dependent_type_p with variadic templates

2008-01-15 Thread dgregor at gcc dot gnu dot org
--- Comment #8 from dgregor at gcc dot gnu dot org 2008-01-15 18:08 --- Fixed in mainline -- dgregor at gcc dot gnu dot org changed: What|Removed |Added Statu

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

2008-01-15 Thread dgregor at gcc dot gnu dot org
--- Comment #4 from dgregor at gcc dot gnu dot org 2008-01-15 18:08 --- Subject: Bug 34055 Author: dgregor Date: Tue Jan 15 18:08:00 2008 New Revision: 131547 URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=131547 Log: 2008-01-15 Douglas Gregor <[EMAIL PROTECTED]> PR c

[Bug c++/34051] [4.3 regression] ICE in dependent_type_p with variadic templates

2008-01-15 Thread dgregor at gcc dot gnu dot org
--- Comment #9 from dgregor at gcc dot gnu dot org 2008-01-15 18:08 --- Subject: Bug 34051 Author: dgregor Date: Tue Jan 15 18:08:00 2008 New Revision: 131547 URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=131547 Log: 2008-01-15 Douglas Gregor <[EMAIL PROTECTED]> PR c

[Bug c++/34103] [4.3 regression] ICE with invalid variadic template functions

2008-01-15 Thread dgregor at gcc dot gnu dot org
--- Comment #5 from dgregor at gcc dot gnu dot org 2008-01-15 18:08 --- Subject: Bug 34103 Author: dgregor Date: Tue Jan 15 18:08:00 2008 New Revision: 131547 URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=131547 Log: 2008-01-15 Douglas Gregor <[EMAIL PROTECTED]> PR c

[Bug c++/34102] [4.3 regression] ICE with invalid inheritance of variadic templates

2008-01-15 Thread dgregor at gcc dot gnu dot org
--- Comment #4 from dgregor at gcc dot gnu dot org 2008-01-15 18:08 --- Subject: Bug 34102 Author: dgregor Date: Tue Jan 15 18:08:00 2008 New Revision: 131547 URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=131547 Log: 2008-01-15 Douglas Gregor <[EMAIL PROTECTED]> PR c

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

2008-01-15 Thread dgregor at gcc dot gnu dot org
--- Comment #5 from dgregor at gcc dot gnu dot org 2008-01-15 18:09 --- Fixed in mainline -- dgregor at gcc dot gnu dot org changed: What|Removed |Added Statu

[Bug c++/34102] [4.3 regression] ICE with invalid inheritance of variadic templates

2008-01-15 Thread dgregor at gcc dot gnu dot org
--- Comment #5 from dgregor at gcc dot gnu dot org 2008-01-15 18:09 --- Fixed in mainline -- dgregor at gcc dot gnu dot org changed: What|Removed |Added Statu

[Bug c++/34103] [4.3 regression] ICE with invalid variadic template functions

2008-01-15 Thread dgregor at gcc dot gnu dot org
--- Comment #6 from dgregor at gcc dot gnu dot org 2008-01-15 18:09 --- Fixed in mainline -- dgregor at gcc dot gnu dot org changed: What|Removed |Added Statu

[Bug middle-end/28755] [4.0/4.1/4.2 Regression] duplicate members of arrays

2008-01-15 Thread alexandre dot nunes at gmail dot com
--- Comment #9 from alexandre dot nunes at gmail dot com 2008-01-15 18:12 --- (In reply to comment #8) > Fixed on the trunk. > For anyone else wondering, this is still reproductible on vanilla gcc 4.2.2. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28755

[Bug c++/34751] [4.3 regression] ICE with pointer to member and variadic templates

2008-01-15 Thread dgregor at gcc dot gnu dot org
--- Comment #4 from dgregor at gcc dot gnu dot org 2008-01-15 18:50 --- Fixed in mainline -- dgregor at gcc dot gnu dot org changed: What|Removed |Added Statu

[Bug c++/34751] [4.3 regression] ICE with pointer to member and variadic templates

2008-01-15 Thread dgregor at gcc dot gnu dot org
--- Comment #5 from dgregor at gcc dot gnu dot org 2008-01-15 18:50 --- Subject: Bug 34751 Author: dgregor Date: Tue Jan 15 18:49:47 2008 New Revision: 131548 URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=131548 Log: 2008-01-15 Douglas Gregor <[EMAIL PROTECTED]> PR c

[Bug rtl-optimization/25609] too agressive printf optimization

2008-01-15 Thread manu at gcc dot gnu dot org
--- Comment #17 from manu at gcc dot gnu dot org 2008-01-15 18:51 --- This will be fixed yesterday if printf("%s\n", s) were equivalent to puts(s) in glibc. Also there is a way to disable the optimization: "-fno-builtin-printf". People that don't rely on undefined behaviour don't deser

[Bug fortran/34795] inquire statement , direct= specifier incorrectly returns YES

2008-01-15 Thread burnus at gcc dot gnu dot org
--- Comment #1 from burnus at gcc dot gnu dot org 2008-01-15 19:12 --- | correct output (produced by g77) | default open drct=NO opened= T access=SEQUENTIAL | Sequent open drct=NO opened= T access=SEQUENTIAL | direct open drct=YES opened= T access=DIRECT How do you know which

[Bug c++/34050] [4.3 regression] ICE derived classes and variadic templates

2008-01-15 Thread pinskia at gcc dot gnu dot org
--- Comment #6 from pinskia at gcc dot gnu dot org 2008-01-15 19:19 --- (In reply to comment #5) > This is an ice-on-valid, so it should probably be a P2. Well it is both depending on -std= settings. -- pinskia at gcc dot gnu dot org changed: What|Removed

[Bug fortran/34788] Error diagnostic issued passing array element to explicit shape dummy argument

2008-01-15 Thread burnus at gcc dot gnu dot org
--- Comment #1 from burnus at gcc dot gnu dot org 2008-01-15 19:30 --- Confirmed. Your bugreport was there even before mine, but since my contains a link to the patch I mark yours as duplicate. Thanks for finding the bug. > This diagnostic is (a) misleading - b is NOT an assumed-shape

[Bug fortran/34796] [4.3 Regression] Too strict error checking for assumed-shaped array

2008-01-15 Thread burnus at gcc dot gnu dot org
--- Comment #3 from burnus at gcc dot gnu dot org 2008-01-15 19:30 --- *** Bug 34788 has been marked as a duplicate of this bug. *** -- burnus at gcc dot gnu dot org changed: What|Removed |Added -

[Bug middle-end/34483] wo_prof_two_strs.c:56: internal compiler error: in find_new_var_of_type, at ipa-struct-reorg.c:605

2008-01-15 Thread dominiq at lps dot ens dot fr
--- Comment #32 from dominiq at lps dot ens dot fr 2008-01-15 20:03 --- With the patches in comments #11 and 31, the error disappears in 32 bit mode on Intel Darwin9 (as with #11 alone), now appears in 64 bit mode with the other errors already reported: FAIL: gcc.dg/struct/wo_prof_globa

[Bug c++/34774] [4.1/4.2/4.3 Regression] templates, enumerations, overflow, ice

2008-01-15 Thread tbptbp at gmail dot com
--- Comment #14 from tbptbp at gmail dot com 2008-01-15 20:07 --- I keep bumping into this issue and i'd really appreciate a clue about how to workaround for the time being. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=34774

[Bug regression/34801] New: FAIL: gcc.dg/Warray-bounds.c

2008-01-15 Thread dominiq at lps dot ens dot fr
This should have already been reported, but I cannot find any trace of it. gcc.dg/Warray-bounds.c fails on all the platforms I have looked at: FAIL: gcc.dg/Warray-bounds.c (test for warnings, line 59) FAIL: gcc.dg/Warray-bounds.c (test for warnings, line 65) FAIL: gcc.dg/Warray-bounds.c (test

[Bug rtl-optimization/25609] too agressive printf optimization

2008-01-15 Thread manu at gcc dot gnu dot org
--- Comment #18 from manu at gcc dot gnu dot org 2008-01-15 20:48 --- There is an explanation for the optimisation, a potential fix [*] and there is a workaround. [*] http://sourceware.org/bugzilla/show_bug.cgi?id=5618 -- manu at gcc dot gnu dot org changed: What|Rem

[Bug fortran/34784] implicit character(s) hides type of selected_int_kind intrinsic

2008-01-15 Thread dick dot hendrickson at gmail dot com
--- Comment #1 from dick dot hendrickson at gmail dot com 2008-01-15 20:49 --- Another example in executable code MODULE s_TESTS IMPLICIT CHARACTER (P) CONTAINS subroutine simple (u,j1) optional :: j1 if (present (j1)) stop end subroutine

[Bug c++/34399] [4.3 regression] ICE on invalid friend declaration of variadic template

2008-01-15 Thread dgregor at gcc dot gnu dot org
--- Comment #6 from dgregor at gcc dot gnu dot org 2008-01-15 20:57 --- Subject: Bug 34399 Author: dgregor Date: Tue Jan 15 20:56:55 2008 New Revision: 131552 URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=131552 Log: 2008-01-15 Douglas Gregor <[EMAIL PROTECTED]> PR c

[Bug c++/34399] [4.3 regression] ICE on invalid friend declaration of variadic template

2008-01-15 Thread dgregor at gcc dot gnu dot org
--- Comment #7 from dgregor at gcc dot gnu dot org 2008-01-15 20:59 --- Fixed in mainline -- dgregor at gcc dot gnu dot org changed: What|Removed |Added Statu

[Bug rtl-optimization/25609] too agressive printf optimization

2008-01-15 Thread gustavodn at gmail dot com
--- Comment #19 from gustavodn at gmail dot com 2008-01-15 21:08 --- (In reply to comment #17) > This will be fixed yesterday if printf("%s\n", s) were equivalent to puts(s) > in > glibc. [+] The standard requires them to be equivalent? Per standard, they can't be equivalent if both ar

[Bug fortran/34802] New: Unknown symbol name should be included in Error message

2008-01-15 Thread harry dot rockefeller at gmail dot com
gcc-3.x gives this information but gcc-4.2 does not. In the shell snippit below, the unknown symbol name should be embedded in the gcc-4.2 error lines as it is done in gcc-3.4. $ gcc-3.4 foo.f undeclared_variable(index)=0.0 ^ Invalid declaration of ... 'undeclare

[Bug libfortran/34671] any(kind=1) and all(kind=1)

2008-01-15 Thread tkoenig at gcc dot gnu dot org
--- Comment #4 from tkoenig at gcc dot gnu dot org 2008-01-15 21:22 --- Subject: Bug 34671 Author: tkoenig Date: Tue Jan 15 21:22:07 2008 New Revision: 131553 URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=131553 Log: 2008-01-15 Thomas Koenig <[EMAIL PROTECTED]> PR li

[Bug libfortran/34671] any(kind=1) and all(kind=1)

2008-01-15 Thread tkoenig at gcc dot gnu dot org
--- Comment #5 from tkoenig at gcc dot gnu dot org 2008-01-15 21:24 --- Fixed on trunk. Closing. -- tkoenig at gcc dot gnu dot org changed: What|Removed |Added

[Bug c/34803] New: wrong code for dereferencing type-punned pointer

2008-01-15 Thread gin at mo dot msk dot ru
No simpler C code is (yet) known to hit this. On request will describe actual package where similar code occurs. In the attached preprocessed code, incorrect arg 3, `%rdx', is passed to `handle_out_external'. Code expects this value, `extlen', to be the same as value that is returned from `__bui

[Bug c/34803] wrong code for dereferencing type-punned pointer

2008-01-15 Thread gin at mo dot msk dot ru
--- Comment #1 from gin at mo dot msk dot ru 2008-01-15 21:41 --- Created an attachment (id=14944) --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=14944&action=view) preprocessed code in question Instead of `extptr', uninitialized value is passed to `handle_out_external'. -- ht

[Bug fortran/34804] New: Porting aid: flag to disable BYTE, INTEGER*1 and INTEGER(KIND=1)

2008-01-15 Thread anlauf at gmx dot de
I am currently having fun porting code to the NEC SX-6 vector processor. The native compiler on that platform (as well as NEC's cross compiler) does not support INTEGER*1. It would be useful to have a flag to mimic this behavior by disabling the above mentioned types for declarations, along with t

  1   2   >