aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite
diff options
context:
space:
mode:
authorAndreas Jaeger <aj@gcc.gnu.org>2001-11-23 11:01:16 +0100
committerAndreas Jaeger <aj@gcc.gnu.org>2001-11-23 11:01:16 +0100
commite1e7d56bf1be024a7c5b08f98d5ea524cc5ad64f (patch)
treee30331aeeafe31dbc96305e0796708b4684534c6 /gcc/testsuite
parent56101178c86f22b17a462d8bc50429fbb0c850b5 (diff)
downloadgcc-e1e7d56bf1be024a7c5b08f98d5ea524cc5ad64f.zip
gcc-e1e7d56bf1be024a7c5b08f98d5ea524cc5ad64f.tar.gz
gcc-e1e7d56bf1be024a7c5b08f98d5ea524cc5ad64f.tar.bz2
cpplex.c (cpp_interpret_charconst): Use HOST_WIDE_INT for sign extension.
* cpplex.c (cpp_interpret_charconst): Use HOST_WIDE_INT for sign extension. * gcc.dg/cpp/charconst-2.c: New test. From-SVN: r47286
Diffstat (limited to 'gcc/testsuite')
-rw-r--r--gcc/testsuite/ChangeLog16
-rw-r--r--gcc/testsuite/gcc.dg/cpp/charconst-2.c18
2 files changed, 28 insertions, 6 deletions
diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog
index ac3dfc0..5105842b 100644
--- a/gcc/testsuite/ChangeLog
+++ b/gcc/testsuite/ChangeLog
@@ -1,3 +1,7 @@
+2001-11-23 Andreas Jaeger <aj@suse.de>
+
+ * gcc.dg/cpp/charconst-2.c: New test.
+
2001-11-22 Geoffrey Keating <geoffk@redhat.com>
* lib/old-dejagnu.exp (old-dejagnu): Copy extra source files
@@ -340,7 +344,7 @@ Mon Oct 29 21:19:53 2001 Nicola Pero <n.pero@mi.flashnet.it>
2001-09-27 Geoffrey Keating <geoffk@redhat.com>
* gcc.c-torture/execute/loop-2e.x: This is a manifestation of a
- long-standing bug on i686, apparently.
+ long-standing bug on i686, apparently.
* gcc.c-torture/execute/loop-2c.x: New file.
* gcc.c-torture/execute/loop-2d.x: New file.
* gcc.c-torture/execute/loop-3c.x: New file.
@@ -360,7 +364,7 @@ Mon Oct 29 21:19:53 2001 Nicola Pero <n.pero@mi.flashnet.it>
2001-09-24 DJ Delorie <dj@redhat.com>
* gcc.c-torture/execute/20010924-1.c: New test.
-
+
2001-09-24 Neil Booth <neil@daikokuya.demon.co.uk>
* testsuite/objc/execute/paste.m: Remove.
@@ -408,7 +412,7 @@ Mon Oct 29 21:19:53 2001 Nicola Pero <n.pero@mi.flashnet.it>
2001-09-15 Aldy Hernandez <aldyh@redhat.com>
- * gcc.c-torture/execute/980223.c: Change type of addr from long
+ * gcc.c-torture/execute/980223.c: Change type of addr from long
to char *.
2001-09-15 Hans-Peter Nilsson <hp@axis.com>
@@ -474,7 +478,7 @@ Mon Oct 29 21:19:53 2001 Nicola Pero <n.pero@mi.flashnet.it>
2001-09-05 Ziemowit Laski <zlaski@apple.com>
* objc.dg/method-2.m: New.
-
+
2001-09-04 Nathan Sidwell <nathan@codesourcery.com>
PR c++/4203
@@ -566,8 +570,8 @@ Mon Oct 29 21:19:53 2001 Nicola Pero <n.pero@mi.flashnet.it>
2001-08-14 David Billinghurst <David.Billinghurst@riotinto.com>
* lib/g77-dg.exp: Use prune.exp for common procedures
- (g77-dg-prune): Replace prune_g77_output with prune_gcc_output
- * lib/g77.exp: (g77-dg-prune) Remove
+ (g77-dg-prune): Replace prune_g77_output with prune_gcc_output
+ * lib/g77.exp: (g77-dg-prune) Remove
2001-08-13 Jason Merrill <jason_merrill@redhat.com>
diff --git a/gcc/testsuite/gcc.dg/cpp/charconst-2.c b/gcc/testsuite/gcc.dg/cpp/charconst-2.c
new file mode 100644
index 0000000..7ee0cfb
--- /dev/null
+++ b/gcc/testsuite/gcc.dg/cpp/charconst-2.c
@@ -0,0 +1,18 @@
+/* Copyright (C) 2001 Free Software Foundation, Inc. */
+
+/* { dg-do compile } */
+
+/* Crosscompiling from i686-linux (32-bit) to x86_64-linux (64-bit)
+ gave extra warnings on the two assignments:
+ warning: large integer implicitly truncated to unsigned type
+ warning: overflow in implicit constant conversion
+ This test has been added as a regression test after fixing the bug
+ by Andreas Jaeger, 23 Nov 2001. */
+int
+main (void)
+{
+ signed char c = '\xff';
+ unsigned char d = '\xff';
+
+ return 0;
+}