Re: -x assembler-with-cpp behavior different on different unixes.

2014-08-11 Thread Rainer Orth
Hi Karel, >>> With Solaris 9 support gone on mainline, this can be revisited now, but >>> this won't change anything for released versions. >> >> What shall I do for this to be at least considered? > > Nothing: it's already on my agenda to fix this for 4.10/5.0, thanks to > your report :-) The on

Re: -x assembler-with-cpp behavior different on different unixes.

2014-08-09 Thread Richard Sandiford
Rainer Orth writes: >>> Apart from that, why are you invoking gcc with -x assembler-with-cpp >>> when the input is clearly anything but assembler input? You're >>> obviously lying to the compiler, and I'd go as far as claiming that you >>> get what you deserve: garbage in, garbage out. >> >> :-)

Re: -x assembler-with-cpp behavior different on different unixes.

2014-08-08 Thread Rainer Orth
Hi Karel, > On Fri, Aug 8, 2014 at 11:04 PM, Rainer Orth > wrote: >> Hi Karel, >> >>> More information: It looks like gcc driver invokes cc1 with -P option >>> which switches off linemakers on Solaris. On Linux cc1 is invoked >>> without -P and so linemakers are presented. The question is why on

Re: -x assembler-with-cpp behavior different on different unixes.

2014-08-08 Thread Karel Gardas
Hi Rainer, On Fri, Aug 8, 2014 at 11:04 PM, Rainer Orth wrote: > Hi Karel, > >> More information: It looks like gcc driver invokes cc1 with -P option >> which switches off linemakers on Solaris. On Linux cc1 is invoked >> without -P and so linemakers are presented. The question is why on >> Solar

Re: -x assembler-with-cpp behavior different on different unixes.

2014-08-08 Thread Rainer Orth
Hi Karel, > More information: It looks like gcc driver invokes cc1 with -P option > which switches off linemakers on Solaris. On Linux cc1 is invoked > without -P and so linemakers are presented. The question is why on > Solaris -P is added to the options since I don't use it myself. It's > insert

Re: -x assembler-with-cpp behavior different on different unixes.

2014-08-08 Thread Karel Gardas
More information: It looks like gcc driver invokes cc1 with -P option which switches off linemakers on Solaris. On Linux cc1 is invoked without -P and so linemakers are presented. The question is why on Solaris -P is added to the options since I don't use it myself. It's inserted by gcc itself...

-x assembler-with-cpp behavior different on different unixes.

2014-08-08 Thread Karel Gardas
Hello, GHC (Haskell compiler) is using builtin gcc's cpp for its cpp capability. The problem is a little bit different behaviour on different platform which I observed. As one of GHC's testcases completely unrelated to gcc's cpp we use: {-# LANGUAGE CPP #-} module T7145b ( A.Applicative(pure) ) w