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

           Summary: lto mishandles quotes in command line defines
           Product: gcc
           Version: unknown
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: lto
        AssignedTo: unassig...@gcc.gnu.org
        ReportedBy: vap...@gentoo.org
                CC: toolch...@gentoo.org


this code fails when using lto:
$ echo 'main(){}' > test.c
$ gcc -flto -Dfoo=\"\'foo\" test.c
lto-wrapper: malformed COLLECT_GCC_OPTIONS

and this:
$ gcc -Dfoo=\"\'asdf\'\" -flto test.c
gcc: error: \: No such file or directory
gcc: error: ": No such file or directory

dropping the -flto and everything operates as expected

last checked with the gcc-4.6 snapshot from 20110305

Reply via email to