This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: RTEMS FORTRAN Pattern Failures


On 1/12/2015 10:30 AM, Andreas Schwab wrote:
> Joel Sherrill <joel.sherrill@oarcorp.com> writes:
>
>> FAIL: gfortran.dg/g77/f77-edit-x-out.f  -Os  output pattern test, is 1 2  3
>> 1 2  3
>>
>> , should match ^1 2  3(
>> |
>> |)1 2  3(
>> |
>> |)$
> Where is the \r gone?  The pattern has (\n|\r\n|\r).
I am not exactly sure what you mean but when I run the test
by itself from the command and redirect the output to a file,
this is what the output looks like:

0000000    2031    2032    3320    0a0d    2031    2032    3320    0a0d
0000000   1       2           3  \r  \n   1       2           3  \r  \n
0000010    0a0d    2a2a    202a    5845    5449    6320    646f    2065
0000010  \r  \n   *   *   *       E   X   I   T       c   o   d   e   
0000020    0d30    000a                                               
0000020   0  \r  \n                                                   
0000023

It looks like we have \r\n at the end of each line.

Is it possible it is not CR/LF but the EXIT code message confusing the
pattern?



> Andreas.
>

-- 
Joel Sherrill, Ph.D.             Director of Research & Development
joel.sherrill@OARcorp.com        On-Line Applications Research
Ask me about RTEMS: a free RTOS  Huntsville AL 35805
Support Available                (256) 722-9985



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]