Switch statement optimization

2006-07-10 Thread Christian Hildner
Hi, while dealing with autogenerated code I found that GCC often outputs compare trees instead of branch tables for switch statements. I found that GCC uses the density of case labels within their spanned range as the key criterion. If the density of labels is smaller than 10% (33% for size

Re: Switch statement optimization

2006-07-10 Thread Ben Elliston
A paper at this year's GCC Summit talked about this: http://www.gccsummit.org/2006/view_abstract.php?content_key=18 You might like to follow up with Edmar (the author of the paper). Cheers, Ben

Questions regarding __register_frame_info

2006-07-10 Thread jacob navia
Hi I have now everything in place for dynamically register the debug frame information that my JIT (Just in time compiler) generates. I generate a CIE (Common information block), followed by a series of FDE (Frame Description Entries) describing each stack frame. The binary code is the same as

Re: Switch statement optimization

2006-07-10 Thread Joern RENNECKE
In http://gcc.gnu.org/ml/gcc/2006-07/msg00156.html, your wrote: A paper at this year's GCC Summit talked about this: http://www.gccsummit.org/2006/view_abstract.php?content_key=18 You might like to follow up with Edmar (the author of the paper). But that was about optimizing the trees for

Re: externs and thread local storage

2006-07-10 Thread Richard Henderson
On Fri, Jul 07, 2006 at 10:56:08PM -0400, Robert Dewar wrote: That's not true, thread local storage can be done simply by mapping hardware on some machines, where you swap maps on a context switch. Not with the semantics we have for __thread, which asserts that its address is valid in all

Re: Questions regarding __register_frame_info

2006-07-10 Thread Mike Stump
On Jul 10, 2006, at 6:57 AM, jacob navia wrote: What is the procedure for registering the frame info? If you don't get an answer, you may have to debug it. Just follow what something like eh6.C from the C++ testsuite does, and what it calls, when, and with what data, then mirror the eh6.C

Mainline build broken (was: r115310 - in /trunk: fixincludes/ChangeLog fixi...)

2006-07-10 Thread Jan-Benedict Glaw
On Mon, 2006-07-10 17:58:19 -, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Author: lauras Date: Mon Jul 10 17:58:18 2006 New Revision: 115310 URL: http://gcc.gnu.org/viewcvs?root=gccview=revrev=115310 Log: fixincludes: 2006-07-10 Laurynas Biveinis [EMAIL PROTECTED] PR

ICE in compute_frame_pointer_to_fb_displacement (building avr-gcc)

2006-07-10 Thread David Brownell
Hi, I was building a AVR cross compiler from current GCC trunk, and got an error. Build system was Ubuntu 6.06 on an Athlon, using the latest from CVS binutils but otherwise configured exactly as shown in http://www.nongnu.org/avr-libc/user-manual/install_tools.html The assertion failure that

Re: request for new a syntactic design for C/C++.

2006-07-10 Thread Mike Stump
On Jul 9, 2006, at 10:52 PM, Vladimir 'Yu' Stepanov wrote: I would like to offer one expansion for C/C++. Did you just reinvent downcasting in C++? If so, C++ already has that feature!? As for C, C, I'd claim C already has that feature[1], you merely have to put in a #define into your

Re: Mainline build broken (was: r115310 - in /trunk: fixincludes/ChangeLog fixi...)

2006-07-10 Thread Laurynas Biveinis
This patch broke building GCC because Makefile indention was done with spaces instead of a TAB. Obvious fix commited, r115313. That will teach me how to think oh well that's a tiny patch I sent a month ago, I'll just copy it from the mail archives instead of locating it on my disk. Sorry. --

Re: gcc breakage

2006-07-10 Thread Laurynas Biveinis
You forgot a ChangeLog entry for r115313 | lauras | 2006-07-10 12:44:48 -0700 (Mon, 10 Jul 2006) | 2 lines Fix spaces to tabs in the last commit. I'm not sure. I think that my ChangeLog entry by my previous commit (the

Re: gcc breakage

2006-07-10 Thread Steve Kargl
On Mon, Jul 10, 2006 at 11:24:55PM +0300, Laurynas Biveinis wrote: You forgot a ChangeLog entry for r115313 | lauras | 2006-07-10 12:44:48 -0700 (Mon, 10 Jul 2006) | 2 lines Fix spaces to tabs in the last commit.

Re: gcc breakage

2006-07-10 Thread Daniel Jacobowitz
On Mon, Jul 10, 2006 at 01:34:12PM -0700, Steve Kargl wrote: It's my understanding that every change requires a ChangeLog entry. There is now no consistent record of the difference between 115310 and 115311 without actually looking at svn log fixincludes/Makefile.in. Perhaps, a quick

Re: gcc breakage

2006-07-10 Thread Mike Stump
On Jul 10, 2006, at 1:24 PM, Laurynas Biveinis wrote: Do such changes require ChangeLog entries? For my own beyond trivial fixes that I catch quickly (say, less than 24 hours), normally I just fix them with a `fix typo' type svn log entry. When in doubt, or if you're fixing someone else's

Re: ICE in compute_frame_pointer_to_fb_displacement (building avr-gcc)

2006-07-10 Thread Jim Wilson
David Brownell wrote: /home/tux/avr/gcc/obj-avr/./gcc/xgcc -B/home/tux/avr/gcc/obj-avr/./gcc/ -B/usr/local/avr/avr/bin/ -B/usr/local/avr/avr/lib/ -isystem /usr/local/avr/avr/include -isystem /usr/local/avr/avr/sys-include -O2 -O2 -g -O2 -DIN_GCC -DCROSS_COMPILE -W -Wall -Wwrite-strings

Re: ICE in compute_frame_pointer_to_fb_displacement (building avr-gcc)

2006-07-10 Thread Andrew Pinski
On Jul 11, 2006, at 4:49 AM, David Brownell wrote: Hi, Anyone have a fix, workaround, or other suggestion? Yes don't use --with-dwarf2 :). This is PR 26504: http://gcc.gnu.org/bugzilla/show_bug.cgi?id=26504 Also someone should try the patch in PR 26015:

Running aclocal in libstdc++-v3 directory

2006-07-10 Thread Steve Ellcey
I am trying to make a configure change in the libstdc++-v3 directory but when I run aclocal (even on an unmodified libstdc++-v3 directory from the top-of-tree), I get an error message. Does anyone else see this? [hpsje] $ aclocal aclocal:configure.ac:85: warning: macro `AM_PROG_LIBTOOL' not

Re: Running aclocal in libstdc++-v3 directory

2006-07-10 Thread Daniel Jacobowitz
On Mon, Jul 10, 2006 at 03:14:36PM -0700, Steve Ellcey wrote: I am trying to make a configure change in the libstdc++-v3 directory but when I run aclocal (even on an unmodified libstdc++-v3 directory from the top-of-tree), I get an error message. Does anyone else see this? My rule of thumb:

Re: Running aclocal in libstdc++-v3 directory

2006-07-10 Thread Benjamin Kosnik
I am trying to make a configure change in the libstdc++-v3 directory but when I run aclocal (even on an unmodified libstdc++-v3 directory from the top-of-tree), I get an error message. Does anyone else see this? The current fashion for regenerating the config/make bits is to just run:

[PATCH] Wcoercion: removed overflow check

2006-07-10 Thread Manuel López-Ibáñez
This patch is an improved version over the one proposed in http://gcc.gnu.org/ml/gcc-patches/2006-07/msg00098.html It doesn't introduce any features. The main difference is the removal of TREE_CONSTANT_OVERFLOW check from real_isinteger function, following the new policy about not handling

Re: make proto fails

2006-07-10 Thread Jim Wilson
Andreas Jaeger wrote: # Fix for argument ‘clean_text_p’ might be clobbered by ‘longjmp’ or ‘vfork’ unprotoize.o-warn = -Wno-error This is OK. PR 21161 and PR 24239 are different instances of the same problem, so we don't need another bug report for this. The previously mentioned PR 21059

Someone broke darwin?

2006-07-10 Thread Mike Stump
Gosh, so close... I found that the below patch gets me one step closer to it building. I'm sure it is wrong... but it should be enough of a hint for the right person to know how to fix it. Doing diffs in libstdc++-v3: --- libstdc++-v3/include/ext/codecvt_specializations.h.~1~

Re: /bin/sh: build/genmodes: No such file or directory (was Re: gcc-4.2-20060708 is now available)

2006-07-10 Thread henrik . sorensen
On Monday 10 July 2006 22:42, [EMAIL PROTECTED] wrote: Snapshot gcc-4.2-20060708 is now available on   ftp://gcc.gnu.org/pub/gcc/snapshots/4.2-20060708/ something is brkoen here ... [~/gcc] ../gcc-src/gcc-4.2-20060708/gcc/configure ups, should of course have been

Re: ICE in compute_frame_pointer_to_fb_displacement (building avr-gcc)

2006-07-10 Thread David Brownell
Anyone have a fix, workaround, or other suggestion? Yes don't use --with-dwarf2 :). Only a short term workaround... ;) This is PR 26504: http://gcc.gnu.org/bugzilla/show_bug.cgi?id=26504 Comment #8 there seems on-the-mark, so the PR 26015 fix has two half-confirmations now: Also

Re: [PATCH] Wcoercion: removed overflow check

2006-07-10 Thread Eric Botcazou
This patch is an improved version over the one proposed in Please avoid cross-posting. This should go on [EMAIL PROTECTED] only. -- Eric Botcazou

[Bug bootstrap/28324] boostrapping with gcc fails with unrecognized linker option

2006-07-10 Thread pinskia at gcc dot gnu dot org
--- Comment #1 from pinskia at gcc dot gnu dot org 2006-07-10 07:20 --- How old of binutils do you have? Also -_SYSTYPE_SVR4 was added in 3.3 so you must be doing something wrong. Can you try adding --with-gnu-as when configuring? --

[Bug target/28170] [4.1 Regression] Wrong result after swap byte in one word when compiled in 64-bit mode

2006-07-10 Thread pinskia at gcc dot gnu dot org
--- Comment #15 from pinskia at gcc dot gnu dot org 2006-07-10 07:21 --- Fixed on the mainline. -- pinskia at gcc dot gnu dot org changed: What|Removed |Added

[Bug c++/28327] New: const static members generate .data defs

2006-07-10 Thread matz at gcc dot gnu dot org
Compile this with current 4.1 branch (verified with 4.1.2 20060710): % cat one.ii template typename T struct One { static const int A; }; template typename T const int OneT::A = 5; int f() { return Oneint::A; } % ./gcc/cc1plus one.ii gcc -c one.s nm one.o | c++filt U

[Bug c++/28327] const static members generate .data defs

2006-07-10 Thread pinskia at gcc dot gnu dot org
--- Comment #1 from pinskia at gcc dot gnu dot org 2006-07-10 08:53 --- *** This bug has been marked as a duplicate of 28016 *** -- pinskia at gcc dot gnu dot org changed: What|Removed |Added

[Bug c++/28016] [4.1 Regression] emitting template constant

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

[Bug c++/28016] [4.1 Regression] emitting template constant

2006-07-10 Thread matz at gcc dot gnu dot org
--- Comment #12 from matz at gcc dot gnu dot org 2006-07-10 08:57 --- Mark, please apply to 4.1 branch also. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28016

[Bug c/28299] ICE with -Wmissing-prototypes

2006-07-10 Thread aldot at gcc dot gnu dot org
-- aldot at gcc dot gnu dot org changed: What|Removed |Added Keywords||ice-on-valid-code Known to fail|

[Bug c/28299] ICE with -Wmissing-prototypes

2006-07-10 Thread pinskia at gcc dot gnu dot org
-- pinskia at gcc dot gnu dot org changed: What|Removed |Added Target Milestone|4.2.0 |--- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28299

[Bug middle-end/20826] [4.0/4.1/4.2 Regression] excessive compiler resource usage

2006-07-10 Thread rguenth at gcc dot gnu dot org
--- Comment #5 from rguenth at gcc dot gnu dot org 2006-07-10 12:19 --- It doesn't compile with 4.1 either due to errors. Can you re-do preprocessed source for 4.1 and possibly mainline? -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=20826

[Bug rtl-optimization/21507] [4.0/4.1 Regression] BYTEmark floating-point emulation: Regression with -O3

2006-07-10 Thread rguenth at gcc dot gnu dot org
--- Comment #4 from rguenth at gcc dot gnu dot org 2006-07-10 12:32 --- Numbers for -static -O3 -march=pentium4 -fomit-frame-pointer (on a P4) 3.4.6: 8.1s 4.0.3: 7.3s 4.1.1: 13.5s 4.2.0: 4.2s (is there a correctness check inside the benchmark?) with FDO: 3.4.6: 5.8s 4.0.3:

[Bug rtl-optimization/21676] [4.0/4.1/4.2 Regression] Optimizer regression: SciMark sparse matrix benchmark

2006-07-10 Thread rguenth at gcc dot gnu dot org
--- Comment #4 from rguenth at gcc dot gnu dot org 2006-07-10 12:45 --- I get on a Pentium 4, -O3 -march=pentium4 -fomit-frame-pointer -o bench Random.i SparseCompRow.i array.i kernel.i main.i 3.4.6: 3.48s 4.0.3: 4.44s 4.1.1: 4.12s 4.2.0: 4.13s -- rguenth at gcc dot gnu dot org

[Bug tree-optimization/24609] [4.0/4.1/4.2 regression] Same value duplicated in two different registers

2006-07-10 Thread rguenth at gcc dot gnu dot org
--- Comment #12 from rguenth at gcc dot gnu dot org 2006-07-10 13:00 --- This seems to worked around on the mainline and also fails for 4.0.3. Basically, on the mainline you can still see the behavior if using -fno-if-conversion. Short testcase: int foo (int *a, char * p) { int d;

[Bug tree-optimization/28029] [4.1 Regression] wrong optimization with -ftree-vectorize

2006-07-10 Thread rguenth at gcc dot gnu dot org
--- Comment #3 from rguenth at gcc dot gnu dot org 2006-07-10 13:24 --- Confirmed. In 4.1, the data-refs have the wrong memtag associated: Created dr for *D.2061_7 base_address: data__6 offset from base address: 0 constant offset from base address: 0

[Bug c/28310] [improve] warning: the use of `mktemp' is dangerous, better use `mkstemp'

2006-07-10 Thread jari dot aalto at cante dot net
--- Comment #2 from jari dot aalto at cante dot net 2006-07-10 16:23 --- (In reply to comment #1) This warning does not come from the GCC but instead the linker but really glibc is where the warning is located, please report this bug to glibc. Reported as:

[Bug middle-end/28325] -fno-delayed-branch does not seem to work with the MIPS branch instructions

2006-07-10 Thread ian at airs dot com
--- Comment #1 from ian at airs dot com 2006-07-10 16:27 --- This is not a bug in the compiler. The .set reorder directive tells the assembler that it should reorder instructions into branch delay slots when possible. The compiler just copies the .set reorder directly from the asm

[Bug target/28084] [4.2 Regression] /usr/include/errno.h:28: error: previous declaration of 'int errno' with 'C++' linkage

2006-07-10 Thread sje at gcc dot gnu dot org
--- Comment #7 from sje at gcc dot gnu dot org 2006-07-10 17:19 --- Subject: Bug 28084 Author: sje Date: Mon Jul 10 17:19:01 2006 New Revision: 115309 URL: http://gcc.gnu.org/viewcvs?root=gccview=revrev=115309 Log: PR target/28084 * inclhack.def (hpux_extern_errno):

[Bug target/28320] bootstrap failure in libstdc++-v3

2006-07-10 Thread sje at cup dot hp dot com
--- Comment #4 from sje at cup dot hp dot com 2006-07-10 17:20 --- The patch for PR 28084 has been backported to the 4.1 branch and this is now fixed. -- sje at cup dot hp dot com changed: What|Removed |Added

[Bug bootstrap/28326] [4.1/ICE] gcc-4.1.0 won't compile on power3

2006-07-10 Thread markus at unixforces dot net
--- Comment #2 from markus at unixforces dot net 2006-07-10 17:41 --- I tried this: $ make LDFLAGS= LIBPATH=/usr/lib/gcc/powerpc64-unknown-linux-gnu/4.1.1 BOOT_CFLAGS=-m64 -O2 -pipe -mtune=power3 -mcpu=power3 profiledbootstrap [...] make[4]: Entering directory

[Bug bootstrap/20437] bootstrap --enable-maintainer-mode broken

2006-07-10 Thread lauras at gcc dot gnu dot org
--- Comment #4 from lauras at gcc dot gnu dot org 2006-07-10 17:58 --- Subject: Bug 20437 Author: lauras Date: Mon Jul 10 17:58:18 2006 New Revision: 115310 URL: http://gcc.gnu.org/viewcvs?root=gccview=revrev=115310 Log: fixincludes: 2006-07-10 Laurynas Biveinis [EMAIL PROTECTED]

[Bug bootstrap/20437] bootstrap --enable-maintainer-mode broken

2006-07-10 Thread lauras at gcc dot gnu dot org
--- Comment #5 from lauras at gcc dot gnu dot org 2006-07-10 18:04 --- The fix will appear in 4.2.0, thanks for your report. -- lauras at gcc dot gnu dot org changed: What|Removed |Added

[Bug c/28328] New: Stack smash protection non-verbose

2006-07-10 Thread nigelenki at comcast dot net
In the original ProPolice that the gcc 4.1 stack smash protection was derived from, a stack smash would illicit a message similar to: *** Stack smashing detected in function vuln() in source file net.c!!! Aborted Examining the current source, the following code exists: void __stack_chk_fail

[Bug libstdc++/15448] libstdc++ does not rebuild PCH

2006-07-10 Thread bkoz at gcc dot gnu dot org
--- Comment #6 from bkoz at gcc dot gnu dot org 2006-07-10 19:33 --- Subject: Bug 15448 Author: bkoz Date: Mon Jul 10 19:32:51 2006 New Revision: 115312 URL: http://gcc.gnu.org/viewcvs?root=gccview=revrev=115312 Log: 2006-07-10 Benjamin Kosnik [EMAIL PROTECTED] PR

[Bug java/28222] [ecj] Fails compiling gnu/java/security/x509/X509Certificate.java

2006-07-10 Thread tromey at gcc dot gnu dot org
--- Comment #9 from tromey at gcc dot gnu dot org 2006-07-10 19:33 --- I think Andrew Haley's commit to the gcj-eclipse branch fixed this. I'm closing it and marking it as target == 4.3; presumably the ecj merge will happen in that release. Andrew Hughes -- if this still happens for

[Bug java/28329] New: [ecj] gcj leaves .jar and .zip files in /tmp

2006-07-10 Thread tromey at gcc dot gnu dot org
This only happens with the gcj on the gcj-eclipse branch. Doing a build with the new gcj leaves many .zip and .jar files in /tmp. This is probably a bug in java/lang-specs.h, but could also be a bug in gcc.c. -- Summary: [ecj] gcj leaves .jar and .zip files in /tmp

[Bug c++/28330] New: finds wrong template overload; peculiar diagnostic

2006-07-10 Thread igodard at pacbell dot net
The error is an invocation of operator(ringcacheRequest, loadRequest*). ringcacheRequest defines operator(ringcacheRequest, cacheRequest*), and cacheRequest is a public base of the actual loadRequest argument. If the right argument is explicitly cast to cacheRequest* (as shown in the line

[Bug c++/28330] finds wrong template overload; peculiar diagnostic

2006-07-10 Thread igodard at pacbell dot net
--- Comment #1 from igodard at pacbell dot net 2006-07-10 20:11 --- Created an attachment (id=11855) -- (http://gcc.gnu.org/bugzilla/attachment.cgi?id=11855action=view) compiler output -v -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28330

[Bug c++/28330] finds wrong template overload; peculiar diagnostic

2006-07-10 Thread igodard at pacbell dot net
--- Comment #2 from igodard at pacbell dot net 2006-07-10 20:11 --- Created an attachment (id=11856) -- (http://gcc.gnu.org/bugzilla/attachment.cgi?id=11856action=view) save-temps source (compressed) -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28330

[Bug libstdc++/28290] [4.2 Regression] error: 'iconv_t' does not name a type

2006-07-10 Thread ro at techfak dot uni-bielefeld dot de
--- Comment #14 from ro at techfak dot uni-bielefeld dot de 2006-07-10 20:17 --- Subject: Re: [4.2 Regression] error: 'iconv_t' does not name a type pcarlini at suse dot de writes: It seemd to me that the best thing to do is adding the include on top of codecvt_specializations.h

[Bug libgomp/28296] [4.2 Regression] libgomp fails to configure on Tru64 UNIX

2006-07-10 Thread ro at techfak dot uni-bielefeld dot de
--- Comment #4 from ro at techfak dot uni-bielefeld dot de 2006-07-10 20:27 --- Subject: Re: libgomp fails to configure on Tru64 UNIX echristo at apple dot com writes: Well, it shouldn't have mattered, but try re-adding the CFLAGS line that I think I accidentally deleted just

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

2006-07-10 Thread sje at gcc dot gnu dot org
--- Comment #5 from sje at gcc dot gnu dot org 2006-07-10 20:42 --- Subject: Bug 28114 Author: sje Date: Mon Jul 10 20:42:14 2006 New Revision: 115314 URL: http://gcc.gnu.org/viewcvs?root=gccview=revrev=115314 Log: PR c++/28114 * name-lookup.c (pushtag): Return if we

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

2006-07-10 Thread sje at gcc dot gnu dot org
--- Comment #6 from sje at gcc dot gnu dot org 2006-07-10 20:43 --- Subject: Bug 28114 Author: sje Date: Mon Jul 10 20:43:34 2006 New Revision: 115315 URL: http://gcc.gnu.org/viewcvs?root=gccview=revrev=115315 Log: PR c++/28114 * g++.dg/other/pr28114.C: New. Added:

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

2006-07-10 Thread sje at cup dot hp dot com
--- Comment #7 from sje at cup dot hp dot com 2006-07-10 20:46 --- I have checked in a patch for ToT and on the 4.1 branch. My inclination is to not fix this on the 4.0 branch because the patch doesn't apply automatically. The same change is probably needed somewhere else for 4.0, but

[Bug target/27543] attribute ms_struct is now also for rs6000 but not documented

2006-07-10 Thread echristo at apple dot com
--- Comment #2 from echristo at apple dot com 2006-07-10 21:01 --- Removing regression. -- echristo at apple dot com changed: What|Removed |Added Summary|[4.2

[Bug libgomp/28296] [4.2 Regression] libgomp fails to configure on Tru64 UNIX

2006-07-10 Thread echristo at apple dot com
--- Comment #5 from echristo at apple dot com 2006-07-10 21:03 --- Well, the original place isn't correct because -pthread isn't valid for all platforms, but it could be moved to where I have XPCFLAGS for non-darwin targets. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28296

[Bug c++/27019] [4.1 regression] ICE with designated initializers

2006-07-10 Thread sje at gcc dot gnu dot org
--- Comment #7 from sje at gcc dot gnu dot org 2006-07-10 21:05 --- Subject: Bug 27019 Author: sje Date: Mon Jul 10 21:05:00 2006 New Revision: 115316 URL: http://gcc.gnu.org/viewcvs?root=gccview=revrev=115316 Log: PR c++/27019 * g++.dg/ext/pr27019.C: New. Added:

[Bug c++/27019] [4.1 regression] ICE with designated initializers

2006-07-10 Thread sje at gcc dot gnu dot org
--- Comment #8 from sje at gcc dot gnu dot org 2006-07-10 21:05 --- Subject: Bug 27019 Author: sje Date: Mon Jul 10 21:05:45 2006 New Revision: 115317 URL: http://gcc.gnu.org/viewcvs?root=gccview=revrev=115317 Log: PR c++/27019 * typeck2.c

[Bug other/28328] Stack smash protection non-verbose

2006-07-10 Thread pinskia at gcc dot gnu dot org
--- Comment #1 from pinskia at gcc dot gnu dot org 2006-07-10 21:26 --- Why not use a debuger to debug your program when stack smasher happens? -- pinskia at gcc dot gnu dot org changed: What|Removed |Added

[Bug libstdc++/15448] libstdc++ does not rebuild PCH

2006-07-10 Thread bkoz at gcc dot gnu dot org
-- bkoz at gcc dot gnu dot org changed: What|Removed |Added AssignedTo|unassigned at gcc dot gnu |bkoz at gcc dot gnu dot org |dot org

[Bug libstdc++/15448] libstdc++ does not rebuild PCH

2006-07-10 Thread bkoz at gcc dot gnu dot org
--- Comment #7 from bkoz at gcc dot gnu dot org 2006-07-10 21:37 --- I think this is fixed, or as close as we can come. There is now a checksum, and there are no longer any stamp files to do creation of PCH files. Thus, in theory, this should be no longer an issue. -- bkoz at gcc

[Bug c/28331] New: Problem with floating point operations after calling __builtin_ia32_movntq

2006-07-10 Thread cedric dot augonnet at ens-lyon dot org
Hi, After calling __builtin_ia32_movntq, floating point operations do not seem to work anymore : When compiling this with the msse flag : -- #include unistd.h #include stdio.h #include stdlib.h int main() { unsigned long long int

[Bug target/28331] Problem with floating point operations after calling __builtin_ia32_movntq

2006-07-10 Thread pinskia at gcc dot gnu dot org
--- Comment #1 from pinskia at gcc dot gnu dot org 2006-07-10 22:36 --- You forgot to flush the MMX/x87 registers since fp and MMX registers are the same set and the hardware does not support them at the same time. -- pinskia at gcc dot gnu dot org changed: What

[Bug target/28331] Problem with floating point operations after calling __builtin_ia32_movntq

2006-07-10 Thread cedric dot augonnet at ens-lyon dot org
--- Comment #2 from cedric dot augonnet at ens-lyon dot org 2006-07-10 22:56 --- (In reply to comment #1) You forgot to flush the MMX/x87 registers since fp and MMX registers are the same set and the hardware does not support them at the same time. Ok, i see that adding

[Bug target/28331] Problem with floating point operations after calling __builtin_ia32_movntq

2006-07-10 Thread pinskia at gcc dot gnu dot org
--- Comment #3 from pinskia at gcc dot gnu dot org 2006-07-10 22:59 --- You should not be using the builtins directly anyways. You should being the intrincics which are source compatiable with Intel's intrincics. Also this problem is documented with any part of the ISA of mmx anyways

[Bug target/28232] Wrong aligned load is generated with -m4a on sh-*

2006-07-10 Thread kkojima at gcc dot gnu dot org
--- Comment #3 from kkojima at gcc dot gnu dot org 2006-07-10 23:02 --- Richard Sandiford gave a more thorough patch in http://gcc.gnu.org/ml/gcc-patches/2006-07/msg00335.html and it's approved for the next stage1 of mainline. -- kkojima at gcc dot gnu dot org changed:

[Bug libstdc++/28290] [4.2 Regression] error: 'iconv_t' does not name a type

2006-07-10 Thread pinskia at gcc dot gnu dot org
--- Comment #15 from pinskia at gcc dot gnu dot org 2006-07-10 23:17 --- This now affects powerpc-darwin: /Users/regress/tbox/native/build/./gcc/xgcc -shared-libgcc -B/Users/regress/tbox/native/build/./gcc -nostdinc++

[Bug target/28331] Problem with floating point operations after calling __builtin_ia32_movntq

2006-07-10 Thread cedric dot augonnet at ens-lyon dot org
--- Comment #4 from cedric dot augonnet at ens-lyon dot org 2006-07-10 23:17 --- (In reply to comment #3) You should not be using the builtins directly anyways. You should being the intrincics which are source compatiable with Intel's intrincics. Also this problem is documented

[Bug c++/28332] New: friend classes require explicit qualification when in twin nested namespaces

2006-07-10 Thread genixpro at gmail dot com
I do not have a copy of the C++ standard, so I am not sure if this is required behaviour. However, I do know that G++ gives out a somewhat confusing error that could be changed. My test case follows all of the other required information. The trouble is that G++ doesn't give me an error when I

[Bug c++/28332] friend classes require explicit qualification when in twin nested namespaces

2006-07-10 Thread pinskia at gcc dot gnu dot org
--- Comment #1 from pinskia at gcc dot gnu dot org 2006-07-10 23:39 --- namespace foo { namespace bar { class A { public: friend class B; That class B is really class foo::bar::B. This is all mentioned on the 4.0 changes page: http://gcc.gnu.org/gcc-4.0/changes.html The

[Bug java/28329] [ecj] gcj leaves .jar and .zip files in /tmp

2006-07-10 Thread rmathew at gcc dot gnu dot org
--- Comment #1 from rmathew at gcc dot gnu dot org 2006-07-11 01:20 --- Perhaps the %d string was omitted in the relevant specs: http://gcc.gnu.org/onlinedocs/gcc/Spec-Files.html Just guessing. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28329

[Bug target/27883] [4.0/4.1/4.2 regression] in schedule_insns, at sched-rgn.c:3038 on mips

2006-07-10 Thread wilson at gcc dot gnu dot org
--- Comment #5 from wilson at gcc dot gnu dot org 2006-07-11 01:32 --- This is already fixed on dataflow-branch. At the end of combine_instructions, it runs a global dataflow pass that removes all REG_DEAD and REG_UNUSED notes before creating new ones. --

[Bug target/27883] [4.0/4.1/4.2 regression] in schedule_insns, at sched-rgn.c:3038 on mips

2006-07-10 Thread wilson at gcc dot gnu dot org
--- Comment #6 from wilson at gcc dot gnu dot org 2006-07-11 01:41 --- Created an attachment (id=11857) -- (http://gcc.gnu.org/bugzilla/attachment.cgi?id=11857action=view) Delete old REG_DEAD notes before creating new ones. This works for the testcase, but is otherwise untested. This

[Bug other/28334] New: SSP always log to syslog()

2006-07-10 Thread nigelenki at comcast dot net
It should be possible to at least configure SSP to always log to syslog(). Of course since it's (apparently) /usr/lib/libssp.so.0 (usr? I should talk to my distro maintainers about that...), I suppose I could replace this with my own version.. The logging of SSP kills to syslog() is useful

[Bug other/28328] Stack smash protection non-verbose

2006-07-10 Thread nigelenki at comcast dot net
--- Comment #2 from nigelenki at comcast dot net 2006-07-11 02:43 --- The program may be on an end user system that A) has insufficient debugging data compiled in (though I'd imagine you know what function it's in anyway); or B) has an end user that can't/won't debug (typical). It may

[Bug other/28328] Stack smash protection non-verbose

2006-07-10 Thread pinskia at gcc dot gnu dot org
--- Comment #3 from pinskia at gcc dot gnu dot org 2006-07-11 03:02 --- If an end user gets a stack smash failure, they should report the bug to the developer and have the developer fix it. This is what is normally done for anyother bug, why should it be different than a stack smashing

[Bug other/28334] SSP always log to syslog()

2006-07-10 Thread pinskia at gcc dot gnu dot org
--- Comment #1 from pinskia at gcc dot gnu dot org 2006-07-11 03:03 --- Again an end user should not care what caused the bug, even if it gives more information to the developer faster, the developer should be able to debug the program just fine. Also using SSP is about not trusting

[Bug other/28328] Stack smash protection non-verbose

2006-07-10 Thread nigelenki at comcast dot net
--- Comment #4 from nigelenki at comcast dot net 2006-07-11 03:09 --- (In reply to comment #3) If an end user gets a stack smash failure, they should report the bug to the developer and have the developer fix it. This is what is normally done for anyother bug, why should it be

[Bug other/28334] SSP always log to syslog()

2006-07-10 Thread nigelenki at comcast dot net
--- Comment #2 from nigelenki at comcast dot net 2006-07-11 03:27 --- And the developer is going to debug a program nice and slow when those obscure, hard to trigger bugs come along. I was just toying with metasploit the other day. Threw an exploit at Windows to get me a remote VNC

[Bug fortran/28213] ICE: Hollerith constant

2006-07-10 Thread fengwang at gcc dot gnu dot org
--- Comment #4 from fengwang at gcc dot gnu dot org 2006-07-11 04:09 --- Subject: Bug 28213 Author: fengwang Date: Tue Jul 11 04:09:40 2006 New Revision: 115326 URL: http://gcc.gnu.org/viewcvs?root=gccview=revrev=115326 Log: 2006-07-11 Feng Wang [EMAIL PROTECTED] PR

[Bug fortran/28213] ICE: Hollerith constant

2006-07-10 Thread fengwang at gcc dot gnu dot org
--- Comment #5 from fengwang at gcc dot gnu dot org 2006-07-11 04:10 --- Subject: Bug 28213 Author: fengwang Date: Tue Jul 11 04:10:31 2006 New Revision: 115327 URL: http://gcc.gnu.org/viewcvs?root=gccview=revrev=115327 Log: 2006-07-11 Feng Wang [EMAIL PROTECTED] PR

[Bug other/28328] Stack smash protection non-verbose

2006-07-10 Thread solar at gentoo dot org
--- Comment #5 from solar at gentoo dot org 2006-07-11 04:25 --- John is mostly right in reporting this. Gentoo uses SSP more than anyone else out there for longer than most anybody (obsd excluded) and I can't stress how vital it is to have the function hint that Etoh's original

[Bug other/28334] SSP always log to syslog()

2006-07-10 Thread pinskia at gcc dot gnu dot org
--- Comment #3 from pinskia at gcc dot gnu dot org 2006-07-11 04:27 --- (In reply to comment #2) And the developer is going to debug a program nice and slow when those obscure, hard to trigger bugs come along. An end user should not care why something crashed, it just confuses them

[Bug other/28328] Stack smash protection non-verbose

2006-07-10 Thread pinskia at gcc dot gnu dot org
--- Comment #6 from pinskia at gcc dot gnu dot org 2006-07-11 04:27 --- (In reply to comment #4) Thank you, I see the problem, there's a patch attached. Your distribution should have a new version some time in a couple days. Here is how normal GCC bugs go: User (which is a

[Bug other/28334] SSP always log to syslog()

2006-07-10 Thread solar at gentoo dot org
--- Comment #4 from solar at gentoo dot org 2006-07-11 04:28 --- See bug #28328 comment #5 on why this should be closed as WONTFIX/INVALID or the likes. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28334

[Bug other/28328] Stack smash protection non-verbose

2006-07-10 Thread pinskia at gcc dot gnu dot org
--- Comment #7 from pinskia at gcc dot gnu dot org 2006-07-11 04:31 --- (In reply to comment #5) This bug should get itself assigned. You know like many other open source projects, if you really want a feature you should implement it. As I mentioned in the other bug, knowing where

[Bug other/28334] SSP always log to syslog()

2006-07-10 Thread nigelenki at comcast dot net
--- Comment #5 from nigelenki at comcast dot net 2006-07-11 04:44 --- (In reply to comment #4) See bug #28328 comment #5 on why this should be closed as WONTFIX/INVALID or the likes. Eh close it WONTFIX because it's not gcc's job. Like I said, the stack smash handler can be

[Bug other/28328] Stack smash protection non-verbose

2006-07-10 Thread nigelenki at comcast dot net
--- Comment #8 from nigelenki at comcast dot net 2006-07-11 04:56 --- (In reply to comment #6) (In reply to comment #4) Thank you, I see the problem, there's a patch attached. Your distribution should have a new version some time in a couple days. Here is how normal GCC bugs

[Bug other/28328] Stack smash protection non-verbose

2006-07-10 Thread solar at gentoo dot org
--- Comment #9 from solar at gentoo dot org 2006-07-11 04:57 --- (In reply to comment #7) (In reply to comment #5) This bug should get itself assigned. You know like many other open source projects, if you really want a feature you should implement it. I would not have a

[Bug other/28328] Stack smash protection non-verbose

2006-07-10 Thread pinskia at gcc dot gnu dot org
--- Comment #10 from pinskia at gcc dot gnu dot org 2006-07-11 05:25 --- (In reply to comment #8) Actually it won't come from 1000 lines before. It'll go like this: int vuln(char *s, int len) { char a[10]; char b[20]; a[0] = 0; strcpy(a, str: ); strcat(a, s);

[Bug other/28328] Stack smash protection non-verbose

2006-07-10 Thread pinskia at gcc dot gnu dot org
--- Comment #11 from pinskia at gcc dot gnu dot org 2006-07-11 05:32 --- (In reply to comment #9) Sorry but as somebody that has been an active supporter of ssp over the years and somebody thats fixed dozens of bugs spotted by ssp your statement is not really valid about exposing a

[Bug other/28328] Stack smash protection non-verbose

2006-07-10 Thread nigelenki at comcast dot net
--- Comment #12 from nigelenki at comcast dot net 2006-07-11 05:49 --- (In reply to comment #10) (In reply to comment #8) That is just a simple (obvious) example, you seem to not understand how real code looks like. You might instead have: int f(int a, int b) { int f[10];