Commit 49d7a324 by Eric Botcazou Committed by Pierre-Marie de Rodat

[Ada] Makefile.rtl: add a warning about compilation flags

2019-07-11  Eric Botcazou  <ebotcazou@adacore.com>

gcc/ada/

	* Makefile.rtl: Add warning note about compilation flags and
	capitalize.

From-SVN: r273400
parent a13a714e
2019-07-11 Eric Botcazou <ebotcazou@adacore.com>
* Makefile.rtl: Add warning note about compilation flags and
capitalize.
2019-07-11 Ed Schonberg <schonberg@adacore.com> 2019-07-11 Ed Schonberg <schonberg@adacore.com>
* exp_ch9.adb (Expand_N_Protected_Type_Declaaration): New * exp_ch9.adb (Expand_N_Protected_Type_Declaaration): New
......
...@@ -2688,9 +2688,15 @@ setup-rts: force ...@@ -2688,9 +2688,15 @@ setup-rts: force
$(LN_S) $(GNAT_SRC)/$(word 2,$(subst <, ,$(PAIR))) \ $(LN_S) $(GNAT_SRC)/$(word 2,$(subst <, ,$(PAIR))) \
$(RTSDIR)/$(word 1,$(subst <, ,$(PAIR)));) $(RTSDIR)/$(word 1,$(subst <, ,$(PAIR)));)
# Special flags # Special flags. It is recommended not to change the compilation flags
# without a careful analysis of the consequences because (part of) the
# force no sibling call optimization on s-traceb.o so the number of stack # runtime implements low-level support that is outside of the semantics
# of the language and therefore needs to be treated differently from the
# other units. For example, the part of the runtime implementing the
# propagation of exceptions cannot itself be compiled with checks that
# may give rise to exceptions, e.g. stack overflow checks.
# Force no sibling call optimization on s-traceb.o so the number of stack
# frames to be skipped when computing a call chain is not modified by # frames to be skipped when computing a call chain is not modified by
# optimization. We don't want inlining, either. # optimization. We don't want inlining, either.
...@@ -2699,14 +2705,14 @@ s-traceb.o : s-traceb.adb s-traceb.ads ...@@ -2699,14 +2705,14 @@ s-traceb.o : s-traceb.adb s-traceb.ads
$(NO_INLINE_ADAFLAGS) $(NO_SIBLING_ADAFLAGS) $(ADA_INCLUDES) $< \ $(NO_INLINE_ADAFLAGS) $(NO_SIBLING_ADAFLAGS) $(ADA_INCLUDES) $< \
$(OUTPUT_OPTION) $(OUTPUT_OPTION)
# compile s-tasdeb.o without optimization and with debug info so that it is # Compile s-tasdeb.o without optimization and with debug info so that it is
# always possible to set conditional breakpoints on tasks. # always possible to set conditional breakpoints on tasks.
s-tasdeb.o : s-tasdeb.adb s-tasdeb.ads s-tasdeb.o : s-tasdeb.adb s-tasdeb.ads
$(ADAC) -c $(ALL_ADAFLAGS) $(FORCE_DEBUG_ADAFLAGS) -O0 $(ADA_INCLUDES) \ $(ADAC) -c $(ALL_ADAFLAGS) $(FORCE_DEBUG_ADAFLAGS) -O0 $(ADA_INCLUDES) \
$< $(OUTPUT_OPTION) $< $(OUTPUT_OPTION)
# force no function reordering on a-except.o because of the exclusion bounds # Force no function reordering on a-except.o because of the exclusion bounds
# mechanism (see the source file for more detailed information). # mechanism (see the source file for more detailed information).
# force debugging information on a-except.o so that it is always # force debugging information on a-except.o so that it is always
# possible to set conditional breakpoints on exceptions. # possible to set conditional breakpoints on exceptions.
...@@ -2717,7 +2723,7 @@ a-except.o : a-except.adb a-except.ads ...@@ -2717,7 +2723,7 @@ a-except.o : a-except.adb a-except.ads
$(NO_INLINE_ADAFLAGS) $(NO_REORDER_ADAFLAGS) -O1 $(ADA_INCLUDES) \ $(NO_INLINE_ADAFLAGS) $(NO_REORDER_ADAFLAGS) -O1 $(ADA_INCLUDES) \
$< $(OUTPUT_OPTION) $< $(OUTPUT_OPTION)
# compile s-excdeb.o without optimization and with debug info to let the # Compile s-excdeb.o without optimization and with debug info to let the
# debugger set breakpoints and inspect subprogram parameters on exception # debugger set breakpoints and inspect subprogram parameters on exception
# related events. # related events.
...@@ -2725,21 +2731,21 @@ s-excdeb.o : s-excdeb.adb s-excdeb.ads s-except.ads ...@@ -2725,21 +2731,21 @@ s-excdeb.o : s-excdeb.adb s-excdeb.ads s-except.ads
$(ADAC) -c $(ALL_ADAFLAGS) $(FORCE_DEBUG_ADAFLAGS) -O0 \ $(ADAC) -c $(ALL_ADAFLAGS) $(FORCE_DEBUG_ADAFLAGS) -O0 \
$(ADA_INCLUDES) $< $(OUTPUT_OPTION) $(ADA_INCLUDES) $< $(OUTPUT_OPTION)
# force debugging information on s-assert.o so that it is always # Force debugging information on s-assert.o so that it is always
# possible to set breakpoint on assert failures. # possible to set breakpoint on assert failures.
s-assert.o : s-assert.adb s-assert.ads s-assert.o : s-assert.adb s-assert.ads
$(ADAC) -c $(ALL_ADAFLAGS) $(FORCE_DEBUG_ADAFLAGS) $(ADA_INCLUDES) \ $(ADAC) -c $(ALL_ADAFLAGS) $(FORCE_DEBUG_ADAFLAGS) $(ADA_INCLUDES) \
$< $(OUTPUT_OPTION) $< $(OUTPUT_OPTION)
# force debugging information on a-tags.o so that the debugger can find # Force debugging information on a-tags.o so that the debugger can find
# the description of Ada.Tags.Type_Specific_Data. # the description of Ada.Tags.Type_Specific_Data.
a-tags.o : a-tags.adb a-tags.ads a-tags.o : a-tags.adb a-tags.ads
$(ADAC) -c $(ALL_ADAFLAGS) $(FORCE_DEBUG_ADAFLAGS) $(ADA_INCLUDES) \ $(ADAC) -c $(ALL_ADAFLAGS) $(FORCE_DEBUG_ADAFLAGS) $(ADA_INCLUDES) \
$< $(OUTPUT_OPTION) $< $(OUTPUT_OPTION)
# force no sibling call optimization on s-memory.o to avoid turning the # Force no sibling call optimization on s-memory.o to avoid turning the
# tail recursion in Alloc into a loop that confuses branch prediction. # tail recursion in Alloc into a loop that confuses branch prediction.
s-memory.o : s-memory.adb s-memory.ads s-memory.o : s-memory.adb s-memory.ads
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment