Compiling 27_io/basic_istream/extractors_arithmetic/char/12.cc with
-g3 -O0, I get the error:

/var/tmp//ccLYgR4g.s: Assembler messages:
/var/tmp//ccLYgR4g.s:424: Error: file number 1 already allocated

This is the full compilation command:

/test/gnu/gcc/objdir/./gcc/g++ -shared-libgcc -B/test/gnu/gcc/objdir/./gcc
-nostdinc++ -L/test/gnu/gcc/objdir/hppa64-hp-hpux11.11/libstdc++-v3/src
-L/test/gnu/gcc/objdir/hppa64-hp-hpux11.11/libstdc++-v3/src/.libs
-B/opt/gnu64/gcc/gcc-4.3.0/hppa64-hp-hpux11.11/bin/
-B/opt/gnu64/gcc/gcc-4.3.0/hppa64-hp-hpux11.11/lib/ -isystem
/opt/gnu64/gcc/gcc-4.3.0/hppa64-hp-hpux11.11/include -isystem
/opt/gnu64/gcc/gcc-4.3.0/hppa64-hp-hpux11.11/sys-include -g3 -O0
-D_GLIBCXX_ASSERT -ffunction-sections -fdata-sections -fmessage-length=0 -g3
-O0 -DLOCALEDIR="." -nostdinc++
-I/test/gnu/gcc/objdir/hppa64-hp-hpux11.11/libstdc++-v3/include/hppa64-hp-hpux11.11
-I/test/gnu/gcc/objdir/hppa64-hp-hpux11.11/libstdc++-v3/include
-I/test/gnu/gcc/gcc/libstdc++-v3/libsupc++
-I/test/gnu/gcc/gcc/libstdc++-v3/include/backward
-I/test/gnu/gcc/gcc/libstdc++-v3/testsuite/util
/test/gnu/gcc/gcc/libstdc++-v3/testsuite/27_io/basic_istream/extractors_arithmetic/char/12.cc
   -include bits/stdc++.h -c   -o ./12.c

I see in the assembler output:

        .LEVEL 2.0w
        .file   "12.cc"
        .version        "01.01"
        .section        .debug_abbrev,"",@progbits
L$debug_abbrev0000:
        .section        .debug_info,"",@progbits
L$debug_info0000:
        .section        .debug_line,"",@progbits
L$debug_line0000:
        .section        .debug_macinfo,"",@progbits
L$debug_macinfo0000:
        .text
L$text0000:
        .file 1
"/test/gnu/gcc/gcc/libstdc++-v3/testsuite/27_io/basic_istream/ex
tractors_arithmetic/char/12.cc"
...
        .uleb128 0x0
        .stringz        "LOCALEDIR ."
        .file 1
"/test/gnu/gcc/objdir/hppa64-hp-hpux11.11/libstdc++-v3/include/i
stream"
        .section        .debug_macinfo,"",@progbits
...


-- 
           Summary: Duplicate file numbers for .file directive with -g3 -O0
           Product: gcc
           Version: 4.2.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: debug
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: danglin at gcc dot gnu dot org
 GCC build triplet: hppa64-hp-hpux11.11
  GCC host triplet: hppa64-hp-hpux11.11
GCC target triplet: hppa64-hp-hpux11.11


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

Reply via email to