This is the mail archive of the gcc-patches@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: RFA: Fix pch/system-1.c failures for systems with non-trivial BUILD_VA_LIST_TYPE


Joern Rennecke wrote:-

>     if (filename)
>       {
>         add_name_attribute (die, filename);
> !       if (filename[0] != DIR_SEPARATOR)
>   	add_comp_dir_attribute (die);
>       }
>   
> --- 11491,11497 ----
>     if (filename)
>       {
>         add_name_attribute (die, filename);
> !       if (filename[0] != DIR_SEPARATOR && strcmp (filename, "<built-in>") != 0)
>   	add_comp_dir_attribute (die);
>       }

Comparing strings to <built-in> is always a bug.  Is your whole patch
really the right fix?

Neil.


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