[Bug web/34460] New: The GCC manual about section variable attribute is incorrect

2007-12-14 Thread fbuihuu at gmail dot com
Since at least 3.4, the GCC manual says: Use the `section' attribute with an _initialized_ definition of a _global_ variable, as shown in the example. GCC issues a warning and otherwise ignores the `section' attribute in uninitialized variable declarations. but this doesn't s

[Bug fortran/30438] Set but never used variable should raise warning

2007-12-14 Thread aldot at gcc dot gnu dot org
--- Comment #4 from aldot at gcc dot gnu dot org 2007-12-14 09:11 --- Abovementioned C PR is PR18624 . -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=30438

[Bug rtl-optimization/34456] MIPS: Flaw in branch delay optimization (patch included).

2007-12-14 Thread rsandifo at gcc dot gnu dot org
--- Comment #5 from rsandifo at gcc dot gnu dot org 2007-12-14 09:02 --- Created an attachment (id=14751) --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=14751&action=view) execution testcase Here's a testcase that produces wrong code, and should fail at runtime. I'll try it out on

[Bug tree-optimization/34445] [4.3 Regression] internal compiler error: in cost_for_stmt, at tree-vect-transform.c:98

2007-12-14 Thread jellby at yahoo dot com
--- Comment #3 from jellby at yahoo dot com 2007-12-14 09:37 --- I don't know if it's the same bug, but the message is the same: $ cat test.f Subroutine FndSph(Alpha,Rad) Dimension Rad(100),RadInp(100) Do I = 1, NSphInp Rad(I) = RadInp(I) Alpha = 1.2

[Bug c++/34461] New: program crashes when using a try-catch-block around a constructor

2007-12-14 Thread c dot matuszewski at gmx dot de
The test case contains a constructor which is surrounded by a try-catch-block. Inside the constructor some memory is allocated and an exception is thrown. In the catch-block the previously allocated memory is freed which leads to an unexpected segmentation fault. Changing the constant 16 in the tes

[Bug c++/34461] program crashes when using a try-catch-block around a constructor

2007-12-14 Thread c dot matuszewski at gmx dot de
--- Comment #1 from c dot matuszewski at gmx dot de 2007-12-14 09:52 --- Created an attachment (id=14752) --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=14752&action=view) test case to reproduce the bug -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=34461

[Bug ada/33788] [4.3 regression] GNAT bug box in expand_expr_addr_expr_1, at expr.c:6862

2007-12-14 Thread sam at gcc dot gnu dot org
--- Comment #5 from sam at gcc dot gnu dot org 2007-12-14 10:44 --- Confirmed on SVN trunk. This is a new regression, the bug is not present in GCC 4.2.3 20071123. ===GNAT BUG DETECTED==+ | 4.3.0 20071213 (experimental) (i686-pc-linux-

[Bug fortran/34324] Module files on CRLF systems

2007-12-14 Thread dfranke at gcc dot gnu dot org
--- Comment #5 from dfranke at gcc dot gnu dot org 2007-12-14 10:27 --- Fixed in trunk (r130928). Closing. -- dfranke at gcc dot gnu dot org changed: What|Removed |Added

[Bug libstdc++/33831] [4.3 Regression] Revision 129442 breaks libstc++ API

2007-12-14 Thread rguenther at suse dot de
--- Comment #13 from rguenther at suse dot de 2007-12-14 10:16 --- Subject: Re: [4.3 Regression] Revision 129442 breaks libstc++ API On Fri, 14 Dec 2007, tbm at cyrius dot com wrote: > I found it: > http://gcc.gnu.org/ml/gcc/2007-10/msg00389.html I don't remember an explicit request

[Bug fortran/34324] Module files on CRLF systems

2007-12-14 Thread dfranke at gcc dot gnu dot org
--- Comment #4 from dfranke at gcc dot gnu dot org 2007-12-14 10:25 --- Subject: Bug 34324 Author: dfranke Date: Fri Dec 14 10:25:12 2007 New Revision: 130928 URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=130928 Log: 2007-12-14 Daniel Franke <[EMAIL PROTECTED]> PR fo

[Bug rtl-optimization/29978] [4.0/4.1/4.2/4.3 Regression] redundant jumps

2007-12-14 Thread aldot at gcc dot gnu dot org
--- Comment #2 from aldot at gcc dot gnu dot org 2007-12-14 11:05 --- Confirmed. gcc-2.95.4 works as expected: $ gcc-2.95 -Os -fomit-frame-pointer pr29978.i -S -o - .file "pr29978.i" .version"01.01" gcc2_compiled.: .text .align 16 .globl f .type

[Bug rtl-optimization/29978] [4.0/4.1/4.2/4.3 Regression] redundant jumps

2007-12-14 Thread aldot at gcc dot gnu dot org
-- aldot at gcc dot gnu dot org changed: What|Removed |Added Target Milestone|--- |4.3.0 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=29978

[Bug target/29978] [4.0/4.1/4.2/4.3 Regression] redundant jumps

2007-12-14 Thread pinskia at gcc dot gnu dot org
-- pinskia at gcc dot gnu dot org changed: What|Removed |Added CC||pinskia at gcc dot gnu dot |

[Bug ada/33788] [4.3 regression] GNAT bug box in expand_expr_addr_expr_1, at expr.c:6862

2007-12-14 Thread oliver dot kellogg at eads dot com
--- Comment #6 from oliver dot kellogg at eads dot com 2007-12-14 13:00 --- Backtrace using 20071213 r130895 (gdb) bt #0 <__gnat_debug_raise_exception> (e=0x8b19390) at ../../../SOURCES/gcc/gcc/ada/s-except.adb:48 #1 0x080a5b9d in <__gnat_raise_nodefer_with_msg> (e=0x8b19390) at

[Bug middle-end/34462] [4.3 Regression] tree check: expected ssa_name, have struct_field_tag in vuses_compare, at tree-vn.c:118

2007-12-14 Thread rguenth at gcc dot gnu dot org
--- Comment #1 from rguenth at gcc dot gnu dot org 2007-12-14 12:41 --- On ppc, the following ICEs compiled with -O2 during PRE typedef __builtin_va_list va_list; void gftp_config_parse_args (int numargs, char **first, ...) { char **dest = first; va_list argp; __builtin_va_start (

[Bug fortran/34432] integer(kind=init_expression) function is rejected

2007-12-14 Thread burnus at gcc dot gnu dot org
--- Comment #2 from burnus at gcc dot gnu dot org 2007-12-14 14:00 --- The problem for (...) expressions is: In match_primary, several gfc_match_* are called, which all return MATCH_NO, until gfc_match_char ('('), which returns true. (So far so good.) However, before "gfc_match_char"

[Bug c++/34459] [4.1/4.3 Regression] incorrect code when compiled with optimization (-O1)

2007-12-14 Thread rguenth at gcc dot gnu dot org
--- Comment #2 from rguenth at gcc dot gnu dot org 2007-12-14 13:42 --- As even aggregate = *pointer is valid gimple, DSE needs to punt on whole-aggregate DSE completely. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=34459

[Bug middle-end/34462] [4.3 Regression] tree check: expected ssa_name, have struct_field_tag in vuses_compare, at tree-vn.c:118

2007-12-14 Thread rguenth at gcc dot gnu dot org
--- Comment #5 from rguenth at gcc dot gnu dot org 2007-12-14 14:22 --- Fixed. -- rguenth at gcc dot gnu dot org changed: What|Removed |Added Status|UNCONFIRM

[Bug middle-end/34462] [4.3 Regression] tree check: expected ssa_name, have struct_field_tag in vuses_compare, at tree-vn.c:118

2007-12-14 Thread rguenth at gcc dot gnu dot org
s only if requested. * tree-ssa-dom.c (record_equivalences_from_stmt): Update caller. * tree-ssa-pre.c (insert_fake_stores): Likewise. * gcc.c-torture/compile/20071214-1.c: New testcase. Added: trunk/gcc/testsuite/gcc.c-torture/compile/20071214-1.c Modified:

[Bug libstdc++/33831] [4.3 Regression] Revision 129442 breaks libstc++ API

2007-12-14 Thread tbm at cyrius dot com
--- Comment #14 from tbm at cyrius dot com 2007-12-14 14:15 --- Well, Mark asked for a good reason for removing the headers, and none was given, which would imply the next step would have been to revert their removal. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=33831

[Bug c++/34461] program crashes when using a try-catch-block around a constructor

2007-12-14 Thread rguenth at gcc dot gnu dot org
--- Comment #2 from rguenth at gcc dot gnu dot org 2007-12-14 13:16 --- 15.3/10 Referring to any non-static member or base class of an object in the handler for a function-try-block of a constructor or destructor for that object results in undefined behavior. -- rguenth at gcc dot g

[Bug middle-end/34462] [4.3 Regression] tree check: expected ssa_name, have struct_field_tag in vuses_compare, at tree-vn.c:118

2007-12-14 Thread rguenth at gcc dot gnu dot org
--- Comment #3 from rguenth at gcc dot gnu dot org 2007-12-14 12:53 --- Which is of course because SCCVN does not like this sort of "broken" immediate uses! -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=34462

[Bug fortran/20896] [4.2 and 4.1 only] ambiguous interface not detected

2007-12-14 Thread burnus at gcc dot gnu dot org
--- Comment #11 from burnus at gcc dot gnu dot org 2007-12-14 12:26 --- I think this effectively a duplicate of PR 34004. The example of comment 0 is invalid (the specific functions have arguments which are not distinguishable per the Fortran standard, see PR 34004). That can distinguis

[Bug tree-optimization/20514] hoisting of label out of jumptable would take place at cse, should happen at trees

2007-12-14 Thread aldot at gcc dot gnu dot org
--- Comment #6 from aldot at gcc dot gnu dot org 2007-12-14 15:00 --- Still present on current trunk (20071214). This used to work with 3.4.6: .L14: cmpl$5, %eax ja .L14 .ident "GCC: (GNU) 3.4.6 (Debian 3.4.6-6)" Not quite optimal though

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

2007-12-14 Thread bonzini at gnu dot org
--- Comment #15 from bonzini at gnu dot org 2007-12-14 14:31 --- I have a patch that makes the reduce_bitfield_operations langhook a per-type field, but it doesn't affect code generation. Isn't there a testcase in the C++ library that fails if the langhook is false?... -- http://gc

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

2007-12-14 Thread rguenther at suse dot de
--- Comment #16 from rguenther at suse dot de 2007-12-14 14:36 --- Subject: Re: [4.1/4.2/4.3 Regression] Reference to bitfield gets wrong value when optimizing On Fri, 14 Dec 2007, bonzini at gnu dot org wrote: > I have a patch that makes the reduce_bitfield_operations langhook a per

[Bug fortran/34438] gfortran not compliant w.r.t default initialization of derived type component and implicit SAVE attribute

2007-12-14 Thread pault at gcc dot gnu dot org
--- Comment #5 from pault at gcc dot gnu dot org 2007-12-14 12:53 --- I can see a clean way to do this one - I shall be stuck in Frankfurt for three hours tonight; I'll do it then. Paul -- pault at gcc dot gnu dot org changed: What|Removed |Added

[Bug middle-end/34462] [4.3 Regression] tree check: expected ssa_name, have struct_field_tag in vuses_compare, at tree-vn.c:118

2007-12-14 Thread rguenth at gcc dot gnu dot org
--- Comment #2 from rguenth at gcc dot gnu dot org 2007-12-14 12:46 --- Created an attachment (id=14753) --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=14753&action=view) patch The problem is that the operand scanner is triggered on a fake store inserted by PRE insert_fake_stores()

[Bug middle-end/34462] New: [4.3 Regression] ICE in :q

2007-12-14 Thread rguenth at gcc dot gnu dot org
-- Summary: [4.3 Regression] ICE in :q Product: gcc Version: 4.3.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: middle-end AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: rguenth

[Bug fortran/34004] Accepts invalid: Ambigiuous interface with subroutine.

2007-12-14 Thread burnus at gcc dot gnu dot org
--- Comment #3 from burnus at gcc dot gnu dot org 2007-12-14 12:33 --- Related bug: PR 20896 (esp. test case in PR 20896 comment 0). -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=34004

[Bug tree-optimization/34448] [4.3 Regression] ICE in declare_inline_vars, at tree-inline.c:3243

2007-12-14 Thread aldyh at gcc dot gnu dot org
--- Comment #10 from aldyh at gcc dot gnu dot org 2007-12-14 16:10 --- Testing a patch. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=34448

[Bug fortran/34398] BOZ literals: Range checks

2007-12-14 Thread burnus at gcc dot gnu dot org
--- Comment #1 from burnus at gcc dot gnu dot org 2007-12-14 15:11 --- Subject: Bug 34398 Author: burnus Date: Fri Dec 14 15:11:17 2007 New Revision: 130932 URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=130932 Log: 2007-12-14 Tobias Burnus <[EMAIL PROTECTED]> PR fort

[Bug target/29978] [4.0/4.1/4.2/4.3 Regression] redundant jumps

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

[Bug fortran/34438] gfortran not compliant w.r.t default initialization of derived type component and implicit SAVE attribute

2007-12-14 Thread burnus at gcc dot gnu dot org
--- Comment #6 from burnus at gcc dot gnu dot org 2007-12-14 15:14 --- Subject: Bug 34438 Author: burnus Date: Fri Dec 14 15:14:29 2007 New Revision: 130933 URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=130933 Log: 2007-12-14 Tobias Burnus <[EMAIL PROTECTED]> PR fort

[Bug fortran/34398] BOZ literals: Range checks

2007-12-14 Thread burnus at gcc dot gnu dot org
--- Comment #2 from burnus at gcc dot gnu dot org 2007-12-14 15:15 --- FIXED on the trunk (4.3.0). -- burnus at gcc dot gnu dot org changed: What|Removed |Added

[Bug c/10178] [3.4 regression] ICE in tree_low_cst

2007-12-14 Thread bonzini at gnu dot org
--- Comment #7 from bonzini at gnu dot org 2007-12-14 13:10 --- (right commit was 10718) -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=10178

[Bug fortran/27997] Fortran 2003: Support type-spec for array constructor

2007-12-14 Thread burnus at gcc dot gnu dot org
--- Comment #3 from burnus at gcc dot gnu dot org 2007-12-14 16:24 --- As noted by Tobias Schlüter, the following valid program is rejected: INTEGER = 1 PRINT *, (/ INTEGER /) END One solution is to check for the "::" and if it does not exists, set "seen_ts = 0" and "gfc_current_locus

[Bug c++/34459] [4.1/4.3 Regression] incorrect code when compiled with optimization (-O1)

2007-12-14 Thread rguenth at gcc dot gnu dot org
--- Comment #1 from rguenth at gcc dot gnu dot org 2007-12-14 13:32 --- Confirmed. Reduced testcase: extern "C" void abort(void); extern "C" void *memset(void *s, int c, __SIZE_TYPE__ n); struct ip_addr { void __attribute__((noinline)) verify() const { for (int i = 0;

[Bug target/34458] [4.3 Regression] ICE in int_cst_value, at tree.c:8047 at -O3

2007-12-14 Thread danglin at gcc dot gnu dot org
--- Comment #2 from danglin at gcc dot gnu dot org 2007-12-14 16:44 --- Breakpoint 1, int_cst_value (x=0x4023d320) at ../../gcc/gcc/tree.c:8047 8047 gcc_assert (bits <= HOST_BITS_PER_WIDE_INT); (gdb) p bits $3 = 64 (gdb) bt #0 int_cst_value (x=0x4023d320) at ../../gcc/gcc/tree.c:80

[Bug c/34463] New: Incorrect code generation from a source with double casts.

2007-12-14 Thread alexcher at quadnet dot net
gcc generates incorrect code from the sample program on several recent GNU+Linux distributions running on PowerPC. The variable 'unu' is assigned an incorrect value. [EMAIL PROTECTED] ~ $ uname -a Linux ppc64 2.6.21-hardened-r3 #5 SMP Wed Jul 18 17:02:05 UTC 2007 ppc64 PPC970FX, altivec supported

[Bug c/34463] Incorrect code generation from a source with double casts.

2007-12-14 Thread pinskia at gcc dot gnu dot org
--- Comment #1 from pinskia at gcc dot gnu dot org 2007-12-14 17:33 --- Both places where you are deferencing is an aliasing violation. *** This bug has been marked as a duplicate of 21920 *** -- pinskia at gcc dot gnu dot org changed: What|Removed

[Bug c/21920] aliasing violations

2007-12-14 Thread pinskia at gcc dot gnu dot org
--- Comment #125 from pinskia at gcc dot gnu dot org 2007-12-14 17:33 --- *** Bug 34463 has been marked as a duplicate of this bug. *** -- pinskia at gcc dot gnu dot org changed: What|Removed |Added

[Bug fortran/27997] Fortran 2003: Support type-spec for array constructor

2007-12-14 Thread burnus at gcc dot gnu dot org
--- Comment #4 from burnus at gcc dot gnu dot org 2007-12-14 17:19 --- By the way, your patch does not work, unless I messed up locally. For the example of comment 0 I get "Hayash" and not "Hayashi": static character(kind=1)[1:6] * A.1[3]= {&"Takata"[1]{ ... Test case: ! { dg-do run

[Bug bootstrap/34464] Link error when building on ppc970/Debian etch 4.0 (for ppc64)

2007-12-14 Thread pinskia at gcc dot gnu dot org
--- Comment #1 from pinskia at gcc dot gnu dot org 2007-12-14 17:48 --- This: /usr/bin/ld: skipping incompatible /usr/bin/../lib/libc.so when searching for -lc means you don't have the 32bits library installed (really for PPC, you should be using almost all the time 32bits). Anyways us

[Bug ada/34466] New: s-tasinf.ads:81:42: "cpu_set_t" not declared in "OS_Interface"

2007-12-14 Thread danglin at gcc dot gnu dot org
/home/dave/gcc-4.3/objdir/./gcc/xgcc -B/home/dave/gcc-4.3/objdir/./gcc/ -B/home/ dave/opt/gnu/gcc/gcc-4.3.0/hppa-linux/bin/ -B/home/dave/opt/gnu/gcc/gcc-4.3.0/hp pa-linux/lib/ -isystem /home/dave/opt/gnu/gcc/gcc-4.3.0/hppa-linux/include -isys tem /home/dave/opt/gnu/gcc/gcc-4.3.0/hppa-linux/sys-incl

[Bug libstdc++/34449] use_facet(locale::classic()) returns true

2007-12-14 Thread bkoz at gcc dot gnu dot org
--- Comment #3 from bkoz at gcc dot gnu dot org 2007-12-14 18:56 --- The only thing that I have issue with is this part: assert (check_use_facet >(named)); There is no verbiage in the standard that specifies that named locales use the _byname facets. This is implied in the test cas

[Bug tree-optimization/34465] New: [4.3 Regression] incorrect sharing of tree nodes

2007-12-14 Thread tbm at cyrius dot com
I see the following on Alpha with trunk 2007-12-12 but not on x86_64: (sid)[EMAIL PROTECTED]:~$ /usr/lib/gcc-snapshot/bin/gcc -c -fconstant-string-class=NSConstantString -O1 projectmanager.app-EditorRulerView.mi EditorRulerView.m: In function '-[EditorRulerView refreshHighlightedArea]': EditorRul

Error: undefined symbol `INTERNAL' in operation

2007-12-14 Thread Павел Чернышев
I'm sorry, I'm not sure if this bug should be sent to you. Correct me if I'm wrong. Thank you. $ g++ -v -save-temp g++bug.cpp Using built-in specs. g++: unrecognized option '-save-temp' Target: i386-redhat-linux Configured with: ../configure --prefix=/usr --mandir=/usr/share/man --infodir=/usr/sha

[Bug target/29978] [4.0/4.1/4.2/4.3 Regression] redundant jumps

2007-12-14 Thread jakub at gcc dot gnu dot org
--- Comment #3 from jakub at gcc dot gnu dot org 2007-12-14 18:00 --- Subject: Bug 29978 Author: jakub Date: Fri Dec 14 18:00:39 2007 New Revision: 130938 URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=130938 Log: PR target/29978 * config/i386/i386.c (ix86_expand

[Bug c/34464] New: Link error when building on ppc970/Debian etch 4.0 (for ppc64)

2007-12-14 Thread tranzmatt at gmail dot com
I'm running a 64-bit version of Debian Etch for my ppc970 box (from http://debian-ppc64.alioth.debian.org) and when I tried to compile gcc-4.2.2, I get the following error: mv 'libgcc/32/tmp-libgcc.map' libgcc/32/libgcc.map /home/mclark/Code/gcc-4.2.2/build/./gcc/xgcc -B/home/mclark/Code/gcc-4.2.

[Bug fortran/34325] Wrong error message for syntax error

2007-12-14 Thread jvdelisle at gcc dot gnu dot org
--- Comment #3 from jvdelisle at gcc dot gnu dot org 2007-12-14 19:21 --- Patch submitted: http://gcc.gnu.org/ml/gcc-patches/2007-12/msg00685.html -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=34325

[Bug target/34458] [4.3 Regression] ICE in int_cst_value, at tree.c:8047 at -O3

2007-12-14 Thread danglin at gcc dot gnu dot org
--- Comment #3 from danglin at gcc dot gnu dot org 2007-12-14 17:36 --- HOST_BITS_PER_WIDE_INT is 32 because NEED_64BIT_HOST_WIDE_INT is not defined in auto-host.h: /* Define to 1 if HOST_WIDE_INT must be 64 bits wide (see hwint.h). */ #ifndef USED_FOR_TARGET /* #undef NEED_64BIT_HOST_W

[Bug fortran/34424] Internal file forbidden as I/O list item

2007-12-14 Thread jvdelisle at gcc dot gnu dot org
--- Comment #3 from jvdelisle at gcc dot gnu dot org 2007-12-14 19:27 --- I will give it a go. -- jvdelisle at gcc dot gnu dot org changed: What|Removed |Added A

[Bug tree-optimization/34465] [4.3 Regression] incorrect sharing of tree nodes

2007-12-14 Thread tbm at cyrius dot com
--- Comment #1 from tbm at cyrius dot com 2007-12-14 18:22 --- Created an attachment (id=14754) --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=14754&action=view) preprocessed source -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=34465

[Bug bootstrap/34464] Link error when building on ppc970/Debian etch 4.0 (for ppc64)

2007-12-14 Thread tranzmatt at gmail dot com
--- Comment #2 from tranzmatt at gmail dot com 2007-12-14 18:26 --- Subject: Re: Link error when building on ppc970/Debian etch 4.0 (for ppc64) I do have 32-bit libs in /lib32 and /usr/lib32. I tried adding -L/lib32 -L/usr/lib32 to LDFLAGS, but the 64bit crti.o & crtn.o in /lib & /usr

[Bug target/29978] [4.0/4.1/4.2 Regression] redundant jumps

2007-12-14 Thread jakub at gcc dot gnu dot org
--- Comment #4 from jakub at gcc dot gnu dot org 2007-12-14 18:30 --- Fixed on the trunk. -- jakub at gcc dot gnu dot org changed: What|Removed |Added Known to work|

[Bug fortran/34411] hang-up during read of non-expected input

2007-12-14 Thread jvdelisle at gcc dot gnu dot org
--- Comment #8 from jvdelisle at gcc dot gnu dot org 2007-12-14 19:25 --- Fixed on trunk. -- jvdelisle at gcc dot gnu dot org changed: What|Removed |Added St

GCC feature request: attribute((noreturn)) on asm

2007-12-14 Thread Shaun Jackman
I want to declare that the following function does not return, but GCC complains. __attribute__((noreturn)) void exec_application(void) { asm("rcall application"); } bootloader.c: In function 'exec_application': bootloader.c:154: error: 'noreturn' function does return Is there any way to

[Bug libstdc++/34449] use_facet(locale::classic()) returns true

2007-12-14 Thread sebor at roguewave dot com
--- Comment #5 from sebor at roguewave dot com 2007-12-14 19:35 --- (In reply to comment #3) That's an interesting interpretation. I agree it's possible although I suspect it was not intended. IMO, the _byname facets are really an implementation detail that was exposed just to show how

[Bug middle-end/34400] [4.3 regression] bad interaction between DF and SJLJ exceptions

2007-12-14 Thread joel at gcc dot gnu dot org
--- Comment #20 from joel at gcc dot gnu dot org 2007-12-14 19:41 --- I left a build running all night and got ACATS results on the trunk on powerpc-rtems, I get a lot of failures which appear to be constraint or exception related. I don't know if these are related or not. ,.,. C3400

[Bug tree-optimization/34465] [4.3 Regression] incorrect sharing of tree nodes

2007-12-14 Thread jakub at gcc dot gnu dot org
--- Comment #2 from jakub at gcc dot gnu dot org 2007-12-14 19:43 --- Aldy, this is your patch as well. Changing: --- gimplify.c (revision 130919) +++ gimplify.c (working copy) @@ -3490,7 +3490,7 @@ gimplify_modify_expr_rhs (tree *expr_p, && TYPE_READONLY (TREE_TYPE (*from

[Bug tree-optimization/34465] [4.3 Regression] incorrect sharing of tree nodes

2007-12-14 Thread tbm at cyrius dot com
--- Comment #3 from tbm at cyrius dot com 2007-12-14 19:54 --- (In reply to comment #2) > Aldy, this is your patch as well. OK, cool. Do you still want a reduced testcase (because I have one now, although it's Objective C). -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=34465

[Bug middle-end/34400] [4.3 regression] bad interaction between DF and SJLJ exceptions

2007-12-14 Thread zadeck at naturalbridge dot com
--- Comment #21 from zadeck at naturalbridge dot com 2007-12-14 19:55 --- I am confused about comment #20. Are these constraint failures caused by the proposed patch? are they independent of the patch? why is this related to the performance issues in doing SJLJ analysis? -- http:

[Bug middle-end/34400] [4.3 regression] bad interaction between DF and SJLJ exceptions

2007-12-14 Thread joel at gcc dot gnu dot org
--- Comment #22 from joel at gcc dot gnu dot org 2007-12-14 20:00 --- (In reply to comment #21) > I am confused about comment #20. Are these constraint failures caused by the > proposed patch? are they independent of the patch? why is this related to the > performance issues in doing SJ

[Bug fortran/34424] Internal file forbidden as I/O list item

2007-12-14 Thread burnus at gcc dot gnu dot org
--- Comment #4 from burnus at gcc dot gnu dot org 2007-12-14 20:00 --- (In reply to comment #3) > I will give it a go. Dick Hendrickson wrote in c.l.fortran: | I just sent the question to J3 as either an add-on to an existing | similar interpretation request or as a new one. As Dan sai

[Bug libstdc++/30127] std::has_facet returns true for not installed derived facets

2007-12-14 Thread bkoz at gcc dot gnu dot org
--- Comment #2 from bkoz at gcc dot gnu dot org 2007-12-14 19:32 --- Subject: Bug 30127 Author: bkoz Date: Fri Dec 14 19:32:03 2007 New Revision: 130941 URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=130941 Log: 2007-12-14 Benjamin Kosnik <[EMAIL PROTECTED]> PR libstd

[Bug libstdc++/34449] use_facet(locale::classic()) returns true

2007-12-14 Thread bkoz at gcc dot gnu dot org
--- Comment #4 from bkoz at gcc dot gnu dot org 2007-12-14 19:32 --- Subject: Bug 34449 Author: bkoz Date: Fri Dec 14 19:32:03 2007 New Revision: 130941 URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=130941 Log: 2007-12-14 Benjamin Kosnik <[EMAIL PROTECTED]> PR libstd

[Bug c++/34468] New: member-function pointers + regarm(3) == incorrect code

2007-12-14 Thread bruce_pedersen at altera dot com
Calling through a member function pointer that points to a member function that has been declared with __attribute((regparm(3))) silently generates incorrect code. This is true even if the member function pointer has been declared with the regparm(3) attribute: int ((__attribute((regparm(3))) FOO

[Bug c++/9381] attribute on member function pointer have no effect

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

[Bug target/34468] member-function pointers + regarm(3) == incorrect code

2007-12-14 Thread pinskia at gcc dot gnu dot org
--- Comment #1 from pinskia at gcc dot gnu dot org 2007-12-14 20:26 --- *** This bug has been marked as a duplicate of 9381 *** -- pinskia at gcc dot gnu dot org changed: What|Removed |Added ---

[Bug fortran/34254] "character(kind=c_char) function" fails if c_char is not host associated

2007-12-14 Thread burnus at gcc dot gnu dot org
--- Comment #2 from burnus at gcc dot gnu dot org 2007-12-14 20:10 --- FIXED on the trunk (4.3.0). -- burnus at gcc dot gnu dot org changed: What|Removed |Added

[Bug tree-optimization/34467] New: [4.3 Regression] ICE in lookup_subvars_for_var, at tree-flow-inline.h:1586

2007-12-14 Thread tbm at cyrius dot com
With trunk from 2007-12-12 on Alpha: (sid)[EMAIL PROTECTED]:~$ /usr/lib/gcc-snapshot/bin/gcc -c -O3 gtk-gnutella-host_addr.c gtk-gnutella-host_addr.c: In function 'socket_addr_set': gtk-gnutella-host_addr.c:17: internal compiler error: in lookup_subvars_for_var, at tree-flow-inline.h:1586 Please

[Bug tree-optimization/34467] [4.3 Regression] ICE in lookup_subvars_for_var, at tree-flow-inline.h:1586

2007-12-14 Thread tbm at cyrius dot com
--- Comment #1 from tbm at cyrius dot com 2007-12-14 20:04 --- /* Testcase by Martin Michlmayr <[EMAIL PROTECTED]> */ typedef struct host_addr { union { char ipv6[2]; } addr; } host_addr_t; static const host_addr_t ipv4_unspecified = { { 0, 0 } }; void socket_addr_set (con

[Bug middle-end/34400] [4.3 regression] bad interaction between DF and SJLJ exceptions

2007-12-14 Thread zadeck at naturalbridge dot com
--- Comment #23 from zadeck at naturalbridge dot com 2007-12-14 20:07 --- Subject: Re: [4.3 regression] bad interaction between DF and SJLJ exceptions joel at gcc dot gnu dot org wrote: > --- Comment #22 from joel at gcc dot gnu dot org 2007-12-14 20:00 --- > (In reply to co

[Bug ada/34469] Many ACATS failures not in 4.2.2 [regression]

2007-12-14 Thread joel at gcc dot gnu dot org
--- Comment #1 from joel at gcc dot gnu dot org 2007-12-14 21:12 --- Created an attachment (id=14755) --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=14755&action=view) Full ACATS Log for PSIM run Maybe the full log will help someone. -- http://gcc.gnu.org/bugzilla/show_bug.cgi

[Bug libstdc++/34449] use_facet(locale::classic()) returns true

2007-12-14 Thread bkoz at gcc dot gnu dot org
--- Comment #6 from bkoz at gcc dot gnu dot org 2007-12-14 21:25 --- Hey Martin! I agree, things are kind of wonky here. Certainly, changing libstdc++ to have named locales implemented via the _byname facets would not be hard. If it were specified, of course. IMO, the _byname complexit

[Bug c++/34470] [4.3.0 regression] spurious "is used uninitialized" from auto_ptr

2007-12-14 Thread zackw at panix dot com
--- Comment #1 from zackw at panix dot com 2007-12-14 21:26 --- Created an attachment (id=14756) --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=14756&action=view) -fdump-tree-optimized output I looked at the -fdump-tree-optimized output (attached) and it makes somewhat more sense t

[Bug c++/34470] [4.3.0 regression] spurious "is used uninitialized" from auto_ptr

2007-12-14 Thread zackw at panix dot com
--- Comment #2 from zackw at panix dot com 2007-12-14 21:33 --- Ooh, it gets worse. The spurious diagnostic is a symptom of an incorrect optimization. In normal control flow, the result of get_hash is assigned to a synthetic variable, D.13336, and that variable is used to call operator

[Bug ada/34469] New: Many ACATS failures not in 4.2.2 [regression]

2007-12-14 Thread joel at gcc dot gnu dot org
ACATS results on the trunk for powerpc-rtems are much worse than they were for 4.2.2. There were only 3 failures for 4.2.2. I get a lot of failures which appear to be constraint or exception related. Here are a few that failed. The full acats.log will be included as an attachment. ,.,. C34003C

[Bug c++/34470] New: [4.3.0 regression] spurious "is used uninitialized" from auto_ptr

2007-12-14 Thread zackw at panix dot com
This test case provokes spurious "is used uninitialized" warnings from trunk GCC. #include #include class HashFunction {}; HashFunction *get_hash (std::string const &); void generate_dsa_primes (void) { std::auto_ptr hash(get_hash("SHA-160")); } -> backward/auto_ptr.h: In function

[Bug libstdc++/30127] std::has_facet returns true for not installed derived facets

2007-12-14 Thread bkoz at gcc dot gnu dot org
--- Comment #3 from bkoz at gcc dot gnu dot org 2007-12-14 21:27 --- Subject: Bug 30127 Author: bkoz Date: Fri Dec 14 21:27:09 2007 New Revision: 130944 URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=130944 Log: 2007-12-14 Benjamin Kosnik <[EMAIL PROTECTED]> PR libstd

[Bug libstdc++/34449] use_facet(locale::classic()) returns true

2007-12-14 Thread bkoz at gcc dot gnu dot org
--- Comment #7 from bkoz at gcc dot gnu dot org 2007-12-14 21:27 --- Subject: Bug 34449 Author: bkoz Date: Fri Dec 14 21:27:09 2007 New Revision: 130944 URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=130944 Log: 2007-12-14 Benjamin Kosnik <[EMAIL PROTECTED]> PR libstd

[Bug libstdc++/34449] use_facet(locale::classic()) returns true

2007-12-14 Thread bkoz at gcc dot gnu dot org
--- Comment #8 from bkoz at gcc dot gnu dot org 2007-12-14 21:30 --- This is fixed in mainline and 4_2-branch. It could certainly be put on the 4_1-branch as well, but I don't have that checked out ATM. I'd rather open a new bug/enhancement request for the named locale to _byname facet

[Bug ada/34469] Many ACATS failures not in 4.2.2 [regression]

2007-12-14 Thread joel at gcc dot gnu dot org
--- Comment #2 from joel at gcc dot gnu dot org 2007-12-14 21:31 --- Created an attachment (id=14757) --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=14757&action=view) Laurent's very simple test case Laurent offered this program and said it would print "catch 1" if it worked correc

[Bug ada/34469] Many ACATS failures not in 4.2.2 [regression]

2007-12-14 Thread laurent at guerby dot net
--- Comment #3 from laurent at guerby dot net 2007-12-14 21:35 --- Now let's hope someone knowledgeable about exception handling will step in :). with Ada.Text_IO; use Ada.Text_IO; procedure P is begin begin raise Constraint_Error; exception when others => Put

[Bug c++/34470] [4.3.0 regression] spurious "is used uninitialized" from auto_ptr

2007-12-14 Thread rguenth at gcc dot gnu dot org
--- Comment #3 from rguenth at gcc dot gnu dot org 2007-12-14 22:23 --- I think this is a dup of PR34196. You might want to add something about the wrong-code bits there. -- rguenth at gcc dot gnu dot org changed: What|Removed |Added -

[Bug middle-end/34458] [4.3 Regression] ICE in int_cst_value, at tree.c:8047 at -O3

2007-12-14 Thread rguenth at gcc dot gnu dot org
--- Comment #4 from rguenth at gcc dot gnu dot org 2007-12-14 22:28 --- Are pointers 64bit here? In that case the docs should be updated ;) But yes, the code in tree-data-ref.c needs to be more careful. Sebastian? -- rguenth at gcc dot gnu dot org changed: What|Rem

[Bug c++/34470] [4.3.0 regression] spurious "is used uninitialized" from auto_ptr

2007-12-14 Thread zackw at panix dot com
--- Comment #4 from zackw at panix dot com 2007-12-14 22:31 --- How do you know whether an EH region is dead? That information does not seem to be in the dumps. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=34470

[Bug fortran/34471] New: Wrong precedence of kinds in typespecs.

2007-12-14 Thread burnus at gcc dot gnu dot org
The following program should print "8" and not "4". Related to PR 34431. module m implicit none integer, parameter :: it = 8 end module m program main implicit none integer, parameter :: it = 4 integer :: i i = test() contains integer(it) function test() use m print *, ki

[Bug c++/34470] [4.3.0 regression] spurious "is used uninitialized" from auto_ptr

2007-12-14 Thread pinskia at gcc dot gnu dot org
--- Comment #5 from pinskia at gcc dot gnu dot org 2007-12-14 22:36 --- (In reply to comment #4) > How do you know whether an EH region is dead? That information does not seem > to be in the dumps. the summary of that other bug is incorrect. I already added information about the wrong

[Bug middle-end/34458] [4.3 Regression] ICE in int_cst_value, at tree.c:8047 at -O3

2007-12-14 Thread dave at hiauly1 dot hia dot nrc dot ca
--- Comment #5 from dave at hiauly1 dot hia dot nrc dot ca 2007-12-14 22:41 --- Subject: Re: [4.3 Regression] ICE in int_cst_value, at tree.c:8047 at -O3 > Are pointers 64bit here? In that case the docs should be updated ;) No, they are 32bit for this target. Dave -- http://gc

[Bug c++/34470] [4.3.0 regression] spurious "is used uninitialized" from auto_ptr

2007-12-14 Thread zackw at panix dot com
--- Comment #6 from zackw at panix dot com 2007-12-14 22:45 --- "How do you know whether an EH region is dead" is still a live question for this bug. Not turning hash$_M_ptr into D.13336 is only a wrong-code bug if the block can be executed. -- http://gcc.gnu.org/bugzilla/show_bug.

[Bug middle-end/34467] [4.3 Regression] ICE in lookup_subvars_for_var, at tree-flow-inline.h:1586

2007-12-14 Thread rguenth at gcc dot gnu dot org
--- Comment #2 from rguenth at gcc dot gnu dot org 2007-12-14 23:02 --- alpha seems to use a different initializer for addr, 'C.0', compared to i686, which just uses ipv4_unspecified in setup_one_parameter during recursively inlining the call. This initializer is never referenced before

[Bug tree-optimization/34472] New: gcc.dg/struct/wo_prof_malloc_size_var.c doesn't work

2007-12-14 Thread hjl at lucon dot org
On Linux/Intel64, I got /export/build/gnu/gcc/build-x86_64-linux/gcc/xgcc -B/export/build/gnu/gcc/build-x86_64-linux/gcc/ /net/gnu-13/export/gnu/src/gcc/gcc/gcc/testsuite/gcc.dg/struct/wo_prof_malloc_size_var.c -O3 -fipa-struct-reorg -fdump-ipa-all -fwhole-program -combine -fipa-type-escape -fn

[Bug ada/34446] gnatprep evaluating "not" operator at incorrect precidence

2007-12-14 Thread bdavis at gcc dot gnu dot org
--- Comment #3 from bdavis at gcc dot gnu dot org 2007-12-14 23:13 --- not sure i would call this one 'resolved'. the gnat users manual does not document any such restriction: -- In this example, expression is defined

[Bug c/34473] New: casting negative __int128_t to float/double rounds to nearest multiple of 2048

2007-12-14 Thread james at albanarts dot com
casting a negative _int128_t value to a float or double rounds the resulting floating point number to the nearest multiple of 2048. the following C program demonstrates which I compiled with the compile string "gcc": int main() { __int128_t x = -1025; double f = x; return

[Bug middle-end/34400] [4.3 regression] bad interaction between DF and SJLJ exceptions

2007-12-14 Thread steven at gcc dot gnu dot org
--- Comment #24 from steven at gcc dot gnu dot org 2007-12-14 23:29 --- Created an attachment (id=14759) --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=14759&action=view) Eric's new test case -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=34400

[Bug target/34473] casting negative __int128_t to float/double rounds to nearest multiple of 2048

2007-12-14 Thread james at albanarts dot com
--- Comment #2 from james at albanarts dot com 2007-12-14 23:30 --- Oh and i forgot to mention: casting negative __int128_t to "long double" instead of "float" or "double" compiles correctly. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=34473

[Bug target/34473] casting negative __int128_t to float/double rounds to nearest multiple of 2048

2007-12-14 Thread james at albanarts dot com
--- Comment #1 from james at albanarts dot com 2007-12-14 23:27 --- Created an attachment (id=14758) --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=14758&action=view) Very simple failure test case exit code is 0 for pass, 1 for fail compiled with compile line "gcc" -- http://g

[Bug middle-end/34400] [4.3 regression] bad interaction between DF and SJLJ exceptions

2007-12-14 Thread steven at gcc dot gnu dot org
--- Comment #25 from steven at gcc dot gnu dot org 2007-12-15 00:29 --- Created an attachment (id=14760) --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=14760&action=view) hybrid search, resurrected This new test case looks even worse for the typical work list algorithm, so I had th

  1   2   >