[rb-general] [PATCH] gcc: read -fdebug-prefix-map OLD from environment (improved reproducibility)
Bernd Schmidt
bschmidt at redhat.com
Tue Dec 15 17:08:23 CET 2015
On 12/15/2015 03:14 PM, Daniel Kahn Gillmor wrote:
> On Tue 2015-12-15 07:19:30 -0500, Bernd Schmidt wrote:
>> On 12/11/2015 08:14 PM, Daniel Kahn Gillmor wrote:
>>> Here's a one-liner patch for this approach (also at
>>> https://gcc.gnu.org/bugzilla/attachment.cgi?id=37007):
>>
>> I think that one-liner is fine, even for now.
>
> great! what would be the next steps for getting this applied upstream?
I'm guessing you don't have an account so I'll bootstrap and test it and
then commit. (with an extra testcase, as below - adapted from another
testcase in the debug/dwarf2 directory).
Bernd
* gcc.dg/debug/dwarf2/prod-options.c: New file.
/* Verify that the DW_AT_producer does not contain certain compiler options
such as -fdebug-prefix-map=; this is undesirable since path names make
the build not reproducible. Other skipped options could be tested here
as well. */
/* { dg-do compile } */
/* { dg-options "-O2 -gdwarf -dA -fdebug-prefix-map=a=b" } */
/* { dg-final { scan-assembler "DW_AT_producer: \"GNU C" } } */
/* { dg-final { scan-assembler-not "debug-prefix-map" } } */
void func (void)
{
}
More information about the rb-general
mailing list