aboutsummaryrefslogtreecommitdiff
path: root/gcc/json.h
diff options
context:
space:
mode:
authorBen Boeckel <ben.boeckel@kitware.com>2023-09-01 09:04:01 -0400
committerJason Merrill <jason@redhat.com>2023-09-19 17:32:23 -0400
commit1e44764bb381bf9594fcefdc95678a872adc1927 (patch)
tree865df145fc223ae50f442f18a68a7bd6d15070c4 /gcc/json.h
parent5b554c559d0103bfc1a68777907945ec3035a2bd (diff)
downloadgcc-1e44764bb381bf9594fcefdc95678a872adc1927.zip
gcc-1e44764bb381bf9594fcefdc95678a872adc1927.tar.gz
gcc-1e44764bb381bf9594fcefdc95678a872adc1927.tar.bz2
spec: add a spec function to join arguments
When passing `-o` flags to other options, the typical `-o foo` spelling leaves a leading whitespace when replacing elsewhere. This ends up creating flags spelled as `-some-option-with-arg= foo.ext` which doesn't parse properly. When attempting to make a spec function to just remove the leading whitespace, the argument splitting ends up masking the whitespace. However, the intended extension *also* ends up being its own argument. To perform the desired behavior, the arguments need to be concatenated together. gcc/: * gcc.cc (join_spec_func): Add a spec function to join all arguments. Signed-off-by: Ben Boeckel <ben.boeckel@kitware.com> Co-authored-by: Jason Merrill <jason@redhat.com>
Diffstat (limited to 'gcc/json.h')
0 files changed, 0 insertions, 0 deletions