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: Problem with insn-conditions.c


"Dave Korn" <dk@artimi.com> writes:

>> > Have other people run into this problem?  I fixed it by just having
>> > genconditions.c escape \r (although it might have been a better idea
>> > to just have it ignore \r)
>> 
>> I'm not sure whether that's the right fix.  
>
>   I think this situation is almost certainly NAB and need not be fixed.
> However, in accordance with the generous-in-what-you-accept principle, maybe
> init_md_reader (in gensupport.c) could simply open the source file in
> textmode just in case it's been accidentally translated?

I think it's already doing that...

$ grep fopen gensupport.c
          input_file = fopen (pathname, "r");
  input_file = fopen (pathname, "r");
  input_file = fopen (filename, "r");

zw


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