public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c/60639] New Assert Variants
[not found] <bug-60639-4@http.gcc.gnu.org/bugzilla/>
@ 2014-03-24 21:14 ` pinskia at gcc dot gnu.org
2014-03-24 21:16 ` olafvdspek at gmail dot com
` (9 subsequent siblings)
10 siblings, 0 replies; 11+ messages in thread
From: pinskia at gcc dot gnu.org @ 2014-03-24 21:14 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=60639
Andrew Pinski <pinskia at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |RESOLVED
Resolution|--- |INVALID
--- Comment #1 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
You can create your own header to do this. This does not have to be in the
compiler or the libc.
^ permalink raw reply [flat|nested] 11+ messages in thread
* [Bug c/60639] New Assert Variants
[not found] <bug-60639-4@http.gcc.gnu.org/bugzilla/>
2014-03-24 21:14 ` [Bug c/60639] New Assert Variants pinskia at gcc dot gnu.org
@ 2014-03-24 21:16 ` olafvdspek at gmail dot com
2014-03-24 21:19 ` pinskia at gcc dot gnu.org
` (8 subsequent siblings)
10 siblings, 0 replies; 11+ messages in thread
From: olafvdspek at gmail dot com @ 2014-03-24 21:16 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=60639
Olaf van der Spek <olafvdspek at gmail dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|RESOLVED |UNCONFIRMED
Resolution|INVALID |---
--- Comment #2 from Olaf van der Spek <olafvdspek at gmail dot com> ---
I could create my own header for assert() too, but it's still in the standard.
^ permalink raw reply [flat|nested] 11+ messages in thread
* [Bug c/60639] New Assert Variants
[not found] <bug-60639-4@http.gcc.gnu.org/bugzilla/>
2014-03-24 21:14 ` [Bug c/60639] New Assert Variants pinskia at gcc dot gnu.org
2014-03-24 21:16 ` olafvdspek at gmail dot com
@ 2014-03-24 21:19 ` pinskia at gcc dot gnu.org
2014-03-24 21:22 ` olafvdspek at gmail dot com
` (7 subsequent siblings)
10 siblings, 0 replies; 11+ messages in thread
From: pinskia at gcc dot gnu.org @ 2014-03-24 21:19 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=60639
Andrew Pinski <pinskia at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |RESOLVED
Resolution|--- |INVALID
--- Comment #3 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
Well don't call it assert, call it my_assert or something like that.
We should not be adding random extensions if they can be done other places.
Also I think assert.h comes from libc and not GCC.
^ permalink raw reply [flat|nested] 11+ messages in thread
* [Bug c/60639] New Assert Variants
[not found] <bug-60639-4@http.gcc.gnu.org/bugzilla/>
` (2 preceding siblings ...)
2014-03-24 21:19 ` pinskia at gcc dot gnu.org
@ 2014-03-24 21:22 ` olafvdspek at gmail dot com
2014-03-24 21:28 ` schwab@linux-m68k.org
` (6 subsequent siblings)
10 siblings, 0 replies; 11+ messages in thread
From: olafvdspek at gmail dot com @ 2014-03-24 21:22 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=60639
Olaf van der Spek <olafvdspek at gmail dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|RESOLVED |UNCONFIRMED
Resolution|INVALID |---
--- Comment #4 from Olaf van der Spek <olafvdspek at gmail dot com> ---
(In reply to Andrew Pinski from comment #3)
> Well don't call it assert, call it my_assert or something like that.
>
> We should not be adding random extensions if they can be done other places.
Then what is the criteria for including something in GCC (or libc)?
And what'd be a better place?
> Also I think assert.h comes from libc and not GCC.
glibc?
^ permalink raw reply [flat|nested] 11+ messages in thread
* [Bug c/60639] New Assert Variants
[not found] <bug-60639-4@http.gcc.gnu.org/bugzilla/>
` (3 preceding siblings ...)
2014-03-24 21:22 ` olafvdspek at gmail dot com
@ 2014-03-24 21:28 ` schwab@linux-m68k.org
2014-03-24 21:29 ` pinskia at gcc dot gnu.org
` (5 subsequent siblings)
10 siblings, 0 replies; 11+ messages in thread
From: schwab@linux-m68k.org @ 2014-03-24 21:28 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=60639
Andreas Schwab <schwab@linux-m68k.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |RESOLVED
Resolution|--- |INVALID
--- Comment #5 from Andreas Schwab <schwab@linux-m68k.org> ---
Standards acceptance. Ideally Standard C, but POSIX is also possible.
There is no need for this to reside in GCC.
^ permalink raw reply [flat|nested] 11+ messages in thread
* [Bug c/60639] New Assert Variants
[not found] <bug-60639-4@http.gcc.gnu.org/bugzilla/>
` (4 preceding siblings ...)
2014-03-24 21:28 ` schwab@linux-m68k.org
@ 2014-03-24 21:29 ` pinskia at gcc dot gnu.org
2014-03-24 21:34 ` olafvdspek at gmail dot com
` (4 subsequent siblings)
10 siblings, 0 replies; 11+ messages in thread
From: pinskia at gcc dot gnu.org @ 2014-03-24 21:29 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=60639
--- Comment #6 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
(In reply to Olaf van der Spek from comment #4)
> (In reply to Andrew Pinski from comment #3)
> > Well don't call it assert, call it my_assert or something like that.
> >
> > We should not be adding random extensions if they can be done other places.
>
> Then what is the criteria for including something in GCC (or libc)?
If it is part of a standard or is needed for a language feature is the criteria
for GCC/glibc.
> And what'd be a better place?
Your own library.
>
> > Also I think assert.h comes from libc and not GCC.
>
> glibc?
well it depends on your target but for GNU/Linux, it is glibc. For
Android/Linux, it is bionic. But there are other libc's besides those two out
there for Linux.
^ permalink raw reply [flat|nested] 11+ messages in thread
* [Bug c/60639] New Assert Variants
[not found] <bug-60639-4@http.gcc.gnu.org/bugzilla/>
` (5 preceding siblings ...)
2014-03-24 21:29 ` pinskia at gcc dot gnu.org
@ 2014-03-24 21:34 ` olafvdspek at gmail dot com
2014-03-24 21:42 ` schwab@linux-m68k.org
` (3 subsequent siblings)
10 siblings, 0 replies; 11+ messages in thread
From: olafvdspek at gmail dot com @ 2014-03-24 21:34 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=60639
--- Comment #7 from Olaf van der Spek <olafvdspek at gmail dot com> ---
(In reply to Andrew Pinski from comment #6)
> Your own library.
Reinventing the wheel time and time again leads to code duplication which is
bad.
^ permalink raw reply [flat|nested] 11+ messages in thread
* [Bug c/60639] New Assert Variants
[not found] <bug-60639-4@http.gcc.gnu.org/bugzilla/>
` (6 preceding siblings ...)
2014-03-24 21:34 ` olafvdspek at gmail dot com
@ 2014-03-24 21:42 ` schwab@linux-m68k.org
2014-03-24 21:43 ` olafvdspek at gmail dot com
` (2 subsequent siblings)
10 siblings, 0 replies; 11+ messages in thread
From: schwab@linux-m68k.org @ 2014-03-24 21:42 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=60639
--- Comment #8 from Andreas Schwab <schwab@linux-m68k.org> ---
So convince one of the standards body that your macro is a good thing to add.
^ permalink raw reply [flat|nested] 11+ messages in thread
* [Bug c/60639] New Assert Variants
[not found] <bug-60639-4@http.gcc.gnu.org/bugzilla/>
` (7 preceding siblings ...)
2014-03-24 21:42 ` schwab@linux-m68k.org
@ 2014-03-24 21:43 ` olafvdspek at gmail dot com
2014-03-24 21:51 ` schwab@linux-m68k.org
2014-03-24 21:52 ` olafvdspek at gmail dot com
10 siblings, 0 replies; 11+ messages in thread
From: olafvdspek at gmail dot com @ 2014-03-24 21:43 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=60639
--- Comment #9 from Olaf van der Spek <olafvdspek at gmail dot com> ---
Standards bodies prefer to standardize existing practise, so I think that's the
wrong way to go. Ideally it's first implemented and only then it gets
standardized.
^ permalink raw reply [flat|nested] 11+ messages in thread
* [Bug c/60639] New Assert Variants
[not found] <bug-60639-4@http.gcc.gnu.org/bugzilla/>
` (8 preceding siblings ...)
2014-03-24 21:43 ` olafvdspek at gmail dot com
@ 2014-03-24 21:51 ` schwab@linux-m68k.org
2014-03-24 21:52 ` olafvdspek at gmail dot com
10 siblings, 0 replies; 11+ messages in thread
From: schwab@linux-m68k.org @ 2014-03-24 21:51 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=60639
--- Comment #10 from Andreas Schwab <schwab@linux-m68k.org> ---
Standards also sometimes invent new interfaces if the need arises.
^ permalink raw reply [flat|nested] 11+ messages in thread
* [Bug c/60639] New Assert Variants
[not found] <bug-60639-4@http.gcc.gnu.org/bugzilla/>
` (9 preceding siblings ...)
2014-03-24 21:51 ` schwab@linux-m68k.org
@ 2014-03-24 21:52 ` olafvdspek at gmail dot com
10 siblings, 0 replies; 11+ messages in thread
From: olafvdspek at gmail dot com @ 2014-03-24 21:52 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=60639
--- Comment #11 from Olaf van der Spek <olafvdspek at gmail dot com> ---
Perhaps, but that's not the ideal route.
^ permalink raw reply [flat|nested] 11+ messages in thread
end of thread, other threads:[~2014-03-24 21:52 UTC | newest]
Thread overview: 11+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
[not found] <bug-60639-4@http.gcc.gnu.org/bugzilla/>
2014-03-24 21:14 ` [Bug c/60639] New Assert Variants pinskia at gcc dot gnu.org
2014-03-24 21:16 ` olafvdspek at gmail dot com
2014-03-24 21:19 ` pinskia at gcc dot gnu.org
2014-03-24 21:22 ` olafvdspek at gmail dot com
2014-03-24 21:28 ` schwab@linux-m68k.org
2014-03-24 21:29 ` pinskia at gcc dot gnu.org
2014-03-24 21:34 ` olafvdspek at gmail dot com
2014-03-24 21:42 ` schwab@linux-m68k.org
2014-03-24 21:43 ` olafvdspek at gmail dot com
2014-03-24 21:51 ` schwab@linux-m68k.org
2014-03-24 21:52 ` olafvdspek at gmail dot com
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).