Re: svn commit: r335906 - head/sys/conf

2018-07-03 Thread Cy Schubert
In message <6d02404f-a7bb-01c7-3775-7a0349e30...@freebsd.org>, Bryan 
Drewery wr
ites:
> This is an OpenPGP/MIME signed message (RFC 4880 and 3156)
> --nrEq6SIfsbZGYTgfSZ5R3mSN64FvoLCIQ
> Content-Type: multipart/mixed; boundary="N66uQifSC1aSf1iMifRJdrqNP6RkoOJg1";
>  protected-headers="v1"
> From: Bryan Drewery 
> To: Cy Schubert 
> Cc: src-committ...@freebsd.org, svn-src-...@freebsd.org,
>  svn-src-head@freebsd.org
> Message-ID: <6d02404f-a7bb-01c7-3775-7a0349e30...@freebsd.org>
> Subject: Re: svn commit: r335906 - head/sys/conf
> References: <201807031959.w63jxpa2069...@slippy.cwsent.com>
> In-Reply-To: <201807031959.w63jxpa2069...@slippy.cwsent.com>
>
> --N66uQifSC1aSf1iMifRJdrqNP6RkoOJg1
> Content-Type: text/plain; charset=utf-8
> Content-Language: en-US
> Content-Transfer-Encoding: quoted-printable
>
> On 7/3/2018 12:59 PM, Cy Schubert wrote:
> > In message <201807031924.w63joi5w051...@repo.freebsd.org>, Bryan=20
> > Drewery writes
> > :
> >> Author: bdrewery
> >> Date: Tue Jul  3 19:24:44 2018
> >> New Revision: 335906
> >> URL: https://svnweb.freebsd.org/changeset/base/335906
> >>
> >> Log:
> >>   No need to make a copy to build genoffset_test.o
> >>
> >> Modified:
> >>   head/sys/conf/kern.post.mk
> >>
> >> Modified: head/sys/conf/kern.post.mk
> >> =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
> =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
> =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
> =3D=3D=3D
> >> =3D
> >> --- head/sys/conf/kern.post.mk Tue Jul  3 19:09:46 2018(r33590
> >> 5)
> >> +++ head/sys/conf/kern.post.mk Tue Jul  3 19:24:44 2018(r33590
> >> 6)
> >> @@ -191,14 +191,12 @@ offset.inc: $S/kern/genoffset.sh genoffset.o
> >>  genoffset.o: $S/kern/genoffset.c
> >>${CC} -c ${CFLAGS:N-flto:N-fno-common} $S/kern/genoffset.c
> >> =20
> >> -genoffset_test.c: $S/kern/genoffset.c
> >> -  cp $S/kern/genoffset.c genoffset_test.c
> >> -
> >>  # genoffset_test.o is not actually used for anything - the point of c=
> ompilin
> >> g it
> >>  # is to exercise the CTASSERT that checks that the offsets in the off=
> set.inc
> >>  # _lite struct(s) match those in the original(s).=20
> >> -genoffset_test.o: genoffset_test.c offset.inc
> >> -  ${CC} -c ${CFLAGS:N-flto:N-fno-common} -DOFFSET_TEST genoffset_test.=
> c
> >> +genoffset_test.o: $S/kern/genoffset.c offset.inc
> >> +  ${CC} -c ${CFLAGS:N-flto:N-fno-common} -DOFFSET_TEST ${.ALLSRC:M*.c}=
>  \
> >> +  -o ${.TARGET}
> >=20
> > -o with -c in the previous line will cause an error.
>
> -o and -c are fine together. The problem is .ALLSRC duplicating sources
> from the dependencies read from .depend.genoffset_test.o file.
> Workaround in r335908.

gotcha.

Sorry for the second spam.


-- 
Cheers,
Cy Schubert 
FreeBSD UNIX: Web:  http://www.FreeBSD.org

The need of the many outweighs the greed of the few.


___
svn-src-head@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-head
To unsubscribe, send any mail to "svn-src-head-unsubscr...@freebsd.org"


Re: svn commit: r335906 - head/sys/conf

2018-07-03 Thread Bryan Drewery
On 7/3/2018 12:59 PM, Cy Schubert wrote:
> In message <201807031924.w63joi5w051...@repo.freebsd.org>, Bryan 
> Drewery writes
> :
>> Author: bdrewery
>> Date: Tue Jul  3 19:24:44 2018
>> New Revision: 335906
>> URL: https://svnweb.freebsd.org/changeset/base/335906
>>
>> Log:
>>   No need to make a copy to build genoffset_test.o
>>
>> Modified:
>>   head/sys/conf/kern.post.mk
>>
>> Modified: head/sys/conf/kern.post.mk
>> =
>> =
>> --- head/sys/conf/kern.post.mk   Tue Jul  3 19:09:46 2018(r33590
>> 5)
>> +++ head/sys/conf/kern.post.mk   Tue Jul  3 19:24:44 2018(r33590
>> 6)
>> @@ -191,14 +191,12 @@ offset.inc: $S/kern/genoffset.sh genoffset.o
>>  genoffset.o: $S/kern/genoffset.c
>>  ${CC} -c ${CFLAGS:N-flto:N-fno-common} $S/kern/genoffset.c
>>  
>> -genoffset_test.c: $S/kern/genoffset.c
>> -cp $S/kern/genoffset.c genoffset_test.c
>> -
>>  # genoffset_test.o is not actually used for anything - the point of compilin
>> g it
>>  # is to exercise the CTASSERT that checks that the offsets in the offset.inc
>>  # _lite struct(s) match those in the original(s). 
>> -genoffset_test.o: genoffset_test.c offset.inc
>> -${CC} -c ${CFLAGS:N-flto:N-fno-common} -DOFFSET_TEST genoffset_test.c
>> +genoffset_test.o: $S/kern/genoffset.c offset.inc
>> +${CC} -c ${CFLAGS:N-flto:N-fno-common} -DOFFSET_TEST ${.ALLSRC:M*.c} \
>> +-o ${.TARGET}
> 
> -o with -c in the previous line will cause an error.

-o and -c are fine together. The problem is .ALLSRC duplicating sources
from the dependencies read from .depend.genoffset_test.o file.
Workaround in r335908.

> 
>>  
>>  assym.inc: $S/kern/genassym.sh genassym.o genoffset_test.o
>>  NM='${NM}' NMFLAGS='${NMFLAGS}' sh $S/kern/genassym.sh genassym.o > ${.
>> TARGET}
>>
> 
> 


-- 
Regards,
Bryan Drewery



signature.asc
Description: OpenPGP digital signature


Re: svn commit: r335906 - head/sys/conf

2018-07-03 Thread Cy Schubert
In message <201807031924.w63joi5w051...@repo.freebsd.org>, Bryan 
Drewery writes
:
> Author: bdrewery
> Date: Tue Jul  3 19:24:44 2018
> New Revision: 335906
> URL: https://svnweb.freebsd.org/changeset/base/335906
>
> Log:
>   No need to make a copy to build genoffset_test.o
>
> Modified:
>   head/sys/conf/kern.post.mk
>
> Modified: head/sys/conf/kern.post.mk
> =
> =
> --- head/sys/conf/kern.post.mkTue Jul  3 19:09:46 2018(r33590
> 5)
> +++ head/sys/conf/kern.post.mkTue Jul  3 19:24:44 2018(r33590
> 6)
> @@ -191,14 +191,12 @@ offset.inc: $S/kern/genoffset.sh genoffset.o
>  genoffset.o: $S/kern/genoffset.c
>   ${CC} -c ${CFLAGS:N-flto:N-fno-common} $S/kern/genoffset.c
>  
> -genoffset_test.c: $S/kern/genoffset.c
> - cp $S/kern/genoffset.c genoffset_test.c
> -
>  # genoffset_test.o is not actually used for anything - the point of compilin
> g it
>  # is to exercise the CTASSERT that checks that the offsets in the offset.inc
>  # _lite struct(s) match those in the original(s). 
> -genoffset_test.o: genoffset_test.c offset.inc
> - ${CC} -c ${CFLAGS:N-flto:N-fno-common} -DOFFSET_TEST genoffset_test.c
> +genoffset_test.o: $S/kern/genoffset.c offset.inc
> + ${CC} -c ${CFLAGS:N-flto:N-fno-common} -DOFFSET_TEST ${.ALLSRC:M*.c} \
> + -o ${.TARGET}

-o with -c in the previous line will cause an error.

>  
>  assym.inc: $S/kern/genassym.sh genassym.o genoffset_test.o
>   NM='${NM}' NMFLAGS='${NMFLAGS}' sh $S/kern/genassym.sh genassym.o > ${.
> TARGET}
>


-- 
Cheers,
Cy Schubert 
FreeBSD UNIX: Web:  http://www.FreeBSD.org

The need of the many outweighs the greed of the few.


___
svn-src-head@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-head
To unsubscribe, send any mail to "svn-src-head-unsubscr...@freebsd.org"


svn commit: r335906 - head/sys/conf

2018-07-03 Thread Bryan Drewery
Author: bdrewery
Date: Tue Jul  3 19:24:44 2018
New Revision: 335906
URL: https://svnweb.freebsd.org/changeset/base/335906

Log:
  No need to make a copy to build genoffset_test.o

Modified:
  head/sys/conf/kern.post.mk

Modified: head/sys/conf/kern.post.mk
==
--- head/sys/conf/kern.post.mk  Tue Jul  3 19:09:46 2018(r335905)
+++ head/sys/conf/kern.post.mk  Tue Jul  3 19:24:44 2018(r335906)
@@ -191,14 +191,12 @@ offset.inc: $S/kern/genoffset.sh genoffset.o
 genoffset.o: $S/kern/genoffset.c
${CC} -c ${CFLAGS:N-flto:N-fno-common} $S/kern/genoffset.c
 
-genoffset_test.c: $S/kern/genoffset.c
-   cp $S/kern/genoffset.c genoffset_test.c
-
 # genoffset_test.o is not actually used for anything - the point of compiling 
it
 # is to exercise the CTASSERT that checks that the offsets in the offset.inc
 # _lite struct(s) match those in the original(s). 
-genoffset_test.o: genoffset_test.c offset.inc
-   ${CC} -c ${CFLAGS:N-flto:N-fno-common} -DOFFSET_TEST genoffset_test.c
+genoffset_test.o: $S/kern/genoffset.c offset.inc
+   ${CC} -c ${CFLAGS:N-flto:N-fno-common} -DOFFSET_TEST ${.ALLSRC:M*.c} \
+   -o ${.TARGET}
 
 assym.inc: $S/kern/genassym.sh genassym.o genoffset_test.o
NM='${NM}' NMFLAGS='${NMFLAGS}' sh $S/kern/genassym.sh genassym.o > 
${.TARGET}
___
svn-src-head@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-head
To unsubscribe, send any mail to "svn-src-head-unsubscr...@freebsd.org"