[Bug target/35271] Stack not aligned at mod 16 byte boundary in x86_64 code

2008-02-26 Thread hubicka at gcc dot gnu dot org
--- Comment #23 from hubicka at gcc dot gnu dot org 2008-02-26 09:31 --- I guess we need 1) Get the patch to check overwritability of body to mainline and branch, since it is quite wrong to optimize based on knowledge of body that might be replaced 2) Figure out how to get Apple's linke

[Bug target/35271] Stack not aligned at mod 16 byte boundary in x86_64 code

2008-02-26 Thread jh at suse dot cz
--- Comment #24 from jh at suse dot cz 2008-02-26 09:43 --- Subject: Re: Stack not aligned at mod 16 byte boundary in x86_64 code > I guess we need > 1) Get the patch to check overwritability of body to mainline and branch, > since > it is quite wrong to optimize based on knowledge of

[Bug c++/35323] [4.3/4.4 regression] ICE calling functions with fixed-point type parameter

2008-02-26 Thread paolo at gcc dot gnu dot org
--- Comment #2 from paolo at gcc dot gnu dot org 2008-02-26 10:10 --- Subject: Bug 35323 Author: paolo Date: Tue Feb 26 10:09:43 2008 New Revision: 132669 URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=132669 Log: /cp 2008-02-26 Paolo Carlini <[EMAIL PROTECTED]> PR c+

[Bug ada/35372] New: Memory corruption at unchecked deallocation of the interface classwide type

2008-02-26 Thread vgodunko at rostel dot ru
Unchecked deallocation of the access to interface classwide type has corupt memory. Valgrind output: ==8176== Invalid read of size 4 ==8176==at 0x804EF32: system__finalization_implementation__finalize_list (s-finimp.adb:360) ==8176==by 0x804EFE8: system__finalization_implementation__final

[Bug middle-end/35249] miscompilation of Emacs at -O

2008-02-26 Thread simon dot marshall at misys dot com
--- Comment #10 from simon dot marshall at misys dot com 2008-02-26 10:36 --- With CFLAGS="-g -O1 -fno-unit-at-a-time -fno-crossjumping -Wno-pointer-sign", I cannot hit the breakpoint on error (ie, if I put a breakpoint on error itself). Also, I cannot hit the breakpoint at intervals2.

[Bug bootstrap/35373] New: [4.4 Regression] bootstraping on powerpc-apple-darwin9 fails with revision 132578

2008-02-26 Thread dominiq at lps dot ens dot fr
As reported in http://gcc.gnu.org/ml/gcc-patches/2008-02/msg01134.html, bootstraping on powerpc-apple-darwin9 fails with revision 132578: ... libtool: compile: /opt/gcc/darwin_buildw/./gcc/xgcc -B/opt/gcc/darwin_buildw/./gcc/ -B/opt/gcc/gcc4.4w/powerpc-apple-darwin9/bin/ -B/opt/gcc/gcc4.4w/powerp

[Bug c++/35374] New: ICE during instanciation of a template expr. with typeof()

2008-02-26 Thread philippe dot hoogvorst at neuf dot fr
The following code: // START of CODE, FILE 'try.cpp' template typeof(A(0)+B(0)) add( A a , B b ) { return a + b; } void f( double & S , double X , int Y ) { S = add( X , Y ); } // END OF CODE causes g++ to emit an ICE error, as shown of the following sessions transcript. I joine

[Bug c++/35374] ICE during instanciation of a template expr. with typeof()

2008-02-26 Thread pcarlini at suse dot de
--- Comment #1 from pcarlini at suse dot de 2008-02-26 10:57 --- *** This bug has been marked as a duplicate of 13740 *** -- pcarlini at suse dot de changed: What|Removed |Added

[Bug other/35376] New: #pragma GCC diagnostic expand function.

2008-02-26 Thread oiaohm at gmail dot com
#pragma GCC diagnostic clear // added to clear all current in file diagnostic over rides. #pragma GCC diagnostic warning clear // Clear all warnings alerations done by diagnostic. #pragma GCC diagnostic error clear // same as above but for error #pragma GCC diagnostic ignored clear //same as above

[Bug ada/35372] Memory corruption at unchecked deallocation of the interface classwide type

2008-02-26 Thread vgodunko at rostel dot ru
--- Comment #1 from vgodunko at rostel dot ru 2008-02-26 10:33 --- Created an attachment (id=15232) --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=15232&action=view) testcase -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=35372

[Bug web/35375] New: A couple of typos in links on Status of Experimental C++0x Support page

2008-02-26 Thread pavel dot shved at gmail dot com
Some links ot the page http://gcc.gnu.org/gcc-4.3/cxx0x_status.html contain typos: strongly-typed enums paper is called N2347 (not N2437); real N3437 (`Explicit conversion operators') has the wrong link, it should refer to pdf file instead of html; link to 2346 has an unnecessary `l'; correct li

[Bug c++/13740] ICE when mangling template which uses typeof

2008-02-26 Thread pcarlini at suse dot de
--- Comment #15 from pcarlini at suse dot de 2008-02-26 10:57 --- *** Bug 35374 has been marked as a duplicate of this bug. *** -- pcarlini at suse dot de changed: What|Removed |Added

[Bug other/35377] New: stack-protector: multiple definition of `__stack_chk_fail_local'

2008-02-26 Thread gzp at gmx dot net
I was compiled and installed gcc-4.2.3 on Linux 2.4, glibc 2.3.6 main configure options was: --enable-shared=libstdc++ --enable-static --disable-debug --enable-cpp --enable-languages=c,c++ --enable-threads After successfully compile and install got some problems when compiling apps using the -fs

[Bug target/33963] [4.3/4.4 Regression] Dllimport attribute wrongly accepted on typedefs

2008-02-26 Thread jsm28 at gcc dot gnu dot org
--- Comment #1 from jsm28 at gcc dot gnu dot org 2008-02-26 12:13 --- Mark confirms this should not be accepted for scalar types, so a regression. Working on a patch. -- jsm28 at gcc dot gnu dot org changed: What|Removed |Added ---

[Bug ada/35372] Memory corruption at unchecked deallocation of the interface classwide type

2008-02-26 Thread vgodunko at rostel dot ru
--- Comment #2 from vgodunko at rostel dot ru 2008-02-26 12:17 --- GNAT register allocated object of the T type in the finalization list at the creation time, but at the deallocation time it only free object storage and don't remove reference to the deallocated object from the finalizati

[Bug target/35373] [4.4 Regression] bootstraping on powerpc-apple-darwin9 fails with revision 132578

2008-02-26 Thread rguenth at gcc dot gnu dot org
-- rguenth at gcc dot gnu dot org changed: What|Removed |Added Component|bootstrap |target Keywords||build Targe

[Bug fortran/33759] ICE in transfer_simplify_4.f90 at any level of optimization

2008-02-26 Thread pault at gcc dot gnu dot org
--- Comment #12 from pault at gcc dot gnu dot org 2008-02-26 12:44 --- Have changed the keyword to represent comment #6 Paul -- pault at gcc dot gnu dot org changed: What|Removed |Added -

[Bug web/35375] A couple of typos in links on Status of Experimental C++0x Support page

2008-02-26 Thread pavel dot shved at gmail dot com
--- Comment #1 from pavel dot shved at gmail dot com 2008-02-26 12:33 --- (In reply to comment #0) Well, my comment has typos as well... > real N3437 (`Explicit conversion operators') is is N2437, of course. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=35375

[Bug bootstrap/35378] New: Bootstrap fails with BOOT_CFLAGS="-g -O0"

2008-02-26 Thread danglin at gcc dot gnu dot org
th: ../gcc/configure --build=i686-apple-darwin9 --host=i686-apple-darwin9 --target=i686-apple-darwin9 --with-gnu-as --enable-shared --prefix=/opt/gnu/gcc/gcc-4.3.0 --enable-debug=no --disable-nls --enable-languages=c,c++,objc,fortran,obj-c++,java Thread model: posix gcc version 4.3.0 20080226 (prerele

[Bug bootstrap/35378] Bootstrap fails with BOOT_CFLAGS="-g -O0"

2008-02-26 Thread rguenth at gcc dot gnu dot org
--- Comment #1 from rguenth at gcc dot gnu dot org 2008-02-26 13:01 --- Did you check if it is only debug info that differs? That is, does BOOT_CFLAGS="-O0" work? -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=35378

[Bug c/34351] Please get us the "volatile register" warning back

2008-02-26 Thread manu at gcc dot gnu dot org
--- Comment #4 from manu at gcc dot gnu dot org 2008-02-26 14:04 --- Subject: Bug 34351 Author: manu Date: Tue Feb 26 14:04:09 2008 New Revision: 132675 URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=132675 Log: 2008-02-26 Manuel Lopez-Ibanez <[EMAIL PROTECTED]> PR 34

[Bug c/34351] Please get us the "volatile register" warning back

2008-02-26 Thread manu at gcc dot gnu dot org
--- Comment #5 from manu at gcc dot gnu dot org 2008-02-26 14:06 --- Fixed in 4.4. -- manu at gcc dot gnu dot org changed: What|Removed |Added Status|NEW

[Bug tree-optimization/26264] Extraneous warning with __builtin_stdarg_start and optimization

2008-02-26 Thread manu at gcc dot gnu dot org
--- Comment #12 from manu at gcc dot gnu dot org 2008-02-26 14:17 --- Subject: Bug 26264 Author: manu Date: Tue Feb 26 14:16:13 2008 New Revision: 132677 URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=132677 Log: 2008-02-26 Manuel Lopez-Ibanez <[EMAIL PROTECTED]> PR 2

[Bug preprocessor/35379] New: -MT generates a target string too long over two lines

2008-02-26 Thread uriah at mobiletornado dot com
Precondition: an empty file named "dummy.c" exists in the current directory. The following command: arm-elf-gcc -c -MM -MT 123456789a123456789b123456789c123456789d123456789e123456789f123456789g123 dummy.c generates the following output: \ 123456789a123456789b123456789c123456789d123456789e123456

[Bug bootstrap/35378] Bootstrap fails with BOOT_CFLAGS="-g -O0"

2008-02-26 Thread dave at hiauly1 dot hia dot nrc dot ca
--- Comment #2 from dave at hiauly1 dot hia dot nrc dot ca 2008-02-26 14:31 --- Subject: Re: Bootstrap fails with BOOT_CFLAGS="-g -O0" > Did you check if it is only debug info that differs? That is, does > BOOT_CFLAGS="-O0" work? Removing "-g" works. Dave -- http://gcc.gnu.org

[Bug preprocessor/35379] -MT generates a target string too long over two lines

2008-02-26 Thread rwild at gcc dot gnu dot org
--- Comment #1 from rwild at gcc dot gnu dot org 2008-02-26 14:48 --- > (the redundant spaces may interfere with make operation, apparently) Can you show in which way they interfere? If they cause an error, then post it, please. Which make implementation? -- rwild at gcc dot gnu d

[Bug tree-optimization/26264] Extraneous warning with __builtin_stdarg_start and optimization

2008-02-26 Thread manu at gcc dot gnu dot org
--- Comment #13 from manu at gcc dot gnu dot org 2008-02-26 14:45 --- Fixed in GCC 4.4 -- manu at gcc dot gnu dot org changed: What|Removed |Added Status|ASSI

[Bug c++/35380] New: ICE with attribute 'aligned' in template parameter

2008-02-26 Thread sander at mi dot fu-berlin dot de
The following program produces an ICE on my machine #include class Foo { char foo[3]; }; int main(){ std::tr1::array bar; } Output: cd /home/haile/sander/tmp/ g++ test.cc test.cc: In function int main(): test.cc:9: internal compiler error: Speicherzugriffsfehler Please submit a full b

[Bug middle-end/35307] Missing Simplication for div op

2008-02-26 Thread segher at kernel dot crashing dot org
--- Comment #3 from segher at kernel dot crashing dot org 2008-02-26 16:16 --- > > Not equivalent in the presence of overflow. > > You mean defined overflow :). No, I mean overflow. Let's assume int is 16-bit (just to keep the numbers smallish); now take i=1, j=1000, k=1000. i/j/k i

[Bug c++/35368] [4.1/4.2/4.3/4.4 Regression] With #pragma visibility, `vtable for __cxxabiv1::__class_type_info' is emitted as a hidden-visibility relocation

2008-02-26 Thread jakub at gcc dot gnu dot org
--- Comment #5 from jakub at gcc dot gnu dot org 2008-02-26 16:30 --- Testing a patch. -- jakub at gcc dot gnu dot org changed: What|Removed |Added AssignedTo|una

[Bug c++/35368] [4.1/4.2/4.3/4.4 Regression] With #pragma visibility, `vtable for __cxxabiv1::__class_type_info' is emitted as a hidden-visibility relocation

2008-02-26 Thread mmitchel at gcc dot gnu dot org
--- Comment #6 from mmitchel at gcc dot gnu dot org 2008-02-26 17:06 --- We need to be careful about this. We have a lot of ways to specify visibility: dllimport/dllexport attributes, notshared attribute, visibility attributes on classes. I actually think the compiler is behaving as i

[Bug target/25477] builtin functions should use $LDBL128 suffix on darwin when appropriate

2008-02-26 Thread howarth at nitro dot med dot uc dot edu
--- Comment #57 from howarth at nitro dot med dot uc dot edu 2008-02-26 17:15 --- Uros, You changes in d.diff.txt are fine with the exception of the missing extra set of parentheses for the ACONCAT macro call. I have tested the patch with those corrections and powerpc-apple-darwin9 p

[Bug c++/35368] [4.1/4.2/4.3/4.4 Regression] With #pragma visibility, `vtable for __cxxabiv1::__class_type_info' is emitted as a hidden-visibility relocation

2008-02-26 Thread jakub at gcc dot gnu dot org
--- Comment #7 from jakub at gcc dot gnu dot org 2008-02-26 17:19 --- Created an attachment (id=15233) --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=15233&action=view) gcc43-pr35368.patch Patch I'm testing. The reasons it should IMNSHO have default visibility is: 1) these are comp

[Bug fortran/35381] New: Real initialization problem (invalid error): Exponent at (1) must be INTEGER for an initialization expression

2008-02-26 Thread thomas dot orgis at awi dot de
We have a set of code that works with SUN and Intel compilers and that should be correct to the best of our knowledge, but triggers a strange error by gfortran 4.1.0 and 4.2.3 . The stripped-down exapmple here has been tested with 4.1.0 on x86-64, I got the qualitatively same error on the full sour

[Bug c++/35368] [4.1/4.2/4.3/4.4 Regression] With #pragma visibility, `vtable for __cxxabiv1::__class_type_info' is emitted as a hidden-visibility relocation

2008-02-26 Thread benjamin at smedbergs dot us
--- Comment #8 from benjamin at smedbergs dot us 2008-02-26 17:25 --- Yes, to make it clear: the class typeinfo object may have hidden visibility... it's the __cxxabiv1::__class_type_info "class" that should have default visibility always. -- http://gcc.gnu.org/bugzilla/show_bug.cgi

[Bug fortran/35381] Misleading error message with derived types: Exponent at (1) must be INTEGER for an initialization expression

2008-02-26 Thread thomas dot orgis at awi dot de
--- Comment #1 from thomas dot orgis at awi dot de 2008-02-26 17:37 --- I stripped a bit more and I think I got the root of the problem, illustrated by this more minimal example: MODULE data IMPLICIT NONE PRIVATE INTEGER, PARAMETER :: dat_dimension = 2 TYPE dat_sigtype rea

[Bug c++/35368] [4.1/4.2/4.3/4.4 Regression] With #pragma visibility, `vtable for __cxxabiv1::__class_type_info' is emitted as a hidden-visibility relocation

2008-02-26 Thread jakub at gcc dot gnu dot org
--- Comment #9 from jakub at gcc dot gnu dot org 2008-02-26 17:39 --- BTW, not sure why 4.1.x/4.2.x is listed as broken. Only 4.3+ has H.J's: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=119764 Without that change, although __cxxabiv1::* symbols are incorrectly marked as hidden, GCC

[Bug testsuite/34878] fast-math-pr33299.f90 failure with illegal instruction due to -ffast-math.

2008-02-26 Thread ghazi at gcc dot gnu dot org
--- Comment #6 from ghazi at gcc dot gnu dot org 2008-02-26 17:53 --- Isn't this a dup of 34168? -- ghazi at gcc dot gnu dot org changed: What|Removed |Added

[Bug c++/35368] [4.1/4.2/4.3/4.4 Regression] With #pragma visibility, `vtable for __cxxabiv1::__class_type_info' is emitted as a hidden-visibility relocation

2008-02-26 Thread mark at codesourcery dot com
--- Comment #10 from mark at codesourcery dot com 2008-02-26 17:57 --- Subject: Re: [4.1/4.2/4.3/4.4 Regression] With #pragma visibility, `vtable for __cxxabiv1::__class_type_info' is emitted as a hidden-visibility relocation benjamin at smedbergs dot us wrote: > --- Comment #8 f

[Bug testsuite/35382] New: Invalid gcc.dg/pr34351.c

2008-02-26 Thread hjl dot tools at gmail dot com
I got /export/gnu/src/gcc/gcc/gcc/testsuite/gcc.dg/pr34351.c:4: error: invalid register name for 'x' on Linu/ia32 since r13 register int * volatile x asm ("r13"); isn't a valid register. -- Summary: Invalid gcc.dg/pr34351.c Product: gcc Version: 4.4.0

[Bug testsuite/34878] fast-math-pr33299.f90 failure with illegal instruction due to -ffast-math.

2008-02-26 Thread sgk at troutmask dot apl dot washington dot edu
--- Comment #7 from sgk at troutmask dot apl dot washington dot edu 2008-02-26 18:00 --- Subject: Re: fast-math-pr33299.f90 failure with illegal instruction due to -ffast-math. On Tue, Feb 26, 2008 at 05:53:52PM -, ghazi at gcc dot gnu dot org wrote: > > --- Comment #6 from g

[Bug c++/35315] [4.4 regression] ICE with attribute transparent_union

2008-02-26 Thread jason at gcc dot gnu dot org
--- Comment #2 from jason at gcc dot gnu dot org 2008-02-26 18:09 --- Subject: Bug 35315 Author: jason Date: Tue Feb 26 18:09:02 2008 New Revision: 132681 URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=132681 Log: PR c++/35315 * attribs.c (decl_attributes): Leave

[Bug testsuite/34878] fast-math-pr33299.f90 failure with illegal instruction due to -ffast-math.

2008-02-26 Thread ghazi at gcc dot gnu dot org
--- Comment #8 from ghazi at gcc dot gnu dot org 2008-02-26 18:29 --- (In reply to comment #7) > > Isn't this a dup of 34168? > > > It appears to be. Can you implement Uros' suggestion? -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=34878

[Bug ada/35372] Memory corruption at unchecked deallocation of the interface classwide type

2008-02-26 Thread vgodunko at rostel dot ru
--- Comment #3 from vgodunko at rostel dot ru 2008-02-26 18:43 --- I have trace and compare execution of the two program, one use anonymous access type to tagged type and another use anonymous access type to interface type. In the program which use tagged type GNAT: - creates not only f

[Bug c++/35383] New: Lookup of template dependent function with overloads fails for namespace-qualified parameter

2008-02-26 Thread dpfurlani at raytheon dot com
Can someone confirm if this is the same non-bug reported in http://gcc.gnu.org/bugzilla/show_bug.cgi?id=29844 or if it is a regression? The code compiles in gcc 3.4.4 and 4.0.2 but not in 4.1.2, and I don't understand why. Especially since func2() doesn't have the same problem that func() does.

[Bug c++/35383] Lookup of template dependent function with overloads fails for namespace-qualified parameter

2008-02-26 Thread pinskia at gcc dot gnu dot org
--- Comment #1 from pinskia at gcc dot gnu dot org 2008-02-26 18:59 --- >func(hold.item); // OK for Wilma, but fails for Foo::Fred, see below This is correct. > func2(hold.item); // OK, not overloaded name This is not and we still have a bug with respect of not having any overl

[Bug c/35384] Variables declared as 'static char * avar = "some string";' cannot be modified

2008-02-26 Thread Quinlan at ACM dot org
--- Comment #1 from Quinlan at ACM dot org 2008-02-26 18:59 --- I am building with compiler flags set to: -c -DLINUX -gdwarf-2 -g3 -g -O -DDEBUG -- Quinlan at ACM dot org changed: What|Removed |Added

[Bug c/35384] Variables declared as 'static char * avar = "some string";' cannot be modified

2008-02-26 Thread pinskia at gcc dot gnu dot org
--- Comment #2 from pinskia at gcc dot gnu dot org 2008-02-26 19:00 --- "some string" is a string literal so it is constant. What you are trying to do is change the string literal which is undefined behavior so you are getting a runtime seg fault. -- pinskia at gcc dot gnu dot org c

[Bug testsuite/35382] Invalid gcc.dg/pr34351.c

2008-02-26 Thread manu at gcc dot gnu dot org
--- Comment #1 from manu at gcc dot gnu dot org 2008-02-26 19:02 --- H.J. Could you suggest a more robust testcase? Or if that is not possible, there should be a way to only compile the testcase for valid targets. Ideas? -- manu at gcc dot gnu dot org changed: What|

[Bug c/35384] New: Variables declared as 'static char * avar = "some string";' cannot be modified

2008-02-26 Thread Quinlan at ACM dot org
A variable is declared similar to this: static char * avar = "some string"; Then an attempt to change the value like this will throw a SIGSEGV: avar[4] = '_'; The problem occurs when the variable is declared locally in a function, and when the variable is declared globally. Adding a cast to the

[Bug testsuite/35382] Invalid gcc.dg/pr34351.c

2008-02-26 Thread hjl dot tools at gmail dot com
--- Comment #2 from hjl dot tools at gmail dot com 2008-02-26 19:30 --- (In reply to comment #1) > Could you suggest a more robust testcase? > > Or if that is not possible, there should be a way to only compile the testcase > for valid targets. Ideas? > You can use /* { dg-add-option

[Bug fortran/35385] New: gfortran does not support the COCO preprocessor

2008-02-26 Thread jb at gcc dot gnu dot org
COCO is part 3 of the Fortran 95 standard. Dan Nagle provides a GPL licensed implementation at http://users.erols.com/dnagle/coco.html, perhaps it's possible to use that? -- Summary: gfortran does not support the COCO preprocessor Product: gcc Version: 4.4.0

[Bug c/35384] Variables declared as 'static char * avar = "some string";' cannot be modified

2008-02-26 Thread Quinlan at ACM dot org
--- Comment #3 from Quinlan at ACM dot org 2008-02-26 20:10 --- I appreciate your answer, however shouldn't this declaration: static char * avar = "some string"; be identical to this: static char * avar = NULL; avar = "some string"; Yet when the application executes: avar[4] = '

[Bug testsuite/35382] Invalid gcc.dg/pr34351.c

2008-02-26 Thread manu at gcc dot gnu dot org
--- Comment #3 from manu at gcc dot gnu dot org 2008-02-26 20:14 --- (In reply to comment #2) > You can use > > /* { dg-add-options register } */ > > register int * volatile x asm REGISTER; /* { dg-warning "optimization may > eliminate reads and/or writes to register variables" } */ >

[Bug preprocessor/22168] #if #A == #B should have a diagnostic in ISO C mode

2008-02-26 Thread tromey at gcc dot gnu dot org
--- Comment #16 from tromey at gcc dot gnu dot org 2008-02-26 20:48 --- *** Bug 35312 has been marked as a duplicate of this bug. *** -- tromey at gcc dot gnu dot org changed: What|Removed |Added

[Bug preprocessor/35312] Invalid syntax in PP expressions not diagnosed in strict mode

2008-02-26 Thread tromey at gcc dot gnu dot org
--- Comment #2 from tromey at gcc dot gnu dot org 2008-02-26 20:48 --- I agree, closing as dup. I have a patch for that bug. I forget what happened to it, but I'll look into it soon. *** This bug has been marked as a duplicate of 22168 *** -- tromey at gcc dot gnu dot org changed:

[Bug c/35384] Variables declared as 'static char * avar = "some string";' cannot be modified

2008-02-26 Thread Quinlan at ACM dot org
--- Comment #4 from Quinlan at ACM dot org 2008-02-26 21:05 --- If the problem is that the char pointer is pointing to a constant value in: static char * avar = "some string"; then perhaps initializing with an array of one string as in this line work: static char * avar = {"some stri

[Bug c/35384] Variables declared as 'static char * avar = "some string";' cannot be modified

2008-02-26 Thread pinskia at gcc dot gnu dot org
--- Comment #5 from pinskia at gcc dot gnu dot org 2008-02-26 21:09 --- >Converting avar from a pointer to an array like this however does work: static char avar[] = {"some string"}; This is an array value which is initialized via a string literal. The array is writable. The behavio

[Bug fortran/29549] matmul slow for complex matrices

2008-02-26 Thread jb at gcc dot gnu dot org
--- Comment #14 from jb at gcc dot gnu dot org 2008-02-26 21:15 --- Closing as fixed. Timings for a small test program comparing matrix multiplication done manually vs. libgfortran for real and complex. Results without the committed patch (-O3 -funroll-loops, 1.6 GHz Pentium-M): Manual

[Bug libfortran/35293] [4.4 Regression] truncation errors with gfortran.dg/streamio_11.f90, 3, 4 and 15.

2008-02-26 Thread tkoenig at gcc dot gnu dot org
--- Comment #7 from tkoenig at gcc dot gnu dot org 2008-02-26 21:45 --- If we don't have a way to truncate a file, we won't have an easy time enforcing Fortran semantics. Are there any other ways of truncating a file on that particular target? If there aren't, we could a) refuse to co

[Bug fortran/35033] Valid ASSIGNMENT(=) rejected

2008-02-26 Thread burnus at gcc dot gnu dot org
--- Comment #4 from burnus at gcc dot gnu dot org 2008-02-26 22:34 --- Subject: Bug 35033 Author: burnus Date: Tue Feb 26 22:33:35 2008 New Revision: 132689 URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=132689 Log: 2008-02-26 Tobias Burnus <[EMAIL PROTECTED]> PR fort

[Bug fortran/35033] Valid ASSIGNMENT(=) rejected

2008-02-26 Thread burnus at gcc dot gnu dot org
--- Comment #5 from burnus at gcc dot gnu dot org 2008-02-26 22:41 --- FIXED on the trunk (4.4.0). The not-so-helpful error message is now PR 35267. -- burnus at gcc dot gnu dot org changed: What|Removed |Added

[Bug c/28800] warning "ISO C forbids an empty source file" could be improved

2008-02-26 Thread rwild at gcc dot gnu dot org
--- Comment #2 from rwild at gcc dot gnu dot org 2008-02-26 22:42 --- Subject: Bug 28800 Author: rwild Date: Tue Feb 26 22:41:16 2008 New Revision: 132690 URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=132690 Log: gcc/: PR c/28800 * c-parser.c (c_parser_translation_unit): Warn f

[Bug c/28800] warning "ISO C forbids an empty source file" could be improved

2008-02-26 Thread rwild at gcc dot gnu dot org
--- Comment #3 from rwild at gcc dot gnu dot org 2008-02-26 22:47 --- Fixed. -- rwild at gcc dot gnu dot org changed: What|Removed |Added CC|

[Bug libfortran/35293] [4.4 Regression] truncation errors with gfortran.dg/streamio_11.f90, 3, 4 and 15.

2008-02-26 Thread hp at gcc dot gnu dot org
--- Comment #8 from hp at gcc dot gnu dot org 2008-02-26 22:47 --- (In reply to comment #7) > If we don't have a way to truncate a file, we won't have an > easy time enforcing Fortran semantics. Are there any other > ways of truncating a file on that particular target? I can certainly

[Bug testsuite/35382] Invalid gcc.dg/pr34351.c

2008-02-26 Thread ubizjak at gmail dot com
--- Comment #4 from ubizjak at gmail dot com 2008-02-26 22:59 --- (In reply to comment #3) > That seems too complicated for a simple diagnostics test. Moreover, I couldn't > find a single example of that in the testsuite. Why not simply? What about this: --cut here-- /* { dg-do compil

[Bug c++/35386] New: Invalid vector code generated with -O2

2008-02-26 Thread kes at smolek dot com
A simple vector addition loop fails to generate any addition code when -O2 optimization is used; the loop is essentially empty. -- Summary: Invalid vector code generated with -O2 Product: gcc Version: 4.2.3 Status: UNCONFIRMED Severity: majo

[Bug c++/35386] Invalid vector code generated with -O2

2008-02-26 Thread kes at smolek dot com
--- Comment #1 from kes at smolek dot com 2008-02-26 23:17 --- Created an attachment (id=15234) --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=15234&action=view) temp file output demonstrating the bug Command line: gcc -v -save-temps -O2 -S -msse3 ComputeEven.cpp Note: bug occurs

[Bug libfortran/35293] [4.4 Regression] truncation errors with gfortran.dg/streamio_11.f90, 3, 4 and 15.

2008-02-26 Thread tkoenig at gcc dot gnu dot org
--- Comment #9 from tkoenig at gcc dot gnu dot org 2008-02-26 23:19 --- (In reply to comment #8) > > b) fail at runtime (noisily) and xfail the > >corresponding test cases > > *sigh* ok, I'll do it, except for the noise. Thanks a lot! You'll probably want to make the truncate a

[Bug c++/35386] Invalid vector code generated with -O2

2008-02-26 Thread pinskia at gcc dot gnu dot org
--- Comment #2 from pinskia at gcc dot gnu dot org 2008-02-26 23:20 --- You are violating C/C++ aliasing rules: typedef float v4sf __attribute__ ((vector_size(16))); v4sf vSum; complex *vp = (complex *) &vSum; ... spectra[4*j] = vp[0]; spectra[4*j+2] = vp[1]; -- pinskia at

[Bug libfortran/35293] [4.4 Regression] truncation errors with gfortran.dg/streamio_11.f90, 3, 4 and 15.

2008-02-26 Thread hp at gcc dot gnu dot org
--- Comment #10 from hp at gcc dot gnu dot org 2008-02-26 23:37 --- (In reply to comment #9) > You'll probably want to make the truncate a no-op if we > are at the end of file already. No, that'd be an unrelated change. I don't wanna mix things up and/or together. -- http://gcc.gn

[Bug c++/35386] Invalid vector code generated with -O2

2008-02-26 Thread kes at smolek dot com
--- Comment #3 from kes at smolek dot com 2008-02-27 01:50 --- Subject: Re: Invalid vector code generated with -O2 Oops. Sorry for the false alarm. But shouldn't there be an error, or at least a warning? pinskia at gcc dot gnu dot org wrote: > --- Comment #2 from pinskia at gcc

[Bug c++/35386] Invalid vector code generated with -O2

2008-02-26 Thread pinskia at gcc dot gnu dot org
--- Comment #4 from pinskia at gcc dot gnu dot org 2008-02-27 01:59 --- (In reply to comment #3) > Subject: Re: Invalid vector code generated with -O2 > > Oops. Sorry for the false alarm. But shouldn't there be an error, or > at least a warning? There should be a warning but someti

[Bug fortran/35381] Misleading error message with derived types: Exponent at (1) must be INTEGER for an initialization expression

2008-02-26 Thread jvdelisle at gcc dot gnu dot org
--- Comment #2 from jvdelisle at gcc dot gnu dot org 2008-02-27 02:14 --- The problem exists in gfortran 4.2 but is fixed in 4.3 Suggest you update to 4.3. You can get binaries at http://gcc.gnu.org/wiki/GFortranBinaries if your distro does not provide 4.3 yet. -- http://gcc.gnu.o

[Bug fortran/34907] valgrind error indication from testsuite trans-types.c: gfc_typenode_for_spec

2008-02-26 Thread jvdelisle at gcc dot gnu dot org
--- Comment #10 from jvdelisle at gcc dot gnu dot org 2008-02-27 04:38 --- Fixed on trunk. -- jvdelisle at gcc dot gnu dot org changed: What|Removed |Added S