Bug#196600: gcc -Wunreachable-code gives false complaints
Package: gcc-3.3 Version: 3.3-2 Gcc complains that a declaration "will never be executed" for a code path that executes, as shown below. If I: . remove the exit line . change "int ix;" to "int ix = 0;" or . move the declaration to line 2 or after line 3 the complaint go away. $ cat -n test.c #include int main(int argc, char *argv[]) { /* line 3 */ if (argc != 1) exit(1); { int ix; /* line 7 */ ix = printf("hello\n"); printf("%d\n", ix); } return 0; } $ gcc-2.95 -Wunreachable-code test.c cc1: Invalid option `-Wunreachable-code' $ gcc-3.0 -Wunreachable-code test.c; ./a.out hello 6 $ gcc-3.2 -Wunreachable-code test.c; ./a.out test.c: In function `main': test.c:7: warning: will never be executed hello 6 $ gcc-3.3 -Wunreachable-code test.c; ./a.out test.c: In function `main': test.c:7: warning: will never be executed hello 6 $ dpkg -l gcc-\?.\? | grep ^i ii gcc-3.03.0.4-7The GNU C compiler. ii gcc-3.23.2.3-0pre9The GNU C compiler ii gcc-3.33.3-2 The GNU C compiler $ Regards, /Karl --- Karl HammarAspö Data [EMAIL PROTECTED] Lilla Aspö 2340Networks S-742 94 Östhammar +46 173 140 57 Computers Sweden +46 70 511 97 84 Consulting ---
Bug#196266: [root@digitalelf.net: Cron test -e /usr/sbin/anacron || run-parts --report /etc/cron.daily]
This is also happening with the g++-3.2 package. - Forwarded message from Cron Daemon <[EMAIL PROTECTED]> - Delivery-date: Sun, 08 Jun 2003 06:28:01 -0500 From: Cron Daemon <[EMAIL PROTECTED]> To: [EMAIL PROTECTED] Subject: Cron <[EMAIL PROTECTED]> test -e /usr/sbin/anacron || run-parts --report /etc/cron.daily X-Cron-Env: X-Cron-Env: X-Cron-Env: X-Cron-Env: /etc/cron.daily/man-db: mandb: warning: /usr/share/man/man1/i386-linux-g++-3.3.1 is a dangling symlink mandb: warning: /usr/share/man/man1/i386-linux-g++-3.2.1 is a dangling symlink - End forwarded message - -- Brian Bennett [EMAIL PROTECTED] http://digitalelf.net/ Live long and prosper. pgproMQUcX5v3.pgp Description: PGP signature
Bug#189365: [Bug target/10587] [3.3/3.4 regression] [ia64] ICE in copy_to_mode_reg compiling libquicktime
PLEASE REPLY TO [EMAIL PROTECTED] ONLY, *NOT* [EMAIL PROTECTED] http://gcc.gnu.org/bugzilla/show_bug.cgi?id=10587 [EMAIL PROTECTED] changed: What|Removed |Added Target Milestone|--- |3.3.1 --- You are receiving this mail because: --- You reported the bug, or are watching the reporter.
Bug#177840: [Bug optimization/9812] [3.3/3.4 regression] [m68k] ICE in extract_insn, at recog.c:2148
PLEASE REPLY TO [EMAIL PROTECTED] ONLY, *NOT* [EMAIL PROTECTED] http://gcc.gnu.org/bugzilla/show_bug.cgi?id=9812 [EMAIL PROTECTED] changed: What|Removed |Added Target Milestone|--- |3.3.1 --- You are receiving this mail because: --- You reported the bug, or are watching the reporter.
Bug#175478: [Bug target/9201] [3.3/3.4 regression] ICE in instantiate_virtual_regs_1 compiling octave-2.1 on m68k-linux
PLEASE REPLY TO [EMAIL PROTECTED] ONLY, *NOT* [EMAIL PROTECTED] http://gcc.gnu.org/bugzilla/show_bug.cgi?id=9201 [EMAIL PROTECTED] changed: What|Removed |Added Target Milestone|--- |3.3.1 --- You are receiving this mail because: --- You reported the bug, or are watching the reporter.
Bug#186185: [Bug target/10206] [3.3/3.4 regression][arm] ICE in emit-rtl.c:change_address_1 when compiling fftw
PLEASE REPLY TO [EMAIL PROTECTED] ONLY, *NOT* [EMAIL PROTECTED] http://gcc.gnu.org/bugzilla/show_bug.cgi?id=10206 [EMAIL PROTECTED] changed: What|Removed |Added Target Milestone|--- |3.3.1 --- You are receiving this mail because: --- You reported the bug, or are watching the reporter.
Bug#192634: [Bug target/10730] [3.3 regression] [arm] -O2 generates invalid asm
PLEASE REPLY TO [EMAIL PROTECTED] ONLY, *NOT* [EMAIL PROTECTED] http://gcc.gnu.org/bugzilla/show_bug.cgi?id=10730 [EMAIL PROTECTED] changed: What|Removed |Added Keywords|rejects-valid |wrong-code Target Milestone|--- |3.3.1 --- You are receiving this mail because: --- You reported the bug, or are watching the reporter.
Bug#193049: [Bug c++/10888] [3.3/3.4 regression] inlining failure for allocate in ~vector()
PLEASE REPLY TO [EMAIL PROTECTED] ONLY, *NOT* [EMAIL PROTECTED] http://gcc.gnu.org/bugzilla/show_bug.cgi?id=10888 [EMAIL PROTECTED] changed: What|Removed |Added Target Milestone|--- |3.3.1 --- You are receiving this mail because: --- You reported the bug, or are watching the reporter.
Processed: reassign 194330 to gcc-3.3, severity of 194330 is important, merging 194330 196091 ...
Processing commands for [EMAIL PROTECTED]: > reassign 194330 gcc-3.3 Bug#194330: g++: [mips/mipsel] ice: in propagate_one_insn Bug reassigned from package `g++-3.2' to `gcc-3.3'. > severity 194330 important Bug#194330: g++: [mips/mipsel] ice: in propagate_one_insn Severity set to `important'. > merge 194330 196091 Bug#194330: g++: [mips/mipsel] ice: in propagate_one_insn Bug#196091: gcc-3.3: ICE in propagate_one_insn, at flow.c:1639 on mips/mipsel Merged 194330 196091. > forwarded 194330 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=11084 Bug#194330: g++: [mips/mipsel] ice: in propagate_one_insn Bug#196091: gcc-3.3: ICE in propagate_one_insn, at flow.c:1639 on mips/mipsel Noted your statement that Bug has been forwarded to http://gcc.gnu.org/bugzilla/show_bug.cgi?id=11084. > End of message, stopping processing here. Please contact me if you need assistance. Debian bug tracking system administrator (administrator, Debian Bugs database)
[Bug inline-asm/10890] [3.3/3.4 regression] ICE in merge_assigned_reloads building Linux 2.4.2x sched.c
PLEASE REPLY TO [EMAIL PROTECTED] ONLY, *NOT* [EMAIL PROTECTED] http://gcc.gnu.org/bugzilla/show_bug.cgi?id=10890 [EMAIL PROTECTED] changed: What|Removed |Added Target Milestone|--- |3.3.1 --- You are receiving this mail because: --- You are on the CC list for the bug, or are watching someone who is.
Bug#46550: #46550 has re-appeared
reopen 46550 stop This bug has reappeared at some point in the intervening years (in libstdc++2.10-dev 2.95.4-11woody now). Here's a patch to /usr/include/g++-3/std/bastring.h to put it back right again. ttfn/rjk --- bastring.h.orig Sun Jun 8 22:47:05 2003 +++ bastring.h Sun Jun 8 22:47:11 2003 @@ -335,7 +335,7 @@ public: const charT* c_str () const -{ const charT* null_str = ""; +{ static const charT null_str[]; if (length () == 0) return null_str; terminate (); return data (); } void resize (size_type n, charT c); void resize (size_type n)
Bug#46550: #46550 has re-appeared
Richard Kettlewell writes: > This bug has reappeared at some point in the intervening years (in > libstdc++2.10-dev 2.95.4-11woody now). > > Here's a patch to /usr/include/g++-3/std/bastring.h to put it back > right again. > > ttfn/rjk Sorry, stupid me, it should be:- --- bastring.h.orig Sun Jun 8 22:47:05 2003 +++ bastring.h Sun Jun 8 22:47:11 2003 @@ -335,7 +335,7 @@ public: const charT* c_str () const -{ const charT* null_str = ""; +{ static const charT null_str[1]; if (length () == 0) return null_str; terminate (); return data (); } void resize (size_type n, charT c); void resize (size_type n)
Bug#46550: 3rd time lucky?
Maybe I've send the right patch this time; it does at last actually correspond to the version that lets my code build. Apologies for faffing. Under the circumstances you'd better review the patch carefuly though l-) ttfn/rjk --- bastring.h.orig Sun Jun 8 22:47:05 2003 +++ bastring.h Sun Jun 8 23:10:14 2003 @@ -335,7 +335,7 @@ public: const charT* c_str () const -{ const charT* null_str = ""; +{ static const charT null_str[] = { 0 }; if (length () == 0) return null_str; terminate (); return data (); } void resize (size_type n, charT c); void resize (size_type n)
Processed: #46550 has re-appeared
Processing commands for [EMAIL PROTECTED]: > reopen 46550 Bug#46550: basic_string can't be instantiated Bug reopened, originator not changed. > stop Stopping processing here. Please contact me if you need assistance. Debian bug tracking system administrator (administrator, Debian Bugs database)