Commit 99fa86f
Artem Gindinson
[SYCL][Driver] Enforce unique filenames when -save-temps is used (#1545)
With the introduction of file table transformations, multiple
intermediate files with the same extension are now occurring
within any SYCL compilation (namely .txt and .table files).
Unless we treat this during the static creation of comands,
filename collision is bound to occur when saving temps.
This breaks -save-temps compilations due to files being
overwritten.
This commit ensures that unique files are created upon a
potential collision in the presence of -save-temps.
Signed-off-by: Artem Gindinson <[email protected]>1 parent 042d981 commit 99fa86f
File tree
4 files changed
+84
-22
lines changed- clang
- include/clang/Driver
- lib/Driver
- test/Driver
- sycl/test/regression
4 files changed
+84
-22
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
540 | 540 | | |
541 | 541 | | |
542 | 542 | | |
| 543 | + | |
| 544 | + | |
| 545 | + | |
| 546 | + | |
| 547 | + | |
543 | 548 | | |
544 | 549 | | |
545 | 550 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6071 | 6071 | | |
6072 | 6072 | | |
6073 | 6073 | | |
6074 | | - | |
6075 | | - | |
6076 | | - | |
6077 | | - | |
6078 | | - | |
6079 | | - | |
6080 | | - | |
6081 | | - | |
6082 | | - | |
6083 | | - | |
6084 | | - | |
6085 | | - | |
6086 | | - | |
| 6074 | + | |
| 6075 | + | |
| 6076 | + | |
| 6077 | + | |
| 6078 | + | |
| 6079 | + | |
| 6080 | + | |
| 6081 | + | |
| 6082 | + | |
| 6083 | + | |
| 6084 | + | |
| 6085 | + | |
| 6086 | + | |
| 6087 | + | |
| 6088 | + | |
| 6089 | + | |
| 6090 | + | |
| 6091 | + | |
| 6092 | + | |
| 6093 | + | |
| 6094 | + | |
| 6095 | + | |
| 6096 | + | |
| 6097 | + | |
| 6098 | + | |
| 6099 | + | |
| 6100 | + | |
| 6101 | + | |
| 6102 | + | |
| 6103 | + | |
6087 | 6104 | | |
6088 | | - | |
| 6105 | + | |
6089 | 6106 | | |
6090 | 6107 | | |
6091 | 6108 | | |
| |||
6215 | 6232 | | |
6216 | 6233 | | |
6217 | 6234 | | |
| 6235 | + | |
| 6236 | + | |
| 6237 | + | |
| 6238 | + | |
| 6239 | + | |
| 6240 | + | |
| 6241 | + | |
| 6242 | + | |
| 6243 | + | |
| 6244 | + | |
| 6245 | + | |
| 6246 | + | |
6218 | 6247 | | |
6219 | 6248 | | |
6220 | 6249 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
749 | 749 | | |
750 | 750 | | |
751 | 751 | | |
752 | | - | |
| 752 | + | |
753 | 753 | | |
754 | 754 | | |
755 | | - | |
756 | | - | |
| 755 | + | |
| 756 | + | |
| 757 | + | |
757 | 758 | | |
758 | | - | |
759 | | - | |
760 | | - | |
761 | | - | |
| 759 | + | |
| 760 | + | |
| 761 | + | |
| 762 | + | |
| 763 | + | |
| 764 | + | |
762 | 765 | | |
763 | 766 | | |
764 | 767 | | |
765 | 768 | | |
766 | 769 | | |
767 | | - | |
| 770 | + | |
768 | 771 | | |
769 | 772 | | |
770 | 773 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
0 commit comments