This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Problem with insn-conditions.c
- From: Zack Weinberg <zack at codesourcery dot com>
- To: "Dave Korn" <dk at artimi dot com>
- Cc: "'Will Pugh'" <willpugh at gmail dot com>, <gcc at gcc dot gnu dot org>
- Date: Mon, 09 Aug 2004 08:46:38 -0700
- Subject: Re: Problem with insn-conditions.c
- References: <NUTMEG4sBSsDPL70s4q00000c75@NUTMEG.CAM.ARTIMI.COM>
"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