[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [bug-mailutils] Strange rfc2047_decode behavior if -Os used during c

From: Anthony Quinn
Subject: Re: [bug-mailutils] Strange rfc2047_decode behavior if -Os used during compile
Date: Wed, 14 Jul 2004 10:33:42 -0400

gcc (GCC) 3.2.2 20030222 (Red Hat Linux 3.2.2-5)
Copyright (C) 2002 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO

Mailutils version 0.3.  I have not tried version 0.5 yet.  

compile flags used  -fstrength-reduce -Os -foptimize-sibling-calls

instead of using -Os we tried -O2 and that worked fine.  AFAIK the main
difference with -Os and -O2 is optimizations that effect code size are
enabled.  It's not that big of a deal the -Os reduces the size down to 230K
from 250K with -O2.  I can live with 20K larger library size but I wonder
if there is a problem in gcc with the -Os flag that would cause strange
errors to occur in other packages compiled using this optimization?

-Anthony Quinn
M & A Technical Lead

----------------- Original Message -----------------
From: Sergey Poznyakoff <address@hidden>
Date: Wed, 14 Jul 2004 11:13:34 +0300

Anthony Quinn <address@hidden> wrote:

> I just ran into an issue:
> rfc2047_decode would not convert =20 into a space.  I have traced this
> behavior down to the use of -Os or any optimizing flags when compiling
> mailutils.

What version of gcc are you using?

> Basically if I compile mailutils with out any optimization
> flags it works fine rfc2047_decode will decode the quote printable string
> correctly with optimization flags it breaks.  This only seems to effect
> not sure why I have not had much time to dig into the code. 

There is no special handling for =20 in filter_trans.c, all hex
codes after '=' are handled by a single piece of code.


This message contains confidential information and is intended only for the
individual named. If you are not the named addressee you should not
disseminate, distribute or copy this e-mail. Please notify the sender
immediately by e-mail if you have received this e-mail by mistake then
delete this e-mail from your system.

reply via email to

[Prev in Thread] Current Thread [Next in Thread]