This is the mail archive of the ecos-bugs@sourceware.org mailing list for the eCos 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]

[Bug 1001934] gcc 4.6.3-20120623 optimizes wrong


Please do not reply to this email, use the link below.

http://bugs.ecos.sourceware.org/show_bug.cgi?id=1001934

Juergen Lambrecht <J.Lambrecht@televic.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEEDINFO                    |MODIFIED

--- Comment #2 from Juergen Lambrecht <J.Lambrecht@televic.com> ---
(In reply to comment #1)
> Juergen
> 
> Thank you for pointing this out. I recommend you to report this question to
> GCC (you can put me or ecos-discuss mailing list or both in CC).

OK. The eCos toolchain is in my planning for 2014.

> 
> Few questions:
> 
>    - What optimizations have you used?
standard ecos: 
            default_value { CYGBLD_GLOBAL_WARNFLAGS . CYGBLD_ARCH_CFLAGS .
(CYGPKG_INFRA_DEBUG == 1 ? "-O0 " : "-O2 ") . 
                            "-mcpu=arm9tdmi -Winline -g -ffunction-sections
-fdata-sections -fno-rtti -fno-exceptions" }
(I only tested -O2)

application, here the complete command line (omiting all -I):
arm-eabi-gcc -Wall -Wpointer-arith -Wstrict-prototypes -Wundef 
-Wno-write-strings -mno-thumb-interwork -O2 -mcpu=arm9tdmi -Winline -g
-ffunction-sections -fdata-sections  -fno-exceptions -I[......]  -DLINUX -DECOS
-DHAVE_SOCKADDR_SA_LEN -DO_HAVE_CONVERSION -DTRAIN_CFG -c -o
obj/serialconsole.o -MT obj/serialconsole.o -MD -MP -MF
dep/../../../../apps/pr_7315/src/serialconsole.c.d
../../../../apps/pr_7315/src/serialconsole.c

>    - How does it beehive witg -O0?
>    - Can you try eCos GNU Tools 4.3.2?
This I will work on in the coming months

regards,
JÃrgen

>    - Can you isolate a test case?
> 
> Ilija

-- 
You are receiving this mail because:
You are the assignee for the bug.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]