This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug tree-optimization/72787] Query related to gcc-4_6-branch fix for Bug-49279 (Getting issue with __restrict type qualifier)
- From: "ranjan.winner at gmail dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Wed, 03 Aug 2016 14:16:10 +0000
- Subject: [Bug tree-optimization/72787] Query related to gcc-4_6-branch fix for Bug-49279 (Getting issue with __restrict type qualifier)
- Auto-submitted: auto-generated
- References: <bug-72787-4@http.gcc.gnu.org/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=72787
--- Comment #3 from martin <ranjan.winner at gmail dot com> ---
(In reply to Richard Biener from comment #1)
> You can't rely on __builtin_object_size this way, please look up its
> documentation.
Hi Richard,
Sorry, can you kindly throw some more pointers over this.
Here is the link for gcc document on object-size-Checking:
https://gcc.gnu.org/onlinedocs/gcc/Object-Size-Checking.html
Also some pointer over my Query:-
Why for gcc-4.6 changes with tree-ssa.c file are omitted but not in gcc-4.7
branch
NOTE: For gcc-4_6-branch where change in file "gcc/tree-ssa.c" is not
considered as:
/* Do not lose casts to restrict qualified pointers. */
- if ((TYPE_RESTRICT (outer_type)
- != TYPE_RESTRICT (inner_type))
- && TYPE_RESTRICT (outer_type))
- return false;
Thanks for your reply.
Best Regards,
Martin