Bug 5012

Summary: Why must glibc be compiled with optimizations enabled?
Product: glibc Reporter: Carlos O'Donell <carlos>
Component: adminAssignee: Carlos O'Donell <carlos>
Status: RESOLVED FIXED    
Severity: normal CC: 0xe2.0x9a.0x9b, aj, carlos, glibc-bugs, roland
Priority: P2 Flags: fweimer: security-
Version: unspecified   
Target Milestone: ---   
Host: * Target: *
Build: * Last reconfirmed:
Attachments: Add FAQ entry: Why must glibc be compiled with optimizations enabled?
Add FAQ entry: Why must glibc be compiled with optimizations enabled?

Description Carlos O'Donell 2007-09-08 16:00:51 UTC
The question "Why must glibc be compiled with optimizations enabled?" comes up
often on the mailing list.

The following patch adds an answer to the FAQ.
Comment 1 Carlos O'Donell 2007-09-08 16:02:21 UTC
Created attachment 1992 [details]
Add FAQ entry: Why must glibc be compiled with optimizations enabled?
Comment 2 Carlos O'Donell 2007-09-08 16:04:07 UTC
Comments? OK to checkin?
Comment 3 Ulrich Drepper 2007-10-06 17:02:41 UTC
This comment is not complete.  There are other reasons.  For instance, nested
functions must be inlined in many cases to avoid executable stacks.
Comment 4 Andreas Jaeger 2007-10-28 05:25:17 UTC
patch checked into glibc head.
Comment 5 Carlos O'Donell 2008-02-08 14:00:31 UTC
Created attachment 2239 [details]
Add FAQ entry: Why must glibc be compiled with optimizations enabled?
Comment 6 Carlos O'Donell 2008-02-08 14:01:42 UTC
It doesn't look like this was ever checked into glibc head?

I've updated the patch to include Ulrich's comments about nested functions.

OK to checkin?
Comment 7 Carlos O'Donell 2008-02-21 17:33:45 UTC
Ping?
Comment 8 Carlos O'Donell 2008-02-21 17:34:25 UTC
Andreas,

I don't see that this was checked in?
Comment 9 Sourceware Commits 2008-02-22 09:57:58 UTC
Subject: Bug 5012

CVSROOT:	/cvs/glibc
Module name:	libc
Changes by:	aj@sourceware.org	2008-02-22 09:57:19

Modified files:
	.              : FAQ.in 

Log message:
	[BZ #5012]
	* FAQ.in: Describe why glibc needs to be compiled with
	optimization.

Patches:
http://sourceware.org/cgi-bin/cvsweb.cgi/libc/FAQ.in.diff?cvsroot=glibc&r1=1.138&r2=1.139

Comment 10 Andreas Jaeger 2008-02-22 10:01:45 UTC
I now checked the version in which was posted here:
http://sourceware.org/ml/libc-hacker/2007-10/msg00023.html


Thanks Carlos!