public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug preprocessor/44652] New: Column numbers in error messages are wrong
@ 2010-06-24 8:29 hariharans at picochip dot com
2010-06-24 8:30 ` [Bug preprocessor/44652] " hariharans at picochip dot com
` (3 more replies)
0 siblings, 4 replies; 8+ messages in thread
From: hariharans at picochip dot com @ 2010-06-24 8:29 UTC (permalink / raw)
To: gcc-bugs
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain, Size: 1203 bytes --]
If i compile the attached args.c, i get the following errror message in
mainline GCC.
In file included from args.c:2:0:
structdef.h:5:3: error: expected :, ,, ;, } or __attribute__ before
unsigned
Note that it says args.c:2:0. We used to use GCC 4.3.2, which used to only say
args.c:2. The extra ":0", which is supposed to represent column number, is just
wrong. In the attached test, the actual column number is "3". I am happy for
the compiler to not give any column number, but giving the wrong column number
looks wrong.
I saw this in picochip code, but i am guessing this is not specific to
picochip. Please let me know if you need any more information. Thanks
--
Summary: Column numbers in error messages are wrong
Product: gcc
Version: 4.6.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: preprocessor
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: hariharans at picochip dot com
GCC build triplet: i686-pc-linux-gnu
GCC host triplet: i686-pc-linux-gnu
GCC target triplet: picochip-unknown-none
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=44652
^ permalink raw reply [flat|nested] 8+ messages in thread
[parent not found: <bug-44652-4@http.gcc.gnu.org/bugzilla/>]
* [Bug preprocessor/44652] Column numbers in error messages are wrong
[not found] <bug-44652-4@http.gcc.gnu.org/bugzilla/>
@ 2021-09-02 1:48 ` pinskia at gcc dot gnu.org
2021-09-02 1:52 ` pinskia at gcc dot gnu.org
2021-09-02 2:07 ` pinskia at gcc dot gnu.org
2 siblings, 0 replies; 8+ messages in thread
From: pinskia at gcc dot gnu.org @ 2021-09-02 1:48 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=44652
Andrew Pinski <pinskia at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Known to fail| |7.5.0
--- Comment #5 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
So we don't display the column any more:
In file included from t.c:2:
structdef.h:5:3: error: expected ‘:’, ‘,’, ‘;’, ‘}’ or ‘__attribute__’ before
‘unsigned’
5 | unsigned int b:5;
| ^~~~~~~~
Let me figure out when it happened.
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug preprocessor/44652] Column numbers in error messages are wrong
[not found] <bug-44652-4@http.gcc.gnu.org/bugzilla/>
2021-09-02 1:48 ` pinskia at gcc dot gnu.org
@ 2021-09-02 1:52 ` pinskia at gcc dot gnu.org
2021-09-02 2:07 ` pinskia at gcc dot gnu.org
2 siblings, 0 replies; 8+ messages in thread
From: pinskia at gcc dot gnu.org @ 2021-09-02 1:52 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=44652
Andrew Pinski <pinskia at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Keywords| |diagnostic
--- Comment #6 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
We removed the column of 0 by r11-2092.
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug preprocessor/44652] Column numbers in error messages are wrong
[not found] <bug-44652-4@http.gcc.gnu.org/bugzilla/>
2021-09-02 1:48 ` pinskia at gcc dot gnu.org
2021-09-02 1:52 ` pinskia at gcc dot gnu.org
@ 2021-09-02 2:07 ` pinskia at gcc dot gnu.org
2 siblings, 0 replies; 8+ messages in thread
From: pinskia at gcc dot gnu.org @ 2021-09-02 2:07 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=44652
--- Comment #7 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
where = linemap_included_from (map);
map = linemap_included_from_linemap (line_table, map);
bool is_module = MAP_MODULE_P (map);
s.file = LINEMAP_FILE (map);
s.line = SOURCE_LINE (map, where);
int col = -1;
if (first && context->show_column)
{
s.column = SOURCE_COLUMN (map, where);
col = diagnostic_converted_column (context, s);
}
first is true so the column info must be missing from the preprocessor.
^ permalink raw reply [flat|nested] 8+ messages in thread
end of thread, other threads:[~2021-09-02 2:07 UTC | newest]
Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-06-24 8:29 [Bug preprocessor/44652] New: Column numbers in error messages are wrong hariharans at picochip dot com
2010-06-24 8:30 ` [Bug preprocessor/44652] " hariharans at picochip dot com
2010-06-24 8:31 ` hariharans at picochip dot com
2010-06-24 8:34 ` pinskia at gcc dot gnu dot org
2010-06-24 12:03 ` manu at gcc dot gnu dot org
[not found] <bug-44652-4@http.gcc.gnu.org/bugzilla/>
2021-09-02 1:48 ` pinskia at gcc dot gnu.org
2021-09-02 1:52 ` pinskia at gcc dot gnu.org
2021-09-02 2:07 ` pinskia at gcc dot gnu.org
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).