Bug 36491 - Command line macro fails if definition contains spaces
Summary: Command line macro fails if definition contains spaces
Status: RESOLVED INVALID
Alias: None
Product: gcc
Classification: Unclassified
Component: driver (show other bugs)
Version: 4.2.4
: P3 normal
Target Milestone: ---
Assignee: Not yet assigned to anyone
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-06-10 17:45 UTC by Tom Schulz
Modified: 2008-06-10 20:45 UTC (History)
1 user (show)

See Also:
Host:
Target:
Build:
Known to work:
Known to fail:
Last reconfirmed:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Tom Schulz 2008-06-10 17:45:22 UTC
Gcc 4.2.4 (also 4.2.3) built for Solaris versions 2.5.1, 8 and 10 does not
handle a command line macro if the definition contains spaces.  This was
discovered while building Ghostscript.  Following is an example.

> gcc -DGX_COLOR_INDEX_TYPE="unsigned long long" test.c
gcc: long: No such file or directory
gcc: long: No such file or directory

Note that the definition is quoted.
Comment 1 Andrew Pinski 2008-06-10 20:18:29 UTC
Are you sure that your gcc program is not a shell script that calls the real gcc program. 
Comment 2 Tom Schulz 2008-06-10 20:45:45 UTC
I just checked and it is a shell script.  I should have thought of that.
Sorry for the noise.