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: [Bug c++/47791] finish function is using literal value instead of a #defined one


Hello Everyone,
   Here is a patch to fix this bug. Please let me know if it is OK for
me to commit this into trunk.

Here is the Changelog entry:

=======================================================
2012-01-28  Balaji V. Iyer  <bviyer@gmail.com>

	* optimize.c (maybe_clone_body): Replace '0' in finish_function
	parameter with "FF_DEFAULT."
	* decl.c (end_cleanup_fn): Likewise.
	* method.c (synthesize_method): Likewise.
	* pt.c (instantiate_decl): Likewise.
	* decl2.c (finish_objects): Likewise.
	(finish_static_storage_duration_function): Likewise.
	* parser.c (cp_parser_lambda_body): Replaced all occurances of '0', '1',
	and '2' in finish_function parameters with "FF_DEFAULT,"
	"FF_PRE_PARSED," and "FF_INCLASS_INLINE," respectively.
	* semantics.c (maybe_add_lambda_conv_op): Replaced '2' in
	finish_function with "FF_INCLASS_INLINE."
	* cp-tree.h: Added FF_DEFAULT, FF_PRE_PARSED and FF_INCLASS_INLINE.

========================================================

Thanks,

Balaji V. Iyer.



On Sat, Jan 28, 2012 at 12:56 AM, pinskia at gcc dot gnu.org
<gcc-bugzilla@gcc.gnu.org> wrote:
> http://gcc.gnu.org/bugzilla/show_bug.cgi?id=47791
>
> Andrew Pinski <pinskia at gcc dot gnu.org> changed:
>
> ? ? ? ? ? What ? ?|Removed ? ? ? ? ? ? ? ? ? ? |Added
> ----------------------------------------------------------------------------
> ? ? ? ? ? ? Status|UNCONFIRMED ? ? ? ? ? ? ? ? |NEW
> ? Last reconfirmed| ? ? ? ? ? ? ? ? ? ? ? ? ? ?|2012-01-28
> ? ? ? ? ? ?Summary|finish function is using ? ?|finish function is using
> ? ? ? ? ? ? ? ? ? |absolute value instead of ? |literal value instead of a
> ? ? ? ? ? ? ? ? ? |the #defined one ? ? ? ? ? ?|#defined one
> ? ? Ever Confirmed|0 ? ? ? ? ? ? ? ? ? ? ? ? ? |1
>
> --- Comment #2 from Andrew Pinski <pinskia at gcc dot gnu.org> 2012-01-28 05:56:07 UTC ---
> Confirmed,
>
> --
> Configure bugmail: http://gcc.gnu.org/bugzilla/userprefs.cgi?tab=email
> ------- You are receiving this mail because: -------
> You reported the bug.

Attachment: finish_function_patch.txt
Description: Text document


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