<feed xmlns='http://www.w3.org/2005/Atom'>
<title>llvm-project.git/clang/test/CodeGen/pointer-arithmetic.c, branch main</title>
<subtitle>Unnamed repository; edit this file 'description' to name the repository.
</subtitle>
<link rel='alternate' type='text/html' href='https://git.belthelziquor.com/llvm-project.git/'/>
<entry>
<title>Strengthen -Wint-conversion to default to an error</title>
<updated>2022-07-22T19:24:54+00:00</updated>
<author>
<name>Aaron Ballman</name>
<email>aaron@aaronballman.com</email>
</author>
<published>2022-07-22T19:24:54+00:00</published>
<link rel='alternate' type='text/html' href='https://git.belthelziquor.com/llvm-project.git/commit/?id=7068aa98412ade19a34b7ed126f4669f581b2311'/>
<id>7068aa98412ade19a34b7ed126f4669f581b2311</id>
<content type='text'>
Clang has traditionally allowed C programs to implicitly convert
integers to pointers and pointers to integers, despite it not being
valid to do so except under special circumstances (like converting the
integer 0, which is the null pointer constant, to a pointer). In C89,
this would result in undefined behavior per 3.3.4, and in C99 this rule
was strengthened to be a constraint violation instead. Constraint
violations are most often handled as an error.

This patch changes the warning to default to an error in all C modes
(it is already an error in C++). This gives us better security posture
by calling out potential programmer mistakes in code but still allows
users who need this behavior to use -Wno-error=int-conversion to retain
the warning behavior, or -Wno-int-conversion to silence the diagnostic
entirely.

Differential Revision: https://reviews.llvm.org/D129881
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Clang has traditionally allowed C programs to implicitly convert
integers to pointers and pointers to integers, despite it not being
valid to do so except under special circumstances (like converting the
integer 0, which is the null pointer constant, to a pointer). In C89,
this would result in undefined behavior per 3.3.4, and in C99 this rule
was strengthened to be a constraint violation instead. Constraint
violations are most often handled as an error.

This patch changes the warning to default to an error in all C modes
(it is already an error in C++). This gives us better security posture
by calling out potential programmer mistakes in code but still allows
users who need this behavior to use -Wno-error=int-conversion to retain
the warning behavior, or -Wno-int-conversion to silence the diagnostic
entirely.

Differential Revision: https://reviews.llvm.org/D129881
</pre>
</div>
</content>
</entry>
<entry>
<title>Congruent diagnostic for void* arithmetic.</title>
<updated>2010-09-13T06:50:07+00:00</updated>
<author>
<name>Abramo Bagnara</name>
<email>abramo.bagnara@gmail.com</email>
</author>
<published>2010-09-13T06:50:07+00:00</published>
<link rel='alternate' type='text/html' href='https://git.belthelziquor.com/llvm-project.git/commit/?id=3aabb4b452e563a382543f3d191ca3d1c036293e'/>
<id>3aabb4b452e563a382543f3d191ca3d1c036293e</id>
<content type='text'>
llvm-svn: 113740
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
llvm-svn: 113740
</pre>
</div>
</content>
</entry>
<entry>
<title>Update tests to use %clang_cc1 instead of 'clang-cc' or 'clang -cc1'.</title>
<updated>2009-12-15T20:14:24+00:00</updated>
<author>
<name>Daniel Dunbar</name>
<email>daniel@zuster.org</email>
</author>
<published>2009-12-15T20:14:24+00:00</published>
<link rel='alternate' type='text/html' href='https://git.belthelziquor.com/llvm-project.git/commit/?id=8fbe78f6fc7b41d1a4228c126fcb522131150518'/>
<id>8fbe78f6fc7b41d1a4228c126fcb522131150518</id>
<content type='text'>
 - This is designed to make it obvious that %clang_cc1 is a "test variable"
   which is substituted. It is '%clang_cc1' instead of '%clang -cc1' because it
   can be useful to redefine what gets run as 'clang -cc1' (for example, to set
   a default target).

llvm-svn: 91446
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
 - This is designed to make it obvious that %clang_cc1 is a "test variable"
   which is substituted. It is '%clang_cc1' instead of '%clang -cc1' because it
   can be useful to redefine what gets run as 'clang -cc1' (for example, to set
   a default target).

llvm-svn: 91446
</pre>
</div>
</content>
</entry>
<entry>
<title>Rename clang to clang-cc.</title>
<updated>2009-03-24T02:24:46+00:00</updated>
<author>
<name>Daniel Dunbar</name>
<email>daniel@zuster.org</email>
</author>
<published>2009-03-24T02:24:46+00:00</published>
<link rel='alternate' type='text/html' href='https://git.belthelziquor.com/llvm-project.git/commit/?id=a45cf5b6b0790e829ad47cf946c149d8f1007324'/>
<id>a45cf5b6b0790e829ad47cf946c149d8f1007324</id>
<content type='text'>
Tests and drivers updated, still need to shuffle dirs.

llvm-svn: 67602
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Tests and drivers updated, still need to shuffle dirs.

llvm-svn: 67602
</pre>
</div>
</content>
</entry>
<entry>
<title>eliminate some random .ll file outputs</title>
<updated>2009-01-27T18:56:08+00:00</updated>
<author>
<name>Chris Lattner</name>
<email>sabre@nondot.org</email>
</author>
<published>2009-01-27T18:56:08+00:00</published>
<link rel='alternate' type='text/html' href='https://git.belthelziquor.com/llvm-project.git/commit/?id=75441a3870fdd29668513b6978798f9d223e78c5'/>
<id>75441a3870fdd29668513b6978798f9d223e78c5</id>
<content type='text'>
llvm-svn: 63117
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
llvm-svn: 63117
</pre>
</div>
</content>
</entry>
<entry>
<title>Handle pointer arithmetic on function pointers.</title>
<updated>2009-01-23T18:51:09+00:00</updated>
<author>
<name>Daniel Dunbar</name>
<email>daniel@zuster.org</email>
</author>
<published>2009-01-23T18:51:09+00:00</published>
<link rel='alternate' type='text/html' href='https://git.belthelziquor.com/llvm-project.git/commit/?id=42a8cd37b23e6482f7a6f4c5264d0d39d680142e'/>
<id>42a8cd37b23e6482f7a6f4c5264d0d39d680142e</id>
<content type='text'>
 - &lt;rdar://problem/6518844&gt; Clang-generated bitcode crashes LLVM while compiling function pointer addition expression

llvm-svn: 62857
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
 - &lt;rdar://problem/6518844&gt; Clang-generated bitcode crashes LLVM while compiling function pointer addition expression

llvm-svn: 62857
</pre>
</div>
</content>
</entry>
<entry>
<title>Update a number of CodeGen tests to not create .ll files in the test</title>
<updated>2008-08-21T02:51:29+00:00</updated>
<author>
<name>Daniel Dunbar</name>
<email>daniel@zuster.org</email>
</author>
<published>2008-08-21T02:51:29+00:00</published>
<link rel='alternate' type='text/html' href='https://git.belthelziquor.com/llvm-project.git/commit/?id=19d84c3c51766ea618564af439188f349a4e87e8'/>
<id>19d84c3c51766ea618564af439188f349a4e87e8</id>
<content type='text'>
directory.
 - Removed .ll from the svn:ignore lists to try and prevent this.
 - Added svn:ignore on test/Misc/Output

llvm-svn: 55104
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
directory.
 - Removed .ll from the svn:ignore lists to try and prevent this.
 - Added svn:ignore on test/Misc/Output

llvm-svn: 55104
</pre>
</div>
</content>
</entry>
<entry>
<title>Remove broken assert from CodeGen. Better check is done in Sema.</title>
<updated>2007-12-26T05:21:37+00:00</updated>
<author>
<name>Seo Sanghyeon</name>
<email>sanxiyn@gmail.com</email>
</author>
<published>2007-12-26T05:21:37+00:00</published>
<link rel='alternate' type='text/html' href='https://git.belthelziquor.com/llvm-project.git/commit/?id=acb00f4a73f2ff4e5020b01eb9fbb06defc2612b'/>
<id>acb00f4a73f2ff4e5020b01eb9fbb06defc2612b</id>
<content type='text'>
llvm-svn: 45358
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
llvm-svn: 45358
</pre>
</div>
</content>
</entry>
<entry>
<title>Ignore typedefs in pointer arithmetic codegen.</title>
<updated>2007-12-03T06:23:43+00:00</updated>
<author>
<name>Seo Sanghyeon</name>
<email>sanxiyn@gmail.com</email>
</author>
<published>2007-12-03T06:23:43+00:00</published>
<link rel='alternate' type='text/html' href='https://git.belthelziquor.com/llvm-project.git/commit/?id=3d072bea09eac989a4cb231dca74d9816c93f70b'/>
<id>3d072bea09eac989a4cb231dca74d9816c93f70b</id>
<content type='text'>
llvm-svn: 44529
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
llvm-svn: 44529
</pre>
</div>
</content>
</entry>
</feed>
