Bug 716551

Summary: Bad column number reported in warnings/errors; ignores -ftabstop
Product: [Fedora] Fedora Reporter: Enrico Scholz <rh-bugzilla>
Component: gccAssignee: Aravind vijayan <aravindvijayan224185>
Status: CLOSED NOTABUG QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: low Docs Contact:
Priority: unspecified    
Version: 15CC: aravindvijayan224185, jakub
Target Milestone: ---Keywords: Triaged
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2011-09-06 11:28:31 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

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