[Bug pch/45471] ICE with PCH and differening strict-aliasing settings

2021-10-12 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=45471

Andrew Pinski  changed:

   What|Removed |Added

   Target Milestone|--- |6.0
 Resolution|--- |FIXED
 Status|NEW |RESOLVED

--- Comment #5 from Andrew Pinski  ---
Fixed a different way than my patch. It was fixed by r6-5494 where
get_alias_set no longer depends on strict-aliasing.  This was done to fix the
attribute option fno-strict-aliasing (or fstrict-aliasing) case for functions.

[Bug pch/45471] ICE with PCH and differening strict-aliasing settings

2010-12-08 Thread zsojka at seznam dot cz
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45471

--- Comment #4 from Zdenek Sojka  2010-12-08 14:37:21 
UTC ---
(In reply to comment #3)

This patch indeed fixes the problem. (verified at r167585, x86_64-linux)


[Bug pch/45471] ICE with PCH and differening strict-aliasing settings

2010-09-30 Thread pinskia at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45471

Andrew Pinski  changed:

   What|Removed |Added

 Status|UNCONFIRMED |NEW
   Last reconfirmed||2010.09.30 23:02:19
 Ever Confirmed|0   |1

--- Comment #3 from Andrew Pinski  2010-09-30 
23:02:19 UTC ---
305  /* Make sure abi::__type_info_pseudo has the same alias set
306 as std::type_info.  */

Simple fix:
Index: c-pch.c
===
--- c-pch.c(revision 164815)
+++ c-pch.c(working copy)
@@ -47,6 +47,7 @@ static const struct c_pch_matching
   const char *flag_name;
 } pch_matching[] = {
   { &flag_exceptions, "-fexceptions" },
+  { &flag_strict_aliasing, "-fstrict-aliasing" },
 };

 enum {


[Bug pch/45471] ICE with PCH and differening strict-aliasing settings

2010-08-31 Thread zsojka at seznam dot cz


--- Comment #2 from zsojka at seznam dot cz  2010-08-31 23:16 ---
Created an attachment (id=21629)
 --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=21629&action=view)
reduced header file

#include 
can be replaced with:
namespace std { struct type_info { }; }

The second part of testcase is just:
- testcase.C -
#include "pr45471.h"
--

$ g++ -O2 pr45471.h
$ g++ -O2 pr45471.C -fno-strict-aliasing
pr45471.h: In constructor 'A< >::A() [with int  = 0]':
pr45471.h:12:13:   instantiated from here
pr45471.h:8:5: internal compiler error: in typeid_ok_p, at cp/rtti.c:311
Please submit a full bug report,
with preprocessed source if appropriate.
See  for instructions.


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45471



[Bug pch/45471] ICE with PCH and differening strict-aliasing settings

2010-08-31 Thread pinskia at gcc dot gnu dot org


--- Comment #1 from pinskia at gcc dot gnu dot org  2010-08-31 23:14 ---
The PCH should be rejected for the differences in strict-aliasing.


-- 

pinskia at gcc dot gnu dot org changed:

   What|Removed |Added

   Keywords||ice-on-valid-code
Summary|ICE: in typeid_ok_p, at |ICE with PCH and differening
   |cp/rtti.c:311 when using|strict-aliasing settings
   |precompiled headers |


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45471