This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug preprocessor/35379] New: -MT generates a target string too long over two lines


Precondition: an empty file named "dummy.c" exists in the current directory.

The following command:
arm-elf-gcc -c -MM -MT
123456789a123456789b123456789c123456789d123456789e123456789f123456789g123
dummy.c

generates the following output:
 \
 123456789a123456789b123456789c123456789d123456789e123456789f123456789g123:  \
 dummy.c

Starting with a redundant " \<newline> ".
The length of the -MT argument is 73 characters. For 72 characters this does
not happen. The following command:
arm-elf-gcc -c -MM -MT
123456789a123456789b123456789c123456789d123456789e123456789f123456789g12
dummy.c

generates the following output:
123456789a123456789b123456789c123456789d123456789e123456789f123456789g12:  \
 dummy.c

(the redundant spaces may interfere with make operation, apparently)

arm-elf-gcc -v output:
Using built-in specs.
Target: arm-elf
Configured with: ../../gcc-4.1.1/configure --enable-languages=c,c++
--enable-int
erwork --enable-multilib --with-gcc --with-gnu-ld --with-gnu-as --with-stabs
--d
isable-shared --disable-threads --disable-libssp --disable-libstdcxx-pch
--disab
le-libmudflap --disable-win32-registry --disable-nls --disable-debug
--without-h
eaders --with-newlib --target=arm-elf --prefix=c:/WinARM -v
Thread model: single
gcc version 4.1.1 (WinARM)


-- 
           Summary: -MT generates a target string too long over two lines
           Product: gcc
           Version: 4.1.1
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: preprocessor
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: uriah at mobiletornado dot com
  GCC host triplet: Win32
GCC target triplet: arm-elf


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]