public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug preprocessor/84864] Issues with large line numbers >= 2^31
       [not found] <bug-84864-4@http.gcc.gnu.org/bugzilla/>
@ 2020-03-12 11:58 ` jakub at gcc dot gnu.org
  2021-06-01  8:10 ` rguenth at gcc dot gnu.org
                   ` (4 subsequent siblings)
  5 siblings, 0 replies; 6+ messages in thread
From: jakub at gcc dot gnu.org @ 2020-03-12 11:58 UTC (permalink / raw)
  To: gcc-bugs

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

Jakub Jelinek <jakub at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Target Milestone|9.3                         |9.4

--- Comment #5 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
GCC 9.3.0 has been released, adjusting target milestone.

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

* [Bug preprocessor/84864] Issues with large line numbers >= 2^31
       [not found] <bug-84864-4@http.gcc.gnu.org/bugzilla/>
  2020-03-12 11:58 ` [Bug preprocessor/84864] Issues with large line numbers >= 2^31 jakub at gcc dot gnu.org
@ 2021-06-01  8:10 ` rguenth at gcc dot gnu.org
  2021-12-19 22:07 ` pinskia at gcc dot gnu.org
                   ` (3 subsequent siblings)
  5 siblings, 0 replies; 6+ messages in thread
From: rguenth at gcc dot gnu.org @ 2021-06-01  8:10 UTC (permalink / raw)
  To: gcc-bugs

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

Richard Biener <rguenth at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Target Milestone|9.4                         |9.5

--- Comment #6 from Richard Biener <rguenth at gcc dot gnu.org> ---
GCC 9.4 is being released, retargeting bugs to GCC 9.5.

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

* [Bug preprocessor/84864] Issues with large line numbers >= 2^31
       [not found] <bug-84864-4@http.gcc.gnu.org/bugzilla/>
  2020-03-12 11:58 ` [Bug preprocessor/84864] Issues with large line numbers >= 2^31 jakub at gcc dot gnu.org
  2021-06-01  8:10 ` rguenth at gcc dot gnu.org
@ 2021-12-19 22:07 ` pinskia at gcc dot gnu.org
  2021-12-19 22:08 ` pinskia at gcc dot gnu.org
                   ` (2 subsequent siblings)
  5 siblings, 0 replies; 6+ messages in thread
From: pinskia at gcc dot gnu.org @ 2021-12-19 22:07 UTC (permalink / raw)
  To: gcc-bugs

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

Andrew Pinski <pinskia at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |jg at jguk dot org

--- Comment #7 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
*** Bug 90477 has been marked as a duplicate of this bug. ***

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

* [Bug preprocessor/84864] Issues with large line numbers >= 2^31
       [not found] <bug-84864-4@http.gcc.gnu.org/bugzilla/>
                   ` (2 preceding siblings ...)
  2021-12-19 22:07 ` pinskia at gcc dot gnu.org
@ 2021-12-19 22:08 ` pinskia at gcc dot gnu.org
  2021-12-20 11:27 ` jg at jguk dot org
  2022-05-27  8:16 ` rguenth at gcc dot gnu.org
  5 siblings, 0 replies; 6+ messages in thread
From: pinskia at gcc dot gnu.org @ 2021-12-19 22:08 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #8 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
>From my notes of the duplicated bug:

clang does not use negative line numbers:
<source>:2147483648:9: warning: A1 [-W#pragma-messages]


But MSVC does:
<source>(-2147483648): warning C4081: expected '('; found 'string'

ICC does not either:

<source>(2147483650): error #77: this declaration has no storage class or type
specifier
  a
  ^

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

* [Bug preprocessor/84864] Issues with large line numbers >= 2^31
       [not found] <bug-84864-4@http.gcc.gnu.org/bugzilla/>
                   ` (3 preceding siblings ...)
  2021-12-19 22:08 ` pinskia at gcc dot gnu.org
@ 2021-12-20 11:27 ` jg at jguk dot org
  2022-05-27  8:16 ` rguenth at gcc dot gnu.org
  5 siblings, 0 replies; 6+ messages in thread
From: jg at jguk dot org @ 2021-12-20 11:27 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #9 from Jonny Grant <jg at jguk dot org> ---
I'm sure you all know more than me.
But I understood #line 0    was not allowed. Therefore, it can simply be
unsigned, and 0 used to indicate an error, instead of negative values.

#line 0 is not currently an error, but probably should right? file line numbers
start at 1.


If it was changed to a uint64, at least this issue wouldn't occur for a long
time.


BTW, could this message clarify what the supported range is?  Probably
2147483648 ?

Output of x86-64 gcc (trunk) (Compiler #1)
<source>:1:7: warning: line number out of range
    1 | #line 4444884444
      |       ^~~~~~~~~~
Compiler returned: 0

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

* [Bug preprocessor/84864] Issues with large line numbers >= 2^31
       [not found] <bug-84864-4@http.gcc.gnu.org/bugzilla/>
                   ` (4 preceding siblings ...)
  2021-12-20 11:27 ` jg at jguk dot org
@ 2022-05-27  8:16 ` rguenth at gcc dot gnu.org
  5 siblings, 0 replies; 6+ messages in thread
From: rguenth at gcc dot gnu.org @ 2022-05-27  8:16 UTC (permalink / raw)
  To: gcc-bugs

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

Richard Biener <rguenth at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Target Milestone|9.5                         |---

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

end of thread, other threads:[~2022-05-27  8:16 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <bug-84864-4@http.gcc.gnu.org/bugzilla/>
2020-03-12 11:58 ` [Bug preprocessor/84864] Issues with large line numbers >= 2^31 jakub at gcc dot gnu.org
2021-06-01  8:10 ` rguenth at gcc dot gnu.org
2021-12-19 22:07 ` pinskia at gcc dot gnu.org
2021-12-19 22:08 ` pinskia at gcc dot gnu.org
2021-12-20 11:27 ` jg at jguk dot org
2022-05-27  8:16 ` rguenth 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).