public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c/14874] New: Compiler driver always returns exit code 0
@ 2004-04-07 11:54 martin at mpa-garching dot mpg dot de
  2004-04-07 12:14 ` [Bug driver/14874] " martin at mpa-garching dot mpg dot de
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: martin at mpa-garching dot mpg dot de @ 2004-04-07 11:54 UTC (permalink / raw)
  To: gcc-bugs

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


^ permalink raw reply	[flat|nested] 5+ messages in thread

* [Bug driver/14874] Compiler driver always returns exit code 0
  2004-04-07 11:54 [Bug c/14874] New: Compiler driver always returns exit code 0 martin at mpa-garching dot mpg dot de
@ 2004-04-07 12:14 ` 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
                   ` (2 subsequent siblings)
  3 siblings, 0 replies; 5+ messages in thread
From: martin at mpa-garching dot mpg dot de @ 2004-04-07 12:14 UTC (permalink / raw)
  To: gcc-bugs



-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
          Component|c                           |driver


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


^ permalink raw reply	[flat|nested] 5+ messages in thread

* [Bug driver/14874] [3.5 Regression] Compiler driver always returns exit code 0
  2004-04-07 11:54 [Bug c/14874] New: Compiler driver always returns exit code 0 martin at mpa-garching dot mpg dot de
  2004-04-07 12:14 ` [Bug driver/14874] " martin at mpa-garching dot mpg dot de
@ 2004-04-07 12:23 ` 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
  3 siblings, 0 replies; 5+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-04-07 12:23 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From pinskia at gcc dot gnu dot org  2004-04-07 12:23 -------
Confirmed, a regression.  Causes libjava to fail to build among others.
Caused by:
2004-04-05  Caroline Tice  <ctice@apple.com>

        * gcc.c (combine_flag): New global variable, for new driver option.
        (struct compiler): Add two new fields, to be used when
        combining multiple input files in a single pass (IMA).
        (default_compilers):  Add values for the new fields to all
        compiler entries. Modify the "@c" compiler entry for doing IMA
        properly with "-save-temps" and the "combine" flag.
        (option_map):  Add new driver option, "--combine", to tell driver
        to pass multiple input files to compiler at one time.
        (have_o_argbuf_index): New global variable.
        (store_arg): Modify to assign value to have_o_argbuf_index.
        (struct infile):  Add three new fields, to help with IMA.
        (display_help): Add help for new "combine" option.
        (process_command): Remove local variable have_o; add code to check
        for new "combine" option; remove assignment to combine_inputs.
        (do_spec_1):  Modify to deal with IMA better.
        (main): Make variable 'lang_n_infiles' local to entire function
        rather than to a single block.  Use flag combine_flag to
        determine whether to do IMA or not; Modify loop initializing
        infiles to deal properly with linker files.
        Add code for doing preprocessing in presence of
        IMA with "-save-temps" flag.  Modify "main" loop to handle
        multiple input files, in multiple languages, with or without
        preprocessing,  gracefully.

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
           Severity|normal                      |critical
             Status|UNCONFIRMED                 |NEW
     Ever Confirmed|                            |1
           Keywords|                            |build
   Last reconfirmed|0000-00-00 00:00:00         |2004-04-07 12:23:26
               date|                            |
            Summary|Compiler driver always      |[3.5 Regression] Compiler
                   |returns exit code 0         |driver always returns exit
                   |                            |code 0
   Target Milestone|---                         |3.5.0


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


^ permalink raw reply	[flat|nested] 5+ messages in thread

* [Bug driver/14874] [3.5 Regression] Compiler driver always returns exit code 0
  2004-04-07 11:54 [Bug c/14874] New: Compiler driver always returns exit code 0 martin at mpa-garching dot mpg dot de
  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
  3 siblings, 0 replies; 5+ messages in thread
From: ian at wasabisystems dot com @ 2004-04-07 15:07 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From ian at wasabisystems dot com  2004-04-07 15:07 -------
There is a patch here:
http://gcc.gnu.org/ml/gcc-patches/2004-04/msg00337.html

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |patch


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


^ permalink raw reply	[flat|nested] 5+ messages in thread

* [Bug driver/14874] [3.5 Regression] Compiler driver always returns exit code 0
  2004-04-07 11:54 [Bug c/14874] New: Compiler driver always returns exit code 0 martin at mpa-garching dot mpg dot de
                   ` (2 preceding siblings ...)
  2004-04-07 15:07 ` ian at wasabisystems dot com
@ 2004-04-07 20:53 ` pinskia at gcc dot gnu dot org
  3 siblings, 0 replies; 5+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-04-07 20:53 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From pinskia at gcc dot gnu dot org  2004-04-07 20:53 -------
Fixed by a new patch by Tice.

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |FIXED


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


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2004-04-07 20:53 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-04-07 11:54 [Bug c/14874] New: Compiler driver always returns exit code 0 martin at mpa-garching dot mpg dot de
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

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).