Your message dated Wed, 27 Jun 2012 13:50:53 +0000
with message-id <[email protected]>
and subject line Bug#679123: fixed in tcc 0.9.26~git20120612.ad5f375-4
has caused the Debian Bug report #679123,
regarding tcc: Incorrect shift result type with 64-bit ABI
to be marked as done.
This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.
(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [email protected]
immediately.)
--
679123: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=679123
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Package: tcc
Version: 0.9.26~git20120612.ad5f375-3
Severity: important
Forwarded:
http://lists.nongnu.org/archive/html/tinycc-devel/2012-06/msg00037.html
The behavior on the following program is incorrect with tcc:
#include <stdio.h>
#define M1 (1 << (int) 1)
#define M2 (1 << (unsigned int) 1)
#define M3 (1 << (long) 1)
#define M4 (1 << (unsigned long) 1)
#define M5 (1 << (long long) 1)
#define M6 (1 << (unsigned long long) 1)
#define OUT(M) \
printf ("%d %s\n", (int) sizeof(M), -M < 0 ? "signed" : "unsigned")
int main (void)
{
OUT(M1);
OUT(M2);
OUT(M3);
OUT(M4);
OUT(M5);
OUT(M6);
return 0;
}
ISO C99 TC3 says: [6.5.7#3] "The integer promotions are performed on
each of the operands. The type of the result is that of the promoted
left operand."
Thus the type of the shift result should be int in the 6 cases.
Correct behavior (with gcc):
4 signed
4 signed
4 signed
4 signed
4 signed
4 signed
Incorrect behavior (with tcc):
4 signed
4 unsigned
8 signed
8 unsigned
8 signed
8 unsigned
-- System Information:
Debian Release: wheezy/sid
APT prefers unstable
APT policy: (500, 'unstable'), (500, 'testing'), (500, 'stable'), (1,
'experimental')
Architecture: amd64 (x86_64)
Kernel: Linux 3.2.0-2-amd64 (SMP w/8 CPU cores)
Locale: LANG=POSIX, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Versions of packages tcc depends on:
ii dpkg 1.16.4.3
ii install-info 4.13a.dfsg.1-10
ii libc6 2.13-33
Versions of packages tcc recommends:
ii libc6-dev [libc-dev] 2.13-33
tcc suggests no packages.
-- no debconf information
--- End Message ---
--- Begin Message ---
Source: tcc
Source-Version: 0.9.26~git20120612.ad5f375-4
We believe that the bug you reported is fixed in the latest version of
tcc, which is due to be installed in the Debian FTP archive:
libtcc-dev_0.9.26~git20120612.ad5f375-4_amd64.deb
to main/t/tcc/libtcc-dev_0.9.26~git20120612.ad5f375-4_amd64.deb
tcc_0.9.26~git20120612.ad5f375-4.debian.tar.gz
to main/t/tcc/tcc_0.9.26~git20120612.ad5f375-4.debian.tar.gz
tcc_0.9.26~git20120612.ad5f375-4.dsc
to main/t/tcc/tcc_0.9.26~git20120612.ad5f375-4.dsc
tcc_0.9.26~git20120612.ad5f375-4_amd64.deb
to main/t/tcc/tcc_0.9.26~git20120612.ad5f375-4_amd64.deb
A summary of the changes between this version and the previous one is
attached.
Thank you for reporting the bug, which will now be closed. If you
have further comments please address them to [email protected],
and the maintainer will reopen the bug report if appropriate.
Debian distribution maintenance software
pp.
Thomas Preud'homme <[email protected]> (supplier of updated tcc package)
(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing [email protected])
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Format: 1.8
Date: Wed, 27 Jun 2012 15:14:25 +0200
Source: tcc
Binary: tcc libtcc-dev
Architecture: source amd64
Version: 0.9.26~git20120612.ad5f375-4
Distribution: unstable
Urgency: low
Maintainer: Aurélien GÉRÔME <[email protected]>
Changed-By: Thomas Preud'homme <[email protected]>
Description:
libtcc-dev - fast library for dynamic code generation
tcc - small ANSI C compiler
Closes: 679123
Changes:
tcc (0.9.26~git20120612.ad5f375-4) unstable; urgency=low
.
* debian/patches:
+ Cherry-pick patch fixing incorrect shift result type (Closes: #679123).
* debian/control:
+ Update Vcs-Browser URL.
Checksums-Sha1:
2b39dda4c4c198c3c5530055433dd6e7fc03c658 2129
tcc_0.9.26~git20120612.ad5f375-4.dsc
1c4b87af06ad140146fcdc7c383be22c539863c4 13330
tcc_0.9.26~git20120612.ad5f375-4.debian.tar.gz
d15e219e8f63b3f238c4eba088aa8a9d8b633e21 156796
tcc_0.9.26~git20120612.ad5f375-4_amd64.deb
65761095b67f9f8f993418ae2d86f7212a26b791 135842
libtcc-dev_0.9.26~git20120612.ad5f375-4_amd64.deb
Checksums-Sha256:
a00a0f9d84807f35ca90d147b238d7d6dbdaf04ae3b146bdc08106a659425e3f 2129
tcc_0.9.26~git20120612.ad5f375-4.dsc
a5581ca8bac43adb8db656377b8b0f8831d01bd5a274c01639a41542a41c9549 13330
tcc_0.9.26~git20120612.ad5f375-4.debian.tar.gz
600d1618ebdf54a9291d11d6a491b634ce61a0c8887a643c12aa4ac46d77955a 156796
tcc_0.9.26~git20120612.ad5f375-4_amd64.deb
df91c3fe665d8dd5a5d7d8438bcfef4e0410df39ba1c1318285340557e6f5c10 135842
libtcc-dev_0.9.26~git20120612.ad5f375-4_amd64.deb
Files:
72fe75902a7496cb83ef2962e886050e 2129 devel optional
tcc_0.9.26~git20120612.ad5f375-4.dsc
bec8be0c19ed13189258b1bf1c73ec85 13330 devel optional
tcc_0.9.26~git20120612.ad5f375-4.debian.tar.gz
a82e23fbcab11b8fc039e99ddce5ecb3 156796 devel optional
tcc_0.9.26~git20120612.ad5f375-4_amd64.deb
c6b9ba10cd21b4ff7913ab5cabdacd7a 135842 libdevel optional
libtcc-dev_0.9.26~git20120612.ad5f375-4_amd64.deb
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.12 (GNU/Linux)
iQIcBAEBAgAGBQJP6we6AAoJENADhS+9UlKemFcQALgCsGSwtbDWF/ZqC3cAQQxp
MuO8P0olqJs4YBt7xgD+xl/5YB0FviYKQsM99fCcmXaToop0xaZXyVaaK2J9s/1J
D/clTV07Yy4IyRgtP17NMj/jA/Gg2wFmbNwyJhSb06156JpdwxCS/O7q6AIbOpFP
Tb00RkgtIdWYIAfLk1PgPR3I53LWCW/wYDLuWPtSWUf9wCibRsSOfL5JVu83Ix3F
LQaGOO5M6umO3JG7k6/SJuZsD1HC9tM9/LqZ5HneNoV2a13rZ4I/xY0geErAQQNJ
RFEUszrQswcyVPnyGKrMLX93t4hYqV8x/Y6EfcQ2EymJEbkf2qT5sCTn9JdRCMOK
t8IrPZrC1oJ4XEkSIfkWDSOAO7nKSW7ELaeVkXwPQnlnOI8bIe2/LamFUwcS+jwX
fK0Jn9me6w8T5p6vKZ+me1YsydaknoQk34WJvLeJsQw9j54CFX8v4tlgk3yEpKl+
3tjomgA0/dezPnfg7lsY3GUnb2XDfH+QkxM7nflIUBWj66bjKZPXkp+IUnnvC43d
OdLWznMXfDdAGAxkDeI41mF5WippBoy/lYsnfjiywE5Mbfpk/VkB7dZXU0jgQK+T
aNX4JS4EGQNHutqNH0Ngn8SUIPJP4MHBUkwK4Gw2I44F0RL2qg+FR9lqBxIdUkyt
uyF51kIDMfqCxXxLoSqf
=7zpJ
-----END PGP SIGNATURE-----
--- End Message ---