In gcc/c-opts.c c_common_post_options() this snipped sets -funit-at-a-time
unconditionally, and doesn't even warn that any -fno-unit-at-a-time was
ignored:

  /* If we are given more than one input file, we must use
     unit-at-a-time mode.  */
  if (num_in_fnames > 1)
    flag_unit_at_a_time = 1;


Please either warn that -fno-unit-at-a-time was overridden (see proposed
patchlet attached to  http://gcc.gnu.org/ml/gcc-help/2005-10/msg00068.html ) or
honor the user turning off flag_unit_at_a_time.

Thank you,


-- 
           Summary: -fno-unit-at-a-time ignored in multifile compiles
           Product: gcc
           Version: 4.1.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: c
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: rep dot nop at aon dot at
 GCC build triplet: i686-gnu-linux
  GCC host triplet: i686-gnu-linux
GCC target triplet: i686-gnu-linux


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

Reply via email to