Skip to content
Tcl Source Code View Ticket
Login

View Ticket

2004-11-12
03:21 • Closed ticket [918871ffff]: -Wno-strict-aliasing woes plus 6 other changes artifact: 853709e799 user: hobbs
2004-09-09
21:44 • Ticket [918871ffff]: 4 changes artifact: a7bf30fe33 user: dgp
2004-07-20
07:15 • Ticket [918871ffff]: 6 changes artifact: 2800aa0c4a user: hobbs
2004-03-20
02:17 • Ticket [918871ffff]: 4 changes artifact: f3b3eb40c8 user: dgp
02:17 • Ticket [918871ffff]: 1 change artifact: 8e0bf99c36 user: dgp
2004-03-19
01:39 • Add attachment gcc3.3-strict-aliasing.patch to ticket [918871ffffffffff... artifact: 0769d8b4cf user: rmax
01:39 • Ticket [918871ffff] -Wno-strict-aliasing woes status still Open with 4 other... artifact: 5ddddc7925 user: rmax
2004-03-18
16:32 • New ticket [918871ffff]. artifact: c73267a828 user: dgp

-Wno-strict-aliasing woes

Closed / Fixed918871ffffffffffffffffffffffffffffffffffCreated 23 years agoUpdated 22 years ago
Descriptionplain2004-03-18 16:32:35
None of
   gcc version egcs-2.91.66 (egcs-1.1.2 release)
   gcc version 2.95.3
   gcc version 3.2.3
will tolerate the new -Wno-strict-aliasing option.

They all currently fail to compile the HEAD.

Change the option to -fno-strict-aliasing
(which rmax claims is preferred) and all
of them are happy again.
rmaxplain2004-03-19 01:39:00
File Added - 80563: gcc3.3-strict-aliasing.patch

Logged In: YES 
user_id=124643

The attached patch fixes the 11 warnings I got when I
compiled HEAD with gcc-3.3.3 today.
8 of them were related to TclpTime_t which is unneeded and
will be removed by this patch. The other three warnings are
being worked around by using temporary pointers instead of
passing addresses to the respective functions directly. I
guess, that most optimizers are able eliminate this
temporaries, so it won't affect performance, but they are
not in performance-critical sections anyways.
dgp Ticket [918871ffff]: 1 change [History diff]2004-03-20 02:17:34
dgpplain2004-03-20 02:17:35
Logged In: YES 
user_id=80530


rmax can close this when he's
satisfied the HEAD is working again.
hobbsplain2004-07-20 07:15:16
Logged In: YES 
user_id=72656

this has been applied to Tcl/Tk-8.4 and Tk-8.5.  Tcl 8.5 was
type-pune safe, but some new changes in Tcl 8.5 need more
corrections.
dgpplain2004-09-09 21:44:40
Logged In: YES 
user_id=80530

status?
hobbsplain2004-11-12 03:21:27
Logged In: YES 
user_id=72656

As new code is added, this is constantly something to watch
for.  I'm closing this to allow other specific reports to be
opened.
Log in (anonymous is fine) to add a comment.

Attachments: