#719729 gcc-avr: Should allow poisoned identifier in #warning message

Package:
gcc-avr
Source:
gcc-avr
Description:
GNU C compiler (cross compiler for avr)
Submitter:
Simon Richter
Date:
2013-08-14 17:27:11 UTC
Severity:
normal
#719729#5
Date:
2013-08-14 17:18:07 UTC
From:
To:
Hi,

The code

#pragma GCC poison Ni
#warning We are the knights who say Ni!

fails to compile under gcc-avr (where an actual use case exists in the C
library) and mainline gcc. clang allows this.

IMO warning/error messages should not be scanned for poisoned tokens.

   Simon

- -- System Information:
Debian Release: 7.1
  APT prefers stable
  APT policy: (990, 'stable'), (500, 'unstable'), (1, 'experimental')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 3.10-2-amd64 (SMP w/8 CPU cores)
Locale: LANG=de_DE.UTF-8, LC_CTYPE=de_DE.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages gcc-avr depends on:
ii  binutils-avr  2.20.1-3
ii  libc6         2.17-92
ii  libgmp10      2:5.0.5+dfsg-2
ii  libmpc2       0.9-4
ii  libmpfr4      3.1.0-5
ii  zlib1g        1:1.2.7.dfsg-13

gcc-avr recommends no packages.

Versions of packages gcc-avr suggests:
ii  avr-libc      1:1.8.0-3
pn  gcc-4.2       <none>
pn  gcc-doc       <none>
pn  task-c-devel  <none>

- -- no debconf information
iJwEAQECAAYFAlILu84ACgkQ0sfeulffv7v0pgP/RM1PgustyEcTN19d6G9NaOVc
9Vp+DEGJt98BLbGvxwe3zWvQUlFx5mav91vcaUzaiYBO5tWWB+dkcUisst9qdXBW
h2/BBcS2Eq58fc9r4jCuCBAMqmlDwvV+5jL3xjEDXxMwym5DaV2zmgM8bDKK1F9K
bp0CY48Jq5IDp3S3jIY=
=X/Wl
-----END PGP SIGNATURE-----