https://sourceware.org/bugzilla/show_bug.cgi?id=34364

            Bug ID: 34364
           Summary: The folders names spaces are not escaped inside the
                    dependency file.
           Product: binutils
           Version: 2.44
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: ld
          Assignee: unassigned at sourceware dot org
          Reporter: dario.passet at gmail dot com
  Target Milestone: ---

Operating system and environment information:
- Linux Debian 13 (13.5);
- GCC 14.2.0;
- Output of the command 'gcc -print-prog-name=ld' is 'ld' to confirm that GCC
is using ld as linker.

How to reproduce:
1. create a folder for the minimal reproducible example;
2. create the 'foo bar' folder inside the first one;
3. create the 'foo bar\empty.c' file with the content:
   int main(int argc, char** argv) { return 0; }
4. from the root folder (point 1.) run the following two commands:
   gcc -MD -MF "foo bar/empty.d" -c 'foo bar/empty.c' -o 'foo bar/empty.o'
   gcc -Wl,--dependency-file="foo bar/foo.d" 'foo bar/empty.o' -o 'foo bar/foo'

Inspect the 'foo bar\foo.d' dependency file, inside the 'foo bar' folder name
space is not escaped; instead inside the 'foo bar\empty.d' dependency file
created by the C compiler the space is escaped.

-- 
You are receiving this mail because:
You are on the CC list for the bug.

Reply via email to