This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: getrlimit compatibility issues
- From: Jan Hubicka <hubicka at ucw dot cz>
- To: Richard Biener <rguenther at suse dot de>
- Cc: gcc at gcc dot gnu dot org, Jan Hubicka <hubicka at ucw dot cz>
- Date: Mon, 31 Aug 2015 13:44:00 +0200
- Subject: Re: getrlimit compatibility issues
- Authentication-results: sourceware.org; auth=none
- References: <alpine dot LSU dot 2 dot 11 dot 1508310931250 dot 4884 at zhemvz dot fhfr dot qr> <alpine dot LSU dot 2 dot 11 dot 1508311059480 dot 4884 at zhemvz dot fhfr dot qr>
> @@ -811,5 +806,9 @@ lto_symtab_prevailing_decl (tree decl)
> if (!ret)
> return decl;
>
> + /* Do not replace a non-builtin with a builtin. */
> + if (is_builtin_fn (ret->decl))
> + return decl;
> +
Yep, this looks like a resonable direction. It will break the one declaration
rule in a more wild sense than current frontends does so, because if a builtin
win as a prevailing declaration, we end up with no merging at all.
I wonder if we don't want to always prevail to first non-builtin variant?
(and yep, i need to push out the syntatctic aliases patch which will make
duplicated decls well behaved; will try to do so soonish)
Honza