Bug 716551 - Bad column number reported in warnings/errors; ignores -ftabstop
Summary: Bad column number reported in warnings/errors; ignores -ftabstop
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Fedora
Classification: Fedora
Component: gcc
Version: 15
Hardware: Unspecified
OS: Unspecified
unspecified
low
Target Milestone: ---
Assignee: Aravind vijayan
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2011-06-24 20:43 UTC by Enrico Scholz
Modified: 2011-09-06 11:28 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2011-09-06 11:28:31 UTC
Type: ---


Attachments (Terms of Use)

Description Enrico Scholz 2011-06-24 20:43:43 UTC
Description of problem:

The column number given out in warning and error messages is wrong when line contains tabs.

E.g.

  $ printf '\tvoid\ta;\n' > /tmp/x.c

  $ gcc /tmp/x.c
  /tmp/x.c:1:7: error: storage size of 'a' isn't known

  $ gcc -ftabstop=3 /tmp/x.c
  /tmp/x.c:1:7: error: storage size of 'a' isn't known

Expected column would be the position of 'a' (:1:16 with ftabstop=8)


Version-Release number of selected component (if applicable):

gcc-4.6.0-9.fc15.x86_64

Comment 1 Aravind vijayan 2011-09-06 11:28:31 UTC
I think -ftabstop= did something only in between 2000 and 2003
seems to be completely ignored since then.

Please go through:http://gcc.gnu.org/ml/gcc-patches/2003-04/msg01433.html

anyway, making -ftabstop= do something with the current libcpp code might be non-trivial and expensive, furthermore it is unclear what it should do e.g. when libcpp is changing some source charset into utf-8.








-- 
Fedora Bugzappers volunteer triage team
https://fedoraproject.org/wiki/BugZappers


Note You need to log in before you can comment on or make changes to this bug.