On 03/06/2012 07:47 PM, Michael wrote: > > My full name is: Michael Hofmann > Thanks. I've now pushed the attached patch in your name.
I will try to take a look soonish at the failures you've reported. Thanks, Stefano
>From 00ff60772869d54918d6d8a055110d61bad86220 Mon Sep 17 00:00:00 2001 Message-Id: <00ff60772869d54918d6d8a055110d61bad86220.1331061469.git.stefano.lattar...@gmail.com> From: Michael Hofmannm <ho...@googlemail.com> Date: Mon, 5 Mar 2012 20:05:37 +0100 Subject: [PATCH] depcomp: add support for IBM xlc/xlC compilers * lib/depcomp (xlc): New depmode. * THANKS: Update. Copyright-paperwork-exempt: yes --- THANKS | 1 + lib/depcomp | 13 +++++++++++++ 2 files changed, 14 insertions(+), 0 deletions(-) diff --git a/THANKS b/THANKS index d6080e3..c9aaa80 100644 --- a/THANKS +++ b/THANKS @@ -238,6 +238,7 @@ Maxim Sinev g...@goods.ru Maynard Johnson mayna...@us.ibm.com Merijn de Jonge m.de.jo...@cwi.nl Michael Brantley michael-brant...@deshaw.com +Michael Hofmann mho...@googlemail.com Michael Ploujnikov plo...@gmail.com Michel de Ruiter mdrui...@cs.vu.nl Mike Castle dalg...@ix.netcom.com diff --git a/lib/depcomp b/lib/depcomp index 089f556..793b902 100755 --- a/lib/depcomp +++ b/lib/depcomp @@ -107,6 +107,12 @@ if test "$depmode" = msvc7msys; then depmode=msvc7 fi +if test "$depmode" = xlc; then + # IBM C/C++ Compilers xlc/xlC can output gcc-like dependency informations. + gccflag=-qmakedep=gcc,-MF + depmode=gcc +fi + case "$depmode" in gcc3) ## gcc 3 implements dependency tracking that does exactly what @@ -227,6 +233,13 @@ sgi) rm -f "$tmpdepfile" ;; +xlc) + # This case exists only to let depend.m4 do its work. It works by + # looking at the text of this script. This case will never be run, + # since it is checked for above. + exit 1 + ;; + aix) # The C for AIX Compiler uses -M and outputs the dependencies # in a .u file. In older versions, this file always lives in the -- 1.7.9