* Compilation issue in ‘i18n.c’
@ 2009-09-23 22:15 Ludovic Courtès
2009-09-24 0:09 ` Mike Gran
0 siblings, 1 reply; 4+ messages in thread
From: Ludovic Courtès @ 2009-09-23 22:15 UTC (permalink / raw)
To: guile-devel
Hello Guilers!
I get this today:
--8<---------------cut here---------------start------------->8---
i18n.c: In function ‘scm_string_locale_downcase’:
i18n.c:1093: error: dereferencing pointer ‘c_downstr.217’ does break strict-aliasing rules
i18n.c:1097: error: dereferencing pointer ‘c_downstr.217’ does break strict-aliasing rules
i18n.c:1259: note: initialized from here
--8<---------------cut here---------------end--------------->8---
(GCC 4.4.1, x86_64-unknown-linux-gnu.)
Ideas?
Ludo’.
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Compilation issue in ‘i18n.c’
2009-09-23 22:15 Compilation issue in ‘i18n.c’ Ludovic Courtès
@ 2009-09-24 0:09 ` Mike Gran
2009-09-24 15:20 ` Mike Gran
0 siblings, 1 reply; 4+ messages in thread
From: Mike Gran @ 2009-09-24 0:09 UTC (permalink / raw)
To: Ludovic Courtès, guile-devel
> From: Ludovic Courtès <ludo@gnu.org>
>
> Hello Guilers!
>
> I get this today:
>
> --8<---------------cut here---------------start------------->8---
> i18n.c: In function ‘scm_string_locale_downcase’:
> i18n.c:1093: error: dereferencing pointer ‘c_downstr.217’ does break
> strict-aliasing rules
> i18n.c:1097: error: dereferencing pointer ‘c_downstr.217’ does break
> strict-aliasing rules
> i18n.c:1259: note: initialized from here
> --8<---------------cut here---------------end--------------->8---
Well, I touched it last in 27f3413eb8f505b8cab8850ea2f35139ea5707d2.
I was probably being lax in casting between signed and unsigned 32-bit
integers.
I don't get that error on my box, though.
I can try fixing it tonight.
-Mike
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Compilation issue in ‘i18n.c’
2009-09-24 0:09 ` Mike Gran
@ 2009-09-24 15:20 ` Mike Gran
2009-09-24 20:43 ` Ludovic Courtès
0 siblings, 1 reply; 4+ messages in thread
From: Mike Gran @ 2009-09-24 15:20 UTC (permalink / raw)
To: Ludovic Courtès; +Cc: guile-devel
On Wed, 2009-09-23 at 17:09 -0700, Mike Gran wrote:
> > From: Ludovic Courtès <ludo@gnu.org>
> >
> > Hello Guilers!
> >
> > I get this today:
> >
> > --8<---------------cut here---------------start------------->8---
> > i18n.c: In function ‘scm_string_locale_downcase’:
> > i18n.c:1093: error: dereferencing pointer ‘c_downstr.217’ does break
> > strict-aliasing rules
> > i18n.c:1097: error: dereferencing pointer ‘c_downstr.217’ does break
> > strict-aliasing rules
> > i18n.c:1259: note: initialized from here
> > --8<---------------cut here---------------end--------------->8---
>
> Well, I touched it last in 27f3413eb8f505b8cab8850ea2f35139ea5707d2.
>
> I was probably being lax in casting between signed and unsigned 32-bit
> integers.
>
> I don't get that error on my box, though.
>
> I can try fixing it tonight.
>
OK. I couldn't reproduce the warning, but, I hacked it up some.
Hopefully 2c48e4d5b7c5f33f8ddc2ce9c381c9f51ce7b579 made it better.
-Mike
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Compilation issue in ‘i18n.c’
2009-09-24 15:20 ` Mike Gran
@ 2009-09-24 20:43 ` Ludovic Courtès
0 siblings, 0 replies; 4+ messages in thread
From: Ludovic Courtès @ 2009-09-24 20:43 UTC (permalink / raw)
To: guile-devel
Hi,
Mike Gran <spk121@yahoo.com> writes:
On Wed, 2009-09-23 at 17:09 -0700, Mike Gran wrote:
> > From: Ludovic Courtès <ludo@gnu.org>
[...]
> > --8<---------------cut here---------------start------------->8---
> > i18n.c: In function ‘scm_string_locale_downcase’:
> > i18n.c:1093: error: dereferencing pointer ‘c_downstr.217’ does break
> > strict-aliasing rules
> > i18n.c:1097: error: dereferencing pointer ‘c_downstr.217’ does break
> > strict-aliasing rules
> > i18n.c:1259: note: initialized from here
> > --8<---------------cut here---------------end--------------->8---
[...]
> OK. I couldn't reproduce the warning, but, I hacked it up some.
> Hopefully 2c48e4d5b7c5f33f8ddc2ce9c381c9f51ce7b579 made it better.
It compiles happily now, thanks!
Ludo’.
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2009-09-24 20:43 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-09-23 22:15 Compilation issue in ‘i18n.c’ Ludovic Courtès
2009-09-24 0:09 ` Mike Gran
2009-09-24 15:20 ` Mike Gran
2009-09-24 20:43 ` Ludovic Courtès
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).