public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug middle-end/15426] New: large line numbers cause crash
@ 2004-05-14 13:51 hebisch at math dot uni dot wroc dot pl
  2004-05-14 14:03 ` [Bug middle-end/15426] [3.3/3.4/3.5 Regression] " pinskia at gcc dot gnu dot org
                   ` (9 more replies)
  0 siblings, 10 replies; 11+ messages in thread
From: hebisch at math dot uni dot wroc dot pl @ 2004-05-14 13:51 UTC (permalink / raw)
  To: gcc-bugs

The following program:

#line 4294967096
int main(void)
{
  return 0;
}

gives me:
../gcc/xgcc -B../gcc -g linc.c
linc.c: In function `main':
linc.c:-197: internal compiler error: in final_scan_insn, at final.c:2117
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://gcc.gnu.org/bugs.html> for instructions.

The problem also appears with 3.5.0 20040502 snapshot (but I
must give `-g' option) and in 3.3.3. Also the problem appears
on x86 native compiler.
AFAIKS the compiler read user provided line numbers with extended
precision and then truncates then to `int'. Moreover, apparently
there is no range/overflow checking on line numbers.

-- 
           Summary: large line numbers cause crash
           Product: gcc
           Version: 3.4.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: middle-end
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: hebisch at math dot uni dot wroc dot pl
                CC: gcc-bugs at gcc dot gnu dot org
 GCC build triplet: x86_64-unknown-linux-gnu
  GCC host triplet: x86_64-unknown-linux-gnu
GCC target triplet: x86_64-unknown-linux-gnu


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=15426


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

* [Bug middle-end/15426] [3.3/3.4/3.5 Regression] large line numbers cause crash
  2004-05-14 13:51 [Bug middle-end/15426] New: large line numbers cause crash hebisch at math dot uni dot wroc dot pl
@ 2004-05-14 14:03 ` pinskia at gcc dot gnu dot org
  2004-05-14 16:52 ` bangerth at dealii dot org
                   ` (8 subsequent siblings)
  9 siblings, 0 replies; 11+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-05-14 14:03 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From pinskia at gcc dot gnu dot org  2004-05-13 20:26 -------
Confirmed.

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
           Severity|normal                      |minor
             Status|UNCONFIRMED                 |NEW
     Ever Confirmed|                            |1
  GCC build triplet|x86_64-unknown-linux-gnu    |
   GCC host triplet|x86_64-unknown-linux-gnu    |
 GCC target triplet|x86_64-unknown-linux-gnu    |
           Keywords|                            |ice-on-valid-code
      Known to fail|                            |3.0.4 3.2.3 3.3.3 3.4.0
                   |                            |3.5.0
      Known to work|                            |2.95.3
   Last reconfirmed|0000-00-00 00:00:00         |2004-05-13 20:26:38
               date|                            |
            Summary|large line numbers cause    |[3.3/3.4/3.5 Regression]
                   |crash                       |large line numbers cause
                   |                            |crash
   Target Milestone|---                         |3.3.4


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=15426


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

* [Bug middle-end/15426] [3.3/3.4/3.5 Regression] large line numbers cause crash
  2004-05-14 13:51 [Bug middle-end/15426] New: large line numbers cause crash hebisch at math dot uni dot wroc dot pl
  2004-05-14 14:03 ` [Bug middle-end/15426] [3.3/3.4/3.5 Regression] " pinskia at gcc dot gnu dot org
@ 2004-05-14 16:52 ` bangerth at dealii dot org
  2004-05-15 13:42 ` belyshev at lubercy dot com
                   ` (7 subsequent siblings)
  9 siblings, 0 replies; 11+ messages in thread
From: bangerth at dealii dot org @ 2004-05-14 16:52 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From bangerth at dealii dot org  2004-05-13 23:21 -------
I think this is a duplicate of some other bug (in class "preprocessor"?) 
but I don't remember which one. 
 
W. 

-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=15426


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

* [Bug middle-end/15426] [3.3/3.4/3.5 Regression] large line numbers cause crash
  2004-05-14 13:51 [Bug middle-end/15426] New: large line numbers cause crash hebisch at math dot uni dot wroc dot pl
  2004-05-14 14:03 ` [Bug middle-end/15426] [3.3/3.4/3.5 Regression] " pinskia at gcc dot gnu dot org
  2004-05-14 16:52 ` bangerth at dealii dot org
@ 2004-05-15 13:42 ` belyshev at lubercy dot com
  2004-05-15 17:13 ` hebisch at math dot uni dot wroc dot pl
                   ` (6 subsequent siblings)
  9 siblings, 0 replies; 11+ messages in thread
From: belyshev at lubercy dot com @ 2004-05-15 13:42 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From belyshev at lubercy dot com  2004-05-14 19:35 -------
I think this, bug 14712 and bug 14711 are duplicates.


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=15426


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

* [Bug middle-end/15426] [3.3/3.4/3.5 Regression] large line numbers cause crash
  2004-05-14 13:51 [Bug middle-end/15426] New: large line numbers cause crash hebisch at math dot uni dot wroc dot pl
                   ` (2 preceding siblings ...)
  2004-05-15 13:42 ` belyshev at lubercy dot com
@ 2004-05-15 17:13 ` hebisch at math dot uni dot wroc dot pl
  2004-05-17 11:50 ` [Bug middle-end/15426] [3.4/3.5 " gdr at gcc dot gnu dot org
                   ` (5 subsequent siblings)
  9 siblings, 0 replies; 11+ messages in thread
From: hebisch at math dot uni dot wroc dot pl @ 2004-05-15 17:13 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From hebisch at math dot uni dot wroc dot pl  2004-05-14 22:36 -------
Yes, it is related to 14711. However, note that the testcase from
14711 still crashes with 3.4.0 if the `-g' option is given.

-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=15426


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

* [Bug middle-end/15426] [3.4/3.5 Regression] large line numbers cause crash
  2004-05-14 13:51 [Bug middle-end/15426] New: large line numbers cause crash hebisch at math dot uni dot wroc dot pl
                   ` (3 preceding siblings ...)
  2004-05-15 17:13 ` hebisch at math dot uni dot wroc dot pl
@ 2004-05-17 11:50 ` gdr at gcc dot gnu dot org
  2004-06-19 17:45 ` mmitchel at gcc dot gnu dot org
                   ` (4 subsequent siblings)
  9 siblings, 0 replies; 11+ messages in thread
From: gdr at gcc dot gnu dot org @ 2004-05-17 11:50 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From gdr at gcc dot gnu dot org  2004-05-16 22:27 -------
Will not be fixed in 3.3.x -- just like its duplicate.

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
            Summary|[3.3/3.4/3.5 Regression]    |[3.4/3.5 Regression] large
                   |large line numbers cause    |line numbers cause crash
                   |crash                       |
   Target Milestone|3.3.4                       |3.4.1


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=15426


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

* [Bug middle-end/15426] [3.4/3.5 Regression] large line numbers cause crash
  2004-05-14 13:51 [Bug middle-end/15426] New: large line numbers cause crash hebisch at math dot uni dot wroc dot pl
                   ` (4 preceding siblings ...)
  2004-05-17 11:50 ` [Bug middle-end/15426] [3.4/3.5 " gdr at gcc dot gnu dot org
@ 2004-06-19 17:45 ` mmitchel at gcc dot gnu dot org
  2004-08-29 18:12 ` mmitchel at gcc dot gnu dot org
                   ` (3 subsequent siblings)
  9 siblings, 0 replies; 11+ messages in thread
From: mmitchel at gcc dot gnu dot org @ 2004-06-19 17:45 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From mmitchel at gcc dot gnu dot org  2004-06-19 17:45 -------
Postponed until GCC 3.4.2.

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
   Target Milestone|3.4.1                       |3.4.2


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=15426


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

* [Bug middle-end/15426] [3.4/3.5 Regression] large line numbers cause crash
  2004-05-14 13:51 [Bug middle-end/15426] New: large line numbers cause crash hebisch at math dot uni dot wroc dot pl
                   ` (5 preceding siblings ...)
  2004-06-19 17:45 ` mmitchel at gcc dot gnu dot org
@ 2004-08-29 18:12 ` mmitchel at gcc dot gnu dot org
  2004-08-29 18:16 ` mmitchel at gcc dot gnu dot org
                   ` (2 subsequent siblings)
  9 siblings, 0 replies; 11+ messages in thread
From: mmitchel at gcc dot gnu dot org @ 2004-08-29 18:12 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From mmitchel at gcc dot gnu dot org  2004-08-29 18:12 -------
Postponed until GCC 3.4.3.

-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=15426


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

* [Bug middle-end/15426] [3.4/3.5 Regression] large line numbers cause crash
  2004-05-14 13:51 [Bug middle-end/15426] New: large line numbers cause crash hebisch at math dot uni dot wroc dot pl
                   ` (6 preceding siblings ...)
  2004-08-29 18:12 ` mmitchel at gcc dot gnu dot org
@ 2004-08-29 18:16 ` mmitchel at gcc dot gnu dot org
  2004-11-01  0:45 ` [Bug middle-end/15426] [3.4/4.0 " mmitchel at gcc dot gnu dot org
  2004-12-05 20:20 ` pinskia at gcc dot gnu dot org
  9 siblings, 0 replies; 11+ messages in thread
From: mmitchel at gcc dot gnu dot org @ 2004-08-29 18:16 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From mmitchel at gcc dot gnu dot org  2004-08-29 18:14 -------
Postponed until GCC 3.4.3.

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
   Target Milestone|3.4.2                       |3.4.3


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=15426


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

* [Bug middle-end/15426] [3.4/4.0 Regression] large line numbers cause crash
  2004-05-14 13:51 [Bug middle-end/15426] New: large line numbers cause crash hebisch at math dot uni dot wroc dot pl
                   ` (7 preceding siblings ...)
  2004-08-29 18:16 ` mmitchel at gcc dot gnu dot org
@ 2004-11-01  0:45 ` mmitchel at gcc dot gnu dot org
  2004-12-05 20:20 ` pinskia at gcc dot gnu dot org
  9 siblings, 0 replies; 11+ messages in thread
From: mmitchel at gcc dot gnu dot org @ 2004-11-01  0:45 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From mmitchel at gcc dot gnu dot org  2004-11-01 00:45 -------
Postponed until GCC 3.4.4.

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
   Target Milestone|3.4.3                       |3.4.4


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=15426


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

* [Bug middle-end/15426] [3.4/4.0 Regression] large line numbers cause crash
  2004-05-14 13:51 [Bug middle-end/15426] New: large line numbers cause crash hebisch at math dot uni dot wroc dot pl
                   ` (8 preceding siblings ...)
  2004-11-01  0:45 ` [Bug middle-end/15426] [3.4/4.0 " mmitchel at gcc dot gnu dot org
@ 2004-12-05 20:20 ` pinskia at gcc dot gnu dot org
  9 siblings, 0 replies; 11+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-12-05 20:20 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From pinskia at gcc dot gnu dot org  2004-12-05 20:19 -------


*** This bug has been marked as a duplicate of 14711 ***

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |DUPLICATE


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=15426


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

end of thread, other threads:[~2004-12-05 20:20 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-05-14 13:51 [Bug middle-end/15426] New: large line numbers cause crash hebisch at math dot uni dot wroc dot pl
2004-05-14 14:03 ` [Bug middle-end/15426] [3.3/3.4/3.5 Regression] " pinskia at gcc dot gnu dot org
2004-05-14 16:52 ` bangerth at dealii dot org
2004-05-15 13:42 ` belyshev at lubercy dot com
2004-05-15 17:13 ` hebisch at math dot uni dot wroc dot pl
2004-05-17 11:50 ` [Bug middle-end/15426] [3.4/3.5 " gdr at gcc dot gnu dot org
2004-06-19 17:45 ` mmitchel at gcc dot gnu dot org
2004-08-29 18:12 ` mmitchel at gcc dot gnu dot org
2004-08-29 18:16 ` mmitchel at gcc dot gnu dot org
2004-11-01  0:45 ` [Bug middle-end/15426] [3.4/4.0 " mmitchel at gcc dot gnu dot org
2004-12-05 20:20 ` pinskia at gcc dot gnu dot 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).