[Bug 1266348] Re: imacros command line breaks debugging information
Matthias Klose
doko at ubuntu.com
Thu Jun 12 08:42:34 UTC 2014
** Bug watch added: GCC Bugzilla #57653
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=57653
** Also affects: gcc via
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=57653
Importance: Unknown
Status: Unknown
** Package changed: gcc-defaults (Ubuntu) => gcc-4.8 (Ubuntu)
--
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to gcc-defaults in Ubuntu.
https://bugs.launchpad.net/bugs/1266348
Title:
imacros command line breaks debugging information
Status in The GNU Compiler Collection:
Unknown
Status in “gcc-4.8” package in Ubuntu:
New
Bug description:
Hello,
Currently, the gcc ubuntu package has a bug that comes from
upstream:
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=57653
The effect of the bug is if one compiles a file with the option -imacros,
the filename and all useful debugging information disappears. Here is a
simple example of that:
imacros-test$ cat somefile.c
#warning some warning
imacros-test$ cat macros.h
#define SOME_MACRO
imacros-test$ gcc -c somefile.c
somefile.c:1:2: warning: #warning some warning [-Wcpp]
#warning some warning
^
imacros-test$ gcc -c somefile.c -imacros macros.h
<command-line>:1:2: warning: #warning some warning [-Wcpp]
This also affects the debugging information embedded within the files,
rendering debugging pretty useless.
While I am aware this is a bug from upstream, it's been sitting there
for a while with a simple patch. It'd be nice to apply that patch on the
ubuntu package in the meantime.
Thanks!
ProblemType: Bug
DistroRelease: Ubuntu 13.10
Package: gcc 4:4.8.1-2ubuntu3
ProcVersionSignature: Ubuntu 3.8.0-19.30-generic 3.8.8
Uname: Linux 3.8.0-19-generic x86_64
ApportVersion: 2.12.5-0ubuntu2.2
Architecture: amd64
Date: Mon Jan 6 05:41:13 2014
MarkForUpload: True
ProcEnviron:
TERM=screen
PATH=(custom, no user)
LANG=en_US.UTF-8
SHELL=/bin/bash
SourcePackage: gcc-defaults
UpgradeStatus: Upgraded to saucy on 2013-10-19 (78 days ago)
To manage notifications about this bug go to:
https://bugs.launchpad.net/gcc/+bug/1266348/+subscriptions
More information about the foundations-bugs
mailing list