← Back to team overview

touch-packages team mailing list archive

[Bug 1266348]

 

Author: rguenth
Date: Thu Feb 12 09:48:56 2015
New Revision: 220642

URL: https://gcc.gnu.org/viewcvs?rev=220642&root=gcc&view=rev
Log:
2015-02-11  Richard Biener  <rguenther@xxxxxxx>

	Backport from mainline
	2014-07-24  Marek Polacek  <polacek@xxxxxxxxxx>

	PR c/57653
	* c-opts.c (c_finish_options): If -imacros is in effect, return.

Modified:
    branches/gcc-4_8-branch/gcc/c-family/ChangeLog

-- 
You received this bug notification because you are a member of Ubuntu
Touch seeded packages, which is subscribed to gcc-4.8 in Ubuntu.
https://bugs.launchpad.net/bugs/1266348

Title:
  imacros command line breaks debugging information

Status in The GNU Compiler Collection:
  Fix Released
Status in gcc-4.8 package in Ubuntu:
  New
Status in gcc-4.9 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