[Bug c++/89383] [9 Regression] libcpp/line-map.c:748:15: runtime error: shift exponent 32 is too large for 32-bit type 'unsigned int'

2019-03-11 Thread marxin at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=89383

--- Comment #5 from Martin Liška  ---
Author: marxin
Date: Mon Mar 11 11:18:22 2019
New Revision: 269577

URL: https://gcc.gnu.org/viewcvs?rev=269577=gcc=rev
Log:
Backport r268981

2019-03-11  Martin Liska  

Backport from mainline
2019-02-18  Martin Liska  

PR c++/89383
* line-map.c (linemap_line_start): Use 1UL in order
to not overflow.

Modified:
branches/gcc-7-branch/libcpp/ChangeLog
branches/gcc-7-branch/libcpp/line-map.c

[Bug c++/89383] [9 Regression] libcpp/line-map.c:748:15: runtime error: shift exponent 32 is too large for 32-bit type 'unsigned int'

2019-03-11 Thread marxin at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=89383

--- Comment #4 from Martin Liška  ---
Author: marxin
Date: Mon Mar 11 09:37:52 2019
New Revision: 269571

URL: https://gcc.gnu.org/viewcvs?rev=269571=gcc=rev
Log:
Backport r268981

2019-03-11  Martin Liska  

Backport from mainline
2019-02-18  Martin Liska  

PR c++/89383
* line-map.c (linemap_line_start): Use 1UL in order
to not overflow.

Modified:
branches/gcc-8-branch/libcpp/ChangeLog
branches/gcc-8-branch/libcpp/line-map.c

[Bug c++/89383] [9 Regression] libcpp/line-map.c:748:15: runtime error: shift exponent 32 is too large for 32-bit type 'unsigned int'

2019-02-18 Thread rguenth at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=89383

Richard Biener  changed:

   What|Removed |Added

Version|unknown |9.0
   Target Milestone|--- |9.0

[Bug c++/89383] [9 Regression] libcpp/line-map.c:748:15: runtime error: shift exponent 32 is too large for 32-bit type 'unsigned int'

2019-02-18 Thread marxin at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=89383

Martin Liška  changed:

   What|Removed |Added

 Status|ASSIGNED|RESOLVED
 Resolution|--- |FIXED

--- Comment #3 from Martin Liška  ---
Fixed.

[Bug c++/89383] [9 Regression] libcpp/line-map.c:748:15: runtime error: shift exponent 32 is too large for 32-bit type 'unsigned int'

2019-02-18 Thread marxin at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=89383

--- Comment #2 from Martin Liška  ---
Author: marxin
Date: Mon Feb 18 09:46:19 2019
New Revision: 268981

URL: https://gcc.gnu.org/viewcvs?rev=268981=gcc=rev
Log:
Use 1UL constant in order to not overflow (PR c++/89383).

2019-02-18  Martin Liska  

PR c++/89383
* line-map.c (linemap_line_start): Use 1UL in order
to not overflow.

Modified:
trunk/libcpp/ChangeLog
trunk/libcpp/line-map.c

[Bug c++/89383] [9 Regression] libcpp/line-map.c:748:15: runtime error: shift exponent 32 is too large for 32-bit type 'unsigned int'

2019-02-18 Thread marxin at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=89383

Martin Liška  changed:

   What|Removed |Added

 Status|UNCONFIRMED |ASSIGNED
   Last reconfirmed||2019-02-18
  Known to work||8.2.0
   Assignee|unassigned at gcc dot gnu.org  |marxin at gcc dot 
gnu.org
 Ever confirmed|0   |1
  Known to fail||9.0

--- Comment #1 from Martin Liška  ---
Mine, I've got a patch.