[Bug c/28368] New:

2006-07-13 Thread gcc-bugzilla at gcc dot gnu dot org
-std=c89 doesn't warn about gcc's ?: extension Environment: System: Linux rho 2.6.15-1-amd64-k8 #2 Tue Mar 7 06:53:26 UTC 2006 x86_64 GNU/Linux Architecture: x86_64 host: x86_64-unknown-linux-gnu build: x86_64-unknown-linux-gnu target: x86_64-unknown-linux-gnu configured with:

[Bug fortran/28213] ICE: Hollerith constant

2006-07-13 Thread fengwang at gcc dot gnu dot org
--- Comment #6 from fengwang at gcc dot gnu dot org 2006-07-13 06:34 --- Fixed on trunk and 4.1 -- fengwang at gcc dot gnu dot org changed: What|Removed |Added

[Bug fastjar/28359] fastjar directory traversal problem

2006-07-13 Thread rguenth at gcc dot gnu dot org
--- Comment #10 from rguenth at gcc dot gnu dot org 2006-07-13 07:39 --- Reopening then... -- rguenth at gcc dot gnu dot org changed: What|Removed |Added

[Bug fastjar/28359] fastjar directory traversal problem

2006-07-13 Thread rguenth at gcc dot gnu dot org
--- Comment #11 from rguenth at gcc dot gnu dot org 2006-07-13 07:40 --- ...to assign myself. -- rguenth at gcc dot gnu dot org changed: What|Removed |Added

[Bug tree-optimization/28364] poor optimization choices when iterating over a std::string (probably not c++-specific)

2006-07-13 Thread rakdver at atrey dot karlin dot mff dot cuni dot cz
--- Comment #18 from rakdver at atrey dot karlin dot mff dot cuni dot cz 2006-07-13 07:58 --- Subject: Re: poor optimization choices when iterating over a std::string (probably not c++-specific) I-cache. this only matters if this increase in code size will make the code go out

[Bug tree-optimization/28364] poor optimization choices when iterating over a std::string (probably not c++-specific)

2006-07-13 Thread rakdver at atrey dot karlin dot mff dot cuni dot cz
--- Comment #19 from rakdver at atrey dot karlin dot mff dot cuni dot cz 2006-07-13 08:01 --- Subject: Re: poor optimization choices when iterating over a std::string (probably not c++-specific) I-cache. this only matters if this increase in code size will make the code go out

[Bug tree-optimization/28364] poor optimization choices when iterating over a std::string (probably not c++-specific)

2006-07-13 Thread zackw at panix dot com
--- Comment #20 from zackw at panix dot com 2006-07-13 08:25 --- Subject: Re: poor optimization choices when iterating over a std::string (probably not c++-specific) However, ch isn't just copying the loop header; it is also copying the *entire body of the loop*, which nothing can

[Bug tree-optimization/28364] poor optimization choices when iterating over a std::string (probably not c++-specific)

2006-07-13 Thread zackw at panix dot com
--- Comment #21 from zackw at panix dot com 2006-07-13 08:28 --- Subject: Re: poor optimization choices when iterating over a std::string (probably not c++-specific) on your real program, how much performance do you gain by hand-rewriting the assembler to look the way you like?

[Bug tree-optimization/28364] poor optimization choices when iterating over a std::string (probably not c++-specific)

2006-07-13 Thread rguenth at gcc dot gnu dot org
--- Comment #22 from rguenth at gcc dot gnu dot org 2006-07-13 08:28 --- For practical purposes (determining the loop runs at least once) it needs to duplicate the exit condition. Which happens to be difficult here, as there are multiple loop exits. --

[Bug tree-optimization/28364] poor optimization choices when iterating over a std::string (probably not c++-specific)

2006-07-13 Thread rakdver at atrey dot karlin dot mff dot cuni dot cz
--- Comment #23 from rakdver at atrey dot karlin dot mff dot cuni dot cz 2006-07-13 09:00 --- Subject: Re: poor optimization choices when iterating over a std::string (probably not c++-specific) on your real program, how much performance do you gain by hand-rewriting the

[Bug tree-optimization/28364] poor optimization choices when iterating over a std::string (probably not c++-specific)

2006-07-13 Thread rakdver at atrey dot karlin dot mff dot cuni dot cz
--- Comment #24 from rakdver at atrey dot karlin dot mff dot cuni dot cz 2006-07-13 09:03 --- Subject: Re: poor optimization choices when iterating over a std::string (probably not c++-specific) However, ch isn't just copying the loop header; it is also copying the *entire body

[Bug c++/28370] New: undefined reference (to a complicated template construct) at link time

2006-07-13 Thread caolanm at redhat dot com
../unxlngi6.pro/slo/uuid.o: In function `create': ../../inc/rtl/instance.hxx:292: undefined reference to `(anonymous namespace)::rtl_Instance(anonymous namespace)::Pool, rtl::Static(anonymous namespace)::Pool, (anonymous namespace)::PoolHolder::StaticInstance, osl::Guardosl::Mutex,

[Bug c++/28370] undefined reference (to a complicated template construct) at link time

2006-07-13 Thread caolanm at redhat dot com
--- Comment #1 from caolanm at redhat dot com 2006-07-13 09:42 --- Created an attachment (id=11877) -- (http://gcc.gnu.org/bugzilla/attachment.cgi?id=11877action=view) testcase -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28370

[Bug c++/28370] undefined reference (to a complicated template construct) at link time

2006-07-13 Thread caolanm at redhat dot com
--- Comment #2 from caolanm at redhat dot com 2006-07-13 09:43 --- Created an attachment (id=11878) -- (http://gcc.gnu.org/bugzilla/attachment.cgi?id=11878action=view) original -6 nm output -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28370

[Bug c++/28370] undefined reference (to a complicated template construct) at link time

2006-07-13 Thread caolanm at redhat dot com
--- Comment #3 from caolanm at redhat dot com 2006-07-13 09:43 --- Created an attachment (id=11879) -- (http://gcc.gnu.org/bugzilla/attachment.cgi?id=11879action=view) new nm -7 output -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28370

[Bug c++/28361] Pointer arithmetic failure

2006-07-13 Thread pfister at reith-pfister dot de
--- Comment #2 from pfister at reith-pfister dot de 2006-07-13 10:08 --- Subject: Re: Pointer arithmetic failure Hello, thanks for your immediate response, but i can't repeat the bug today. Yesterday, i spent one day in evaluating the bug in my application and now it seems to be

[Bug c++/28370] undefined reference (to a complicated template construct) at link time

2006-07-13 Thread caolanm at redhat dot com
--- Comment #4 from caolanm at redhat dot com 2006-07-13 11:06 --- Created an attachment (id=11880) -- (http://gcc.gnu.org/bugzilla/attachment.cgi?id=11880action=view) diff against testme.ii which will make it work for me This attachment is a diff against the testme.ii and makes the

[Bug c++/28370] undefined reference (to a complicated template construct) at link time

2006-07-13 Thread pinskia at gcc dot gnu dot org
--- Comment #5 from pinskia at gcc dot gnu dot org 2006-07-13 11:53 --- This is invalid code with no diagnostic required. See the full explaination in PR 28360 which is exactly the same case. In fact with a real testcase :). *** This bug has been marked as a duplicate of 28360 ***

[Bug c++/28360] [4.2 regression] undefined reference when header contains additional namespace

2006-07-13 Thread pinskia at gcc dot gnu dot org
--- Comment #4 from pinskia at gcc dot gnu dot org 2006-07-13 11:53 --- *** Bug 28370 has been marked as a duplicate of this bug. *** -- pinskia at gcc dot gnu dot org changed: What|Removed |Added

[Bug c++/28370] undefined reference (to a complicated template construct) at link time

2006-07-13 Thread pinskia at gcc dot gnu dot org
--- Comment #6 from pinskia at gcc dot gnu dot org 2006-07-13 11:55 --- Basicially the code was violating ODR rules before because of the anonymous namespace. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28370

[Bug c++/28361] Pointer arithmetic failure

2006-07-13 Thread pinskia at gcc dot gnu dot org
--- Comment #3 from pinskia at gcc dot gnu dot org 2006-07-13 12:06 --- So closing as invalid. -- pinskia at gcc dot gnu dot org changed: What|Removed |Added

[Bug c++/28370] undefined reference (to a complicated template construct) at link time

2006-07-13 Thread pinskia at gcc dot gnu dot org
--- Comment #7 from pinskia at gcc dot gnu dot org 2006-07-13 12:19 --- Note I think you should have first checked FSF 4.1.2 which will have not this issue. 4.2.0 might have it, I might had been wrong at closing as a dup, that might be because I am tried and had a long day and it is

[Bug c++/28114] [4.0/4.1/4.2 regression] ICE with struct definition in argument of template function

2006-07-13 Thread reichelt at gcc dot gnu dot org
--- Comment #12 from reichelt at gcc dot gnu dot org 2006-07-13 13:02 --- Fixed on mainline, 4.1 branch, and 4.0 branch. -- reichelt at gcc dot gnu dot org changed: What|Removed |Added

[Bug c++/28051] [4.0 regression] ICE on invalid conversion operator

2006-07-13 Thread reichelt at gcc dot gnu dot org
--- Comment #9 from reichelt at gcc dot gnu dot org 2006-07-13 13:14 --- The bug is not fixed on the 4.0 branch. The ICE only happens in a different position: bug.cc: In instantiation of 'B0': bug.cc:8: instantiated from here bug.cc:5: error: no type named 'X' in 'struct A0'

[Bug c++/28217] [4.0/4.1 regression] ICE in tree_int_cst_sgn

2006-07-13 Thread reichelt at gcc dot gnu dot org
--- Comment #16 from reichelt at gcc dot gnu dot org 2006-07-13 13:21 --- Jason, would you mind adding a testcase? Thanks! -- reichelt at gcc dot gnu dot org changed: What|Removed |Added

[Bug c++/28370] [4.2 Regression] undefined reference to template class static variable in an anonymous namespace

2006-07-13 Thread pinskia at gcc dot gnu dot org
--- Comment #8 from pinskia at gcc dot gnu dot org 2006-07-13 14:08 --- Here is a full reduced self contained testcase: namespace { template typename Inst struct rtl_Instance { static int * m_pInstance; }; template typename Inst int * rtl_Instance Inst::m_pInstance = 0; }

[Bug target/28126] gcc moves an expensive instruction outside of a conditional

2006-07-13 Thread anemo at mba dot ocn dot ne dot jp
--- Comment #5 from anemo at mba dot ocn dot ne dot jp 2006-07-13 14:42 --- Created an attachment (id=11881) -- (http://gcc.gnu.org/bugzilla/attachment.cgi?id=11881action=view) do not put rdhwr instruction on delay slot With this patch, gcc 4.2 (with -O1, -O2) and gcc 4.1.1 with -O1

[Bug target/28126] gcc moves an expensive instruction outside of a conditional

2006-07-13 Thread anemo at mba dot ocn dot ne dot jp
--- Comment #6 from anemo at mba dot ocn dot ne dot jp 2006-07-13 14:58 --- (In reply to comment #2) Although I don't know much about the instruction scheduling, I had a similar problem on SH and it was workarounded with emitting blockage insns. The patch below might work for you,

Re: [Bug c++/28363] New: Default template parameter causes compiler segfault

2006-07-13 Thread DebianTux23
http://earth.google.com/download-earth.html On 7/13/06, DebianTux23 [EMAIL PROTECTED] wrote: http://earth.google.com/download-earth.html On 12 Jul 2006 21:18:46 -, eric dot lemings at roguewave dot com [EMAIL PROTECTED] wrote: [EMAIL PROTECTED] tests]$ gcc --version gcc (GCC) 4.1.0

[Bug c++/28363] Default template parameter causes compiler segfault

2006-07-13 Thread wieseltux23 at gmail dot com
--- Comment #1 from wieseltux23 at gmail dot com 2006-07-13 15:08 --- Subject: Re: New: Default template parameter causes compiler segfault http://earth.google.com/download-earth.html On 7/13/06, DebianTux23 [EMAIL PROTECTED] wrote: http://earth.google.com/download-earth.html On

Re: [Bug c++/28363] New: Default template parameter causes compiler segfault

2006-07-13 Thread DebianTux23
http://earth.google.com/download-earth.html https://www.google.com/accounts/ServiceLogin?service=pagescontinue=http%3A%2F%2Fpages.google.com%3A80%2F On 7/13/06, DebianTux23 [EMAIL PROTECTED] wrote: http://earth.google.com/download-earth.html On 12 Jul 2006 21:18:46 -, eric dot lemings at

[Bug c++/28363] Default template parameter causes compiler segfault

2006-07-13 Thread wieseltux23 at gmail dot com
--- Comment #2 from wieseltux23 at gmail dot com 2006-07-13 15:09 --- Subject: Re: New: Default template parameter causes compiler segfault http://earth.google.com/download-earth.html

[Bug tree-optimization/28210] ICE in is_gimple_min_invariant at -O1.

2006-07-13 Thread reichelt at gcc dot gnu dot org
--- Comment #2 from reichelt at gcc dot gnu dot org 2006-07-13 15:31 --- Reduced testcase that crashes when compiled with g++ --param ggc-min-expand=0 --param ggc-min-heapsize=0 -O: = extern C int verbose; struct A { char const* foo()

[Bug c/28299] [4.0/4.1/4.2 regression] ICE with -Wmissing-prototypes

2006-07-13 Thread reichelt at gcc dot gnu dot org
--- Comment #1 from reichelt at gcc dot gnu dot org 2006-07-13 15:44 --- Shorter testcase that ICE's without issuing an error message first: == int foo; void foo() {} == The problem appeared with GCC 3.0. -- reichelt at gcc dot gnu dot org

[Bug c++/28371] New: pointer to function type mistaken when template functions are involved

2006-07-13 Thread joaquin at tid dot es
The following snippet: #include iostream void foo(){} templatetypename Tvoid bar(){} templatetypename T void test(const T) { std::couttypeid(T).name()std::endl; } int main() { test(foo); test(barint); } produces this oputput on gcc version 3.2 20020927 (prerelease) under Cygwin: PFvvE

[Bug c++/28371] pointer to function type mistaken when template functions are involved

2006-07-13 Thread rguenth at gcc dot gnu dot org
--- Comment #1 from rguenth at gcc dot gnu dot org 2006-07-13 15:51 --- Fixed (at least) in 3.3.3. -- rguenth at gcc dot gnu dot org changed: What|Removed |Added

[Bug target/27287] [4.1/4.2 Regression] returning constant double

2006-07-13 Thread edmar at freescale dot com
--- Comment #9 from edmar at freescale dot com 2006-07-13 16:08 --- I tried the patch on comment 7 on gcc main line from yesterday. It did not work for me: foo.c: In function 'foo': foo.c:1: error: unrecognizable insn: (insn 11 10 12 3 (set (subreg:DF (reg:DI 121) 0)

[Bug c++/28370] [4.2 Regression] undefined reference to template class static variable in an anonymous namespace

2006-07-13 Thread jakub at gcc dot gnu dot org
--- Comment #9 from jakub at gcc dot gnu dot org 2006-07-13 16:25 --- The reason why the var is not emitted seems to be that note_vague_linkage_var is not called on it in finish_static_data_member_decl. If I replace if (! processing_template_decl TREE_PUBLIC (decl))

[Bug target/27287] [4.1/4.2 Regression] returning constant double

2006-07-13 Thread dje at watson dot ibm dot com
--- Comment #10 from dje at watson dot ibm dot com 2006-07-13 16:31 --- Subject: Re: [4.1/4.2 Regression] returning constant double edmar at freescale dot com writes: edmar I tried the patch on comment 7 on gcc main line from yesterday. It did not work edmar for me: Tried

[Bug c++/28343] [4.0/4.1/4.2 regression] ICE with invalid asm specifier for struct member

2006-07-13 Thread patchapp at dberlin dot org
--- Comment #1 from patchapp at dberlin dot org 2006-07-13 16:50 --- Subject: Bug number PR c++/28343 A patch for this bug has been added to the patch tracker. The mailing list url for the patch is http://gcc.gnu.org/ml/gcc-patches/2006-07/msg00584.html --

[Bug c++/28370] [4.2 Regression] undefined reference to template class static variable in an anonymous namespace

2006-07-13 Thread jakub at gcc dot gnu dot org
--- Comment #10 from jakub at gcc dot gnu dot org 2006-07-13 16:50 --- Testing a patch. -- jakub at gcc dot gnu dot org changed: What|Removed |Added

[Bug c++/28294] [4.0/4.1/4.2 regression] ICE with invalid use of __builtin_offsetof

2006-07-13 Thread patchapp at dberlin dot org
--- Comment #1 from patchapp at dberlin dot org 2006-07-13 17:00 --- Subject: Bug number PR c++/28294 A patch for this bug has been added to the patch tracker. The mailing list url for the patch is http://gcc.gnu.org/ml/gcc-patches/2006-07/msg00586.html --

[Bug c++/28051] [4.0 regression] ICE on invalid conversion operator

2006-07-13 Thread lmillward at gcc dot gnu dot org
--- Comment #10 from lmillward at gcc dot gnu dot org 2006-07-13 17:33 --- Weird, I bootstrapped and tested this patch on the 4.0 branch not long before applying. I'll take a look and see if I can see why the new testcase is ICE'ing. -- lmillward at gcc dot gnu dot org changed:

[Bug tree-optimization/28372] New: Segfault with -fipa-pta

2006-07-13 Thread micis at gmx dot de
With the actual snapshot gcc-4.2-20060708 I get a segfault when I use the option -fipa-pta Michael Cieslinski g++ -fipa-pta -S get.ii -v Using built-in specs. Target: x86_64-unknown-linux-gnu Configured with: ../gcc-4.2-20060708/configure --prefix=/usr/local/gcc42s --program-suffix=42s

[Bug tree-optimization/28372] Segfault with -fipa-pta

2006-07-13 Thread micis at gmx dot de
--- Comment #1 from micis at gmx dot de 2006-07-13 17:54 --- Created an attachment (id=11882) -- (http://gcc.gnu.org/bugzilla/attachment.cgi?id=11882action=view) preprocessed source -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28372

[Bug bootstrap/27794] stack explosion

2006-07-13 Thread sje at cup dot hp dot com
--- Comment #4 from sje at cup dot hp dot com 2006-07-13 17:57 --- Eric, do you have any new information on this problem? I cannot reproduce it. -- sje at cup dot hp dot com changed: What|Removed |Added

[Bug target/27287] [4.1/4.2 Regression] returning constant double

2006-07-13 Thread edmar at freescale dot com
--- Comment #11 from edmar at freescale dot com 2006-07-13 18:01 --- I tested with both examples. Both fails with the same ICE. I am sure I am using the right compiler, because I invoked it explictitly with: ./install_area/gcc-trunk-20060712-e500v2/bin/powerpc-unknown-linux-gnuspe-gcc

[Bug middle-end/27889] [4.1/4.2 Regression] ICE on complex assignment in nested function

2006-07-13 Thread janis at gcc dot gnu dot org
--- Comment #18 from janis at gcc dot gnu dot org 2006-07-13 18:18 --- A regression hunt on powerpc-linux using the C testcase from comment #6 identified the following patch: http://gcc.gnu.org/viewcvs?view=revrev=100793 r100793 | rth | 2005-06-09 07:43:40 + (Thu, 09 Jun

[Bug c++/28365] error: ' error: 'MyClass::MyClass(const MyClass)' is private error: within this context

2006-07-13 Thread sebor at roguewave dot com
--- Comment #2 from sebor at roguewave dot com 2006-07-13 19:07 --- If it is in our (Rogue Wave) current code, could you please let us know where so we can look into fixing it? (It's doesn't matter whther gcc does the right thing here or not, our code should be portable either way.)

[Bug target/27287] [4.1/4.2 Regression] returning constant double

2006-07-13 Thread dje at watson dot ibm dot com
--- Comment #12 from dje at watson dot ibm dot com 2006-07-13 19:58 --- Subject: Re: [4.1/4.2 Regression] returning constant double edmar at freescale dot com writes: edmar And to kill the last shread of doubt, here I am using the xgcc present on the edmar very same build

[Bug target/27287] [4.1/4.2 Regression] returning constant double

2006-07-13 Thread edmar at freescale dot com
--- Comment #13 from edmar at freescale dot com 2006-07-13 20:09 --- What about now: /local/gnu_toolchain/build_area/obj_gcc-trunk_e500v2/gcc/xgcc -B/local/gnu_toolchain/build_area/obj_gcc-trunk_e500v2/gcc/ -O2 -c foo.c foo.c: In function 'f': foo.c:1: error: unrecognizable insn: (insn

[Bug regression/28373] New: C code gives unaligned access

2006-07-13 Thread kminola at eng dot umd dot edu
/* gcc-4.1.1 gives unaligned access on alphaev68-dec-osf5.1b regression from gcc-3.4.4 % gcc -v Using built-in specs. Target: alphaev68-dec-osf5.1b Configured with: /usr/local/gcc-4.1.1/src/gcc-4.1.1/configure --enable-languages=c --prefix=/usr/local/gcc-4.1.1/alpha-OSF1-V5 Thread model:

[Bug target/27287] [4.1/4.2 Regression] returning constant double

2006-07-13 Thread dje at watson dot ibm dot com
foo.c $ ./xgcc -B./ -v Reading specs from ./specs Target: powerpc-unknown-linux-gnuspe Configured with: /farm/dje/src/src/configure --target=powerpc-unknown-linux-gnuspe --enable-e500_double --enable-languages=c Thread model: posix gcc version 4.2.0 20060713 (experimental) $ cat foo.s .file

[Bug target/27287] [4.1/4.2 Regression] returning constant double

2006-07-13 Thread edmar at freescale dot com
--- Comment #15 from edmar at freescale dot com 2006-07-13 20:48 --- Ahhha, I found the problem. My patch is wrong: This line + (match_operand:DF 1 register_operand r,m))] should read + (match_operand:DF 1 input_operand r,m))] I don't know how I made this mess, I will try

[Bug regression/28373] C code gives unaligned access

2006-07-13 Thread falk at debian dot org
--- Comment #1 from falk at debian dot org 2006-07-13 20:58 --- The conversion from int* to aa* is only defined if the pointer is correctly aligned. Even if it was correctly aligned, dereferencing this pointer is undefined behavior (see -Wstrict-aliasing documentation). So this is not

[Bug libfortran/26893] kinds.h not generated, causing failure

2006-07-13 Thread langton at gcc dot gnu dot org
--- Comment #17 from langton at gcc dot gnu dot org 2006-07-13 21:00 --- (In reply to comment #16) Thanks but it doesn't work... Did you re-run 'configure' after rebuilding GMP and MPFR? What happens if you try to configure and bootstrap from a clean object directory? --

[Bug other/28297] GCC 4.1.1 fails to build on Mac OS X 10.4.6

2006-07-13 Thread langton at gcc dot gnu dot org
--- Comment #8 from langton at gcc dot gnu dot org 2006-07-13 21:11 --- (In reply to comment #0) 3. Run ./configure --enable-threads --x-includes=/usr/X11R6 --x-libraries=/usr/X11R6 --with-cpu=powerpc --with-mpfr=/usr/local/lib --with-gmp=/usr/local/lib. Are you building in the

[Bug libfortran/26893] kinds.h not generated, causing failure

2006-07-13 Thread steven at gcc dot gnu dot org
--- Comment #18 from steven at gcc dot gnu dot org 2006-07-13 21:47 --- Re. comment #16: That looks like you get an internal compiler error (ICE )while building g++ which has nothing to do with libgfortran. If that ICE is reproducible, it deserves its own bug report. --

[Bug c++/28365] error: ' error: 'MyClass::MyClass(const MyClass)' is private error: within this context

2006-07-13 Thread kk at microfocus dot com
--- Comment #3 from kk at microfocus dot com 2006-07-13 21:49 --- (In reply to comment #2) If it is in our (Rogue Wave) current code, could you please let us know where so we can look into fixing it? (It's doesn't matter whther gcc does the right thing here or not, our code should be

[Bug c++/28365] error: ' error: 'MyClass::MyClass(const MyClass)' is private error: within this context

2006-07-13 Thread fang at csl dot cornell dot edu
--- Comment #4 from fang at csl dot cornell dot edu 2006-07-13 22:06 --- Subject: Re: error: ' error: 'MyClass::MyClass(const MyClass)' is private error: within this context --- Comment #3 from kk at microfocus dot com 2006-07-13 21:49 --- (In reply to comment #2) If

[Bug preprocessor/28375] New: Macro expansion breaks with Objective-C var-arg method calls

2006-07-13 Thread mike at ambrosiasw dot com
If an Objective-C call with variable arguments, such as [NSString stringWithFormat:@foo %d, 3], is wrapped in a macro call, the combined call will fail to compile. It seems like gcc is overlooking the square brackets entirely, and sees the comma in the method call as belonging to the macro itself.

[Bug preprocessor/28375] Macro expansion breaks with Objective-C var-arg method calls

2006-07-13 Thread mike at ambrosiasw dot com
--- Comment #1 from mike at ambrosiasw dot com 2006-07-13 22:25 --- Created an attachment (id=11885) -- (http://gcc.gnu.org/bugzilla/attachment.cgi?id=11885action=view) Minimal test case -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28375

[Bug preprocessor/28375] Macro expansion breaks with Objective-C var-arg method calls

2006-07-13 Thread mike at ambrosiasw dot com
--- Comment #2 from mike at ambrosiasw dot com 2006-07-13 22:28 --- Created an attachment (id=11886) -- (http://gcc.gnu.org/bugzilla/attachment.cgi?id=11886action=view) Minimal test case Oops, wrong version. -- mike at ambrosiasw dot com changed: What|Removed

[Bug regression/28373] C code gives unaligned access

2006-07-13 Thread pinskia at gcc dot gnu dot org
--- Comment #2 from pinskia at gcc dot gnu dot org 2006-07-13 22:44 --- More than that: int cc[1]; foo(cc); /* says unaligned access */ int foo(v) aa *v; You are also violating C aliasing rules and also violating an even more fundental problem in that the struct aa will not

[Bug preprocessor/28375] Macro expansion breaks with Objective-C var-arg method calls

2006-07-13 Thread pinskia at gcc dot gnu dot org
--- Comment #3 from pinskia at gcc dot gnu dot org 2006-07-13 22:47 --- You want to wrap the message call in (): FIRST(([NSString stringWithFormat:@We're number %d!, 1]), @ignored); -- pinskia at gcc dot gnu dot org changed: What|Removed

[Bug tree-optimization/28372] Segfault with -fipa-pta

2006-07-13 Thread pinskia at gcc dot gnu dot org
--- Comment #2 from pinskia at gcc dot gnu dot org 2006-07-13 22:52 --- This is most likely the same as PR 26963. -fipa-pta does nothing useful for users (except compiler developers). -- pinskia at gcc dot gnu dot org changed: What|Removed |Added

[Bug c++/28349] [4.0/4.1/4.2 regression] ICE with undefined va_arg and references

2006-07-13 Thread pinskia at gcc dot gnu dot org
--- Comment #1 from pinskia at gcc dot gnu dot org 2006-07-13 23:46 --- Confirmed, we should not ICE on undefined code. -- pinskia at gcc dot gnu dot org changed: What|Removed |Added

[Bug rtl-optimization/27616] [4.1/4.2 Regression] Internal error with -O1 (CSE)

2006-07-13 Thread janis at gcc dot gnu dot org
--- Comment #8 from janis at gcc dot gnu dot org 2006-07-14 00:20 --- A regression hunt on powerpc-linux using an i686-linux cross compiler identified this patch: http://gcc.gnu.org/viewcvs?view=revrev=102570 r102570 | hubicka | 2005-07-29 22:22:41 + (Fri, 29 Jul 2005)

[Bug other/28297] GCC 4.1.1 fails to build on Mac OS X 10.4.6

2006-07-13 Thread craigwd2000 at gmail dot com
--- Comment #9 from craigwd2000 at gmail dot com 2006-07-14 00:22 --- I just now tried that. Now I'm getting this error: make: *** No rule to make target `bootstrap'. Stop. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28297

[Bug c++/28302] [4.0/4.1/4.2 regression] ICE with bit-complement for vectors

2006-07-13 Thread pinskia at gcc dot gnu dot org
--- Comment #1 from pinskia at gcc dot gnu dot org 2006-07-14 00:40 --- This fixes it for me (but I don't have time to test it): Index: typeck.c === --- typeck.c(revision 115413) +++ typeck.c(working copy) @@

[Bug target/28376] New: [4.1 Regression] ICE when building opensp with -O3 on alpha

2006-07-13 Thread vapier at gentoo dot org
when building opensp with gcc-4.1.1 and -O3 on alpha, gcc ICEs: ice.ii: In function 'void __static_initialization_and_destruction_0(int, int)': ice.ii:13: error: unrecognizable insn: (insn 23 22 24 2 (set (reg:DI 84) (leu:DI (const_int 0 [0x0]) (const_int 4 [0x4]))) -1 (nil)

[Bug target/28376] [4.1 Regression] ICE when building opensp with -O3 on alpha

2006-07-13 Thread vapier at gentoo dot org
--- Comment #1 from vapier at gentoo dot org 2006-07-14 02:42 --- Created an attachment (id=11887) -- (http://gcc.gnu.org/bugzilla/attachment.cgi?id=11887action=view) PR28376.ii -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28376

[Bug target/28376] [4.1 Regression] ICE when building opensp with -O3 on alpha

2006-07-13 Thread pinskia at gcc dot gnu dot org
--- Comment #2 from pinskia at gcc dot gnu dot org 2006-07-14 03:45 --- (In reply to comment #0) ice.ii:13: error: unrecognizable insn: (insn 23 22 24 2 (set (reg:DI 84) (leu:DI (const_int 0 [0x0]) (const_int 4 [0x4]))) -1 (nil) (nil)) This should never

[Bug fortran/28224] gfortran should support namelist (nml) for internal file units

2006-07-13 Thread jvdelisle at gcc dot gnu dot org
--- Comment #2 from jvdelisle at gcc dot gnu dot org 2006-07-14 05:07 --- F95 9.2.2.2 (1) Reading and writing records shall be accomplished only by sequential access formatted input/output statements that do not specify namelist formatting. F2003 9.3 (9) Reading and writing

Inconsistent floating point result when using G++ 3.3.6 with option -O0 or -O1 separately

2006-07-13 Thread Deng Shi
-Original Message- From: Deng Shi Sent: 2006年7月13日 10:37 To: '[EMAIL PROTECTED]' Subject: Inconsistent floating point result when using G++ 3.3.6 with option -O0 or -O1 separately hi expert, I found our application tool gave the inconsistent floating point result when using