[Bug modula2/108142] Many empty directories created in the build directory

2023-01-10 Thread gaius at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108142

Gaius Mulley  changed:

   What|Removed |Added

 Resolution|--- |FIXED
 Status|NEW |RESOLVED

--- Comment #8 from Gaius Mulley  ---
Patch applied and closing.

[Bug modula2/108142] Many empty directories created in the build directory

2023-01-09 Thread gaius at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108142

--- Comment #7 from Gaius Mulley  ---
Updated patch posted to list.

[Bug modula2/108142] Many empty directories created in the build directory

2022-12-22 Thread gaius at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108142

--- Comment #6 from Gaius Mulley  ---
Created attachment 54149
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=54149&action=edit
m2 remove empty directories from top build (using mkinstalldirs)

The same patch as before but now using mkinstalldirs instead of mkdir -p.

[Bug modula2/108142] Many empty directories created in the build directory

2022-12-22 Thread gaius at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108142

--- Comment #5 from Gaius Mulley  ---
Ah thanks, I'll change all uses of mkdir -p to $(mkinstalldirs).

[Bug modula2/108142] Many empty directories created in the build directory

2022-12-22 Thread jakub at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108142

--- Comment #4 from Jakub Jelinek  ---
I think pretty much nothing but m2 uses mkdir -p directly, other makefiles use
$(mkinstalldirs) (unless only a single directory needs to be created, for that
mkdir dir
is fine).

[Bug modula2/108142] Many empty directories created in the build directory

2022-12-21 Thread gaius at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108142

--- Comment #3 from Gaius Mulley  ---
Thanks for the bug report - here is a proposed fix.  I've moved all m2 related
directories into gcc/m2 and directories are now created as required.

Bootstrapped on GNU/Linux x86_64, due to the asynchronous nature of the builds
I'll test on a variety of machines before posting patches to the mailing list.

Anyway the work in progress patch follows as an attachment.

[Bug modula2/108142] Many empty directories created in the build directory

2022-12-21 Thread gaius at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108142

--- Comment #2 from Gaius Mulley  ---
Created attachment 54145
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=54145&action=edit
m2 remove empty directories from top build

[Bug modula2/108142] Many empty directories created in the build directory

2022-12-21 Thread ebotcazou at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108142

Eric Botcazou  changed:

   What|Removed |Added

 Status|UNCONFIRMED |NEW
   Target Milestone|--- |13.0
   Last reconfirmed||2022-12-21
 Ever confirmed|0   |1
 CC||ebotcazou at gcc dot gnu.org

--- Comment #1 from Eric Botcazou  ---
Seconded.