diff mbox

Add -fno-exceptions and -fno-rtti in Android.mk

Message ID 1343272507-20825-1-git-send-email-kejun.zhou@linaro.org
State New
Headers show

Commit Message

Kejun ZHOU July 26, 2012, 3:15 a.m. UTC
From: "kejun.zhou" <dp583@stebjsxu0119.(none)>

Signed-off-by: kejun.zhou <kejun.zhou@linaro.org>
---
 Android.mk |    4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

Comments

Amit Kucheria July 26, 2012, 4:27 a.m. UTC | #1
Kejun,

On Thu, Jul 26, 2012 at 8:45 AM, kejun.zhou <kejun.zhou@linaro.org> wrote:
> From: "kejun.zhou" <dp583@stebjsxu0119.(none)>

Commit message?

> Signed-off-by: kejun.zhou <kejun.zhou@linaro.org>

In the future, please indicate in the email subject and commit message
what project/subsystem this patch is meant for.   Since you've cc'ed
Rajagopal, I'm guessing this applies to powertop.

> ---
>  Android.mk |    4 +++-
>  1 file changed, 3 insertions(+), 1 deletion(-)
>
> diff --git a/Android.mk b/Android.mk
> index c82cd95..fa1c225 100644
> --- a/Android.mk
> +++ b/Android.mk
> @@ -28,7 +28,9 @@ LOCAL_CPPFLAGS += -DDISABLE_I18N \
>         -DNCURSES_NOMACROS \
>         -DHAVE_NO_PCI \
>         -DDEFAULT_TERM=\"xterm\" \
> -       -DTERMINFO_PATH=\"/system/etc/terminfo\"
> +       -DTERMINFO_PATH=\"/system/etc/terminfo\" \
> +       -fno-exceptions \
> +       -fno-rtti \
>
>  LOCAL_C_INCLUDES += external/stlport/stlport/ \
>         external/stlport/stlport/stl \
> --
> 1.7.10
>
Kejun ZHOU July 26, 2012, 5:35 a.m. UTC | #2
Hi Rajagopal,
This patch is for git://git.linaro.org/tools/powertop-2.0.git

BRs,
Kejun

On 26 July 2012 12:27, Amit Kucheria <amit.kucheria@linaro.org> wrote:

> Kejun,
>
> On Thu, Jul 26, 2012 at 8:45 AM, kejun.zhou <kejun.zhou@linaro.org> wrote:
> > From: "kejun.zhou" <dp583@stebjsxu0119.(none)>
>
> Commit message?
>
> > Signed-off-by: kejun.zhou <kejun.zhou@linaro.org>
>
> In the future, please indicate in the email subject and commit message
> what project/subsystem this patch is meant for.   Since you've cc'ed
> Rajagopal, I'm guessing this applies to powertop.
>
> > ---
> >  Android.mk |    4 +++-
> >  1 file changed, 3 insertions(+), 1 deletion(-)
> >
> > diff --git a/Android.mk b/Android.mk
> > index c82cd95..fa1c225 100644
> > --- a/Android.mk
> > +++ b/Android.mk
> > @@ -28,7 +28,9 @@ LOCAL_CPPFLAGS += -DDISABLE_I18N \
> >         -DNCURSES_NOMACROS \
> >         -DHAVE_NO_PCI \
> >         -DDEFAULT_TERM=\"xterm\" \
> > -       -DTERMINFO_PATH=\"/system/etc/terminfo\"
> > +       -DTERMINFO_PATH=\"/system/etc/terminfo\" \
> > +       -fno-exceptions \
> > +       -fno-rtti \
> >
> >  LOCAL_C_INCLUDES += external/stlport/stlport/ \
> >         external/stlport/stlport/stl \
> > --
> > 1.7.10
> >
>
rajagopal.venkat@linaro.org July 26, 2012, 5:52 a.m. UTC | #3
On 26 July 2012 08:45, kejun.zhou <kejun.zhou@linaro.org> wrote:

> From: "kejun.zhou" <dp583@stebjsxu0119.(none)>
>
> Signed-off-by: kejun.zhou <kejun.zhou@linaro.org>
> ---
>  Android.mk |    4 +++-
>  1 file changed, 3 insertions(+), 1 deletion(-)
>
> diff --git a/Android.mk b/Android.mk
> index c82cd95..fa1c225 100644
> --- a/Android.mk
> +++ b/Android.mk
> @@ -28,7 +28,9 @@ LOCAL_CPPFLAGS += -DDISABLE_I18N \
>         -DNCURSES_NOMACROS \
>         -DHAVE_NO_PCI \
>         -DDEFAULT_TERM=\"xterm\" \
> -       -DTERMINFO_PATH=\"/system/etc/terminfo\"
> +       -DTERMINFO_PATH=\"/system/etc/terminfo\" \
> +       -fno-exceptions \
> +       -fno-rtti \
>
> I think no-exceptions and no-rtti options are enabled by default in
Android toolchain.
Compiler throws "exception handling disabled, use -fexceptions to enable"
error
when powertop is compiled with exceptions.

Moreover for Android, powertop exception handling is disabled through
DISABLE_TRYCATCH macro which is set in Android.mk.


>  LOCAL_C_INCLUDES += external/stlport/stlport/ \
>         external/stlport/stlport/stl \
> --
> 1.7.10
>
>
Kejun ZHOU July 26, 2012, 6:13 a.m. UTC | #4
OK. Please ignore the patch.


On 26 July 2012 13:52, Rajagopal Venkat <rajagopal.venkat@linaro.org> wrote:

>
>
> On 26 July 2012 08:45, kejun.zhou <kejun.zhou@linaro.org> wrote:
>
>> From: "kejun.zhou" <dp583@stebjsxu0119.(none)>
>>
>> Signed-off-by: kejun.zhou <kejun.zhou@linaro.org>
>> ---
>>  Android.mk |    4 +++-
>>  1 file changed, 3 insertions(+), 1 deletion(-)
>>
>> diff --git a/Android.mk b/Android.mk
>> index c82cd95..fa1c225 100644
>> --- a/Android.mk
>> +++ b/Android.mk
>> @@ -28,7 +28,9 @@ LOCAL_CPPFLAGS += -DDISABLE_I18N \
>>         -DNCURSES_NOMACROS \
>>         -DHAVE_NO_PCI \
>>         -DDEFAULT_TERM=\"xterm\" \
>> -       -DTERMINFO_PATH=\"/system/etc/terminfo\"
>> +       -DTERMINFO_PATH=\"/system/etc/terminfo\" \
>> +       -fno-exceptions \
>> +       -fno-rtti \
>>
>> I think no-exceptions and no-rtti options are enabled by default in
> Android toolchain.
> Compiler throws "exception handling disabled, use -fexceptions to enable"
> error
> when powertop is compiled with exceptions.
>
> Moreover for Android, powertop exception handling is disabled through
> DISABLE_TRYCATCH macro which is set in Android.mk.
>
>
>>  LOCAL_C_INCLUDES += external/stlport/stlport/ \
>>         external/stlport/stlport/stl \
>> --
>> 1.7.10
>>
>>
>
diff mbox

Patch

diff --git a/Android.mk b/Android.mk
index c82cd95..fa1c225 100644
--- a/Android.mk
+++ b/Android.mk
@@ -28,7 +28,9 @@  LOCAL_CPPFLAGS += -DDISABLE_I18N \
 	-DNCURSES_NOMACROS \
 	-DHAVE_NO_PCI \
 	-DDEFAULT_TERM=\"xterm\" \
-	-DTERMINFO_PATH=\"/system/etc/terminfo\"
+	-DTERMINFO_PATH=\"/system/etc/terminfo\" \
+	-fno-exceptions \
+	-fno-rtti \
 
 LOCAL_C_INCLUDES += external/stlport/stlport/ \
 	external/stlport/stlport/stl \