This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug preprocessor/14438] New: -E of #pragma poison has negative line number


A i686-pc-linux-gnu compiler built from 
  gcc-3.4-20040303.tar.bz2
exhibits this:

echo "#pragma GCC poison foo" > _dummy.c
gcc -E -nostdinc _dummy.c
  # 1 "_dummy.c"
  # 1 "<built-in>"
  # 1 "<command line>"
  # 1 "_dummy.c"       
  # 4294967218 "_dummy.c"

Umm, ah, line number 4294967218 ? This bug was brought to my attention by GAS,
when it said:
   line numbers must be positive; line number -15 rejected

The bug is in GCC-3.3.2 but isn't in 3.3.1.

-- 
           Summary: -E of #pragma poison has negative line number
           Product: gcc
           Version: 3.4.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: preprocessor
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: lindsayd at cisco dot com
                CC: gcc-bugs at gcc dot gnu dot org
  GCC host triplet: i686-pc-linux-gnu
GCC target triplet: native


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]