Bug 5012 - Why must glibc be compiled with optimizations enabled?
Summary: Why must glibc be compiled with optimizations enabled?
Status: RESOLVED FIXED
Alias: None
Product: glibc
Classification: Unclassified
Component: admin (show other bugs)
Version: unspecified
: P2 normal
Target Milestone: ---
Assignee: Carlos O'Donell
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-09-08 16:00 UTC by Carlos O'Donell
Modified: 2017-01-06 09:45 UTC (History)
5 users (show)

See Also:
Host: *
Target: *
Build: *
Last reconfirmed:
fweimer: security-


Attachments
Add FAQ entry: Why must glibc be compiled with optimizations enabled? (1.02 KB, patch)
2007-09-08 16:02 UTC, Carlos O'Donell
Details | Diff
Add FAQ entry: Why must glibc be compiled with optimizations enabled? (3.98 KB, patch)
2008-02-08 14:00 UTC, Carlos O'Donell
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
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!