Re: Scaling -fmacro-prefix-map= to thousands entries

2023-10-05 Thread Richard Biener via Gcc
On Thu, Oct 5, 2023 at 2:17 PM Arsen Arsenović wrote: > > Hi, > > Sergei Trofimovich via Gcc writes: > > > Sounds good. Do you have any preference over specific syntax? My > > suggestions would be: > > > > 1. `-fmacro-prefix-map=file-name`: if `file-name` there is not in `key=val` > >format t

Re: Scaling -fmacro-prefix-map= to thousands entries

2023-10-05 Thread Ben Boeckel via Gcc
On Thu, Oct 05, 2023 at 12:59:21 +0100, Sergei Trofimovich via Gcc wrote: > Sounds good. Do you have any preference over specific syntax? My > suggestions would be: > > 1. `-fmacro-prefix-map=file-name`: if `file-name` there is not in `key=val` >format then treat it as file > 2. `-fmacro-prefi

Re: Scaling -fmacro-prefix-map= to thousands entries

2023-10-05 Thread Arsen Arsenović via Gcc
Hi, Sergei Trofimovich via Gcc writes: > Sounds good. Do you have any preference over specific syntax? My > suggestions would be: > > 1. `-fmacro-prefix-map=file-name`: if `file-name` there is not in `key=val` >format then treat it as file > 2. `-fmacro-prefix-map=@file-name`: use @ as a sig

Re: Scaling -fmacro-prefix-map= to thousands entries

2023-10-05 Thread Richard Biener via Gcc
On Thu, Oct 5, 2023 at 1:59 PM Sergei Trofimovich wrote: > > On Thu, Oct 05, 2023 at 09:19:15AM +0200, Richard Biener wrote: > > On Wed, Oct 4, 2023 at 11:20 PM Sergei Trofimovich via Gcc > > wrote: > > > > > > Hi gcc developers! > > > > > > Tl;DR: > > > > > > I would like to implement a scalable

Re: Scaling -fmacro-prefix-map= to thousands entries

2023-10-05 Thread Sergei Trofimovich via Gcc
On Thu, Oct 05, 2023 at 07:20:35AM -0400, Ben Boeckel wrote: > On Wed, Oct 04, 2023 at 22:19:32 +0100, Sergei Trofimovich via Gcc wrote: > > The prototype that creates equivalent of the following commands does > > work for smaller packages: > > > > > > -fmacro-prefix-map=/nix/store/y8wfrgk7br

Re: Scaling -fmacro-prefix-map= to thousands entries

2023-10-05 Thread Sergei Trofimovich via Gcc
On Thu, Oct 05, 2023 at 09:19:15AM +0200, Richard Biener wrote: > On Wed, Oct 4, 2023 at 11:20 PM Sergei Trofimovich via Gcc > wrote: > > > > Hi gcc developers! > > > > Tl;DR: > > > > I would like to implement a scalable way to pass `-fmacro-prefix-map=` > > for `NixOS` distribution to avoid leaki

Re: Scaling -fmacro-prefix-map= to thousands entries

2023-10-05 Thread Ben Boeckel via Gcc
On Wed, Oct 04, 2023 at 22:19:32 +0100, Sergei Trofimovich via Gcc wrote: > The prototype that creates equivalent of the following commands does > work for smaller packages: > > > -fmacro-prefix-map=/nix/store/y8wfrgk7br5rfz4221lfb9v8w3n0cnyd-glibc-2.37-8-dev=/nix/store/ee

Re: Scaling -fmacro-prefix-map= to thousands entries

2023-10-05 Thread Richard Biener via Gcc
On Wed, Oct 4, 2023 at 11:20 PM Sergei Trofimovich via Gcc wrote: > > Hi gcc developers! > > Tl;DR: > > I would like to implement a scalable way to pass `-fmacro-prefix-map=` > for `NixOS` distribution to avoid leaking build-time paths generated by > `__FILE__` macros used by various libraries. >

Scaling -fmacro-prefix-map= to thousands entries

2023-10-04 Thread Sergei Trofimovich via Gcc
Hi gcc developers! Tl;DR: I would like to implement a scalable way to pass `-fmacro-prefix-map=` for `NixOS` distribution to avoid leaking build-time paths generated by `__FILE__` macros used by various libraries. I need some guidance what path to take to be acceptable for `gcc` upstream. I hav