public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
From: "martin at mpa-garching dot mpg dot de" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c/14874] New: Compiler driver always returns exit code 0
Date: Wed, 07 Apr 2004 11:54:00 -0000	[thread overview]
Message-ID: <20040407115422.14874.martin@mpa-garching.mpg.de> (raw)

When compiling the following one-liner

#error foo

gcc 3.5 (mainline) returns an exit code of 0,
where earlier versions returned an exit code of 1.

~/tmp>gcc -c -v bug.c
Reading specs from /afs/mpa/data/martin/ugcc/lib/gcc/i686-pc-linux-gnu/3.5.0/specs
Configured with: /scratch/gcc/configure --prefix=/afs/mpa/data/martin/ugcc
--enable-languages=c++ --disable-checking
Thread model: posix
gcc version 3.5.0 20040407 (experimental)
 /afs/mpa/data/martin/ugcc/libexec/gcc/i686-pc-linux-gnu/3.5.0/cc1 -quiet -v
bug.c -quiet -dumpbase bug.c -mtune=pentiumpro -auxbase bug -version -o
/tmp/cc41A6po.s
ignoring nonexistent directory
"/afs/mpa/data/martin/ugcc/lib/gcc/i686-pc-linux-gnu/3.5.0/../../../../i686-pc-linux-gnu/include"
#include "..." search starts here:
#include <...> search starts here:
 /usr/local/include
 /afs/mpa/data/martin/ugcc/include
 /afs/mpa/data/martin/ugcc/lib/gcc/i686-pc-linux-gnu/3.5.0/include
 /usr/include
End of search list.
GNU C version 3.5.0 20040407 (experimental) (i686-pc-linux-gnu)
        compiled by GNU C version 3.5.0 20040407 (experimental).
GGC heuristics: --param ggc-min-expand=63 --param ggc-min-heapsize=63318
bug.c:1:2: #error foo
~/tmp>echo $?
0

-- 
           Summary: Compiler driver always returns exit code 0
           Product: gcc
           Version: 3.5.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: c
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: martin at mpa-garching dot mpg dot de
                CC: gcc-bugs at gcc dot gnu dot org,martin at mpa-garching
                    dot mpg dot de
 GCC build triplet: i686-pc-linux-gnu
  GCC host triplet: i686-pc-linux-gnu
GCC target triplet: i686-pc-linux-gnu


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=14874


             reply	other threads:[~2004-04-07 11:54 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-04-07 11:54 martin at mpa-garching dot mpg dot de [this message]
2004-04-07 12:14 ` [Bug driver/14874] " martin at mpa-garching dot mpg dot de
2004-04-07 12:23 ` [Bug driver/14874] [3.5 Regression] " pinskia at gcc dot gnu dot org
2004-04-07 15:07 ` ian at wasabisystems dot com
2004-04-07 20:53 ` pinskia at gcc dot gnu dot org

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20040407115422.14874.martin@mpa-garching.mpg.de \
    --to=gcc-bugzilla@gcc.gnu.org \
    --cc=gcc-bugs@gcc.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).