This is the mail archive of the gcc-bugs@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]

[Bug tree-optimization/72787] Query related to gcc-4_6-branch fix for Bug-49279 (Getting issue with __restrict type qualifier)


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

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