public inbox for gcc-patches@gcc.gnu.org
 help / color / mirror / Atom feed
* NetBSD has SSP in libc
@ 2016-01-23 21:52 Thomas Klausner
  2016-01-27  6:35 ` Jeff Law
  0 siblings, 1 reply; 4+ messages in thread
From: Thomas Klausner @ 2016-01-23 21:52 UTC (permalink / raw)
  To: gcc-patches

[-- Attachment #1: Type: text/plain, Size: 353 bytes --]

NetBSD has SSP included in libc:

http://cvsweb.netbsd.org/bsdweb.cgi/src/lib/libc/ssp/?only_with_tag=MAIN

gcc/configure does not know about this. The attached patch (against
SVN checkout from today) fixes this.

I've previously reported this as
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=68380 but was told that
patches should be sent here.
 Thomas

[-- Attachment #2: ssp.diff --]
[-- Type: text/plain, Size: 601 bytes --]

Index: gcc/configure.ac
===================================================================
--- gcc/configure.ac	(revision 232768)
+++ gcc/configure.ac	(working copy)
@@ -5480,7 +5480,7 @@ AC_CACHE_CHECK(__stack_chk_fail in target C librar
 	 # realistically usable GNU/Hurd configurations.
 	 # All supported versions of musl provide it as well
 	 gcc_cv_libc_provides_ssp=yes;;
-       *-*-darwin* | *-*-freebsd*)
+       *-*-darwin* | *-*-freebsd* | *-*-netbsd*)
 	 AC_CHECK_FUNC(__stack_chk_fail,[gcc_cv_libc_provides_ssp=yes],
            [echo "no __stack_chk_fail on this target"])
         ;;

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: NetBSD has SSP in libc
  2016-01-23 21:52 NetBSD has SSP in libc Thomas Klausner
@ 2016-01-27  6:35 ` Jeff Law
  2016-01-27  6:41   ` Thomas Klausner
  0 siblings, 1 reply; 4+ messages in thread
From: Jeff Law @ 2016-01-27  6:35 UTC (permalink / raw)
  To: Thomas Klausner, gcc-patches

On 01/23/2016 02:52 PM, Thomas Klausner wrote:
> NetBSD has SSP included in libc:
>
> http://cvsweb.netbsd.org/bsdweb.cgi/src/lib/libc/ssp/?only_with_tag=MAIN
>
> gcc/configure does not know about this. The attached patch (against
> SVN checkout from today) fixes this.
>
> I've previously reported this as
> https://gcc.gnu.org/bugzilla/show_bug.cgi?id=68380 but was told that
> patches should be sent here.
Thanks.

If I understand the history SSP first appeared in NetBSD 4.0, so this 
code really ought to be conditional on NetBSD 4.0 or newer to be 
strictly correct.

Unfortunately we don't have much interaction with NetBSD anymore -- so 
we have no clue if supporting building on anything before NetBSD 4.0 is 
even reasonable or feasible anymore.

Jeff

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: NetBSD has SSP in libc
  2016-01-27  6:35 ` Jeff Law
@ 2016-01-27  6:41   ` Thomas Klausner
  2016-01-27 16:57     ` Jeff Law
  0 siblings, 1 reply; 4+ messages in thread
From: Thomas Klausner @ 2016-01-27  6:41 UTC (permalink / raw)
  To: Jeff Law; +Cc: gcc-patches

On Tue, Jan 26, 2016 at 11:35:15PM -0700, Jeff Law wrote:
> On 01/23/2016 02:52 PM, Thomas Klausner wrote:
> >NetBSD has SSP included in libc:
> >
> >http://cvsweb.netbsd.org/bsdweb.cgi/src/lib/libc/ssp/?only_with_tag=MAIN
> >
> >gcc/configure does not know about this. The attached patch (against
> >SVN checkout from today) fixes this.
> >
> >I've previously reported this as
> >https://gcc.gnu.org/bugzilla/show_bug.cgi?id=68380 but was told that
> >patches should be sent here.
> Thanks.
> 
> If I understand the history SSP first appeared in NetBSD 4.0, so this code
> really ought to be conditional on NetBSD 4.0 or newer to be strictly
> correct.
> 
> Unfortunately we don't have much interaction with NetBSD anymore -- so we
> have no clue if supporting building on anything before NetBSD 4.0 is even
> reasonable or feasible anymore.

The only supported release branches are NetBSD-6.x and NetBSD-7.x.

NetBSD-4.x was desupported when NetBSD 6.x came out, in 2012:
https://blog.netbsd.org/tnf/entry/end_of_life_for_4

 Thomas

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: NetBSD has SSP in libc
  2016-01-27  6:41   ` Thomas Klausner
@ 2016-01-27 16:57     ` Jeff Law
  0 siblings, 0 replies; 4+ messages in thread
From: Jeff Law @ 2016-01-27 16:57 UTC (permalink / raw)
  To: Thomas Klausner; +Cc: gcc-patches

On 01/26/2016 11:41 PM, Thomas Klausner wrote:
> On Tue, Jan 26, 2016 at 11:35:15PM -0700, Jeff Law wrote:
>> On 01/23/2016 02:52 PM, Thomas Klausner wrote:
>>> NetBSD has SSP included in libc:
>>>
>>> http://cvsweb.netbsd.org/bsdweb.cgi/src/lib/libc/ssp/?only_with_tag=MAIN
>>>
>>> gcc/configure does not know about this. The attached patch (against
>>> SVN checkout from today) fixes this.
>>>
>>> I've previously reported this as
>>> https://gcc.gnu.org/bugzilla/show_bug.cgi?id=68380 but was told that
>>> patches should be sent here.
>> Thanks.
>>
>> If I understand the history SSP first appeared in NetBSD 4.0, so this code
>> really ought to be conditional on NetBSD 4.0 or newer to be strictly
>> correct.
>>
>> Unfortunately we don't have much interaction with NetBSD anymore -- so we
>> have no clue if supporting building on anything before NetBSD 4.0 is even
>> reasonable or feasible anymore.
>
> The only supported release branches are NetBSD-6.x and NetBSD-7.x.
>
> NetBSD-4.x was desupported when NetBSD 6.x came out, in 2012:
> https://blog.netbsd.org/tnf/entry/end_of_life_for_4
OK.  Based on the above information I went ahead and committed your 
change.  Strictly speaking it's not a regression, but I think it's 
localized & safe enough that it can go in even at this stage in our 
development/release process.

Thanks,
Jeff

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2016-01-27 16:57 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-01-23 21:52 NetBSD has SSP in libc Thomas Klausner
2016-01-27  6:35 ` Jeff Law
2016-01-27  6:41   ` Thomas Klausner
2016-01-27 16:57     ` Jeff Law

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).