Fix NULL filename handling
authorRichard Purdie <richard.purdie@linuxfoundation.org>
Mon, 7 Nov 2022 16:26:44 +0000 (17:26 +0100)
committerEric Botcazou <ebotcazou@adacore.com>
Mon, 7 Nov 2022 16:36:06 +0000 (17:36 +0100)
commit9aa1b63a5554563b7a3081391358d6cedcabea88
tree7eaaea6def3ff7c02d326180cc5382a2932630b9
parentcb0ceeaee9e041aaac3edd089b07b439621d0f29
Fix NULL filename handling

The previous commit introduced a regression as some Ada tests end up passing
NULL as the filename to remap_filename.  Handle this as before to fix them.

gcc/
* file-prefix-map.cc (remap_filename): Handle NULL filenames.
gcc/file-prefix-map.cc