public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug middle-end/108312] New: NULL definition in system.h is no longer needed any more
@ 2023-01-06  6:42 pinskia at gcc dot gnu.org
  2023-01-06  8:19 ` [Bug middle-end/108312] " redi at gcc dot gnu.org
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: pinskia at gcc dot gnu.org @ 2023-01-06  6:42 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108312

            Bug ID: 108312
           Summary: NULL definition in system.h is no longer needed any
                    more
           Product: gcc
           Version: 13.0
            Status: UNCONFIRMED
          Keywords: internal-improvement
          Severity: normal
          Priority: P3
         Component: middle-end
          Assignee: unassigned at gcc dot gnu.org
          Reporter: pinskia at gcc dot gnu.org
  Target Milestone: ---

GCC requires a C++11 compiler to compile so the following in system.h is no
longer needed:
/* Define a generic NULL if one hasn't already been defined.  */
#ifndef NULL
#define NULL 0
#endif

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

* [Bug middle-end/108312] NULL definition in system.h is no longer needed any more
  2023-01-06  6:42 [Bug middle-end/108312] New: NULL definition in system.h is no longer needed any more pinskia at gcc dot gnu.org
@ 2023-01-06  8:19 ` redi at gcc dot gnu.org
  2023-01-06 12:21 ` marxin at gcc dot gnu.org
  2023-03-16 13:58 ` marxin at gcc dot gnu.org
  2 siblings, 0 replies; 4+ messages in thread
From: redi at gcc dot gnu.org @ 2023-01-06  8:19 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108312

Jonathan Wakely <redi at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
     Ever confirmed|0                           |1
   Last reconfirmed|                            |2023-01-06
             Status|UNCONFIRMED                 |NEW

--- Comment #1 from Jonathan Wakely <redi at gcc dot gnu.org> ---
Confirmed. Defining it ourselves is undefined according to the standard,
because that's a reserved name.

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

* [Bug middle-end/108312] NULL definition in system.h is no longer needed any more
  2023-01-06  6:42 [Bug middle-end/108312] New: NULL definition in system.h is no longer needed any more pinskia at gcc dot gnu.org
  2023-01-06  8:19 ` [Bug middle-end/108312] " redi at gcc dot gnu.org
@ 2023-01-06 12:21 ` marxin at gcc dot gnu.org
  2023-03-16 13:58 ` marxin at gcc dot gnu.org
  2 siblings, 0 replies; 4+ messages in thread
From: marxin at gcc dot gnu.org @ 2023-01-06 12:21 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108312

Martin Liška <marxin at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Assignee|unassigned at gcc dot gnu.org      |marxin at gcc dot gnu.org
                 CC|                            |marxin at gcc dot gnu.org
             Status|NEW                         |ASSIGNED

--- Comment #2 from Martin Liška <marxin at gcc dot gnu.org> ---
Lemme send a patch for it.

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

* [Bug middle-end/108312] NULL definition in system.h is no longer needed any more
  2023-01-06  6:42 [Bug middle-end/108312] New: NULL definition in system.h is no longer needed any more pinskia at gcc dot gnu.org
  2023-01-06  8:19 ` [Bug middle-end/108312] " redi at gcc dot gnu.org
  2023-01-06 12:21 ` marxin at gcc dot gnu.org
@ 2023-03-16 13:58 ` marxin at gcc dot gnu.org
  2 siblings, 0 replies; 4+ messages in thread
From: marxin at gcc dot gnu.org @ 2023-03-16 13:58 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108312

Martin Liška <marxin at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Assignee|marxin at gcc dot gnu.org          |unassigned at gcc dot gnu.org
             Status|ASSIGNED                    |NEW

--- Comment #3 from Martin Liška <marxin at gcc dot gnu.org> ---
The patch was sent and hasn't been approved:
https://gcc.gnu.org/pipermail/gcc-patches/2023-January/609503.html

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

end of thread, other threads:[~2023-03-16 13:58 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-01-06  6:42 [Bug middle-end/108312] New: NULL definition in system.h is no longer needed any more pinskia at gcc dot gnu.org
2023-01-06  8:19 ` [Bug middle-end/108312] " redi at gcc dot gnu.org
2023-01-06 12:21 ` marxin at gcc dot gnu.org
2023-03-16 13:58 ` marxin at gcc dot gnu.org

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).