On Wed, 24 Aug 2011, Paolo Bonzini wrote:
> Would it make any sense to accept _Noreturn as an alternative spelling for the
> __noreturn__ attribute, in case someone is using the non-underscore-wrapped
> variant?
I suppose it might help some people use stdnoreturn.h, though I'm not
really sure st
On 08/24/2011 07:24 AM, Joseph S. Myers wrote:
On Wed, 24 Aug 2011, Richard Sandiford wrote:
"Joseph S. Myers" writes:
I didn't touch the USER_H definition in mips/t-sdemtk (so that target
will not install this new header). The comment "Remove stdarg.h and
stddef.h from USER_H." suggests tha
On 08/18/2011 11:37 PM, Joseph S. Myers wrote:
C1X provides a standard way of declaring non-returning functions, with
the _Noreturn keyword and a header stdnoreturn.h defining a macro
"noreturn" to expand to _Noreturn. This patch implements this syntax
and header. Bootstrapped with no regressio
On Wed, 24 Aug 2011, Richard Sandiford wrote:
> "Joseph S. Myers" writes:
> > I didn't touch the USER_H definition in mips/t-sdemtk (so that target
> > will not install this new header). The comment "Remove stdarg.h and
> > stddef.h from USER_H." suggests that maybe it should be added to that
>
"Joseph S. Myers" writes:
> I didn't touch the USER_H definition in mips/t-sdemtk (so that target
> will not install this new header). The comment "Remove stdarg.h and
> stddef.h from USER_H." suggests that maybe it should be added to that
> definition, but stdfix.h is also missing from that defi
Richard Sandiford writes:
>> so perhaps that configuration (mips*-sde-elf* without newlib) should
>> actually be deprecated/removed (and "mipssde" threads along with it).
>
> Yeah, sounds like a good plan.
Good to know :-) Could have saved me a little bit of work with the
libgcc patches.
On Thu, 18 Aug 2011, Gabriel Dos Reis wrote:
> On Thu, Aug 18, 2011 at 4:37 PM, Joseph S. Myers
> wrote:
>
> > The new keyword is C-only (C++0x has a different way of declaring
> > non-returning functions) and I did not try to make the header do
> > anything useful if included in C++ code.
>
>
"Joseph S. Myers" writes:
> As far as I know MIPS is no longer using the old SDE library and it is
> considered superseded by newlib,
Hadn't realised that.
> so perhaps that configuration (mips*-sde-elf* without newlib) should
> actually be deprecated/removed (and "mipssde" threads along with it
On Thu, Aug 18, 2011 at 4:37 PM, Joseph S. Myers
wrote:
> The new keyword is C-only (C++0x has a different way of declaring
> non-returning functions) and I did not try to make the header do
> anything useful if included in C++ code.
I would suggest you don't define it all as macro when __cplusp
TURN_H
+
+#define noreturn _Noreturn
+
+#endif /* stdnoreturn.h */
Index: gcc/testsuite/gcc.dg/c1x-noreturn-1.c
===
--- gcc/testsuite/gcc.dg/c1x-noreturn-1.c (revision 0)
+++ gcc/testsuite/gcc.dg/c1x-noreturn-1.c (revision 0)
@@ -0,0 +1,59 @@
+/*
10 matches
Mail list logo