public inbox for gcc-patches@gcc.gnu.org
 help / color / mirror / Atom feed
* Question on -fwrapv and -fwrapv-pointer
@ 2023-09-14 13:41 Qing Zhao
  2023-09-14 14:06 ` Richard Biener
  0 siblings, 1 reply; 25+ messages in thread
From: Qing Zhao @ 2023-09-14 13:41 UTC (permalink / raw)
  To: gcc Patches

Hi,

I have several questions on these options:

1.are pointers treated as signed integers in general? (I thought that pointers are addresses to the memory, should be treated as unsigned integer…)
2. If Yes, why? 
3. why a separate option for pointesr -fwrapv-pointer in addition to -fwrapv if they are treated as signed integers?

Thanks for your help.

Qing


^ permalink raw reply	[flat|nested] 25+ messages in thread

end of thread, other threads:[~2024-02-15 23:31 UTC | newest]

Thread overview: 25+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-09-14 13:41 Question on -fwrapv and -fwrapv-pointer Qing Zhao
2023-09-14 14:06 ` Richard Biener
2023-09-14 15:01   ` Qing Zhao
2023-09-14 15:12     ` Richard Biener
2023-09-14 15:57       ` Qing Zhao
2023-09-14 16:18         ` Xi Ruoyao
2023-09-14 20:48           ` Qing Zhao
2023-09-14 20:57             ` Andrew Pinski
2023-09-14 21:41               ` Qing Zhao
2023-09-15  7:43                 ` Xi Ruoyao
2023-09-15 15:12                   ` Qing Zhao
2023-09-15 15:18                     ` Andrew Pinski
2023-09-15 18:34                       ` Kees Cook
2023-09-15 12:41                 ` Arsen Arsenović
2023-09-15 15:24                   ` Qing Zhao
2023-09-15 15:29                     ` Richard Biener
2023-09-15 15:37                       ` Qing Zhao
2023-09-15 16:53                         ` Xi Ruoyao
2023-09-15 17:56                           ` Qing Zhao
2023-09-15 17:26                         ` Richard Biener
2023-09-15 17:47                           ` Qing Zhao
2023-09-15 18:43                             ` Kees Cook
2024-02-15  8:32                               ` Fangrui Song
2024-02-15 23:31                                 ` Kees Cook
2023-09-15  0:23               ` Kees Cook

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).