This is the mail archive of the gcc@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] | |
Even if it were trivial to implement, I would vote against it, because it would encourage people to write non-compliant code.void foo(float *a) { int *b = (int*)a; // type-punning warning
// here, access to a and b shouldn't be optimized, as the compiler knows that a and b point to the same address
}
Is this reasonable?
| Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
|---|---|---|
| Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |