Patchwork Add OpenBSD -assert= option to openbsd.opt

mail settings
Submitter Joseph S. Myers
Date Feb. 2, 2011, 1:22 a.m.
Message ID <>
Download mbox | patch
Permalink /patch/81421/
State New
Headers show


Joseph S. Myers - Feb. 2, 2011, 1:22 a.m.
The headers i386/openbsdelf.h, mips/openbsd.h and sparc/openbsd64.h
have %{assert*} specs, which effectively means the -assert= option.
It seems most appropriate to describe this in the .opt files as a
target-independent OpenBSD option (and consider it a bug in other
OpenBSD targets that they don't have specs to handle this option),
just as for FreeBSD and NetBSD.  This patch adds it to openbsd.opt.

Tested building cc1 and xgcc for crosses to: i686-openbsd mips-openbsd
sparc64-openbsd (mips-openbsd has pre-existing breakage: PR 47110).
Committed as a preapproved fix to an unmaintained target.

2011-02-01  Joseph Myers  <>

	* config/openbsd.opt (assert=): New Driver option.


Index: gcc/config/openbsd.opt
--- gcc/config/openbsd.opt	(revision 169317)
+++ gcc/config/openbsd.opt	(working copy)
@@ -1,6 +1,6 @@ 
 ; OpenBSD options.
-; Copyright (C) 2010
+; Copyright (C) 2010, 2011
 ; Free Software Foundation, Inc.
 ; This file is part of GCC.
@@ -24,6 +24,9 @@ 
 ; Please try to keep this file in ASCII collating order.
+Driver JoinedOrMissing